[android-developers] Re: Using the Emulator with a Proxy - 0.9 Beta SDK Windows Eclipse 3.4

2008-08-22 Thread shan
Hi Bob, I got the browser up. If you have any other versions of the sdk/ emulator on your system, erase them and then unzip the new sdk. And provide the proxy as proxy:port only. Do not use the http://, it throws a NumberFormatException. The -http-proxy startup option did'nt work but the

[android-developers] Re: maps behind proxy 0.9 beta

2008-08-22 Thread shan
Hi Justin Now the browser works in the emulator but not the maps. Any suggestions to get the maps going. On Aug 21, 1:34 am, Justin (Google Employee) [EMAIL PROTECTED] wrote: Does the browser work in the emulator for you? The emulator doesn't deal well with being behind a proxy and my guess

[android-developers] Re: -http-proxy problems

2008-08-22 Thread shan
Thanks Andyn, got the browser up. Seems like a problem related with multiple SDKs on the same machine messing with the proxy. Refer : http://groups.google.com/group/android-developers/browse_thread/thread/5bf421494daf6784/cfcc4ad406134b14#cfcc4ad406134b14 If you know/find a reason please update.

[android-developers] Re: sqlite3?

2008-08-22 Thread shan
Thanks all, the browser is working behind the proxy, seems related with multiple SDKs on the same machine messed up the proxy configs of the emulator(a guess). Refer : http://groups.google.com/group/android-developers/browse_thread/thread/5bf421494daf6784/cfcc4ad406134b14#cfcc4ad406134b14 If

[android-developers] Re: Activity Question

2008-08-22 Thread Gil
hackbod, I wrote a simple app, based on the SDK Forwarding example, which reproduces the problem. The only difference between my app and the Forwarding app, as far as I can tell, is that the manifest: ?xml version=1.0 encoding=utf-8? manifest

[android-developers] Re: no certificates at entry res/drawable/icon.png; when run my application (sdk 0.9)

