[android-developers] Re: Concurrency: Do you use Loaders? AsyncTask? or Runnables?

2013-03-20 Thread Harish
There are differences - Loader managed by fragment/activity, if you feel trouble managing task between configuration changes, other interruption (phone ring) or any other, use Loader and let Fragment/activity will mange pause/restart/reattach . Where ever possible try to use Loader -

Re: [android-developers] Getting the problem while fetching the current location...?

2013-03-20 Thread abhay_401
Hi, I have tested in Samsung Galaxy Grand. In this device I have tried but not getting the current location details. Same code is working in ICS device. What might be the problem. On Tuesday, March 19, 2013 7:22:40 PM UTC+5:30, Kristopher Micinski wrote: what's the exact device? Kris On

[android-developers] App works on Samsung Galaxy Note ONLY when I debug it with eclipse

2013-03-20 Thread Mario Giammarco
Hello, I have written an Android app that uses fusesource stompjms client. The app connect to a server with stompjms. I am using AsyncTask for network related operations. The app: - works on all 2.3 devices; - works on 2.3 emulator; - works on 4.0 emulator; - works on HTC 4.0 phone; - hangs on

[android-developers] Re: Deadlock running app on Nexus 10, Android 4.2.2

2013-03-20 Thread Kostya Vasilyev
Are you able to repeatedly reproduce the issue? Is the suspended thread always stuck in the same place? If it does, have you considered removing the call to validate the key (which calls into, apparently native, regular expression code)? -- K On Wednesday, March 20, 2013 2:25:35 AM UTC+4,

[android-developers] Re: Concurrency: Do you use Loaders? AsyncTask? or Runnables?

2013-03-20 Thread b0b
I use...java.util.concurrent.* classes. AsyncTask is just a specific usage of these classes. Avoid creating and managing threads yourself. Use Executors instead. -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this

[android-developers] Re: Making my app the only one that can run.

2013-03-20 Thread Android2ee
Hi, You should build your own home activity ( a real one that handles all the events needed to be handled by a home) then at each key methods of your activity (onResume, onCreate) you just launch your apllication using the intent (startActivity(intent)). If building a home is a too huge work, a

[android-developers] Android Games SDK?

2013-03-20 Thread Taylor Ringo
Hey, Are there any game development SDK's by google, or some other established developers? I'm programming in JAVA. -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

Re: [android-developers] Android Games SDK?

2013-03-20 Thread Jim Graham
On Wed, Mar 20, 2013 at 05:42:58AM -0700, Taylor Ringo wrote: Are there any game development SDK's by google, or some other established developers? I'm programming in JAVA. As to SDKs, I don't know. However, there are at least two popular game engine libs, libgdx and andengine, which is

[android-developers] Re: Deadlock running app on Nexus 10, Android 4.2.2

2013-03-20 Thread bergstr
Hello Kostya, havent tried to reproduce yet, so I cannot say whether its always in the same place. Will try that next. However, you will agree that even seeing it once is enough reason for an emergency call. I am considering all options, really. But before I delve into speculative

[android-developers] Re: Concurrency: Do you use Loaders? AsyncTask? or Runnables?

2013-03-20 Thread Streets Of Boston
There are even more ways of doing stuff in the background: IntentService :-) - Runnable If you mean a Thread (running itself or a Runnable): Generally, avoid using them. But there are good use cases: When you want to setup something that runs in the background for a long time

[android-developers] Re: How to determine application's method count?

2013-03-20 Thread bob
Well, what 3rd party JARs are you using? Thanks. On Tuesday, March 19, 2013 4:02:54 PM UTC-5, Ab wrote: I'm encountering issues with my application having to many methods. In the last post in the below link, a poster posts the method count for his application (broken down by

[android-developers] Re: Making my app the only one that can run.

2013-03-20 Thread bob
I used an app in Google Play called *SureLock Kiosk Lockdown*. On Tuesday, March 19, 2013 4:35:56 PM UTC-5, Tobiah wrote: I'm not being unfriendly to users. I need to hand out devices at an event so that people can walk around and use my app. I don't want them to use other apps on the

Re: [android-developers] Re: Making my app the only one that can run.

2013-03-20 Thread mathias seguy
Thanks Envoyé de mon Android Excusez la brieveté. Mathias Seguy - Android2EE Le 20 mars 2013 15:55, bob b...@coolfone.comze.com a écrit : I used an app in Google Play called *SureLock Kiosk Lockdown*. On Tuesday, March 19, 2013 4:35:56 PM UTC-5, Tobiah wrote: I'm not being unfriendly to

Re: [android-developers] Re: Concurrency: Do you use Loaders? AsyncTask? or Runnables?

2013-03-20 Thread Kristopher Micinski
Though it's worth noting that since an `IntentService` doesn't run in a background thread context. (Probably one of the biggest things beginners screw up..) Kris On Wed, Mar 20, 2013 at 9:49 AM, Streets Of Boston flyingdutc...@gmail.com wrote: There are even more ways of doing stuff in the

