Android :: Set Weight Using API Calls
Sep 7, 2009
is there a way to set the weight of a view using API calls? I construct parts of my UI at runtime. The dynamic UI has multiple View. However, I want to set the weight of those view to be non-equal. Any idea on how to do that?
View 6 Replies
Oct 4, 2009
LinearLayout obeys weight and as per documentation weight gives priority to an object. Here is the layout I have: Here you can see that the first textview has a weight of 2, second has a weight of 0, but still the second text view takes up all the space. If I give the first edit view a weight of 0 and second a weight of 2, surprisingly, first edit view gets more space. Isn't this weird, or am I doing something very wrong. I am poor in layouts. <LinearLayout android:id="@+id/LinearLayout01" android:layout_width="fill_parent" android:layout_height="fill_parent"
View 7 Replies
View Related
May 19, 2010
My wife and I have droids, however new to droid and she was using calorie counter to do her grocery shopping as it had a scanner function that would tell her how many points the item is while shopping. Calorie counter removed that function and my wife is looking for a replacement. I apologize if i duplicated a prior post.
View 2 Replies
View Related
Jan 4, 2010
i am starting to develop Android applications and i would like to know if there are any tips for creating lightweight applications. This is my first attempt to write applications on a mobile platform but i hope that my experience in programming will help.I have in mind the "Better, Faster, Lighter Java" book, but will this be "the" answer to my question? Are there any tips specific for the Android Platform that will allow me to build lightweight applications?
View 2 Replies
View Related
Nov 26, 2009
I have a simple horizontal linear_layout with bunch of image views in it. the trick is that the views have different widths, relative to the size of their parent (the linear layout). I set the layout's weightSum to a 100 and the layout_weight to let's say 10 of one view and 15 of the other, on so on. And it did not work. I also tired using float values setting the weightSum to 1.0 and the layout_weight of the image views to 0.2 and 0.3 and so on. But it didn't work either. I did search this group for any references to the weightSum but found nothing. Any ideas how to handle it?
View 5 Replies
View Related
Feb 1, 2009
i know we can use XML to specify layout_weight.(refer to APIdemo LinearLayout9.java) but is there any method to specify it from code?
View 2 Replies
View Related
Jul 26, 2010
I'm looking for an embeddable webserver for an android project I am working on. ijetty is to big for me, I'm just trying to serve some static content don't need an entire servlet container. Something like http://java.sun.com /javase /6/docs/jre/api/net/httpserver/spec/com/sun would be useful, but probably still overkill for what I need.
View 3 Replies
View Related
Apr 8, 2009
I have played around a bit with the xml files for creating layouts and can't explain the behaviour of layout_weight when using it in a LinearLayout that has orientation="vertical"
When creating a layout that is horizontal everything follows the documentation, that a child would get more space if it's has the highest value.
But the following code for vertical orientation, give more space to the item with lowest weight.
CODE:..........
And the question is: Is this a bug or just a feature that maybe need more documentation?
View 2 Replies
View Related
Jul 5, 2010
For those people who have held the device, how is the weight distribution? Just from the looks of it, it looks like it would be a tad top heavy because of the hump.
View 23 Replies
View Related
Aug 30, 2010
My 7 year old, 5year old & 3 & 1/2 year old are able to do terrible things to my phone & computers! I hope I am one of many frustrated & forlorn parents who have great kids that are obviously a rung or 3 up the evolutionary ladder! Perhaps we should start a support group! LMAO I am new to android & so far I love it, so much that you can do on this platform & as i am a lateral thinker it is so much fun being able to get apps that seem to allow my though processes & not miss a beat, what a delight. NOt too impressed with the pattern lock at the moment though but I am hopeful of finding a solution there or admiring my Very expensive paper weight that might have been so much fun!! I am currently very tentative about all the programming stuff but I guess in time & with help from all the learned folk out there I will be able to have the best & most productive tool completely customized for me that I could imagine. Do let me know if I am deluded as it would save me much heart ache, Hope to be educated well here so thanks in advance for your patience & assistance!
View 10 Replies
View Related
May 26, 2010
I am trying to assign relative widths to columns in a ListView that is in a TabHost, using layout_weight as suggested here:Unfortunately, it seems to want to fit all the columns into the space that the button occupies, as opposed to the width of the screen. Or maybe there is another constraint that I do not understand.
View 2 Replies
View Related
Aug 23, 2010
In Android I am writing an application in which, I would like to capture an event if in case user doesn't do any activity (tapping/key press). For better context - It is like session timeout.
Basic solution - I can override the key press/tapping event and put one timer which continuously run either as thread or service. In my opinion this is bit heavier solution in terms of resource.
View 1 Replies
View Related
Jul 23, 2010
According to documentaion, FILL_PARENT basically lets the view take up the entire extra space. Weight also dictates how much of the extra space can be taken by the view. What is the difference? For eg: What happens when I use, new LinearLayout.Layout Params(Layout Params.WRAP_CONTENT,LayoutParams.WRAP_CONTENT, 1.0f)
View 1 Replies
View Related
Nov 10, 2010
I currently have the Samsung Galaxy (I7500). I have it for a year+ now. A couple of months ago I wanted to buy the Desire, but I decided its too early for an upgrade (big mistake). It's very hard for me to keep waiting for the perfect device since I hate my galaxy so much. So my question is which phone would you recommend?
IPhone 4 no way ofcourse, Samsung Galaxy S no way cause Samsung really screwed things up with the original galaxy (and it has no Flash), which leaves me with HTC Desire HD or Desire Z. The DHD has an extremely weak battery, and I want my next phone to last a day (moderate user). So, is the Desire Z worth the money? The things that bother me with the Desire Z are:
1. Weight - It weigh 180 grams! Thats sick, way too much. (the Desire is about 135, which isn't light, but not heavy either)
2. Battery life - I'm not sure how long does it last under moderate usage.
3. Size - its quite big, and its especially because of the keyboard, which I don't really need / care about.So, Whats your opinion?
View 16 Replies
View Related
Apr 23, 2010
I always read about this funny weight value in the Android documentations. Now I want to try it for the first time but it isn't working at all. As I understand it from the documentations this layout: should create two buttons that are horizontally aligned and share the space equally. The problem is the two buttons don't grow to fill the space. The result is something like this: I would like the buttons to grow and fill the whole line. If both buttons are set to fill parent only the first button is shown and fills the whole line.
View 5 Replies
View Related
Jul 3, 2010
Not sure if this is technically the "silent bug" but calls do not even show up on the phone, they just appear as "missed call from...." no noise no other notification. I restarted phone but it did it again right away. Phone does show the 50% bug in battery info.
View 1 Replies
View Related
Jun 9, 2010
Is there anyway to make VoIP calls or Skype Out calls on the EVO? I am switching from the iPhone 3GS and am going out of the country on vacation in a month and I got used to making Skype Out calls over WiFi when out of the country.
View 3 Replies
View Related
Apr 30, 2010
having problems receiving calls. When I call the phone from another line, nothing happens except its logged as a missed call. The screen doesnt light up and no options for receiving calls. This happened before I installed Google voice. I disabled Google voice and still no joy. Everything else works. I can make calls, browse over WiFi and 3G.
View 8 Replies
View Related
Aug 24, 2010
I've been doing my research on the subject but I have time believing that there is no services that will allow me to me 3G calls with my Nexus One (it is my understanding that with the iPhone there are several services that offer that). Is that true??? I'm in Canada so the Google Voice service is not an option.
View 18 Replies
View Related
Jan 24, 2009
I would like to know whether its possible to record call in Android. If its possible then which class should be used for that purpose. I think there should be some message broadcast receiver invoked when a call is accepted and application should be started in background and record the conversation. Would like to know if this is actually possible and it it is then what classes to refer to?
One more thing if I want to send the recorded file to a server through GPRS then is there any limit in size for it to get transfer through GPRS? Small files will be transferred easily through GPRS but what about larger files? Is there any upper limit as to files of this much size can be transferred.
More importantly I want to know about the call recording function. Whether its available in Android phones as a native applicatoins or not? If its not available then can a application be written that can record all incoming and if possible outgoing calls as well.
View 3 Replies
View Related
Jul 14, 2010
Is there a blacklist app that allows me to simply reject (either by picking up and hanging up, or by saying the number is disconnected) numbers that I specify. I used an app called iblacklist on my iphone and it works wonders for this. I was wondering if there is something in the market that functions the same as this. iblacklist also removes the calls from the recent calls list, that would be useful but not very important.
View 13 Replies
View Related
Apr 8, 2010
Does anyone know of an app (for hero) that would allow me to make and receive calls on my desktop when my phone is plugged in via usb? I have desktopSMS going and was wondering if there is something similar for calls. I have unlimited voice/text so i don't need anything to avoid that, my problem is that where i sit in the office i can't get a signal on the phone, but plugged in via usb my phone can sit on the window sill and get reception so it would be handy not to have to run across the room every time it rings! i tried searching the forums for this but on and pc are too short to search so you can imagine how many hits for "receive calls" there were!
View 13 Replies
View Related
Jul 5, 2009
I want to block calls from few numbers, for that I want to write a app of my own. So what are the APIs which I should be using? Basically I want to get notified when a call comes, i want to compare numbers if it is what i want to block, i want to cut the call or mute it or if possible mute it and record it.
View 6 Replies
View Related
Jun 10, 2010
I have been trying to develop an android application for sometime now and i would like to get some suggestion on the best way of making web service calls or to be generic the best way of communication between the android platform and web server. Soap(using Ksoap) and HTTP(using POST) are two methodologies & XML and JSON are the two data formats that am aware of,(let me know if they are few other options too..) and , i would like to know what is the best option of data transfer when i) the data to transfer is Large and less frequent. ii) more frequent but less data is being transfered. Also when it comes to data synchronization between server and our app , how is that generally implemented?
View 7 Replies
View Related
Sep 9, 2009
I want to write an app to do the api calls interception just like what "Detour" does under windows. Once the app is running it can hijack all the api calls other app made to the system. Anybody can give me any idea about achieving that?
View 3 Replies
View Related
Apr 6, 2014
I am new bee to android app development and planning to develop an application to connect to another application through JAVA APIs.I hope android apps have the ability to interact with JAVA APIs
I want to know which tool should I use for development? What are the steps which I need to perform to connect to the JAVA API? I have the java library files but not sure how to connect. I have knowledge about HMTL and JAVA but never worked on android apps. I want to know the easy and best tool for android app development.
View 1 Replies
View Related
Jun 8, 2010
Need a program to block calls. Telemarketers, debt collectors, annoying ex's etc. Anything like that for the Android? The send to voice mail feature causes them to just leave me voice mail.
View 4 Replies
View Related
May 12, 2009
public final Cursor query (Uri uri, String[] projection, String selection, String[] selectionArgs, String sortOrder) Query the given URI, returning a Cursor over the result set.Parameters uri The URI, using the content:// scheme, for the content to retrieve. projection A list of which columns to return. Passing null will return all columns, which is discouraged to prevent reading data from storage that isn't going to be used. selection A filter declaring which rows to return, formatted as an SQL WHERE clause (excluding the WHERE itself). Passing null will return all rows for the given URI. selectionArgs You may include ?s in selection, which will be replaced by the values from selectionArgs, in the order that they appear in the selection. The values will be bound as Strings. sortOrder How to order the rows, formatted as an SQL ORDER BY clause (excluding the ORDER BY itself). Passing null will use the default sort order, which may be unordered.
View 3 Replies
View Related
Dec 20, 2009
This just doesn't seem to be possible on the Droid. The notification is just killed and never delivered.
View 10 Replies
View Related
Jul 12, 2009
My first intention is to make a minute counter application. I tried to use a PhoneStateListener but it does not provide enough information to count the time of the outbound calls. The state of the phone does not change when my outbound call is took. Some idea of how to make it ?
View 2 Replies
View Related