2008-08-22 Thread Xavier Ducrohet
If you use the 0.7.1 plugin then it will automatically use a debug key/certificate to sign application when building. When you release your application you will need to export it from Eclipse (see the overview page of the manifest editor, it'll create an unsigned package), and then manually sign

[android-developers] Re: Socket exception-unknown error from HttpClient execute() method

2008-08-22 Thread sacoskun
Did you add uses-permission android:name=android.permission.INTERNET / tag to your AndroidManifest.xml? The new SDK requires that permission for network calls. sacoskun On Aug 21, 6:13 pm, Graeme [EMAIL PROTECTED] wrote: Hi everyone I'm trying to figure out how to use HttpClient 4.x to do

[android-developers] Re: Using the Emulator with a Proxy - 0.9 Beta SDK Windows Eclipse 3.4

2008-08-22 Thread Manish Pandit
On Aug 21, 11:02 pm, shan [EMAIL PROTECTED] wrote: Hi Bob, I got the browser up. If you have any other versions of the sdk/ emulator on your system, erase them and then unzip the new sdk. And provide the proxy as proxy:port only. Do not use the http://, it throws a NumberFormatException.

[android-developers] Re: LocationManager - getLastKnownLocation() - NullPointer Exception

2008-08-22 Thread code_android_festival_way
So I got it working now. I'm using the service thread to get the location. And that's the way I did it: http://paste.pocoo.org/show/b67L69qf5QDNtq1pTzZz/ It works pretty fine. But you should add some timeout to the condition.await() of the background thread. Regards! On 21 Aug., 16:45,

[android-developers] Re: Adding content to a tab view dynamically

2008-08-22 Thread Teo
Ok, great, thanks for the help! Here's the relevant code from the XML: *LinearLayout xmlns:android=http://schemas.android.com/apk/res/android; android:orientation=vertical android:layout_width=fill_parent android:layout_height=fill_parent TabHost android:id=@+id/tabhost

[android-developers] Re: maps behind proxy 0.9 beta

2008-08-22 Thread shan
Hi Jokochi I am using a Windows machine, do i need to setup something to execute the script? Also my proxy port no is 8080, i could make out that you were routing to 8080 but mine already runs on the same. I tried to execute it on IE7 but it returned an open-save dialog which keeps looping. I

[android-developers] Re: Multipart Messages - Is there an example how to get them work now. (Uploading to a web API)

2008-08-22 Thread code_android_festival_way
Hello! I have done it the following way: http://paste.pocoo.org/show/GwHe8LrG9DCnq4zuphmK/ (note that this is just a sample code the HttpClient needs some setup) Using it this way multipart messages work quite fine. Regards! On 22 Aug., 07:16, shotwave [EMAIL PROTECTED] wrote: I also have

[android-developers] Re: Trouble with 0.9 beta and MapActivity

2008-08-22 Thread woodm
I was having this same problem yesterday but managed to solve it. It's just a case of fixing your AndroidManifest.xml file. It needs to use the correct permissions and contain a uses-library android:name=com.google.android.maps / tag. This post:

[android-developers] Re: Trouble with 0.9 beta and MapActivity

2008-08-22 Thread Casey Borders
That did it!! Thank you!! On Fri, Aug 22, 2008 at 3:05 AM, woodm [EMAIL PROTECTED] wrote: I was having this same problem yesterday but managed to solve it. It's just a case of fixing your AndroidManifest.xml file. It needs to use the correct permissions and contain a uses-library

[android-developers] Re: no certificates at entry res/drawable/icon.png; when run my application (sdk 0.9)

2008-08-22 Thread Wesley
hi Xav, I not really familiar with jarsigner and keytool thing... this is what I did... 1. as u said I export unsigning apk, then I use the apk on this two command... 2. keytool -genkey -dname cn=Wesley, ou=Wesley Soft, o=BJSG, c=MY -alias android -keypass and123 -keystore c:\mystore -storepass

[android-developers] Re: Socket exception-unknown error from HttpClient execute() method

2008-08-22 Thread Graeme
hi sacoskun Thanks for your suggestion. Yes I had not set the INTERNET permission in my AndroidManifest.xml. I have updated that now and the socket exception has changed to being about being unable to resolve the domain name of a http proxy server I am located behind. I have noticed other

[android-developers] How to compile android emulator on windows platform?

2008-08-22 Thread Linuxemacs
Dear all, Does anyone know how to compile the android emulator with source code on windows platform? Thanks a lot for your help! Best Regards! Jiang Jiang 2008-08-22 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[android-developers] Re: maps behind proxy 0.9 beta

2008-08-22 Thread shan
Thanks Jokochi, still can't get it same problems. Please update if you could. Were you able to display the maps? On Aug 22, 1:10 pm, jokochi [EMAIL PROTECTED] wrote: Hi Shan, I am sorry I did not test with windows so I can not answer you so far. But at least your PC has to be installed

[android-developers] DateUtils.getRelativeTimeSpanString in v0.9

2008-08-22 Thread Guillaume Perrot
In Android SDK v0.9, the DateUtils class has been removed. Where is the equivalent to format relative dates ? The function was getRelativeTimeSpanString, I hope I don't have to code it myself. --~--~-~--~~~---~--~~ You received this message because you are

[android-developers] Drag Drop outside the parent ViewGroup

2008-08-22 Thread Erik Calissendorff
Hi I'm implementing some drag drop functionality. I'm currently having two problems: 1) When I drag the View outside of it's parent it's being clipped, I like to be able to drag the item around the whole window. 2) Z-order, I'm currently bringing the dragged View to the front but with the same

[android-developers] Re: REST + JSON Web Service Client

2008-08-22 Thread Baran
Hi Charun, thanks for the reply, Everything changed since my last post ..:) I worked pretty good on android sdk m5 for JSON, and as soon as I got success in it , here is the new SDK with quite a few changes in it. Now I am stuck with the things... Please visit for the details and take a look

[android-developers] Instrumentation failing with classnotfound on android.test.InstrumentationTestRunner

2008-08-22 Thread Carl H.
Hello, I am trying to follow the post on ApplicationInstrumentation: http://code.google.com/android/samples/ApiDemos/tests/src/com/android/samples/AllTests.html http://code.google.com/android/samples/ApiDemos/tests/src/com/android/samples/ApiDemosApplicationTests.html My setup is very similar

[android-developers] Re: How to display a local file in the browser?

2008-08-22 Thread [EMAIL PROTECTED]
I already done that but there's another limit: data rendered via loadData are not able to load remote resources (img src=http://...;). On 21 Ago, 22:21, Megha Joshi [EMAIL PROTECTED] wrote: On Wed, Aug 20, 2008 at 4:46 PM, Megha Joshi [EMAIL PROTECTED] wrote: For security reasons, WebView

[android-developers] More camera misery with SDK 0.9 beta

2008-08-22 Thread blindfold
I am trying to acquire camera preview images through onPreviewFrame(byte[] data, Camera c) and, within this callback function, BitmapFactory.decodeByteArray(data, 0, data.length). The callback works and does get called as shown by my debug output. However, the Eclipse log file shows error

[android-developers] Re: Instrumentation failing with classnotfound on android.test.InstrumentationTestRunner

