[android-developers] How to send an specific key event to FG app using adb?

2010-08-13 Thread tomei.ninge...@gmail.com
Hello, I want to keep launching my app and stress test two scenarios: launch it and press BACK key launch it and press MENU key I can launch from adb using am command. But how can I send a BACK or MENU key using adb. I want to do thousands of rounds of testing so I don't want to do it

[android-developers] Re: How to dump all thread stacks?

2010-08-05 Thread tomei.ninge...@gmail.com
I ended up writing an app that sleeps forevern in an event handling function. Whenever I need to dump stacks, I just run this app and then adb pull /data/and/traces.txt On Aug 4, 12:31 pm, tomei.ninge...@gmail.com tomei.ninge...@gmail.com wrote: Hello, We have a service that seem to get

[android-developers] How to dump all thread stacks?

2010-08-04 Thread tomei.ninge...@gmail.com
Hello, We have a service that seem to get deadlocked very occasionally in the field. It's not possible to hook up to a debugger. We can detect the deadlock situation programmatically. Is it possible to do this from within Java code? if (ohIamDeadlocked()) {

[android-developers] Re: Froyo -- How to detect that my application has been killed?

2010-08-02 Thread tomei.ninge...@gmail.com
lost nothing here from previous versions of the platform. On Fri, Jul 30, 2010 at 1:27 PM, tomei.ninge...@gmail.com tomei.ninge...@gmail.com wrote: Hi Dianne, Our main problem is that Intent.ACTION_PACKAGE_RESTARTED is no longer called in Froyo. (Sorry I digressed to Service ... I

[android-developers] Re: Froyo -- How to detect that my application has been killed?

2010-08-02 Thread tomei.ninge...@gmail.com
As far as a cache -- you shouldn't count on your process being evicted to clear a cache.  This has problems the other way -- there is no guarantee your app will be killed *ever* while in the background, since it may never clear its cache.  You should use other policies for this.  For example,

[android-developers] Re: Froyo -- How to detect that my application has been killed?

2010-07-30 Thread tomei.ninge...@gmail.com
PM, tomei.ninge...@gmail.com tomei.ninge...@gmail.com wrote: On Froyo, we found that some new Task Manager apps are now using the ActivityManager.killBackgroundProcesses() to kill apps. When this happens, Intent.ACTION_PACKAGE_RESTARTED is no longer fired. How can I find out that my

[android-developers] Re: Froyo -- How to detect that my application has been killed?

2010-07-30 Thread tomei.ninge...@gmail.com
that can unintentionally be killed. On Fri, Jul 30, 2010 at 10:15 AM, tomei.ninge...@gmail.com tomei.ninge...@gmail.com wrote: Dianne, here's the reproduction step on Froyo: [1] Run on Froyo - start ApiDemos, start the RemoveService sample. You will now see two processes

[android-developers] Froyo -- How to detect that my application has been killed?

2010-07-29 Thread tomei.ninge...@gmail.com
On Froyo, we found that some new Task Manager apps are now using the ActivityManager.killBackgroundProcesses() to kill apps. When this happens, Intent.ACTION_PACKAGE_RESTARTED is no longer fired. How can I find out that my application has been killed? I tried to start a service, and I do see

[android-developers] How to tell if phone lock screen is up?

2010-05-13 Thread tomei.ninge...@gmail.com
I want to do something kind of disruptive to the user experience :-) so I want to do it only when the phone is locked. Is there a way to tell this? Thanks -- 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] Re: How to tell if phone lock screen is up?

2010-05-13 Thread tomei.ninge...@gmail.com
I RTFM and found the answer: return ((KeyguardManager)getSystemService(KEYGUARD_SERVICE)).inKeyguardRestrictedInputMode(); On May 12, 11:52 pm, tomei.ninge...@gmail.com tomei.ninge...@gmail.com wrote: I want to do something kind of disruptive to the user experience :-) so I want

[android-developers] Re: Using a permission that doesn't exist

2010-02-11 Thread tomei.ninge...@gmail.com
you lose preferences and data saved by the app. On Feb 10, 11:20 am, tomei.ninge...@gmail.com tomei.ninge...@gmail.com wrote: I saw onhttp://developer.android.com/guide/topics/security/security.html that my app can declare a permission: manifest xmlns:android=http://schemas.android.com/apk/res

