[android-developers] How to retreive edittext and spinner data added dynamically for a linear layout.

2013-04-18 Thread Seshu
when i press the plus image the view should added dynamically for the linearlayout which i defined in xml file. the views contains edittext and spinner and one checkbox button. when the user pressed the nxt btn the checkbox selected and corresponding the user entered the data must be saved. here h

Re: [android-developers] Sprint 4G(WIMAX) tcp connection problem

2013-04-18 Thread Long Pu
It's galaxy S2. I believe the GCM works on this phone. I am wondering what GCM does to keep his socket alive. It would not seed keep alive packets in short period like several seconds, this would burn out battery very quickly. My guess is that the carrier can recognize the GCM tcp connection and

Re: [android-developers] Re: MediaController - seek bar

2013-04-18 Thread Larry Meadors
Worked perfectly. Thanks. Larry -- -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googl

Re: [android-developers] Re: how to create a custom gauge in android

2013-04-18 Thread bob
Apparently, the Nexus 7 has no temperature sensor according to this method: private void attachToSensor() { SensorManager sensorManager = getSensorManager(); List sensors = sensorManager.getSensorList(Sensor.TYPE_TEMPERATURE); if (sensors.size() > 0) { Sensor sensor = sensors.get(0); sensorManag

Re: [android-developers] Re: MediaController - seek bar

2013-04-18 Thread Larry Meadors
I'll try that...thanks! Larry -- -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googleg

Re: [android-developers] Re: how to create a custom gauge in android

2013-04-18 Thread abdallah mouhamed amine
am sure that the method that shows the needle is not called !! check your ondraw method 2013/4/18 bob > For some reason, that thermometer example doesn't seem to work right: > > > > > > > > Than

[android-developers] Re: MediaController - seek bar

2013-04-18 Thread bob
What about this in the MediaPlayer class? public void *setOnSeekCompleteListener* (MediaPlayer.OnSeekCompleteListener listener) Thanks. On Thursday, April 18, 2013 3:06:20 PM UTC-5, Larry Meadors wrote: > > I have a audiobook player that saves it's position using a web service. > > It has a

Re: [android-developers] Re: Compatibility mode issues on 4.x

2013-04-18 Thread user123
The point is - if somebody sees my app on a tablet, like now, they will think what the ...? They'll think I have no idea. But if people sees it in compatibility mode (or even better, they can't download it), they say, okay, the app was not intended for tablets! - That's a huge difference. Am

Re: [android-developers] Re: Compatibility mode issues on 4.x

2013-04-18 Thread user123
Well, my layout is density independent. I misused the density folders as approximation for screen size, and it worked well on smartphones The issue is that this app was never intended for tablets - but, great, in Android it's possible to exclude small screens, but not large ones. Nobody in the

Re: [android-developers] Re: Compatibility mode issues on 4.x

2013-04-18 Thread user123
Well, my layout is density independent. I misused the density folders as approximation for screen size, and it worked well on smartphones The issue is that this app was never intended for tablets - but, great, in Android it's possible to exclude small screens, but not large ones. Nobody in the

[android-developers] MediaController - seek bar

2013-04-18 Thread Larry Meadors
I have a audiobook player that saves it's position using a web service. It has a periodic timer that saves every 30 seconds which works great, but I'd like to also save immediately after the user moves the position using the seek bar. I'm using the built-in MediaController, but it doesn't seem to

[android-developers] Re: how to create a custom gauge in android

2013-04-18 Thread bob
For some reason, that thermometer example doesn't seem to work right: Thanks. On Thursday, April 18, 2013 11:13:37 AM UTC-5, Bilthon wrote: > > I found this nice tutorial about the subject:

Re: [android-developers] Re: how to create a custom gauge in android

2013-04-18 Thread abdallah mouhamed amine
thank you Bilthon, i build the custom view i want , i just used 3 drawable ( needle, centerwheel and a background gauge) with ondraw and rotate method I tested it with my emulator and it's working correctly thank you all for your help :D 2013/4/18 Bilthon > I found this nice tutorial about the

[android-developers] "textMultiLine and textImeMultiLine"

2013-04-18 Thread John Goche
Hello, I am trying to understand the difference between the textMultiLine and textImeMultiLine options for android:inputType in an EditText. However I have not been able to understand an answer. The documentation says IME is a control enabling users to enter text but I don't understand how texMult

[android-developers] Re: Which is more suitable for uploading large files? a service on separate process or ...

2013-04-18 Thread Doug
I would definitely dedicate a service for things that do persistent work in the background. There is no real advantage to using a separate process unless your upload needs a truckload of memory. Doug On Thursday, April 18, 2013 12:21:47 AM UTC-7, AndroidCompile wrote: > > Hi, > When an applica

[android-developers] Re: how to create a custom gauge in android

2013-04-18 Thread Bilthon
I found this nice tutorial about the subject: http://mindtherobot.com/blog/272/android-custom-ui-making-a-vintage-thermometer/ And based on that created this Speedometer: https://github.com/bilthon/Android-Speedometer Both projects are very simple, but they demonstrate quite well how to create

Re: [android-developers] Sprint 4G(WIMAX) tcp connection problem

2013-04-18 Thread Robert Greenwalt
What phone hardware? On Thu, Apr 18, 2013 at 3:27 AM, Long Pu wrote: > We only see this issue on Boost phones on WIMAX actually. Pure Sprint > phones work fine. > > The minimal required period is a crazy value like 3~5 seconds. Hope this > info can help. > Our guess is that maybe Boost rents

Re: [android-developers] Re: Compatibility mode issues on 4.x

2013-04-18 Thread bob
I think the best solution is for you to not use compatibility mode. I think it was mainly a stopgap solution for when tablets first came out. People probably wouldn't buy a tablet if nothing would run on it. But tablets have been out long enough so that it doesn't make sense to only des

Re: [android-developers] Re: Compatibility mode issues on 4.x

2013-04-18 Thread Piren
Ahh... he might have did it wrong, but that's an over simplification... I wish you could use the same layouts for those devices... fact is you cant. DP and SP do an OK Job to fit each density, but not perfect. The same layout on the Galaxy Nexus and on the Nexus S look different enough to requir

Re: [android-developers] Re: Compatibility mode issues on 4.x

2013-04-18 Thread Krishna Mahadik
Dear Friend, Just include following code in your manifest Thanks & Regards, Krishna V. Mahadik On Thu, Apr 18, 2013 at 5:28 PM, Mark Murphy wrote: > On Thu, Apr 18, 2013 at 3:53 AM, user123 wrote: > > I did the work to optimize layout for xhdpi devices > > Then you did it wrong. Layouts sh

[android-developers] Google+ How to know if application is installed by friends

2013-04-18 Thread rudas
Hi, I'm trying to retrieve the people in a user's circles that have installed the current application. I have used the sample application "PlusSampleActivity" provided in the SDK and successfully managed to get the list of all people in the user's circles. However, I'm not sure how to get if t

Re: [android-developers] Re: Compatibility mode issues on 4.x

2013-04-18 Thread Mark Murphy
On Thu, Apr 18, 2013 at 3:53 AM, user123 wrote: > I did the work to optimize layout for xhdpi devices Then you did it wrong. Layouts should be density-independent. The layout of an Xperia Z (xxhdpi) should be the same as a Galaxy Nexus (xhdpi), which should be the same as a Nexus S (hdpi), etc.,

[android-developers] Android - how to handle saving file on low device memory(Internal/External memory)

2013-04-18 Thread sumit gulati
How we can handle the file saving on low device memory(internal/Excternal memrory). I know if sufficient space is not available the OS will throw IOException but is there any way to handle this gracefully. Also if the file size is not known before saving file then how can we handle low memory s

Re: [android-developers] Sprint 4G(WIMAX) tcp connection problem

2013-04-18 Thread Long Pu
We only see this issue on Boost phones on WIMAX actually. Pure Sprint phones work fine. The minimal required period is a crazy value like 3~5 seconds. Hope this info can help. Our guess is that maybe Boost rents other company's WIMAX network, so they would like to try their best to clean up idle

Re: [android-developers] Re: Handler Post sequence

2013-04-18 Thread Piren
post() maintains order, just not timing. They'll be handled in the order you posted, you just don't know when. On Thursday, April 18, 2013 11:54:35 AM UTC+3, Filipe wrote: > > "If you mean 'android.os.Handler' there is no such method 'Post()'. Did > you mean 'post()' or a different type?" > -I m

Re: [android-developers] Re: how to create a custom gauge in android

2013-04-18 Thread abdallah mouhamed amine
thank you bob that's helping me a lot :) let's code \m/ big up 2013/4/17 bob > If you don't use *save*() and *restore*() and something gets drawn after > your needle, it will also be rotated just as the needle was rotated. > > > So you would probably use something like this: > > > *canvas.sa

Re: [android-developers] Re: Handler Post sequence

2013-04-18 Thread Filipe Madureira
"If you mean 'android.os.Handler' there is no such method 'Post()'. Did you mean 'post()' or a different type?" -I mean post(). I did not copy the code, I typed it to try to explain my problem, sory for any errors on that. I will try to ask the question in a different way: I have a worker thread

Re: [android-developers] Re: Compatibility mode issues on 4.x

2013-04-18 Thread user123
Thanks, Mark. I should have done a better research. So this leads to a quite stupid situation. I did the work to optimize layout for xhdpi devices, like the Galaxy Nexus, and it looks quite well. If I set the compatibility mode to 320dp, this willl be lost on all these devices. Samsung Galaxy s

[android-developers] Which is more suitable for uploading large files? a service on separate process or ...

2013-04-18 Thread AndroidCompile
Hi, When an application needs to upload many large files, which would be a better solution: 1) Doing this on a separate process (i.e. remote service)? 2) Using a separate thread (or AsyncTask)? Is there a clear and definite answer to this? The application, by the way, is uploading things all the