2008-08-22 Thread Carl H.
Note that the cmd line is: adb shell am instrument -e class com.novoda.runbuddy.AllTests -w com.novoda.runbuddy/android.test.InstrumentationTestRunner and not as previously stated: adb shell am instrument -e class com.android.samples.AllTests -w

[android-developers] Re: Remote 3GP video in 0.9 SDK

2008-08-22 Thread snowcrash
Hi there, first of all, an extra big THANK YOU to Justin, Megha, and all other Google folks answering our questions here. This is very highly appreciated. To furthermore light up things here, I think some 'hard specs' on the media formats supported would help a lot. I couldn't find such

[android-developers] m5 GetMethod.getResponseBody as String in SDK 0.9

2008-08-22 Thread Baran
Hi, Any idea about where can I find GetMethod class's getResonseBodyAsString() method in SDK 0.9. I need to perform the web service client activity, it was fine in the m5 but I can't find the method to retrieve web service respone as string in new SDK.

[android-developers] Re: m5 GetMethod.getResponseBody as String in SDK 0.9

2008-08-22 Thread Mark Murphy
Baran wrote: Any idea about where can I find GetMethod class's getResonseBodyAsString() method in SDK 0.9. I need to perform the web service client activity, it was fine in the m5 but I can't find the method to retrieve web service respone as string in new SDK. There is no GetMethod in

[android-developers] Why is my e-mail being spammed by this group

2008-08-22 Thread Aaron_Stone
When I set it up for 1 e-mail a day I started getting 100. I unsubscribed but the spam continues. --~--~-~--~~~---~--~~ 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] is there a way to install back the SDK m5-rc15 after upgrading into 0.9 beta

2008-08-22 Thread drik_wen
I get a lot problem after upgrading my SDK to 0.9 beta.. I can't launch my program.. is there a way to install back to the SDK m5-rc15?? a lil bit hurry.. thx in advanced.. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[android-developers] [v0.9 beta] text color won't change for TextView.setEnabled(false)

2008-08-22 Thread samlu
When I called setEnabled(false) for a TextView object on m5-rc15, the text color will be changed to gray (or dim). After switching to v0.9, it seems that all view object won't change color when I call setEnabled(false). Does anyone know how to fix this problem?

[android-developers] MapView and Zoom Control in 0.9 SDK

2008-08-22 Thread Cristina
Hi! I am trying to show the zoom controls over a MapView in the new 0.9 SDK. I have been able to show the zoom Control View using the following code // Zoom View View zoomView = mMapView.getZoomControls(); zoomView.setLayoutParams(new ViewGroup.LayoutParams

[android-developers] Re: Why is my e-mail being spammed by this group

2008-08-22 Thread Justin (Google Employee)
Either you didn't set the setting you thought you did (perhaps you didn't hit save after changing to digest?) or there was an error setting it (always possible). The easiest thing to do when this happens is to go and double check your settings, when I looked at yours, you were set for email as

[android-developers] [v0.9 beta] SystemClock.setCurrentTimeMillis() failed

2008-08-22 Thread samlu
I am using v0.9 beta SDK and got the following warning when I call SystemClock.setCurrentTimeMillis() WARN/SystemClock(1000): Unable to open alarm driver: Permission denied Does anyone know which permission should be specified? --~--~-~--~~~---~--~~ You received

[android-developers] alwaysRetainTaskState - Some questions

2008-08-22 Thread code_android_festival_way
I came across the parameter alwaysRetainTaskState at http://code.google.com/android/reference/android/R.attr.html#alwaysRetainTaskState and don't really know how to use it the right way. I've got several activities in my application and want to persist the state of my activity UI so that the user

[android-developers] v0.9 beta - SystemClock.setCurrentTimeMillis() failed

2008-08-22 Thread samlu
I am using v0.9 beta SDK, got the following warning when I call SystemClock.setCurrentTimeMillis() WARN/SystemClock(516): Unable to open alarm driver: Permission denied Does anyone know which permission should be specified? --~--~-~--~~~---~--~~ You received this

[android-developers] Re: Problem with TableLayout

2008-08-22 Thread Kavi
How about telling the TableRows to evenly take the height from the Table layout. Is that possible? So, for example in my main.xml, the TableLayout is taking up the whole screen. And all the table rows height is equal to what they need for their content. Thus, their is some extra space left at the

[android-developers] Re: m5 GetMethod.getResponseBody as String in SDK 0.9

2008-08-22 Thread Baran
Thanks buddy, you are rightthey have removed the classI wasted my time for nothingthanks again On Aug 22, 5:49 pm, Mark Murphy [EMAIL PROTECTED] wrote: Baran wrote: Any idea about where can I find GetMethod class's getResonseBodyAsString() method in SDK 0.9. I need to