[android-developers] Using a permission that doesn't exist

2010-02-10 Thread tomei.ninge...@gmail.com
I saw on http://developer.android.com/guide/topics/security/security.html that my app can declare a permission: manifest xmlns:android=http://schemas.android.com/apk/res/android; package=com.me.app.myapp permission android:name=com.me.app.myapp.permission.DEADLY_ACTIVITY

[android-developers] How to achieve ultra smooth OpenGL/ES animation

2010-02-01 Thread tomei.ninge...@gmail.com
Hello Android OpenGL/real-time gurus, I am drawing a pretty simple scene, with one large texture the about size of the screen (two triangles). I notice that the frame-rate is irregular: in most of cases, a frame finishes in 17 ms. However, in about 1 of 10 times, the frame finishes in 33ms. My

[android-developers] Re: How to achieve ultra smooth OpenGL/ES animation

2010-02-01 Thread tomei.ninge...@gmail.com
Thanks for the suggestion. I forced GC before starting the animation and I can verify that no GC log comes in logcat, but still I am seeing stuttering in the animation. On Feb 1, 10:24 am, fulanito fulanito...@gmail.com wrote: I am drawing a pretty simple scene, with one large texture the about

[android-developers] Re: How to achieve ultra smooth OpenGL/ES animation

2010-02-01 Thread tomei.ninge...@gmail.com
is to multiply the rotation amount by the time difference between the current frame and the last frame - that way the amount moved is constant over time. On Feb 1, 5:18 pm, tomei.ninge...@gmail.com tomei.ninge...@gmail.com wrote: Hello Android OpenGL/real-time gurus, I am drawing a pretty

[android-developers] Re: Can anyone tell me ONE app that shows up in Android Market on HTC Tattoo

2009-12-01 Thread tomei.ninge...@gmail.com
to come. SoftwareForMe.com Makers of PhoneMyPC On Mon, Nov 30, 2009 at 10:21 PM, tomei.ninge...@gmail.com tomei.ninge...@gmail.com wrote: No, it's not protected. On Nov 30, 10:12 pm, westmeadboy westmead...@yahoo.co.uk wrote: Is your app copy-protected? On Dec 1, 1:48 pm, tomei.ninge

[android-developers] Can anyone tell me ONE app that shows up in Android Market on HTC Tattoo

2009-11-30 Thread tomei.ninge...@gmail.com
My app is now showing up on HTC tattoo. Many people have complained about this and I don't see ANY response from Google. Google, you are PATHETIC! Could anyone who has a Tattoo post the name of ONE (or preferably a few :-) apps that can show up on HTC Tattoo? I will pirate them and copy their

[android-developers] Re: Can anyone tell me ONE app that shows up in Android Market on HTC Tattoo

2009-11-30 Thread tomei.ninge...@gmail.com
the names of apps? Also, blatently stating that you're planning to pirate apps might not be the best of ways to get help... On Mon, Nov 30, 2009 at 11:06 PM, tomei.ninge...@gmail.com tomei.ninge...@gmail.com wrote: My app is now showing up on HTC tattoo. Many people have complained about

[android-developers] Re: Can anyone tell me ONE app that shows up in Android Market on HTC Tattoo

2009-11-30 Thread tomei.ninge...@gmail.com
Sherman impact...@gmail.com wrote: Never bored, always working on new apps :) On Mon, Nov 30, 2009 at 11:36 PM, tomei.ninge...@gmail.com tomei.ninge...@gmail.com wrote: Why is this group full of people who want to make a statement about everything when they don't have anything

[android-developers] Re: Can anyone tell me ONE app that shows up in Android Market on HTC Tattoo

2009-11-30 Thread tomei.ninge...@gmail.com
Hi SoftwareForMe.com, Sorry for my ranting. I was/am really frustrated by Google's lack of developer support, especially related to the Market. I really would like to have features like these: (a) When I upload my app, it would be nice for them to give me a warning -- your app will not show up

[android-developers] Re: Can anyone tell me ONE app that shows up in Android Market on HTC Tattoo

