[android-developers] service stops when phone goes idle

2009-01-02 Thread mnj
Hi, I need to run a service at periodic intervals even after phones goes idle (i.e CPU turn off). For this I'm scheduling an alarm using Alarm Manager using setRepeating () API and RTC_WAKEUP flag But its not working as expected. Only when phone screen is on the alarm is getting scheduled and

[android-developers] How to initial SharedPreferences from an XML file in SD card

2009-01-02 Thread elvisw
Hi, Can I initial a SharedPreferences instance from an XML file saved in SD card?? Is it possible to do that?? Best Regards, Elvis. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group.

[android-developers] Browsing G1 from Windows

2009-01-02 Thread PorkChop
I have installed the Windows USB drivers, and I was expecting to be able to access the phone like a removable disk from windows. However, when I click on the removable drive (E:) I am told 'Please insert a disk into drive E:' Am I the only one with this problem? Seems it should be a lot easier to

[android-developers] WebView Behavior on Android

2009-01-02 Thread Tez
Hi, I have a few questions about the behavior of a WebView 1. When an activity launches a web view, and when the webview displays a page, is it all in the same thread? 2. When I click on the BACK button in the emulator when the web view is running, is the process that runs it stopped and

[android-developers] Re: Browsing G1 from Windows

2009-01-02 Thread PorkChop
OK..I just discovered the fix on my own, I will post it here in case someone else is stuck. When you plug in the cable, top left you will see a notification that the USB is connected. Pull that down, select it and then choose 'Mount' from the list. The disk is then accessible from the desktop.

[android-developers] What is the intent to launch the image gallery?

2009-01-02 Thread glenys
Hi, Can anyone tell me what is the intent used to launch the image gallery through code? Thanks and Regards, Glenys --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group,

[android-developers] Hi, please help with installing an .apk