[android-developers] Re: maps behind proxy 0.9 beta

2008-08-22 Thread jokochi
Yes, I am able to see the map. After that I checked the script working on Windows. Have you install PHP5 and run it on command prompt(cmd.exe) ? Windows PHP can be found here. http://www.php.net/get/php-5.2.6-win32-installer.msi/from/a/mirror I installed it with default setting. Please do not

[android-developers] TabHost view

2008-08-22 Thread dai
Hi, is it possible to display icon(jpg, png) within tab? I'd like to add icon and text(setIndicator(***)) within tab.. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group,

[android-developers] Re: TabHost view

2008-08-22 Thread dai
Ahh, I've found out public TabHost.TabSpec setIndicator(CharSequence label, Drawable icon) of TabHost class.. On 8月22日, 午後11:21, dai [EMAIL PROTECTED] wrote: Hi, is it possible to display icon(jpg, png) within tab? I'd like to add icon and text(setIndicator(***)) within tab..

[android-developers] Exception when leaving an activity (with the back button) which is binded to a Service

2008-08-22 Thread code_android_festival_way
Hello guys! I'm having the following problem. I'm having an activity that starts a background thread in order to bind to a service which does some work. Now I've got the problem that when pressing the back button I get the following exception: 08-22 17:09:46.460: ERROR/AndroidRuntime(26218):

[android-developers] Re: Problem with TableLayout

2008-08-22 Thread Kavi
On Aug 22, 8:37 am, Kavi [EMAIL PROTECTED] wrote: How about telling the TableRows to evenly take the height from the Table layout. Is that possible? So, for example in my main.xml, the TableLayout is taking up the whole screen. And all the table rows height is equal to what they need for

[android-developers] Re: Images Cursor Problem