2009-11-30 Thread tomei.ninge...@gmail.com
No, it's not protected. On Nov 30, 10:12 pm, westmeadboy westmead...@yahoo.co.uk wrote: Is your app copy-protected? On Dec 1, 1:48 pm, tomei.ninge...@gmail.com tomei.ninge...@gmail.com wrote: Hi SoftwareForMe.com, Sorry for my ranting. I was/am really frustrated by Google's lack

[android-developers] DROID so buggy (OpenGL) -- and work around

2009-11-26 Thread tomei.ninge...@gmail.com
I found that on DROID OpenGL implementation acts very differently than all other 1.5 and 1.6 phones. Bug (1): I have a SurfaceView that has getVisibility() == VIEW.VISIBLE, but is completely hidden by another view. When I am in portrait mode, and pull open the keyboard, the screen orientation

[android-developers] Android Market Protocol

2009-11-25 Thread tomei.ninge...@gmail.com
Hello, Has anyone fully decoded the market's protocol? I want to do something simple and harmless -- easily find out comments for my apps in all languages. I found some info in http://strazzere.com/blog/?p=293 but that doesn't seem to be complete. I.e., no generic way to find out a tokenId from

[android-developers] Re: Possible to change between full screen and with status bar?

2009-11-23 Thread tomei.ninge...@gmail.com
/setFlags affter the activity has been created. The exception told me something like You cannot modify the flags once the activity is created. On Nov 12, 5:01 pm, tomei.ninge...@gmail.com tomei.ninge...@gmail.com wrote: Thanks Dianne. This works like a charm. The title bar even animates

[android-developers] Re: screen compatibility not quite right

2009-11-22 Thread tomei.ninge...@gmail.com
I have to say that Android's screen compatibility worked out really well for me. My app specifies all positions using DIPs, and it worked on the DROID without any change (or even recompilation -- the app was built using SDK 1.1). Essentially all screen coordinates were scaled by 1.5, and bitmaps

[android-developers] Bug in GLSurfaceView.RENDERMODE_WHEN_DIRTY (and work-around)

2009-11-21 Thread tomei.ninge...@gmail.com
My OpenGL app animates only every now and then, so I decided to use RENDERMODE_WHEN_DIRTY to save some battery life. However, I found that when I go to Home Screen and return to my app, I often get a black screen, and I see this in logcat: E/SurfaceComposerClient( 6055): using an invalid surface

[android-developers] Re: hidden APIs in Android

2009-11-19 Thread tomei.ninge...@gmail.com
...@gmail.com tomei.ninge...@gmail.com wrote: There are a bunch of APIs that are hidden using the @hide tag so they are not exposed in the SDK. If I call these APIs anyway, does the VM actually prevent me from doing that (in dexopt stage, etc)? I am trying to do a demo so I just need

[android-developers] hidden APIs in Android

2009-11-18 Thread tomei.ninge...@gmail.com
There are a bunch of APIs that are hidden using the @hide tag so they are not exposed in the SDK. If I call these APIs anyway, does the VM actually prevent me from doing that (in dexopt stage, etc)? I am trying to do a demo so I just need a quick hack. This is not for a product so please don't

[android-developers] How many 1.1 devices are still out there?

2009-11-15 Thread tomei.ninge...@gmail.com
Are there any developers who switched from 1.1 to 1.5 APIs recently? Have you heard any complaints from users that are still using a 1.1 device? Thanks -- 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] How to force hw.lcd.density for a specific app

2009-11-15 Thread tomei.ninge...@gmail.com
Hello, Is it possible to force Android to use a given LCD density value? For example, if the app is running on a WVGA phone that reports LCD density of 160DPI *and* screen size of 3.7inch, one of those two values must be wrong. Is it possible to tell Android to ignore the 160DPI value and use

[android-developers] How much texture memory can I expect?

2009-11-15 Thread tomei.ninge...@gmail.com
Is it possible to allocate at least 1024x1024 pixels of textures? This seems to be the case on the G1 (I have a very small number of vertices and a few very big textures). Is it safe to assume that all Android phones can support at least this much of texture? Thanks -- You received this message

[android-developers] Re: Possible to change between full screen and with status bar?