2009-01-02 Thread Dr. Tingrong Lu
Hi, I'm trying to write a code to install an apk on SDK1R2. I read your posts on google groups, and copied the code like below. but the code doesn't work. Did I miss anything? Thanks. public void insAPK() { Uri data = Uri.parse(file://sdcard/an1115.apk); try { Intent

[android-developers] Re: service stops when phone goes idle

2009-01-02 Thread mnj
Hi, The issue got resolved after PARTIAL_WAKE_LOCK is acquired. Regards, Manoj On Jan 2, 1:32 pm, mnj manojgopa...@gmail.com wrote: Hi, I need to run a service at periodic intervals even after phones goes idle (i.e CPU turn off). For this I'm scheduling an alarm using Alarm Manager using

[android-developers] Re: Rotate MapView

2009-01-02 Thread Rohit Ghatol
I tried this, but it did not work Here is my code, can some one help me with this package com.rohit.test; import android.content.Context; import android.graphics.Canvas; import android.hardware.SensorListener; import android.hardware.SensorManager; import android.os.Bundle; import

[android-developers] Re: Pass state from Activity to Service

2009-01-02 Thread mobilek...@googlemail.com
Can anyone help me pls? On Jan 1, 3:59 pm, mobilek...@googlemail.com mobilek...@googlemail.com wrote: Hi, I'm having hard time working out how to accomplish that. In my activity I call my service as follows: private void startService(){         Intent myIntent = new Intent(this,

[android-developers] Re: Market paid-for apps

2009-01-02 Thread Chister Nordvik
Seems like I was wrong: http://www.google.com/support/forum/p/checkout-merchants/thread?tid=2e476d7b2a1afb77hl=en You can't register as a merchant outside US/UK at the moment. I know all of you want to promote your website but I guess I'll wait for Googles solution since most users will prefer

[android-developers] Re: How can i access System directory in an emulator ??

2009-01-02 Thread Ashrotronics
Thanks for your respondence,What i am trying to do is to start apps in system directory through my own instrumentation class, But i am always rejected by android's security mechanism because i do not have the same signature(as is shown in logs:Permission denied) After further consideration,i

[android-developers] Re: Market paid-for apps

2009-01-02 Thread Shane Isbell
On Fri, Jan 2, 2009 at 4:07 AM, Chister Nordvik cnord...@gmail.com wrote: Seems like I was wrong: http://www.google.com/support/forum/p/checkout-merchants/thread?tid=2e476d7b2a1afb77hl=en You can't register as a merchant outside US/UK at the moment. I know all of you want to promote your

[android-developers] How to write code to uninstall apk from device/emulator?

2009-01-02 Thread Dr. Tingrong Lu
Hi, How to write code to uninstall apk from device/emulator? Thanks a lot. --~--~-~--~~~---~--~~ 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: Pass state from Activity to Service

2009-01-02 Thread Brad Gies
You haven't really given enough information for a definitive answer. Are you calling the following somewhere? public void startService(){ super.onStart(); But, I would also put an if (b != null) in as the third line to stop the next exception. Can you post your Stack trace or logcat? It

[android-developers] Re: Market paid-for apps

2009-01-02 Thread Al Sutton
We're always open to suggestions for improvements :). Al. Chister Nordvik wrote: Seems like I was wrong: http://www.google.com/support/forum/p/checkout-merchants/thread?tid=2e476d7b2a1afb77hl=en You can't register as a merchant outside US/UK at the moment. I know all of you want to

[android-developers] https://dl-ssl.google.com/android/eclipse/

2009-01-02 Thread AlexG
Hi What happened to the ecipse plugin download site? https://dl-ssl.google.com/android/eclipse/ --~--~-~--~~~---~--~~ 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: Could Chinese developper register Android market?

2009-01-02 Thread EvgenyV
I'm Israeli developer. I completed registration as well. But the question is whether we could upload chargable application and get the income from Google market? Thanks On Dec 12 2008, 5:44 pm, cpedia cpe...@gmail.com wrote: Yes. Of course. I registered and successed. I use MasterCard of

[android-developers] Re: Any updates on paid apps timeline?

2009-01-02 Thread NitroDesk
@Dianne, You are right, i think part of the reason why the demand for the ability to release paid apps is high so early on is the fantastic job that has been done on the SDK, the platform that was picked for the programmability and in general the confidence developers (even at the time of

[android-developers] Are apk contents already compressed?

2009-01-02 Thread inder
Does it make sense to compress large data files stored in the assets/ directory or is the apk already a compressed format? Thanks Inder --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To

[android-developers] Re: Has anybody received an android dev phone in the US yet?

2009-01-02 Thread anand
hi all, may i know how much you guys paid for the phone? and what do you get with the phone? any cables to connect to the development machine for debugging? thanks, anand On Dec 17 2008, 2:40 pm, Vincent C. mephisto@gmail.com wrote: I placed my order at 12/11. Still not get myphone. :-(

[android-developers] Re: Deployment of native C library

2009-01-02 Thread Joel Knighton
Issue the commands in this order (from a terminal on the device, otherwise change to use adb shell). $su #mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system Add/change anything you need, then revert to read only. $su #mount -o remount,ro -t yaffs2 /dev/block/mtdblock3 /system On Fri,

[android-developers] Re: Receive notification for onDestroy, onStop, and onPause etc in other applications?

2009-01-02 Thread focuser
anyone please? On Jan 1, 10:26 am, focuser linto...@gmail.com wrote: Just to clarify: by this I meant to receive notification when onDestroy, onStop etc in other applications are called, i.e. somehow monitor the life cycle of apps running on the phone. On Dec 31 2008, 5:01 pm, focuser

[android-developers] Re: Jumping to #link after using loadDataWithBaseURL()

2009-01-02 Thread Jack C. Holt
I have googled for strings like WebView internal link, read the FAQs, and read the online docs for WebView, WebSettings, WebViewClient, WebChromeClent and still I have not been able to determine how to make the web pages I have generated (which contain internal links [i.e., a name tags]) jump to

[android-developers] Re: Google maps api key jar signing on G1...fail

2009-01-02 Thread Clay
one more thing... I did install a version of the APK on the phone with a different key, but I fully uninstalled before installing this version. could there be a G1 keystore issue? Clay On Jan 1, 9:33 pm, Clay claytan...@gmail.com wrote: Hello Everyone, I am here with my hat in hand begging

[android-developers] Re: strang error with aapt on 1.0 SDK on unbuntu 8.04

2009-01-02 Thread Clay
cgra...@aalto:~/apps/android-sdk-linux_x86-1.0_r1/tools$ ls -al total 8600 drwxr-xr-x 3 cgraham cgraham4096 2008-11-30 22:34 . drwxr-xr-x 5 cgraham cgraham4096 2008-11-30 21:53 .. -rwxrwxrwx 1 cgraham cgraham 2861020 2008-09-22 13:45 aapt -rwxrwxr-x 1 cgraham cgraham 782 2008-09-22

[android-developers] Re: When will the Media classes be able to connect to telephone 'conversation' audio channels ?

2009-01-02 Thread StevenS
Hello and Happy New Year everyone - just wondering if anyone has had a chance to see/consider my question. Thanks, Steven. On Dec 26 2008, 10:00 pm, StevenS shearer_ste...@hotmail.com wrote: If I'm reading the API documentation correctly, neither the MediaRecorder.AudioSource nor the  

[android-developers] Re: Has anybody received an android dev phone in the US yet?

2009-01-02 Thread Tim Bray
On Fri, Jan 2, 2009 at 7:21 AM, anand anand.aru...@gmail.com wrote: may i know how much you guys paid for the phone? and what do you get with the phone? any cables to connect to the development machine for debugging? The developer phone is US$399, and it comes with a charger, a USB cable

[android-developers] Re: Service will not stay running

2009-01-02 Thread bparker
I noticed another application on the market (called Missed Call) has a big message in the about section about how it's not possible to keep a service running forever. Is this a limitation of the Android OS itself? It seems to me that this feature is a real killer for some applications that must

[android-developers] Re: When will the Media classes be able to connect to telephone 'conversation' audio channels ?

2009-01-02 Thread Dave Sparks
There are no plans for exposing in-call audio to the apps processor. In-call audio is controlled by the radio and typically not accessible to the apps processor. On Dec 26 2008, 10:00 pm, StevenS shearer_ste...@hotmail.com wrote: If I'm reading the API documentation correctly, neither the

[android-developers] Re: imeem and buffering audio with MediaPlayer

2009-01-02 Thread Dave Sparks
I haven't looked at imeem, but one way to get around the issue is using an HTTP proxy on the device. The proxy server could be buffering up the next stream while the current stream is playing. On Dec 30 2008, 11:37 pm, Dan McGuirk mcgu...@gmail.com wrote: Hi, I'm wondering if anyone knows how

[android-developers] Re: Receive notification for onDestroy, onStop, and onPause etc in other applications?

2009-01-02 Thread Alistair.
Maybe your best best is to have a root around the Activity source code http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob;f=core/java/android/app/Activity.java;h=eafb0488490fd144fa6fac15cbd303dfd93eb894;hb=HEAD Having said that the base activity doesn't seem to be signalling

[android-developers] Re: imeem and buffering audio with MediaPlayer

2009-01-02 Thread Clay
ooh thats an interesting idea. On Jan 2, 9:32 am, Dave Sparks davidspa...@android.com wrote: I haven't looked at imeem, but one way to get around the issue is using an HTTP proxy on the device. The proxy server could be buffering up the next stream while the current stream is playing. On

[android-developers] Re: Google maps api key jar signing on G1...fail

2009-01-02 Thread Clay
so for some unknown reason this resolved itself, I did a clean sweep and uninstall, regened the keys and followed the above cookbook identically, and it now works at least I created an ok tutorial. Clay On Jan 2, 9:11 am, Clay claytan...@gmail.com wrote: one more thing... I did install a

[android-developers] Re: layout directories

2009-01-02 Thread Mahesh
hello all, few days ago I've posted this question. Any information about where and when to have the resources/layouts will be very helpful. thanks --mahesh n On Dec 26 2008, 10:17 am, Mahesh nagarajan.mah...@gmail.com wrote: Where can I find documentation about different layout directories

[android-developers] Re: Market paid-for apps

2009-01-02 Thread Chister Nordvik
Quote: But that's for a different thread!. So lets get back to the original question. How are developers in countries like Norway expected to get paid for their application through the Google Marketplace with Google's solution? Are we just going to sit and wait and hope Google will think about

[android-developers] Re: layout directories

2009-01-02 Thread Xavier Ducrohet
Have a look at http://code.google.com/android/devel/resources-i18n.html#AlternateResources Xav On Fri, Jan 2, 2009 at 10:58 AM, Mahesh nagarajan.mah...@gmail.com wrote: hello all, few days ago I've posted this question. Any information about where and when to have the resources/layouts

[android-developers] Re: Service will not stay running

2009-01-02 Thread Dianne Hackborn
Your saying the parent activity is killed and the service stops running sounds like you are trying to keep the service running by binding to it from an activity. If so, that defeats the purpose of the service. If you want a service to remain running on its own, you need to use startService().

[android-developers] Re: Receive notification for onDestroy, onStop, and onPause etc in other applications?

2009-01-02 Thread Dianne Hackborn
No, sorry. On Fri, Jan 2, 2009 at 8:26 AM, focuser linto...@gmail.com wrote: anyone please? On Jan 1, 10:26 am, focuser linto...@gmail.com wrote: Just to clarify: by this I meant to receive notification when onDestroy, onStop etc in other applications are called, i.e. somehow monitor

[android-developers] Re: Are apk contents already compressed?

2009-01-02 Thread Dianne Hackborn
Yes all files are compressed by default, except a few extensions for file types that are known to already be compressed (such as .png). On Fri, Jan 2, 2009 at 6:59 AM, inder inder...@gmail.com wrote: Does it make sense to compress large data files stored in the assets/ directory or is the apk

[android-developers] Re: How can i access System directory in an emulator ??

2009-01-02 Thread Dianne Hackborn
Why do you want to run your own instrumentation against apps in the system directory? Anyway, as you say, you need to be signed with the same certificate as the app your are running your instrumentation against. It's not really a matter of being installed in the system dir. If you don't own the

[android-developers] Re: How to initial SharedPreferences from an XML file in SD card

2009-01-02 Thread Dianne Hackborn
No, sorry. On Fri, Jan 2, 2009 at 2:16 AM, elvisw elvise...@gmail.com wrote: Hi, Can I initial a SharedPreferences instance from an XML file saved in SD card?? Is it possible to do that?? Best Regards, Elvis. -- Dianne Hackborn Android framework engineer hack...@android.com

[android-developers] Re: Market paid-for apps

2009-01-02 Thread Al Sutton
From what I can tell I believe your options are use a UK or US publishing company who in turn can list on Market, or try and build your own presence and use something like Mogees and distribute through the app directories which will allow you to (and hopefully help to make people aware of

[android-developers] Re: How To Start a RTSP connection

2009-01-02 Thread Jason
According to this thread: http://groups.google.com/group/android-developers/browse_thread/thread/a68113ee42f62353 there are issues streaming with the emulator, so you may have to test on a G1 device. Also, I've been able to play back the video RTSP streams from http://www.americafree.tv/ For

[android-developers] Re: layout directories

2009-01-02 Thread Mahesh
Thanks a lot Xav! --mahesh n On Jan 2, 11:23 am, Xavier Ducrohet x...@google.com wrote: Have a look athttp://code.google.com/android/devel/resources-i18n.html#AlternateRes... Xav On Fri, Jan 2, 2009 at 10:58 AM, Mahesh nagarajan.mah...@gmail.com wrote: hello all, few days ago I've

[android-developers] How can we restart an Activity properly?

2009-01-02 Thread Toothy Bunny
Hi All, I created a restart() method to restart an Activity, there are some reasons for us to do this since there are some thing that we can not do unless we make the Activity completely restarted, for example, if the SurfaceView is created in GPU memory and we want to move it back to normal

[android-developers] Re: Mobile Developers Research Project asking for Android's opinion, by Carnegie mellon University

2009-01-02 Thread alberto
Hi folks, thanks for your participation in our research!! We need more of you developers to fill in the survey to reach a meaningful sample. I remind you that it is open until Jan. 10th. FILL IT NOW and DON'T MISS THE CHOICE TO WIN A PRIZE! http://www.questionpro.com/akira/TakeSurvey?id=1108623

[android-developers] Re: suggestion. replace onActivityResult(), Request Code and Result Codes with flexible callbacks

2009-01-02 Thread Anil
Great points! I am going to try and produce this patch. You are welcome to join me in this effort. Am going to download the source. - Anil On Dec 28 2008, 11:40 pm, brnzn brendon.mathe...@gmail.com wrote: Something like Anil is suggesting is probably eventually going to be essential for the

[android-developers] Re: Any updates on paid apps timeline?

2009-01-02 Thread loty
There is only 1 Android phone on the market - G1 and while there is only 1 iPhone as well number of G1 users is nowhere near the number of iPhone users. Not yet anyway - maybe in a couple of years... I think there are more developers desperately trying to get some money for their apps than there

[android-developers] Re: How to initial SharedPreferences from an XML file in SD card

2009-01-02 Thread Christine
but you can supply default values when you retrieve preference parameters. Make these defaults the same as what you'd put in the xml, and you're done. Or you have your app read an xml file and initialize the preferences with that. On Jan 2, 8:38 pm, Dianne Hackborn hack...@android.com wrote:

[android-developers] Re: Any updates on paid apps timeline?

2009-01-02 Thread Shane Isbell
Google is using Android to push their Google Checkout service. The only problem is that Google Checkout is fairly new and rather limited. It just recently went international. They will get there eventually, on their own schedule. Shane On Fri, Jan 2, 2009 at 1:13 PM, loty lev.pert...@gmail.com

[android-developers] Re: Receive notification for onDestroy, onStop, and onPause etc in other applications?

2009-01-02 Thread focuser
Thanks Alistair and Dianne, Now I understand that a notification is not possible, But how does an app with READ_LOGS permission access system log? I couldn't find any documentation about this either. I'm guessing if one could read the log, the app could pretty much know when an app is killed

[android-developers] Re: How can we restart an Activity properly?

2009-01-02 Thread Toothy Bunny
Just want to add one more thing: I printed out the instance count by this.getInstanceCount(), the result is that the instance count is increased once the restart() is called, like 1, 2, 3, ..., which means the old instance is not killed. We need to kill the old instance in the newly restarted

[android-developers] Re: When will the Media classes be able to connect to telephone 'conversation' audio channels ?

2009-01-02 Thread mashpl...@gmail.com
This is a mistake. There are many reasons why exposing in-call audio to the apps process is a good idea. Please reconsider your position on this. Kind Regards, Vince On Jan 3, 1:27 am, Dave Sparks davidspa...@android.com wrote: There are no plans for exposing in-call audio to the apps

[android-developers] Re: Could Chinese developper register Android market?

2009-01-02 Thread Margaret
I am Chinese and I register Android market with my CMB credit card mawei...@gmail.com 13585201588 2009/1/2 EvgenyV evgen...@gmail.com: I'm Israeli developer. I completed registration as well. But the question is whether we could upload chargable application and get the income from Google

[android-developers] Re: How can i access System directory in an emulator ??

2009-01-02 Thread Ashrotronics
Here is the case: While i'm trying to make fuctional tests against all apps installed in my device,The feature Target package of My instrumentation class makes it insurmountable to access a third pkg,But in some cases,It is much of a need to do so, e.g. an email from a stranger comes and

[android-developers] Re: Could Chinese developper register Android market?

2009-01-02 Thread Shane Isbell
You guys should really take a look at SlideME: http://slideme.org. We are rolling out paid app support next week and SlideME is much more favorable to the developer than the Android Market. For example, excluding taxes, a $2 app sold from the Android Market, after carrier cut and the Google

[android-developers] Re: Market paid-for apps

2009-01-02 Thread Shane Isbell
On Fri, Jan 2, 2009 at 11:19 AM, Chister Nordvik cnord...@gmail.com wrote: Quote: But that's for a different thread!. So lets get back to the original question. How are developers in countries like Norway expected to get paid for their application through the Google Marketplace with

[android-developers] Re: Could Chinese developper register Android market?

2009-01-02 Thread Dan Morrill
This is false. As we've said, developers will receive 70% of the Android Market revenue for their apps, when billing is available. http://android-developers.blogspot.com/2008/10/android-market-now-available-for-users.html - Dan On Fri, Jan 2, 2009 at 5:58 PM, Shane Isbell shane.isb...@gmail.com

[android-developers] Re: Could Chinese developper register Android market?

2009-01-02 Thread Shane Isbell
I'm just cranking the basic math, but if you guys at Google imply you aren't charging anything for Google checkout, then great! The conclusion being the same, numbers different: 70% vs 92.5% for a $2 app, and we can sell apps to Chinese customers and remit funds to Chinese developers. Same for

[android-developers] Tutorial on searching in MapView

2009-01-02 Thread BarbieDahl
Hey Guys, Does anyone know of a tutorial or code example that shows how to use the search functionality that works so well on the google maps but I want to do something similar in my android app. I saw a new cool app called dinefinder where the app launches with a mapview that has the pins laid

[android-developers] Fonts

2009-01-02 Thread suresh
Hi Guys... I'm new in the android platformbut i created one project in androidhow to use Tamil Fonts in android..I created one layout and then i set background image...i giving Scrollview...the image also scrolling..so i want stadard background image.please help

[android-developers] Re: How to write code to uninstall apk from device/emulator?

2009-01-02 Thread kiran raj
Hi , this is the coding for uninstall the apk file. *adb uninstall apk_filename in command mode *using emulator Go to the dev tools go to package browser then unistall the package name now ur emulator delelte that package Thank u

[android-developers] Re: WebView Behavior on Android

2009-01-02 Thread kiran raj
Hi, can u send me ur coding please.. --~--~-~--~~~---~--~~ 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

[android-developers] http proxy

2009-01-02 Thread kpowerinfinity
Hi, Is there a way to set the http proxy behind a wifi network? I looked around but couldn't find any option. Even a non-authenticated proxy setting will do. There's no way to do this in the settings page, and I could neither find any app that let's me do this. Thanks, Krishna.

[android-developers] Re: Customizing ListAdapter

2009-01-02 Thread Sarath Kamisetty
Hi, The examples in the blog are using ViewInflate class, however I can't find this class in the SDK API reference. http://code.google.com/android/reference/classes.html#letter_V Is this deprecated ? Eclipse is also complaining about this. Thanks, Sarath On Wed, Dec 31, 2008 at 6:01 AM, Mark

[android-developers] Re: How to write code to uninstall apk from device/emulator?

2009-01-02 Thread Dr. Tingrong Lu
Hi, Thanks for your reply. I mean how to write code to uninstall apk from device/emulator, not in an interactive commander line or shell. With SDK0.9, there's a method, packagemanager.deletePackage(), but with SDK1, that method is removed. I wonder how to uninstall apk with SDK1. Thanks

[android-developers] Re: How to write code to uninstall apk from device/emulator?

2009-01-02 Thread Shane Isbell
On Fri, Jan 2, 2009 at 11:23 PM, Dr. Tingrong Lu lutingr...@hotmail.comwrote: Hi, Thanks for your reply. I mean how to write code to uninstall apk from device/emulator, not in an interactive commander line or shell. With SDK0.9, there's a method, packagemanager.deletePackage(), but with