[android-developers] Focus problem with Option menu

2013-08-08 Thread drenda
Hi, I've a problem with Option menu and focus. I've a simple View in which I've some data come from remote service. I've to display an icon of the option menu only sometimes when remote object has some characteristics. So I do this: @Override public boolean onCreateOptionsMenu(Menu menu) {

[android-developers] Need to show a dialog on top of all other Apps for a custom hardware.

2013-08-08 Thread Tushar
Hi, I need to show a dialog (more like a horizontal bar) on press of a custom Key (on my custom device powered by Android). This dialog should appear on top of any other application(say A) that might be running when the Key is pressed. The app A should keep on running and its UI should be

[android-developers] Re: how to set a shortcut key to launch an activity ?

2013-08-08 Thread shihab Shuvro
Hello shapnil, how are you? I am facing a problem to lunch an activity when the shortcut key is pressed like open a number pad press *123 will fire my application. any idea? thanks in Advance. On Wednesday, October 21, 2009 11:13:14 AM UTC+6, swapnil wrote: Hello, how to set a shortcut

[android-developers] 3D model importer / engine for Android / Android NDK for use with Vuforia - what do you use?

2013-08-08 Thread Daniele Segato
Hi, I'm scouting for a 3D model importer library. I'd like it to have support for COLLADA and FBX format. Our iOS team is using NinevehGL engine: http://nineveh.gl/ which is just perfect... but for iOS only. Do you know of something similar for Android? I want to add a quote from *Diney

[android-developers] What is the use of services in Android?

2013-08-08 Thread ashish
I read about services in Android very carefully, but I didn't find any valid reasons to use it. E.g. 1. By default services run in the main thread, which most of the applications don't want. 2. A service can run on a seperate thread if it spawns it own thread. But

Re: [android-developers] What is the use of services in Android?

2013-08-08 Thread Kristopher Micinski
Usually you use a service to coordinate a thread. FYI most of the time you don't want to outright kill a thread (e.g., if it's about to return from a download operation), you want to periodically check a flag. You probably don't want to use threads in their raw fashion (from activities) for a

[android-developers] Re: Augmented Reality frameworks - what your choice?

2013-08-08 Thread hoyski
My recommendation is Justin Wetherell's augmented reality framework. You can get the source and demo apps for free from http://code.google.com/p/android-augment-reality-framework . I tried a bunch of different AR frameworks and samples with little success before Justin's. His is straight

[android-developers] Re: What is the use of services in Android?

2013-08-08 Thread Piren
Google made a mistake by saying: A Servicehttp://developer.android.com/reference/android/app/Service.html is an application component that can perform long-running operations in the background, since it makes you assume that it actually does something in the background, which it doesn't. They

Re: [android-developers] What is the use of services in Android?

2013-08-08 Thread Daniele Segato
On 08/08/2013 01:40 PM, ashish wrote: I read about services in Android very carefully, but I didn't find any valid reasons to use it. E.g. 1. By default services run in the main thread, which most of the applications don't want. 2. A service can run on a seperate thread if it

[android-developers] Re: What is the use of services in Android?

2013-08-08 Thread Streets Of Boston
For option 2, use an IntentSerrvice. Then you don't have to worry about calling 'stopService'. It does it for you when necessary. On Thursday, August 8, 2013 7:40:02 AM UTC-4, ashish wrote: I read about services in Android very carefully, but I didn't find any valid reasons to use it. E.g.

Re: [android-developers] Augmented Reality frameworks - what your choice?

2013-08-08 Thread Daniele Segato
On 08/08/2013 12:07 AM, Nathan wrote: From your experience, what is the best option for an Augmented reality framework? If you have developed one or developed with one, please comment. There isn't a lack of options - just looking for feedback on which ones actually work. The largest list I

[android-developers] Re: buggy legacy options menu on Samsung S4

2013-08-08 Thread Jay Howard
First of all, thanks for taking the time to build the demo app. It's frustrating that I'm no closer to figuring out why this is happening, but at least it doesn't seem to be an issue on *all* S4 devices. I wonder if the trait that triggers the behavior isn't hardware, but some configurable

[android-developers] Re: What is the use of services in Android?

2013-08-08 Thread Piren
Also, unlike a regular service, an IntentService does in fact run the task in the background. (one task at a time) On Thursday, August 8, 2013 4:05:07 PM UTC+3, Streets Of Boston wrote: For option 2, use an IntentSerrvice. Then you don't have to worry about calling 'stopService'. It does it

[android-developers] Re: buggy legacy options menu on Samsung S4

2013-08-08 Thread Kostya Vasilyev
Jay, I also downloaded your test and tried it... Had to make one change -- from Google APIs (14) to just Android 14, or it wouldn't install... The bug is there. Samsung Galaxy S4, 9505 International LTE version, comes from Germany, firmware 4.2.2 I9505XXUAMDE (different from what gjs's device

Re: [android-developers] What is the use of services in Android?

2013-08-08 Thread ashish
Hi, suppose an activity start a background service in the oncreate method and now user switch to other activity and when my app is working in the background then system kill my activity life-cycle but when i return to my activity then system call the oncreate method of my application and then

Re: [android-developers] What is the use of services in Android?

2013-08-08 Thread ashish
Hi, if a service starts a new thread then how i can stop the service from the other class. On Thursday, August 8, 2013 3:51:19 AM UTC-8, Kristopher Micinski wrote: Usually you use a service to coordinate a thread. FYI most of the time you don't want to outright kill a thread (e.g., if