2008-08-22 Thread webmonkey
-Any idea what is causing this? Does the column name actually exist? No this field does not exist. It is a bug that should be reported. In the mean time you can simply use: Cursor cursor = getContentResolver().query( extras.getData(), null, null, null, null); On Aug 22, 2:06 am, Gil [EMAIL

[android-developers] Android JNI

2008-08-22 Thread vol
I'm having trouble building the JNI example at http://davanum.wordpress.com/2007/12/09/android-invoke-jni-based-methods-bridging-cc-and-java/ . First up, is it possible to actually do this from windows? Do I have to do this in a linux environment? I would think that doing this from windows is

[android-developers] Re: Exception when leaving an activity (with the back button) which is binded to a Service

2008-08-22 Thread Mark Murphy
I'm having the following problem. I'm having an activity that starts a background thread in order to bind to a service which does some work. Now I've got the problem that when pressing the back button I get the following exception: 08-22 17:09:46.460: ERROR/AndroidRuntime(26218): Uncaught

[android-developers] Code working in standalone java; doesnot work in android (android-sdk-windows-0.9_beta)

2008-08-22 Thread Manu
Hi Folks, Trying to insert even in google calendar but with no luck. Any pointers? String [EMAIL PROTECTED]; String pass=xyz; myService.setUserCredentials(name, pass); URL postUrl = new URL(http://www.google.com/calendar/feeds/+name+/private/ full); CalendarEventEntry

[android-developers] Re: Draw graphics with opengl

2008-08-22 Thread Michel
None of the examples compile anymore. The SDK v0.9 has made drastic changes and I cannot get a single example to even compile out of the box! On Aug 7, 8:11 am, Hong [EMAIL PROTECTED] wrote: there's an opengl tutorial in android development samples, as well as a globaltime sample application

[android-developers] Re: Adding content to a tab view dynamically

2008-08-22 Thread Josh Guilfoyle
This seems a bit goofed up to me. First off, the FrameLayout holding your tabs should initially be empty. the TabHost will manage filling it in with the contents of the tab you've selected. addTouchables is very certainly not what you want. You want to use addView() but make sure that the

[android-developers] Re: Draw graphics with opengl

2008-08-22 Thread Justin (Google Employee)
Make sure to clean out the old samples from M5 and use the updated samples in the new SDK. Cheers, Justin Android Team @ Google On Aug 22, 9:11 am, Michel [EMAIL PROTECTED] wrote: None of the examples compile anymore. The SDK v0.9 has made drastic changes and I cannot get a single example to

[android-developers] Re: Code working in standalone java; doesnot work in android (android-sdk-windows-0.9_beta)

2008-08-22 Thread Justin (Google Employee)
What's the output from logcat? Cheers, Justin Android Team @ Google On Aug 22, 7:20 am, Manu [EMAIL PROTECTED] wrote: Hi Folks, Trying to insert even in google calendar but with no luck. Any pointers? String [EMAIL PROTECTED]; String pass=xyz; myService.setUserCredentials(name,

[android-developers] Re: Exception when leaving an activity (with the back button) which is binded to a Service

2008-08-22 Thread Justin (Google Employee)
I'm not sure its complaining about the thread shutting down, but rather that you're trying to unbind a service that is note bound to Service not registered. Try keep a reference to your thread in the your Activity. in onPause() your should call Thread.stop(). Override stop() in your thread to

[android-developers] Re: Exception when leaving an activity (with the back button) which is binded to a Service

2008-08-22 Thread Justin (Google Employee)
My bad, stop() is final, so you'll have to find another place to unbind the service. Cheers, Justin Android Team @ Google On Aug 22, 9:26 am, Justin (Google Employee) [EMAIL PROTECTED] wrote: I'm not sure its complaining about the thread shutting down, but rather that you're trying to unbind

[android-developers] Can MediaRecoder record audio in wave format?

2008-08-22 Thread april
How to set the MediaRecorder to record in specified format? such as wav format. In emulator, how can we test record functionality without hardware? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers

[android-developers] Images from Google Chart API

2008-08-22 Thread dai
Ciao, can anyhone get image files from Google Chart API? I'm trying to get image from http://chart.apis.google.com/chart?chs=460x230chd=t:62cht=pchl=Google, but I could not do well.. Any hints on this...? --~--~-~--~~~---~--~~ You received this message because

[android-developers] Re: MapView and Zoom Control in 0.9 SDK

2008-08-22 Thread marcel-182
Hey, I have the same problem. I want my MapView to handle the ZoomControls like in the standard Maps application but haven't found a way how to do it :-(. On 22 Aug., 11:45, Cristina [EMAIL PROTECTED] wrote: Hi! I am trying to show the zoom controls over a MapView in the new 0.9 SDK. I

[android-developers] Re: Creating a Dialog Activity with default OK and Cancel buttons

2008-08-22 Thread Justin (Google Employee)
APIDemos App Dialog Cheers, Justin Android Team @ Google On Aug 22, 9:36 am, webmonkey [EMAIL PROTECTED] wrote: How do I create a dialog activity that looks exactly the same as when you build a dialog with the AlertDialog class, including the buttons panel at the bottom. Basically, I

[android-developers] Re: Activity Question

2008-08-22 Thread Gil
If I use singleTop for both activities the code works as expected. The singleTask launchMode is causing the behavior described above. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post

[android-developers] Re: Creating a Dialog Activity with default OK and Cancel buttons

2008-08-22 Thread webmonkey
Hello Justin, Thanks for your response, but I already checked these samples and I know how to build dialogs using the AlertDialog class. The thing is, I usually call AlertDialog inside an existing activity, for example to create a delete confirmation dialog. But now I want the entire activity to

[android-developers] Re: Android JNI

2008-08-22 Thread vol
Actually, the errors stemmed from some compile-related incompatabilities. Is it possible to do this from win32, or do I have to do it from Linux? On Aug 22, 11:36 am, vol [EMAIL PROTECTED] wrote: I'm having trouble building the JNI example

[android-developers] Re: Exception when leaving an activity (with the back button) which is binded to a Service

2008-08-22 Thread code_android_festival_way
Thank you for your answers. That's what I do: http://paste.pocoo.org/show/83036/ I've just shortened it up a bit. With the binded service I'm calling a method which is waiting for a location update. I'm registering the LocationManager from the onStart() method of the service. (thats why I need

[android-developers] showAlert in latest SDK

2008-08-22 Thread Mark Hansen
I've been going over a bunch of examples and for the life of me can't figure out how to get showAlert to generate a dialog. I'm fairly new to both Android and Java development so I could easily be missing something, but I'm stumped. This is the menu option selected override in a class that is

[android-developers] Re: Exception when leaving an activity (with the back button) which is binded to a Service

2008-08-22 Thread Mark Murphy
(I thought that starting a service leads to a new thread in which the service runs) At least in M5, with a default setup for the service, and the service in the same application, it does not run on a separate thread. If you call into the service from an activity, and you're calling from the

[android-developers] Re: Using the Emulator with a Proxy - 0.9 Beta SDK Windows Eclipse 3.4

2008-08-22 Thread Megha Joshi
This thread has some good info on proxy config... Could one of you please add this to the porting docs..whenever you find time..Thanks! On Thu, Aug 21, 2008 at 11:15 PM, Manish Pandit [EMAIL PROTECTED]wrote: On Aug 21, 11:02 pm, shan [EMAIL PROTECTED] wrote: Hi Bob, I got the browser up.

[android-developers] Re: Exception when leaving an activity (with the back button) which is binded to a Service

2008-08-22 Thread code_android_festival_way
Ok. After a little bit of debugging I know that the Service runs inside the background thread. (the methods that I call inside the service after binding to it) But after that is it really that difficult to stop that background thread in onPause? Even calling the deprecated stop() doesn't stop

[android-developers] Re: Adding content to a tab view dynamically

2008-08-22 Thread Teo
Thanks for the help. I didn't actually manage it this way, but somehow i saw the *createTabContent* function from *TabContentFactory* (which i was already using actually) is called every time a tab is selected, not just at its creation. So i make a completely new *LinearLayout* inside the tab and

[android-developers] Re: Exception when leaving an activity (with the back button) which is binded to a Service

2008-08-22 Thread Mark Murphy
After a little bit of debugging I know that the Service runs inside the background thread. (the methods that I call inside the service after binding to it) Right. But after that is it really that difficult to stop that background thread in onPause? You don't want to stop the thread. You

[android-developers] Re: Socket exception-unknown error from HttpClient execute() method

2008-08-22 Thread Megha Joshi
Did you try configuring emulator proxy connection as discussed below: http://groups.google.com/group/android-developers/browse_thread/thread/5bf421494daf6784/2cc9564fd9f62e37 On Fri, Aug 22, 2008 at 1:51 AM, Graeme [EMAIL PROTECTED] wrote: hi sacoskun Thanks for your suggestion. Yes I had

[android-developers] Re: Exception when leaving an activity (with the back button) which is binded to a Service

2008-08-22 Thread code_android_festival_way
Well the thread is doing something at the moment I want him to be killed. (he is downloading pictures which will be shown in the gui later on) So I've looked at your example but don't understand how I should implement that in my thread. I just want him to stop what he is doing because after

[android-developers] Re: Activity Question

2008-08-22 Thread Gil
It turns out that singleTask is what I need in my app for my main (LAUNCHER) activity otherwise sometimes I end up with multiple instances of my activities. On Aug 22, 10:33 am, Gil [EMAIL PROTECTED] wrote: If I use singleTop for both activities the code works as expected. The singleTask

[android-developers] Re: no certificates at entry res/drawable/icon.png; when run my application (sdk 0.9)

2008-08-22 Thread Xavier Ducrohet
You are using the -r option of adb install which will basically do a soft reinstall, keeping the data of the installed application. The fact that it does not fail with an error indicating that there are no apps to reinstall means that you have somehow already installed a version. I'm guessing

[android-developers] Re: Code working in standalone java; doesnot work in android (android-sdk-windows-0.9_beta)

2008-08-22 Thread Manu
Justing, It appears that the code is throwing exception in line myService.setUserCredentials(name, pass); The catch block for AuthenticationException is showing as the exception error message ERROR:Error connecting with login URI { // TODO Auto-generated catch block

[android-developers] Re: Exception when leaving an activity (with the back button) which is binded to a Service

2008-08-22 Thread Mark Murphy
Well the thread is doing something at the moment I want him to be killed. (he is downloading pictures which will be shown in the gui later on) So I've looked at your example but don't understand how I should implement that in my thread. I just want him to stop what he is doing because after

[android-developers] Re: Code working in standalone java; doesnot work in android (android-sdk-windows-0.9_beta)

2008-08-22 Thread Manu
Justin, How can I print the exception to a logcat? Is it feasible?. I tried attaching src of gdata to android project for debugging but compilation fails and so cannot debug. Thanks Manoj On Aug 23, 12:23 am, Manu [EMAIL PROTECTED] wrote: Justing, It appears that the code is throwing

[android-developers] Re: Android JNI

2008-08-22 Thread Tyler Ernst
You are getting those errors because you are building for linux, but using the windows jni includes. This is because the compiler does not recognize the __int64 microsoft extension. You can build this in a windows environment, but you'll have to get the include files from the linux environment.

[android-developers] Text2Speech now hosted at google code

2008-08-22 Thread l1ghtm4n
I've decided to open source the Text2Speech project for Android. The code can be found at http://code.google.com/p/android-text2speech/. The ultimate goal of the project is to become the standard for Text2Speech services on the Android platform.

[android-developers] Re: Exception when leaving an activity (with the back button) which is binded to a Service

2008-08-22 Thread code_android_festival_way
So if I'm understanding you right I HAVE to interrupt the work that is done in the background thread. That will be difficult, it is not just the download of information. I'm setting a geo search at flickr, handling the response and so on and so on. Finally giving back some links (to photos) which

[android-developers] Re: Code working in standalone java; doesnot work in android (android-sdk-windows-0.9_beta)

2008-08-22 Thread Manu
Here is the stack trace log output for StackTraceElement stack[]=e.getStackTrace(); for(StackTraceElement i:stack) { android.util.Log.v(!!!,i.getClassName()+:+i.getMethodName() +:+i.getLineNumber()); } I/ActivityManager( 51): Annotation: Broadcast of Intent {

[android-developers] Re: Exception when leaving an activity (with the back button) which is binded to a Service

2008-08-22 Thread Mark Murphy
So if I'm understanding you right I HAVE to interrupt the work that is done in the background thread. If Thread#interrupt() isn't working, then yes. See below... That will be difficult, it is not just the download of information. I'm setting a geo search at flickr, handling the response

[android-developers] Crash reading by 16384 of file

2008-08-22 Thread Jon Webb
I keep getting a crash (reading NUL which is not in the file) when I try to read a file into my app. The crash occurs at byte 16384 of the file. I assume this is some sort of buffering error because the buffer size is 8192. I posted an app on the issue list (http://

[android-developers] Re: Using the Emulator with a Proxy - 0.9 Beta SDK Windows Eclipse 3.4

2008-08-22 Thread Manish Pandit
On Aug 22, 11:45 am, Megha Joshi [EMAIL PROTECTED] wrote: This thread has some good info on proxy config... Could one of you please add this  to the porting docs..whenever you find time..Thanks! On Thu, Aug 21, 2008 at 11:15 PM, Manish Pandit [EMAIL PROTECTED]wrote: Hi Megha - I've updated

[android-developers] Re: Using the Emulator with a Proxy - 0.9 Beta SDK Windows Eclipse 3.4

2008-08-22 Thread Megha Joshi
Thanks :) On Fri, Aug 22, 2008 at 1:43 PM, Manish Pandit [EMAIL PROTECTED]wrote: On Aug 22, 11:45 am, Megha Joshi [EMAIL PROTECTED] wrote: This thread has some good info on proxy config... Could one of you please add this to the porting docs..whenever you find time..Thanks! On Thu,

[android-developers] Re: [v0.9 beta] text color won't change for TextView.setEnabled(false)

2008-08-22 Thread Jeff Hamilton
How did you define the TextView in your layout file? Are you using one of the standard textAppearance values? -Jeff On Fri, Aug 22, 2008 at 2:17 AM, samlu [EMAIL PROTECTED] wrote: When I called setEnabled(false) for a TextView object on m5-rc15, the text color will be changed to gray (or

[android-developers] Re: Problems Sending SMS Text Messages in 0.9

2008-08-22 Thread Megha Joshi
On Fri, Aug 22, 2008 at 3:34 AM, Reto [EMAIL PROTECTED] wrote: Has anyone had success sending SMS text messages in the new 0.9 beta? The following code used to work fine, but now I'm getting a null pointer exception on calling sendTextMessage: SmsManager smsManager =

[android-developers] Re: Instrumentation failing with classnotfound on android.test.InstrumentationTestRunner

2008-08-22 Thread Megha Joshi
Did you notice there is one more AndroidManifest.xml file under the /tests folder in ApiDemos...perhaps you are missing that... We will add more information to the docs ... On Fri, Aug 22, 2008 at 4:50 AM, Carl H. [EMAIL PROTECTED] wrote: Note that the cmd line is: adb shell am instrument -e

[android-developers] Re: More camera misery with SDK 0.9 beta

2008-08-22 Thread Megha Joshi
There is no way to convert the preview frames that come as YUV data from Camera.SetPrivewCallBack() into a bitmap.To draw the preview frames, you can call Camera.startPreview() and the system takes care of the drawing. CameraPreview sample code in ApiDemos is updated to use startPreview() now.

[android-developers] Re: is there a way to install back the SDK m5-rc15 after upgrading into 0.9 beta

2008-08-22 Thread Megha Joshi
On Fri, Aug 22, 2008 at 5:16 AM, drik_wen [EMAIL PROTECTED] wrote: I get a lot problem after upgrading my SDK to 0.9 beta.. I can't launch my program.. is there a way to install back to the SDK m5-rc15?? It is not recommended to use m5, please use 0.9 beta... Post your issues here and we

[android-developers] Re: Multipart Messages - Is there an example how to get them work now. (Uploading to a web API)

2008-08-22 Thread barbapapaz
Hello I has the same problem and your post resolt it! thanks On 22 août, 09:01, code_android_festival_way [EMAIL PROTECTED] wrote: Hello! I have done it the following way: http://paste.pocoo.org/show/GwHe8LrG9DCnq4zuphmK/ (note that this is just a sample code the HttpClient needs some

[android-developers] Re: showAlert in latest SDK

2008-08-22 Thread Megha Joshi
showAlert() is removed from the latest SDK. You should use AlertDialog for dialogs... See sample code below: http://code.google.com/android/samples/ApiDemos/src/com/android/samples/app/AlertDialogSamples.html On Fri, Aug 22, 2008 at 11:08 AM, Mark Hansen [EMAIL PROTECTED] wrote: I've been

[android-developers] Re: Activity Question

2008-08-22 Thread Justin (Google Employee)
I've replicated the behavior you're seeing, and it seems anomalous, so I'll keep looking at it. Cheers, Justin Android Team @ Google On Aug 22, 12:20 pm, Gil [EMAIL PROTECTED] wrote: It turns out that singleTask is what I need in my app for my main (LAUNCHER) activity otherwise sometimes I

[android-developers] Re: showAlert in latest SDK

2008-08-22 Thread Randy McEoin
What follows is how I did it. The part that was not obvious from the sample code was the need for show(). Note that you can skip the setIcon() and it'll use a default one. And you can skip the setPositiveButton(), but then the user needs to hit the back button to clear the dialog.

[android-developers] Re: Can MediaRecoder record audio in wave format?

2008-08-22 Thread Justin (Google Employee)
Output formats are in the documentation at http://code.google.com/android/reference/android/media/MediaRecorder.OutputFormat.html I think you probably can't test this in the emulator. Cheers, Justin Android Team @ Google On Aug 22, 9:50 am, april [EMAIL PROTECTED] wrote: How to set the

[android-developers] Re: Images from Google Chart API

2008-08-22 Thread Justin (Google Employee)
Yes. import java.net.URL; import android.graphics.Bitmap; import android.widget.ImageView; URL img = new URL(http://chart.apis.google.com/chart? chs=460x230chd=t:62cht=pchl=Google); ImageView imgViewer = new ImageView(this); imgViewer.setImageBitmap(Bitmap.decodeStream(img.openStream());

[android-developers] Re: Creating a Dialog Activity with default OK and Cancel buttons

2008-08-22 Thread Justin (Google Employee)
I don't really understand what you want to do here. If you want a view with an EditText area and a couple of Buttons, just create a view with those things in them. I'm not sure why this needs to be an AlertDialog. The AlertDialog is really just a convenience class for for creating a common type

[android-developers] Re: More camera misery with SDK 0.9 beta

2008-08-22 Thread blindfold
Thanks Megha. So the byte[] data provided by onPreviewFrame() is effectively useless, because there is no efficient means of converting into a format that the rest of Android understands. Strange API design... I have now successfully used onPictureTaken() instead of onPreviewFrame(), because

[android-developers] Overlay

2008-08-22 Thread Peter Stevenson
hi I trying to work out how Overlay works, any help would be greatly appreciated Peter --~--~-~--~~~---~--~~ 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: Images from Google Chart API

2008-08-22 Thread dai
Thank you for your sample code, justin. It's working well ;) On 8月23日, 午前8:57, Justin (Google Employee) [EMAIL PROTECTED] wrote: Yes. import java.net.URL; import android.graphics.Bitmap; import android.widget.ImageView; URL img = new URL(http://chart.apis.google.com/chart?

[android-developers] Re: showAlert in latest SDK

2008-08-22 Thread Mark Hansen
Ahh ok, thanks guys, works great.. On Aug 22, 7:39 pm, Randy McEoin [EMAIL PROTECTED] wrote: What follows is how I did it.   The part that was not obvious from the sample code was the need for show().  Note that you can skip the setIcon() and it'll use a default one.  And you can skip the

[android-developers] Re: [v0.9 beta] text color won't change for TextView.setEnabled(false)

2008-08-22 Thread samlu
This is the TextView object defined in layout file. TextView android:id=@+id/txtResults android:layout_width=fill_parent android:layout_height=fill_parent android:background=#A0 android:textColor=#FF / In addition, no theme specified for activity in Manifest.xml. I only use the

[android-developers] Re: Multipart Messages - Is there an example how to get them work now. (Uploading to a web API)

2008-08-22 Thread shotwave
thank you, guys On Aug 22, 3:01 am, code_android_festival_way [EMAIL PROTECTED] wrote: Hello! I have done it the following way: http://paste.pocoo.org/show/GwHe8LrG9DCnq4zuphmK/ (note that this is just a sample code the HttpClient needs some setup) Using it this way multipart messages

  1   2   >