Re: [android-developers] Getting the problem while fetching the current location...?

2013-03-20 Thread lbendlin
Some Galaxy devices (especially the Spica) require an alternative way of starting up the location listener. Ping me if you want the code. -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

Re: [android-developers] Getting the problem while fetching the current location...?

2013-03-20 Thread Kristopher Micinski
I'm interested as to why their implementation would differ from the standard API, do you have any specific reason for not putting an example on github, or would you care to share the trick..? (I'm just interested because it seems like a stupid decision on the vendor's part to break things..)

[android-developers] I'm missing something dumb here...

2013-03-20 Thread Larry Meadors
I'm making a grid of items that has an image and two text elements under it. I want all three elements centered horizontally, and the image to be right above the text. For some reason, the image is centered vertically and the text is at the bottom. Here's a screen shot to make that clearer:

[android-developers] Re: I'm missing something dumb here...

2013-03-20 Thread Larry Meadors
I think android:layout_below is only for relative layout...but I may try that instead. :-/ Nothing else seems to be working here... Larry On Wed, Mar 20, 2013 at 10:11 AM, John Masseria jpmasse...@gmail.comwrote: Have you considered trying to explicitly force the order of the items in the

Re: [android-developers] Re: Concurrency: Do you use Loaders? AsyncTask? or Runnables?

2013-03-20 Thread Streets Of Boston
The onStart/onStartCommand methods of a *Service *run in the main UI thread, not a background thread, But an *IntentService*'s onHandleIntent method does run in a pooled background thread (pool has only one thread, and subsequent Intents are handled sequentially). On Wednesday, March 20, 2013

Re: [android-developers] Re: Concurrency: Do you use Loaders? AsyncTask? or Runnables?

2013-03-20 Thread Kristopher Micinski
Ah that's right, forgive my comment. On Mar 20, 2013 12:03 PM, Streets Of Boston flyingdutc...@gmail.com wrote: The onStart/onStartCommand methods of a *Service *run in the main UI thread, not a background thread, But an *IntentService*'s onHandleIntent method does run in a pooled background

Re: [android-developers] Re: Concurrency: Do you use Loaders? AsyncTask? or Runnables?

2013-03-20 Thread Kristopher Micinski
That's what I get for not reading the documentation before speaking. :-) On Mar 20, 2013 12:59 PM, Kristopher Micinski krismicin...@gmail.com wrote: Ah that's right, forgive my comment. On Mar 20, 2013 12:03 PM, Streets Of Boston flyingdutc...@gmail.com wrote: The onStart/onStartCommand

Re: [android-developers] Re: Making my app the only one that can run.