Re: [android-developers] What is the use of services in Android?

2013-08-08 Thread Kristopher Micinski
That's not how it works, you're misunderstanding services. That's what happens if you use a thread, so in fact you're exactly switching the meaning of a service. First of all, the service won't have it's `onStart` executed until your oncreate returns anyway, since it just pushes messages onto

Re: [android-developers] What is the use of services in Android?

2013-08-08 Thread Streets Of Boston
Send another Intent (different action) to the IntentService. Override the onStartCommand to catch this Intent and this could allow you to stop/interrupt the ongoing process in the IntentService's background thread. On Thursday, August 8, 2013 2:04:33 PM UTC-4, ashish wrote: Hi, if a service

Re: [android-developers] What is the use of services in Android?

2013-08-08 Thread Kristopher Micinski
You send a message to the service to stop the thread. Then the service stops the thread, by setting some flag or condition variable. Kris On Thu, Aug 8, 2013 at 2:04 PM, ashish ashish.a...@gmail.com wrote: Hi, if a service starts a new thread then how i can stop the service from the

Re: [android-developers] Re: Gradle build is screwing up in weird ways on 5% of devices when used with Proguard -- same config and source works fine in Eclipse build

2013-08-08 Thread Digipom Inc.
Interesting, I wasn't aware of the strictfp modifier. It seems that changing one of the floats to a double may have fixed it... I sent out several more specific tests and waiting for the remote debugger to confirm. :) On Wed, Aug 7, 2013 at 5:12 PM, Nobu Games dev.nobu.ga...@gmail.com wrote: If

Re: [android-developers] What is the use of services in Android?

2013-08-08 Thread ashish
Hi, if one service is working in the background and we again start the service then onstart method for second time does not work until first one finish execution On Thursday, August 8, 2013 10:08:54 AM UTC-8, Streets Of Boston wrote: Send another Intent (different action) to the

[android-developers] Setting text onto an action bar search box.

2013-08-08 Thread SonyPhoneGuy
I would like to set text onto an actionbar search box programmatically, but haven't been successful in doing this (probably simple task!). I would be very appreciative of your support. Thank you -- You received this message because you are subscribed to the Google Groups Android Developers

Re: [android-developers] Re: How do I flip images?

2013-08-08 Thread SonyPhoneGuy
Hey, thanks for that, I just needed to know if there was something in the documentation I was missing/if there was an easy way to achieve the effect. Will have to settle for a horizontal scroll, with a bit of drop shadow, doesnt look too bad actually, especially when its moved with the finger

Re: [android-developers] What is the use of services in Android?

2013-08-08 Thread Kristopher Micinski
When you start the same service again, it just has its onstart called: nothing changes. There's no such thing as a second service created, there's only one of them in memory. Additionally: I think everyone has mentioned that services run on the main thread: how would one be running in the

Re: [android-developers] Need to show a dialog on top of all other Apps for a custom hardware.

2013-08-08 Thread TreKing
On Thu, Aug 8, 2013 at 5:22 AM, Tushar tushar.maha...@gmail.com wrote: I need to show a dialog (more like a horizontal bar) on press of a custom Key (on my custom device powered by Android). Your question is better suited to the groups related to modifying the framework.

[android-developers] Feature Graphic not used anymore?

2013-08-08 Thread Nathan
This is the note about the feature graphic: Feature Graphic (Optional): - Use: The featured section in Google Play and also on the web version of Google Play. - This graphic is *required* in order to be featured on Google Play, and is highly recommended. Without this graphic,

[android-developers] Re: Augmented Reality frameworks - what your choice?

2013-08-08 Thread Nathan
On Thursday, August 8, 2013 5:08:41 AM UTC-7, hoyski wrote: My recommendation is Justin Wetherell's augmented reality framework. You can get the source and demo apps for free from http://code.google.com/p/android-augment-reality-framework . I tried a bunch of different AR frameworks and

Re: [android-developers] Augmented Reality frameworks - what your choice?

2013-08-08 Thread Nathan
On Thursday, August 8, 2013 6:10:51 AM UTC-7, Daniele Segato wrote: On 08/08/2013 12:07 AM, Nathan wrote: * Wikitude. A bit more expensive, but possibly more established and mature. Since their sample app has a million downloads. this one sucks in my opinion. It use a webview

Re: [android-developers] Feature Graphic not used anymore?

2013-08-08 Thread TreKing
On Thu, Aug 8, 2013 at 5:45 PM, Nathan nathan.d.mel...@gmail.com wrote: However, in the latest web version of Google Play, these feature graphics are not shown. Also, the featured sections like Editor's pick seem to be using the 512x512 icon, not the 1024x500 feature graphic. My Version of

[android-developers] Re: Augmented Reality frameworks - what your choice?

2013-08-08 Thread Jonathan
I think AR has enough required frameworks, which I've used without major issue. On Thursday, August 8, 2013 3:37:18 AM UTC+5:30, Nathan wrote: From your experience, what is the best option for an Augmented reality framework? If you have developed one or developed with one, please comment.

Re: [android-developers] Re: Gradle build is screwing up in weird ways on 5% of devices when used with Proguard -- same config and source works fine in Eclipse build

2013-08-08 Thread Digipom Inc.
So after some further follow-up I can confirm there are two fixes: 1) Just print out the value of the variable in a Log.d. Believe it or not, that fixes the code. 2) Change float into double. Based on customer reports I received, the bug only affected users running API 15 or 16, and only some