[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" wrote: > Hello, > > We have a service that seem to

[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()) { Thread.something.dumpSt

[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 exampl

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

2010-08-02 Thread tomei.ninge...@gmail.com
broadcast. > > You have 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

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

2010-07-30 Thread tomei.ninge...@gmail.com
though).  Whoops.  I'll fix > > that. > > > That said, the service *does* restart like it always did, and I have > > confirmed it does.  That code path hasn't changed at all.  So basically the > > behavior is still like it was pre-2.2, except there are sti

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

2010-07-30 Thread tomei.ninge...@gmail.com
ny time anyway. > > On Thu, Jul 29, 2010 at 6:37 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()

[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 th

[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" wrote: > I want to do something kind of disruptive to the user experience :-) > so I want to do

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

2010-05-12 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: Using a permission that doesn't exist

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

[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: http://schemas.android.com/apk/res/android"; package="com.me.app.myapp" > So if another app "Foo" need to invoke the deadly activity, it would declare the following in its Ma

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

2010-02-01 Thread tomei.ninge...@gmail.com
> > 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" > > > wrote: > > > Hello Android OpenGL/real-time g

[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 wrote: > > I am drawing a pretty simple scene, with one large texture the about > > size of the scr

[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 gu

[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
can do with an app that won't be > possible in HTML5 for many years 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

[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 wrote: > Is your app copy-protected? > > On Dec 1, 1:48 pm, "tomei.ninge...@gmail.com" > > > > wrote: > > Hi SoftwareForMe.com, > > > Sorry for my ranting. I was/am really frustrated by

[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 o

[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
9:01 pm, Nemat wrote: > Hi, > > I have tattoo.But I dont understand your problem.How can I help > you > > Regards > Nemat > > On Dec 1, 9:55 am, Dan Sherman wrote: > > > > > Never bored, always working on new apps :) > > > On Mon, Nov 30, 2009

[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
t; 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

[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 An

[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 does

[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 y

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

2009-11-23 Thread tomei.ninge...@gmail.com
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" > > > > wrote: > > Thanks Dianne. This works like a charm. Th

[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 w

[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 i

[android-developers] Re: hidden APIs in Android

2009-11-19 Thread tomei.ninge...@gmail.com
19, 5:54 am, "Fred Grott(Android Expert, http://mobilebytes.wordpress.com)" wrote: > Try it you  will not get a compile though..the are not in the > framework jar so it would be a pointless task on your part.. > > Fred Grott > Android Developerhttp://mobilebytes.wordpress.com

[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 tel

[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] 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 240D

[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 an

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

2009-11-12 Thread tomei.ninge...@gmail.com
0, 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 some

[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 (1303

[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 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(ArrayList), 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 tha

[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 wrote: > tomei.ninge...@gmail.com wrote: > > From one activity, I want to p

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

2009-10-28 Thread tomei.ninge...@gmail.com
anagement. > > On Oct 28, 4:42 am, Piotr 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.co

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

2009-10-28 Thread tomei.ninge...@gmail.com
#x27;t been killed > yet. > > If you need a background process read up on services. > > -- > RichardC > > On Oct 28, 7:26 am, "tomei.ninge...@gmail.com" > > > > wrote: > > When user presses BACK key, my activity's onDestroy is called and then

[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] 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: var htmlData = getHtmlData("http://www.cnn.c

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

2009-10-15 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-14 Thread tomei.ninge...@gmail.com
200 OK Length: 93,820 (92K) [image/jpeg] On Oct 14, 9:53 pm, "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

[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 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-

[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 work

[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 "An

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

2009-10-09 Thread tomei.ninge...@gmail.com
26 am, Miguel Paraz wrote: > Hi, > I looked into this myself... > > On Oct 9, 3:00 pm, "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 JavaScri

[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 Serv

[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
ref == ..) { /* 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" wrote: > My work-around works for all cases except one: if the page contains > this link: >

[android-developers] Re: WebView.loadDataWithBaseURL bug

2009-09-20 Thread tomei.ninge...@gmail.com
My work-around works for all cases except one: if the page contains this link: click When the user clicks the link, shouldOverrideUrlLloading is not called. On Sep 18, 5:15 pm, Jason Proctor wrote: > you probably want to set the web view client before calling any > variant of load(). > > there

[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 wrote: > i had all kinds of trouble trying

[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