2009-11-12 Thread tomei.ninge...@gmail.com
10, 2009 at 9:48 PM, tomei.ninge...@gmail.com tomei.ninge...@gmail.com wrote: Hi, Is it possible to show/hide the status bar without creating a new full screen activity? I want to creating something like Firefox browser, where user can toggle the full screen mode. Thanks

[android-developers] Possible to change between full screen and with status bar?

2009-11-10 Thread tomei.ninge...@gmail.com
Hi, Is it possible to show/hide the status bar without creating a new full screen activity? I want to creating something like Firefox browser, where user can toggle the full screen mode. Thanks -- You received this message because you are subscribed to the Google Groups Android Developers

[android-developers] TranslucentGLSurfaceViewActivity and screen rotation

2009-11-09 Thread tomei.ninge...@gmail.com
On my G1 that runs Android 1.6, I enabled screen rotation in the Settings app. Then, I run the ApiDemos, start the TranslucentGLSurfaceViewActivity, and rotating the phone. After a few trials, the TranslucentGLSurfaceViewActivity stops refreshing. I see a lot of this in adb logcat: E/libEGL

[android-developers] Re: How to pass large amount of data during startActivityForResult

2009-11-03 Thread tomei.ninge...@gmail.com
Does anyone have a real answer? I need to do this. If you don't know how to do it please don't feel obliged to reply to tell me it's not an androidie thing to do. On Nov 3, 3:32 pm, Mark Murphy mmur...@commonsware.com wrote: tomei.ninge...@gmail.com wrote: From one activity, I want to pass

[android-developers] How to pass large amount of data during startActivityForResult

2009-11-03 Thread tomei.ninge...@gmail.com
From one activity, I want to pass a lot of data (about 1MB of Strings). I tried sticking it in Intent.putExtra(ArrayListString), but if I put in too much data, I get FAILED BINDER TRANSACTION. What's the easiest way? I don't want to publish a service, or use the file system. I really want a pipe

[android-developers] Does Google think developers are lowest life form?

2009-11-03 Thread tomei.ninge...@gmail.com
What purported to be a web company doesn't even let developers see user comments from the so-called Developer Console. Now they shut down Cryket. What the fiick? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send

[android-developers] How to hide activity on BACK key without onDestroy?

2009-10-28 Thread tomei.ninge...@gmail.com
When user presses BACK key, my activity's onDestroy is called and then it is killed. Is there a way (by overridding Activity.onKeyDown??) to simply put the activity into background without killing it? I want the BACK key to act like the HOME key (which doesn't kill my app), except I want to show

[android-developers] Re: How to hide activity on BACK key without onDestroy?

2009-10-28 Thread tomei.ninge...@gmail.com
killed yet. If you need a background process read up on services. -- RichardC On Oct 28, 7:26 am, tomei.ninge...@gmail.com tomei.ninge...@gmail.com wrote: When user presses BACK key, my activity's onDestroy is called and then it is killed. Is there a way (by overridding

[android-developers] Re: How to hide activity on BACK key without onDestroy?

2009-10-28 Thread tomei.ninge...@gmail.com
. On Oct 28, 4:42 am, Piotr piotr.zag...@gmail.com wrote: If you think how to get around application lifecycle, then you project design is TOTALLY BAD. Really. Redesign project. On 28 Paź, 08:26, tomei.ninge...@gmail.com tomei.ninge...@gmail.com wrote: When user presses BACK key, my

[android-developers] Is HW OpenGL/ES used on G1?

2009-10-27 Thread tomei.ninge...@gmail.com
From the adb log of my G1's boot time, it shows requestGPU returned -1, among other stuff. Does this mean that my OpenGL app is being rendered using software? BTW, I see the same messages on Hero as well. Thanks --- log begin

[android-developers] How to read HTML in JavaScript