2013-03-20 Thread Tobiah
On 03/20/2013 07:50 AM, bob wrote: I used an app in Google Play called */SureLock Kiosk Lockdown/*. Wow, that is perfect! Unfortunately the license is too expensive. We are going to have hundreds of units, and and at $50 a pop, that adds up quickly. It's a shame. We'd probably pay $10

Re: [android-developers] Re: Making my app the only one that can run.

2013-03-20 Thread Tobiah
On 03/20/2013 05:38 AM, Android2ee wrote: Hi, You should build your own home activity ( a real one that handles all the events needed to be handled by a home) then at each key methods of your activity (onResume, onCreate) you just launch your apllication using the intent

Re: [android-developers] Re: Concurrency: Do you use Loaders? AsyncTask? or Runnables?

2013-03-20 Thread Chang Sheng-Dean 章聖典
Thank you all for the kind and enthusiastic responses; they were all very insightful to help my understanding of Android concurrency =D In many of these responses, many spoke of threads being *managed* for you. This term is very vague to me because in the Ref pages for AsyncTask and Loaders,

Re: [android-developers] Re: Concurrency: Do you use Loaders? AsyncTask? or Runnables?

2013-03-20 Thread Kristopher Micinski
Loafers are built on top of asynctasks. They manage the gui vs. background threads for you. If you just *read* the reference page to which you link, it should describe the procedure. The main idea is that you can publish results on UI elements and still do background work, with coordination

Re: [android-developers] Android Games SDK?

2013-03-20 Thread Pedro Cortez
Try corona or starling sdk, with they you can develop to any kind of plataforms On Wed, Mar 20, 2013 at 10:09 AM, Jim Graham spooky1...@gmail.com wrote: On Wed, Mar 20, 2013 at 05:42:58AM -0700, Taylor Ringo wrote: Are there any game development SDK's by google, or some other established

[android-developers]

2013-03-20 Thread Kaushik Pendurthi
hi all , I am working on getting google adsense adds to work on my test android mobile application.Can someone please help me get it working ? I always get an error and it stops working even before the launch. -- ThanksRegards Kaushik Pendurthi http://kaushikpendurthi.blogspot.com/ -- --

[android-developers] Re: I'm missing something dumb here...

2013-03-20 Thread bob
I would say just make each one of those squares an image. Just draw both text items onto the image. Then it will just be a grid of images. Thanks. On Wednesday, March 20, 2013 10:53:03 AM UTC-5, Larry Meadors wrote: I'm making a grid of items that has an image and two text elements

Re: [android-developers] Re: Making my app the only one that can run.

2013-03-20 Thread bob
The pricing page is right here: http://www.42gears.com/surelock/androidpurchase.html Please note this: SureLock Android 100 License Pack $1299 Thus, if it is hundreds of units you have, you should not have to pay more than *12.99* a pop. On Wednesday, March 20, 2013 1:24:36 PM UTC-5,

[android-developers] Re: New SDK release for Egnos

2013-03-20 Thread Leonardo Costa
Hello again, the EGNOS SDK is being increasingly adopted by the developers community to create apps based on superior positioning. It was successfully implemented the EGNOS SDK within the application GeoPointer™ M3 for Mobile Logistics. You can find out more in the Test Testimonials section of

[android-developers] Re: How to determine application's method count?

2013-03-20 Thread Ab
Adding Google Drive adds things like: google-api-client-android-1.12.0-beta.jar google-api-services-drive-v2-rev59-1.12.0-beta.jar google-http-client-1.12.0-beta.jar google-http-client-android-1.12.0-beta.jar google-http-client-gson-1.12.0-beta.jar google-http-client-jackson-1.12.0-beta.jar

[android-developers] Re:

2013-03-20 Thread bob
Make sure you add that *Provider* line to your AndroidManifest.xml. On Wednesday, March 20, 2013 3:06:34 PM UTC-5, kaushikpendurthi wrote: hi all , I am working on getting google adsense adds to work on my test android mobile application.Can someone please help me get it working ? I

Re: [android-developers] Android Games SDK?

2013-03-20 Thread Nathan
A member of this forum works on http://www.batterytechsdk.com/ Haven't used it yet. The person, Robert Green, is doing a Hackathon at AnDevCon that I plan to be at. http://www.andevcon.com/AnDevCon_Boston/tutorials.html You can save $200 on Andevcon by using the discount code 'Mellor' at

Re: [android-developers] Re: Making my app the only one that can run.

2013-03-20 Thread Tobiah
On 03/20/2013 02:22 PM, bob wrote: The pricing page is right here: http://www.42gears.com/surelock/androidpurchase.html Please note this: SureLock Android 100 License Pack $1299 Better, but it seems that the program has to 'Phone Home' to verify the license against the phone's id# or wifi

Re: [android-developers] Getting the problem while fetching the current location...?

2013-03-20 Thread lbendlin
I am currently traveling with no access to the code. I also need to make sure I get the attribution right as the hack was developed by someone else. As for the why - my guess it is a botched attempt by Samsung to mess with the GPS radio power management. On Wednesday, March 20, 2013 10:42:18

Re: [android-developers] Re: Concurrency: Do you use Loaders? AsyncTask? or Runnables?

2013-03-20 Thread Nikolay Elenkov
On Thu, Mar 21, 2013 at 3:48 AM, Kristopher Micinski krismicin...@gmail.com wrote: Loafers are built on top of asynctasks. +1 for 'loafers' :) -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

Re: [android-developers]

2013-03-20 Thread TreKing
On Wed, Mar 20, 2013 at 3:06 PM, Kaushik Pendurthi kaushiks...@gmail.comwrote: I am working on getting google adsense adds to work on my test android mobile application. OK. Can someone please help me get it working ? Help you how? You've provided nearly zero information about your

[android-developers] What is the data usage warning issue

2013-03-20 Thread askl
Hi friends, There is a message prompt called *Data usage warning *in my android mobile.(xperia arc s) *how can i fix it. What is this...?* * * *Please give me a suitable answers for this.*

[android-developers] Language Translator

2013-03-20 Thread askl
*Hello friends, * * * *is there any way to translate language in android app. Help me ,how to do that.?* * * *thnkx.* -- -- 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] Having common code for both phone and tablet Android

2013-03-20 Thread Mamatha K
Hi All, For our project we our supporting from android 2.3 onward on phone and as well as for tablets 3.0 onward. I would like to have common code base and UI for both. But found that from 3.0 onward. some classes like fragments, loaders are support where as below this version its

Re: [android-developers] Having common code for both phone and tablet Android

2013-03-20 Thread TreKing
On Wed, Mar 20, 2013 at 11:47 PM, Mamatha K mamatha...@gmail.com wrote: For our project we our supporting from android 2.3 onward on phone and as well as for tablets 3.0 onward. I would like to have common code base and UI for both. But found that from 3.0 onward. some classes like fragments,

[android-developers] why cannot we play local videos from SD card using Iframe inside webview?

2013-03-20 Thread Meena Rengarajan
I have googled a lot. I read about Stagewebview Bridge and Adobe Air... In some articles they have said , 1) can enable Browser plugins 2) Can play via Flash player (So have to Install it) Now, i am getting a Question. Cant we play local videos from SD card inside webview using Iframe tag on