[android-developers] Re: import org.apache.commons.httpclient.HttpClient library error

2009-07-05 Thread Android Development
I will try out my library in a PoC application today to see what happens. The library i have, is implementing the XCAP protocol( http://www.ietf.org/rfc/rfc4825.txt) which is a wrapper over the HTTP client API. On Fri, Jul 3, 2009 at 11:43 PM, Dagvadorj Galbadrakh dagvad...@gmail.comwrote:

[android-developers] Re: adb is not detecting my new android phone

2009-07-05 Thread Jack Ha
Did you turn on USB debugging? Settings-Applications-Development-USB debugging -- Jack Ha Open Source Development Center ・T・ ・ ・Mobile・ stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily

[android-developers] Re: Use own map layer in Google Maps

2009-07-05 Thread JP
Hi John, After trying it in Chrome, I don't see an error. And that is exactly what I am looking for! Thanks, JP On 24 Jun., 06:09, Maps.Huge.Info (Maps API Guru) cor...@gmail.com wrote: What JavaScript error do you see? I get none. This is aMapsv3 demo app, it should work well with any

[android-developers] Re: switch between GPS and Networkprovider

2009-07-05 Thread Zod
Hi! If you want to monitor the availability of GPS signals you have to have a Listener constantly on the GPS_PROVIDER for status changes and set and remove a different NETWORK_PROVIDER listener on those changes, otherwise you won't get notified if gps signal is available again. However you have

[android-developers] Re: Questions on applications and how applications are to follow hardware limitations?

2009-07-05 Thread Zod
Thanks Mark for the answer. I posted my reply on Android Discuss too, but it haven't got in yet. Zod. On Jul 4, 8:41 pm, Mark Murphy mmur...@commonsware.com wrote: Zod wrote: I have a somewhat related question. I posted a reply over on [android-discuss], since this is not really a

[android-developers] onSaveInstanceState() normally not called ?

2009-07-05 Thread sasq
Am I right to assume that onSaveInstanceState() is not normally called (which my logging indicates) - but only when the system is forced to kill an Activity. If so, since onPause() does not receive a bundle, what is the best way to save state that should be restored the next time the Activity

[android-developers] Re: onSaveInstanceState() normally not called ?

2009-07-05 Thread Mark Murphy
sasq wrote: Am I right to assume that onSaveInstanceState() is not normally called (which my logging indicates) - but only when the system is forced to kill an Activity. To quote the documentation: ...for those methods that are marked as being killable, after that method returns the process

[android-developers] Re: Widget Unresponsive after Opening/Closing

2009-07-05 Thread Jayesh
I had the same problem. Jeff's solution worked for me. Thanks! On Jun 17, 1:27 am, Jeff Sharkey jshar...@android.com wrote: Are you sending a full RemoteViews update each time?  (The AppWidget framework only keeps the last RemoteViews sent, and reapplies it when needed, such as after a

[android-developers] Re: Received SMS in different language

2009-07-05 Thread hanged_man
far as i know, non-latin languages (such as Arabic) are not yet supported, i think you will have to wait for google's next updates. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to

[android-developers] Re: traceview on 64bit computer

2009-07-05 Thread Christine
Thanks. Actually, I found another solution. In the android_sdk tools/lib directory I replaced swt.jar by the 64 bits version of swt.jar. Then, there's 4 .so files in that directory with the number 3236 in it (that depends on the version of swt that's included in the distribution, different

[android-developers] Re: traceview on 64bit computer

2009-07-05 Thread Christine
Thanks. Actually, I found another solution. In the android_sdk tools/lib directory I replaced swt.jar by the 64 bits version of swt.jar. Then, there's 4 .so files in that directory with the number 3236 in it (that depends on the version of swt that's included in the distribution, different

[android-developers] Re: traceview on 64bit computer

2009-07-05 Thread Christine
For the 64bits SWT, make sure you download the right file from here: http://download.eclipse.org/eclipse/downloads/drops/R-3.4.2-200902111700/index.php#swt On Jul 5, 1:40 pm, Christine christine.kar...@gmail.com wrote: Thanks. Actually, I found another solution. In the android_sdk tools/lib

[android-developers] Re: traceview on 64bit computer

2009-07-05 Thread Christine
For the 64bits SWT, make sure you download the right file from here: http://download.eclipse.org/eclipse/downloads/drops/R-3.4.2-200902111700/index.php#swt On Jul 5, 1:40 pm, Christine christine.kar...@gmail.com wrote: Thanks. Actually, I found another solution. In the android_sdk tools/lib

[android-developers] Re: traceview on 64bit computer

2009-07-05 Thread Christine
For the 64bits SWT, make sure you download the right file from here: http://download.eclipse.org/eclipse/downloads/drops/R-3.4.2-200902111700/index.php#swt On Jul 5, 1:40 pm, Christine christine.kar...@gmail.com wrote: Thanks. Actually, I found another solution. In the android_sdk tools/lib

[android-developers] Re: traceview on 64bit computer

2009-07-05 Thread Christine
For the 64bits SWT, make sure you download the right file from here: http://download.eclipse.org/eclipse/downloads/drops/R-3.4.2-200902111700/index.php#swt On Jul 5, 1:40 pm, Christine christine.kar...@gmail.com wrote: Thanks. Actually, I found another solution. In the android_sdk tools/lib

[android-developers] Re: traceview on 64bit computer

2009-07-05 Thread Christine
For the 64bits SWT, make sure you download the right file from here: http://download.eclipse.org/eclipse/downloads/drops/R-3.4.2-200902111700/index.php#swt On Jul 5, 1:40 pm, Christine christine.kar...@gmail.com wrote: Thanks. Actually, I found another solution. In the android_sdk tools/lib

[android-developers] Re: onSaveInstanceState() normally not called ?

2009-07-05 Thread Mark Murphy
sasq wrote: In my case I have a second Activty that I open from the Main Activity, and regardess of wether I call finish() myself or use HOME to switch to another application, onSavedInstanceState() is never called. It won't necessarily be called in either of those cases. In particular, in

[android-developers] Re: onSaveInstanceState() normally not called ?

2009-07-05 Thread sasq
Although that seems pretty overkill for just saving the current directory... On Jul 5, 3:32 pm, sasq jonas.minnb...@gmail.com wrote: The documentation makes it sound that it would normally BE called, thats why I was wondering. In my case I have a second Activty that I open from the Main

[android-developers] Re: onSaveInstanceState() normally not called ?

2009-07-05 Thread sasq
The documentation makes it sound that it would normally BE called, thats why I was wondering. In my case I have a second Activty that I open from the Main Activity, and regardess of wether I call finish() myself or use HOME to switch to another application, onSavedInstanceState() is never

[android-developers] Installing USB drivers on Vista 64 bit

2009-07-05 Thread jrgraf...@googlemail.com
Hey all, I am currently having issues installing my G1 in development mode on Vista 64 Premium SP1. I have tried both installing the drivers that come with the latest SDK and also the ones here: http://forum.xda-developers.com/showthread.php?t=446274. Whenever I plug the phone in it comes up as

[android-developers] Re: copy wiped/ raw data from android to sd-card (data recovery)

2009-07-05 Thread Unrealshade
if i modify my android system and obtain root, is it possible to do what i want then? On Jul 1, 5:03 pm, Justin (Google Employee) j...@google.com wrote: This is not possible without modifying the Android system. Such a process would require root access in order to either change the

[android-developers] Re: onSaveInstanceState() normally not called ?

2009-07-05 Thread Peli
onSavedInstanceState() First make sure you don't have a typo, because it is called onSaveInstanceState(...). A case where it is definitely called is when you switch orientation (in the G1, slide out the keyboard). Then onSaveInstanceState(..) is called 100%, and onCreate(...) in the newly

[android-developers] Re: onSaveInstanceState() normally not called ?

2009-07-05 Thread Dianne Hackborn
Also onSaveInstanceState() will definitely be called when your activity is in the foreground and you press home. In that case the activity is not being finished, so the user may return to the same instance later (in the same state as they left it), so onSaveInstanceState() will be called before

[android-developers] Re: Surface to Native

2009-07-05 Thread Dianne Hackborn
They are not using the SDK. This is a forum for discussing the SDK. If you are doing device development/customization work so not developing against the SDK, android-porting is the best place to ask questions. On Fri, Jul 3, 2009 at 11:07 PM, scs sek scs...@gmail.com wrote: Hey, How is the

[android-developers] Re: targeting broadcasts issue

2009-07-05 Thread Dianne Hackborn
Sorry, if you want to have control over the notification, I think you will need to implement it yourself. I'm not an expert on the telephony APIs, but I don't know of anywhere we have something that allows one application to dismiss a notification owned by another. On Fri, Jul 3, 2009 at 10:56

[android-developers] Re: copy wiped/ raw data from android to sd-card (data recovery)

2009-07-05 Thread Dianne Hackborn
If you have root you can do pretty much anything. Fwiw, if you build the Cupcake platform, there is a backup command that provides very simple backup/restore when running as root. The source is here: http://android.git.kernel.org/?p=platform/system/extras.git;a=tree;f=backup On Sun, Jul 5,

[android-developers] Re: Installing USB drivers on Vista 64 bit

2009-07-05 Thread schwiz
mine says that sometimes but it still works anyways... On Jul 5, 8:50 am, jrgraf...@googlemail.com jrgraf...@googlemail.com wrote: Hey all, I am currently having issues installing my G1 in development mode on Vista 64 Premium SP1. I have tried both installing the drivers that come with the

[android-developers] BroadCastReceiver Alternate

2009-07-05 Thread riz
hi All , I m exploring Android SDK for ADC2 challenge. I need to know If my application main activity calls intent for doing some network activity (blocking call in separate thread ) meanwhile it starts another activity . how can I BroadCast network response to second activity I guess through

[android-developers] Re: BroadCastReceiver Alternate

2009-07-05 Thread Dianne Hackborn
If you are just writing a self-contained application -- it is all running in the same process -- then you really don't need to do anything special. Just normal Java stuff -- define a callback interface that the second activity implements, and hands to your network thread for it to call back on

[android-developers] Re: onSaveInstanceState() normally not called ?

2009-07-05 Thread Christine
Does it matter when it gets called? You can be sure that it has been called if your onCreate gets called after your app got killed. Maybe onSaveInstanceState sometimes gets called at onpause without the app being actually killed, as Dianne points out, then you'll never get the data back that you

[android-developers] Re: targeting broadcasts issue

2009-07-05 Thread Seer
Dianne, I really don't want control over the notification at all. I beleive that i am either missing something or doing something the wrong way. maybe you can tell me what i am doing wrong or know someone that could point me in the wright direction. My understanding of intents is that the whole

[android-developers] Re: copy wiped/ raw data from android to sd-card (data recovery)

2009-07-05 Thread Lexi Kern
So you say it is possible. any help how to find out how i extract the wiped internal phone storage data, although it is wiped? where can i read and learn about this and how to do it? (i mean the details, i know of course the tutorials and everything...) that would be s amazingly cool...!

[android-developers] Re: targeting broadcasts issue

2009-07-05 Thread Mark Murphy
Seer wrote: My understanding of intents is that the whole point of them is so that you can have multiple applications providing similar or the same functionality and that those applications become interchangable via intents. That is generally correct. Now when a new sms comes in there is a

[android-developers] Re: code to uninstall applications

2009-07-05 Thread aljo
tnx for your help... i'll try to see the codes... On Jul 5, 1:43 am, Roman roman.baumgaert...@t-mobile.com wrote: Check out the UninstallAppProgress.java source in packages/apps/ PackageInstaller/src/com/android/packageinstaller Have a look at the method and follow the flow of deletePackage.

[android-developers] Re: code to uninstall applications

2009-07-05 Thread Dianne Hackborn
The deletePackage method is not available to third party apps. To uninstall an app you need to launch the uninstaller activity to have the user confirm what is going on. On Sat, Jul 4, 2009 at 10:43 AM, Roman roman.baumgaert...@t-mobile.comwrote: Check out the UninstallAppProgress.java source

[android-developers] Re: targeting broadcasts issue

2009-07-05 Thread Dianne Hackborn
Yeah currently notifications are very much owned by the app that created them, and there is no facility for other apps to interact with them. As you say, one could imagine a way for apps to replace handling of notifications, but it's not something we have defined support for at this point. On

[android-developers] Re: copy wiped/ raw data from android to sd-card (data recovery)

2009-07-05 Thread Dianne Hackborn
Uh wait... you want to recover data after it is wiped? That is not what I was talking about, I was just pointing out a command line tool you can use on phones with root to do backup/restore of the data partition. This tool is basically just there for developers, who often need to wipe and

[android-developers] Can I calculate the user's moving speed by phone?

2009-07-05 Thread guishenl...@gmail.com
Hi all, I want to develope an application to calculate the user's moving speed by an Android phone like G1(Is it feasible on hardware?). But I don't know whether similar software exists already. If anyone know such similar application please tell me, and it will help me a lot in my design.

[android-developers] prevent close the dialog when click on the button

2009-07-05 Thread sleith
Hi, I want to ask about dialog. when i clicked the Ok button with setPositiveButton(Ok, listener) i need to make a validation, and when not valid i don't want the dialog to be closed. how to make the dialog not closed when click on the button? thank you

[android-developers] Re: Memory leak in AudioTrack?

2009-07-05 Thread Morné Pistorius
Ah, thanks for the hint. I assumed the same thing would happen on the device, but never checked it outside the emulator... Regards, Morne On Jul 3, 5:54 pm, blindfold seeingwithso...@gmail.com wrote: I should add that I only see the GREF count increasing with the emulator, not when I run my

[android-developers] error message with MediaPlayer

2009-07-05 Thread tstanly
hi all, I try to recived rtsp or mms audio stream for a long time, simply use the code to recive audio stream: myPlayer1.setDataSource(mms://); myPlayer1.prepare(); myPlayer1.start(); I search for this topic for all discussions, and get some conclusions from all discussions: (a) sdk 1.1

[android-developers] Re: Can I calculate the user's moving speed by phone?

2009-07-05 Thread John Smith
2009/7/6 guishenl...@gmail.com guishenl...@gmail.com I want to develope an application to calculate the user's moving speed by an Android phone like G1(Is it feasible on hardware?). But I don't know whether similar software exists already. If anyone know such similar application please

[android-developers] Re: code to uninstall applications

2009-07-05 Thread aljo
Hmmm... that's why I can't see the deletePackage method when I type getPackageManager(). What do you mean I need to launch the uninstaller activity? Is that the uninstaller app when you go to Settings/ Applications/ManageApplications in the phone?? If that's the case, is it not possible yet to

[android-developers] invoke other apk file?

2009-07-05 Thread tstanly
hi all, I design two apk for a.apk and b.apk, but now I want to invoke b.apk from a.apk, to do that,I will put a Button in a.apk, when user click the button,then goes to b.apk. how can I do that? thanks! --~--~-~--~~~---~--~~ You received this message because

[android-developers] Re: error message with MediaPlayer

2009-07-05 Thread Marco Nelissen
mms streaming is not supported, only http and rtsp On Sun, Jul 5, 2009 at 7:38 PM, tstanlytsai.sta...@gmail.com wrote: hi all, I try to recived rtsp or mms audio stream for a long time, simply use the code to recive audio stream: myPlayer1.setDataSource(mms://);

[android-developers] Re: error message with MediaPlayer

2009-07-05 Thread tstanly
but i use rtsp like: myPlayer1.setDataSource(rtsp://); myPlayer1.prepare(); myPlayer1.start(); it still failure too...:( On 7月6日, 上午11時23分, Marco Nelissen marc...@android.com wrote: mms streaming is not supported, only http and rtsp On Sun, Jul 5, 2009 at 7:38 PM,

[android-developers] Re: Intercepting bluetooth device buttons

2009-07-05 Thread Nick Pelly
Register your intent receiver at a higher priority, and call abortBroadcast() while handling the Intent. On Thu, Jul 2, 2009 at 2:19 PM, sktechinfo.sktechnol...@gmail.com wrote: Thanks, I have successfully implemented this thanks to your help. However, I have the following problem: I have

[android-developers] How do I access a URI such as content://drm/audio/2 (which is a ringtone)

2009-07-05 Thread Rob Franz
Hi all, I am trying to play a ringtone that is specified as the Default system ringtone. Unfortunately when i get the actual URI I get the above (content://drm/audio/2) and then when I try to play it, I hear the fallback ringtone - the one that you'd hear if the default was unavailable.

[android-developers] Re: error message with MediaPlayer

2009-07-05 Thread Marco Nelissen
You're getting the same not supported failure? Then I guess whatever you're trying to stream is not in a supported format. 2009/7/5 tstanly tsai.sta...@gmail.com: but i use rtsp like: myPlayer1.setDataSource(rtsp://); myPlayer1.prepare(); myPlayer1.start(); it still failure

[android-developers] Re: How do I access a URI such as content://drm/audio/2 (which is a ringtone)

2009-07-05 Thread Marco Nelissen
On Sun, Jul 5, 2009 at 8:55 PM, Rob Franzrob.fr...@gmail.com wrote: Hi all, I am trying to play a ringtone that is specified as the Default system ringtone.  Unfortunately when i get the actual URI I get the above (content://drm/audio/2) and then when I try to play it, I hear the fallback

[android-developers] Re: How do I access a URI such as content://drm/audio/2 (which is a ringtone)

2009-07-05 Thread Rob Franz
Hi Marco,Basically supplying the ringtone's URI to the RingtoneManager's getRingtone function (returning a Ringtone) and then calling play() to what's returned. Should i be doing it differently? Thanks Rob On Mon, Jul 6, 2009 at 12:25 AM, Marco Nelissen marc...@android.com wrote: On Sun, Jul

[android-developers] Re: invoke other apk file?

2009-07-05 Thread Piano Pan
Use this function: public int startActivity(String packageName, String className) { Intent intent = new Intent(android.intent.action.MAIN); intent.setClassName(packageName, className); intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK |

[android-developers] Re: How do I access a URI such as content://drm/audio/2 (which is a ringtone)

2009-07-05 Thread Rob Franz
To be more specific: ringtoneUri = Uri.parse(ringtoneUriText); mRingtone = mRingToneMgr.getRingtone(mRingToneMgr.getRingtonePosition(ringtoneUri)); where ringtoneUriText is content://drm/audio/2 And then mRingtone.play() thanks Rob On Mon, Jul 6, 2009 at 12:30 AM, Rob Franz rob.fr...@gmail.com

[android-developers] SeekBar

2009-07-05 Thread peeyush varshney
Hi, How to set the thumb position when progress has changed. -- Thank Regards Peeyush Varshney --~--~-~--~~~---~--~~ 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: invoke other apk file?

2009-07-05 Thread tstanly
thanks. if i don't know the package name,class name.. just knows names xxx.apk is it can work? On 7月6日, 下午12時30分, Piano Pan piano...@gmail.com wrote: Use this function: public int startActivity(String packageName, String className) { Intent intent = new

[android-developers] retrieving freeMemory(), totalMemory() MaxMemory from other applications

2009-07-05 Thread aljo
Is there a way to retrieve the free memory, total memory and maximum memory of other applications/processes using my application? I use Runtime.getRuntime().freeMemory() but it can only retrieve your current application... If there's somehow a method where I can just input their PIDs or Package

[android-developers] Re: SeekBar

2009-07-05 Thread Jack Ha
Hi Peeyush, Not sure exactly what you would like to do but you might want to take a look at the SeekBar.setProgress(position) function. -- Jack Ha Open Source Development Center ・T・ ・ ・Mobile・ stick together The views, opinions and statements in this email are those of the author solely in

[android-developers] Re: invoke other apk file?

2009-07-05 Thread Piano Pan
You must know the package name and activity name On Jul 6, 1:25 pm, tstanly tsai.sta...@gmail.com wrote: thanks. if i don't know the package name,class name.. just knows names xxx.apk is it can work? On 7月6日, 下午12時30分, Piano Pan piano...@gmail.com wrote: Use this function: public