2009-10-19 Thread tomei.ninge...@gmail.com
Hello, I know how to load an XML file into JavaScript (using Window.XMLHttpRequest). However, on Android, is there a way use Javascript to read an HTML page and save it into a string variable? Like this: script language=JavaScript var htmlData = getHtmlData(http://www.cnn.com;); /script I

[android-developers] How to find out if a device has flash player

2009-10-16 Thread tomei.ninge...@gmail.com
Is there a programmatic way on Android (inside Java code, or in JavaScript code in a WebView) to determine if the device has flash player? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To

[android-developers] Re: Extremely long DNS lookup (and failure) on T-Mobile network

2009-10-15 Thread tomei.ninge...@gmail.com
(92K) [image/jpeg] On Oct 14, 9:53 pm, tomei.ninge...@gmail.com tomei.ninge...@gmail.com wrote: My problem may not be the same. I got this only on actual G1 device, not on emulator. Also, if G1 is connect to my home WiFi network (comcast), the DNS for i0.sinaimg.cn is resolved without any

[android-developers] Extremely long DNS lookup (and failure) on T-Mobile network

2009-10-14 Thread tomei.ninge...@gmail.com
Hello, This happens only when my G1 phone is on T-Mobile network: I found that when I try to go to the browser, and type the address http://i0.sinaimg.cn/ The browser tries to load the page, but no progress is shown for more than 2 minutes. (I have full 3G signal; all other addresses

[android-developers] Re: Extremely long DNS lookup (and failure) on T-Mobile network

2009-10-14 Thread tomei.ninge...@gmail.com
, 9:29 pm, for android forandr...@gmail.com wrote: http://code.google.com/p/android/issues/detail?id=2764 On Thu, Oct 15, 2009 at 4:40 AM, tomei.ninge...@gmail.com tomei.ninge...@gmail.com wrote: Hello, This happens only when my G1 phone is on T-Mobile network: I found that when I

[android-developers] Debug on a remote emulator

2009-10-12 Thread tomei.ninge...@gmail.com
Hello, I am running Eclipse on Win32 and my Android emulator on Linux. Is there a way to use Win32 eclipse to debug code on the emulator that runs on Linux? Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[android-developers] Can WebView be used inside a Service?

2009-10-09 Thread tomei.ninge...@gmail.com
I want to run part of my app logic in a background service. However, much of the app uses JavaScript. Currently I run the JavaScript inside a WebView. Is it possible to have an invisible WebView while running inside a Service? If the answer is no, is there any way to run JavaScript inside a

[android-developers] Re: Can WebView be used inside a Service?

2009-10-09 Thread tomei.ninge...@gmail.com
, Miguel Paraz mpa...@gmail.com wrote: Hi, I looked into this myself... On Oct 9, 3:00 pm, tomei.ninge...@gmail.com tomei.ninge...@gmail.com wrote: I want to run part of my app logic in a background service. However, much of the app uses JavaScript. Currently I run the JavaScript inside

[android-developers] Is network slower when screen is blacked out?

2009-10-08 Thread tomei.ninge...@gmail.com
I have an app that keeps pulling data from the network. I noticed that my downloading speed seems to have slowed down if I let the phone's screen to black out. Is this true? Is there a way to tell Android keep using full network speed even when screen is blacked out? Thanks

[android-developers] Re: WebView.loadDataWithBaseURL bug

2009-09-30 Thread tomei.ninge...@gmail.com
== ..) { /* fix the li's style to an inactive link */ } } } I just run this code at the end of the data to be loaded into WebView. On Sep 20, 11:39 pm, tomei.ninge...@gmail.com tomei.ninge...@gmail.com wrote: My work-around works for all cases except one: if the page contains this link: a href

[android-developers] Re: WebView.loadDataWithBaseURL bug

2009-09-21 Thread tomei.ninge...@gmail.com
My work-around works for all cases except one: if the page contains this link: a href=click/a When the user clicks the link, shouldOverrideUrlLloading is not called. On Sep 18, 5:15 pm, Jason Proctor jason.android.li...@gmail.com wrote: you probably want to set the web view client before

[android-developers] How to create multi-language application?

2009-09-18 Thread tomei.ninge...@gmail.com
I read http://developer.android.com/guide/topics/resources/resources-i18n.html. But it shows how to localize your app for the currently selected locale of the phone. However, I want to add a language option into my own app, and allow the user to switch the UI language independent of the phone's

[android-developers] Re: save new file into asset directory from app

2009-09-18 Thread tomei.ninge...@gmail.com
I know one way that works for sure. Open a server socket inside your app, then specify http://localhost:1234 inside WebView. This seems like a hack (and maybe it is :-) but it's much simpler than fighting with WebView. On Sep 18, 10:41 am, Jason Proctor jason.android.li...@gmail.com wrote: i