[android-developers] Re: problem Porting to 0.9 sdk, anyone please guide me... thanks...

2008-08-27 Thread Romain Guy
And by very few we really mean ***very*** ***few*** :) On Wed, Aug 27, 2008 at 11:11 PM, hackbod <[EMAIL PROTECTED]> wrote: > > On Aug 27, 4:43 am, munzelmann <[EMAIL PROTECTED]> wrote: >> I agree. Almost every class from my application contains errors after >> upgrading to 0.9. GPS mock provider

[android-developers] Re: problem Porting to 0.9 sdk, anyone please guide me... thanks...

2008-08-27 Thread hackbod
On Aug 27, 4:43 am, munzelmann <[EMAIL PROTECTED]> wrote: > I agree. Almost every class from my application contains errors after > upgrading to 0.9. GPS mock provider doesn't work, GTalk/XMPP has been > completely removed. > I'm in doubt to put any further work into android until the second > gen

[android-developers] Re: problem Porting to 0.9 sdk, anyone please guide me... thanks...

2008-08-27 Thread hackbod
Yep PendingIntent is the new ActivityPendingResult. On Aug 27, 10:56 pm, Ralf <[EMAIL PROTECTED]> wrote: > android.app.PendingIntent maybe? > > R/ > > On Wed, Aug 27, 2008 at 10:39 PM, Wesley <[EMAIL PROTECTED]> wrote: > > hi all, > > > any idea what class has been replace by this class?? > > >>>

[android-developers] Re: Feature Request: Virtual Contacts Content Provider

2008-08-27 Thread hackbod
Yeah too late for 1.0. :} But you know, there is no reason someone else couldn't write such a thing -- the contacts provider itself is just an app and there is nothing special about it, so a virtual contacts provider doesn't need any special platform support either. On Aug 27, 3:29 pm, jtaylor <

[android-developers] Re: problem Porting to 0.9 sdk, anyone please guide me... thanks...

2008-08-27 Thread Ralf
android.app.PendingIntent maybe? R/ On Wed, Aug 27, 2008 at 10:39 PM, Wesley <[EMAIL PROTECTED]> wrote: > hi all, > > any idea what class has been replace by this class?? > >>> android.app.ActivityPendingResult; > > > Wesley. > > On Thu, Aug 28, 2008 at 9:50 AM, Wesley <[EMAIL PROTECTED]> wrote:

[android-developers] Re: Could not fine HelloAndroid.apk when lauching the HelloAndroid example

2008-08-27 Thread NuuNeoI
Yes, I think that this problem should be treated as bug. BR, Sittiphol On Aug 27, 10:58 pm, Vittee <[EMAIL PROTECTED]> wrote: > Problem solved! Thanks :) > > I tried your solution and I work! > I also noticed that I need to re-create/import project from source > once agina in order to solve the

[android-developers] Re: problem Porting to 0.9 sdk, anyone please guide me... thanks...

2008-08-27 Thread Wesley
hi all, any idea what class has been replace by this class?? >> android.app.ActivityPendingResult; Wesley. On Thu, Aug 28, 2008 at 9:50 AM, Wesley <[EMAIL PROTECTED]> wrote: > hi all, > > Thanks for the reply... > > I will try it out... Hopefully, I don't have to go for the worst worst > case

[android-developers] Re: pop up menu

2008-08-27 Thread Andrew
Yes, I got the reason that I override below function. onMenuItemSelected(int featureId, MenuItem item) Default implementation of onMenuItemSelected(int, MenuItem) for activities. On Aug 28, 12:56 pm, Andrew <[EMAIL PROTECTED]> wrote: >     public void onCreateContextMenu(Contex

[android-developers] run time exceptional error

2008-08-27 Thread patelpower
Hello Everyone, i am new to android and i am trying to extract the metadata of the mp3 file i have writtten piece of the code as per the follows but its giving the tuntime error in the setDataSource so can anyone let me know what could be the problem. the code is follow: nMetaDataDet

[android-developers] Re: MediaRecord Audio - working example? / raw data stream onPictureTaken()? / Bug in Pictures application?

2008-08-27 Thread Reto Meier
Hi Justin, I've tried explicitly including the display name (and artist and album) into the new ContentValue but still end up with exactly the same error on the ContentResolver.insert call. On Aug 27, 10:56 pm, "Justin (Google Employee)" <[EMAIL PROTECTED]> wrote: > > Error: > > > 08-24 19:27:1

[android-developers] Re: Resetting Preferences?

2008-08-27 Thread Mark Hansen
Awesome thanks :) On Aug 28, 12:33 am, "Romain Guy" <[EMAIL PROTECTED]> wrote: > Hi, > > Simply launch the emulator using the -wipe-data flag: > > # emulator -wipe-data > > I believe the Eclipse plugin has an option to do this. You can also > manually delete the directory ~/.android. > > On Wed,

[android-developers] Re: pop up menu

2008-08-27 Thread Andrew
public void onCreateContextMenu(ContextMenu menu, View view, ContextMenuInfo menuInfo) { Log.d("", "create pop up menu"); Above log can be printed. And below log can not. - public boolean onCo

[android-developers] Re: onContextItemSelected does not work

2008-08-27 Thread Andrew
public void onCreateContextMenu(ContextMenu menu, View view, ContextMenuInfo menuInfo) { Log.d("", "create pop up menu"); Above log can be printed. And below log can not. - public boolean onCo

[android-developers] Re: Browser crash

2008-08-27 Thread Brett Chabot
Yes, please do submit a bug in the tracker. Thanks for the report. Regards, Brett. On Aug 27, 2:51 pm, qvark <[EMAIL PROTECTED]> wrote: > The browser crash when openingwww.sourceforge.net. Below is de logcat > output. Should I create a new issue in the tracker? > > 08-27 21:45:03.205: INFO/Activ

[android-developers] Re: Resetting Preferences?

2008-08-27 Thread Romain Guy
Hi, Simply launch the emulator using the -wipe-data flag: # emulator -wipe-data I believe the Eclipse plugin has an option to do this. You can also manually delete the directory ~/.android. On Wed, Aug 27, 2008 at 9:21 PM, Mark Hansen <[EMAIL PROTECTED]> wrote: > > Can someone give me some dir

[android-developers] Resetting Preferences?

2008-08-27 Thread Mark Hansen
Can someone give me some direction on how to restore the emulators preferences back to default? I'm afraid to just start deleting files at random :) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers"

[android-developers] Re: pop up menu

2008-08-27 Thread Andrew
Thanks for your help. I tried according to your comments. Yes the context menu is what I want. But there is another question. I can't get the item selected event using the overrided function "onContextItemSelected(MenuItem item)". This function will never be called. On Aug 26, 8:11 pm, Mark Murp

[android-developers] onContextItemSelected does not work

2008-08-27 Thread Andrew
My program has a contextmenu. It can pop up when I press and hold the list view. But below function can't be called when I select one menu item. public boolean onContextItemSelected(MenuItem item) Please give some advise. Thanks. --~--~-~--~~~---~--~~ You receive

[android-developers] Re: HttpPost - setting parameters but the web page is not receiving them?

2008-08-27 Thread Zack
Thanks very much Mark! That works well. On Aug 27, 6:13 pm, Mark Murphy <[EMAIL PROTECTED]> wrote: > Zack wrote: > > I'm definitely missing something here. Seems like a catch 22 to me. > > Can't setEntity w/o setContent w/o magically putting my data in the > > InputStream which comes from the p

[android-developers] Re: problem Porting to 0.9 sdk, anyone please guide me... thanks...

2008-08-27 Thread Wesley
hi all, Thanks for the reply... I will try it out... Hopefully, I don't have to go for the worst worst case(I mean re-do all the thing)... pray for wesley... man... :P... Thanks to all... I will buzz up again if I have problem... Thanks for your times... have a nice day... Wesley. On We

[android-developers] Re: HttpPost - setting parameters but the web page is not receiving them?

2008-08-27 Thread Mark Murphy
Zack wrote: > I'm definitely missing something here. Seems like a catch 22 to me. > Can't setEntity w/o setContent w/o magically putting my data in the > InputStream which comes from the postEntity which comes from the > postRequest... I can't see how to put my sting variables in anywhere. Forg

[android-developers] Re: HttpPost - setting parameters but the web page is not receiving them?

2008-08-27 Thread Zack
Thanks Justin, so is it correct that I need to set the HttpPost entity? HttpPost postRequest = new HttpPost(posturl); InputStream postEntityInStream; HttpEntity postEntity = postRequest.getEntity(); postEntityInStream = postEntity.getContent();

[android-developers] problem with verifier

2008-08-27 Thread chouman82
Anyone know the bases on what the verifier allows and now? I am having problem with verifyError on certain classes. Anyone else have faced this issue? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Develope

[android-developers] Re: issues with setPhotoData() and loadContactPhoto()

2008-08-27 Thread kingkung
Cool, gotcha, thanks. On Aug 27, 5:12 pm, "Megha Joshi" <[EMAIL PROTECTED]> wrote: > You don't need to manually type the uris.. as I said before you can use > ContentUris.withAppendedId(People.CONTENT_URI, ) > > More in the docs/examples > here:http://code.google.com/android/devel/data/contentpr

[android-developers] Re: issues with setPhotoData() and loadContactPhoto()

2008-08-27 Thread Megha Joshi
You don't need to manually type the uris.. as I said before you can use ContentUris.withAppendedId(People.CONTENT_URI, ) More in the docs/examples here: http://code.google.com/android/devel/data/contentproviders.html Most of the times you could get the base URIs and use withApendedPath() or withA

[android-developers] Re: issues with setPhotoData() and loadContactPhoto()

2008-08-27 Thread kingkung
Got it, thanks. I just did Uri.parse() on that a string containing "content://...". It would certainly be nice if we didn't have to manually type that entire URI address in... some way we could access the ENTIRE Uri for People, Phones, etc. Even referencing People.CONTENT_URI.getPath() fails to

[android-developers] Re: Could not fine HelloAndroid.apk when lauching the HelloAndroid example

2008-08-27 Thread Gil
Xavier, I'm using the English version of Windows XP (I never switched to any another locale) and I'm in the Pacific timezone and yet I had this problem this morning. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "An

[android-developers] Re: issues with setPhotoData() and loadContactPhoto()

2008-08-27 Thread Megha Joshi
Yes it would crash, because then the Uri value you get does not include the base contacts uri...which is content://contacts. The uri value should be something like: content://contacts/people/ As long as the Uri value is in this format and the person_id is present in the content provider it should

[android-developers] Re: issues with setPhotoData() and loadContactPhoto()

2008-08-27 Thread kingkung
If you try that code in your demo (and print out the Uri for debugging), it will crash with a null pointer exception. I also tried using Uri.Builder to rebuild the contact Uri, and that didn't work either. On Aug 27, 4:31 pm, kingkung <[EMAIL PROTECTED]> wrote: > /people/189 is the uri i get. >

[android-developers] Re: issues with setPhotoData() and loadContactPhoto()

2008-08-27 Thread kingkung
/people/189 is the uri i get. On Aug 27, 4:24 pm, "Megha Joshi" <[EMAIL PROTECTED]> wrote: > You definitely don't need to store the URI, what are the first and second > URI values that you get? > > 2008/8/27 kingkung <[EMAIL PROTECTED]> > > > > > I added one simple line to the demo and it crashed

[android-developers] Re: Could not fine HelloAndroid.apk when lauching the HelloAndroid example

2008-08-27 Thread Xavier Ducrohet
Hello, it looks like the problem lies with keytool, which is part of the JDK. I changed my windows XP computer to Thai and created a keystore with a dummy key. While still in the Thai region settings, listing the key showed: Creation date: 27 ╩.ñ. 2551 Valid from: Mon Aug 27 15:59:17 PDT 1951 un

[android-developers] Re: issues with setPhotoData() and loadContactPhoto()

2008-08-27 Thread Megha Joshi
You definitely don't need to store the URI, what are the first and second URI values that you get? 2008/8/27 kingkung <[EMAIL PROTECTED]> > > I added one simple line to the demo and it crashed with a null pointer > exception. Apparently I can't recreate a second Uri from an original > Uri. > >

[android-developers] Re: HttpPost - setting parameters but the web page is not receiving them?

2008-08-27 Thread Justin (Google Employee)
"params" aren't what you think they are, take a look at http://code.google.com/android/reference/org/apache/http/params/HttpParams.html . You're looking for http://code.google.com/android/reference/org/apache/http/HttpEntity.html . Cheers, Justin Android Team @ Google On Aug 27, 10:03 am, Zack

[android-developers] Re: issues with setPhotoData() and loadContactPhoto()

2008-08-27 Thread kingkung
I added one simple line to the demo and it crashed with a null pointer exception. Apparently I can't recreate a second Uri from an original Uri. private void readContact(Uri uri) { ImageView i = (ImageView) findViewById(R.id.image); Uri uri2 = Uri.parse(uri.getEncodedPath()); Bitma

[android-developers] Re: android.view.WindowLeaked when onPause() is called

2008-08-27 Thread Romain Guy
Or better yet, use managed dialogs. Look at the javadoc for the Activity class for more information. You can also look at the API demos. On Wed, Aug 27, 2008 at 3:49 PM, Justin (Google Employee) <[EMAIL PROTECTED]> wrote: > > You need to shut down the dialog in your onPause method. Use cancel() >

[android-developers] Re: android.view.WindowLeaked when onPause() is called

2008-08-27 Thread Justin (Google Employee)
You need to shut down the dialog in your onPause method. Use cancel() or dismiss() depending on your use case. View normally shut themselves down automagically, but I think dialogs are special because they're not part of the view tree of the content view of the hosting activity. Cheers, Justin An

[android-developers] Re: Errors with android httpclient (Thread forbids HTTP requests)

2008-08-27 Thread Justin (Google Employee)
Can you provide the output from logcat? Is in your manifest file? Cheers, Justin Android Team @ Google On Aug 27, 12:51 pm, androidETuser <[EMAIL PROTECTED]> wrote: > I am trying to make HTTP requests thru android APis. But I am getting > some error. > > Did any one saw this error before? Can s

[android-developers] Re: Browser crash

2008-08-27 Thread Justin (Google Employee)
Please also use attach the output of 'adb bugreport' to the bug. Cheers, Justin Android Team @ Google On Aug 27, 3:08 pm, "Megha Joshi" <[EMAIL PROTECTED]> wrote: > Yes, I was able to reproduce this issue... please log it in the issue > tracker... > > 2008/8/27 qvark <[EMAIL PROTECTED]> > > > >

[android-developers] Re: Feature Request: Virtual Contacts Content Provider

2008-08-27 Thread jtaylor
p.s. I guess if there's time at this late date. If not, then maybe the next version of Android since it's such a big thing. - Juan T. On Aug 27, 5:20 pm, jtaylor <[EMAIL PROTECTED]> wrote: > Yes, that's the point, not to mix them. So two different contact > providers separates the two differen

[android-developers] Re: Browser crash

2008-08-27 Thread Megha Joshi
Yes, I was able to reproduce this issue... please log it in the issue tracker... 2008/8/27 qvark <[EMAIL PROTECTED]> > > The browser crash when opening www.sourceforge.net. Below is de logcat > output. Should I create a new issue in the tracker? > > 08-27 21:45:03.205: INFO/ActivityManager(51): S

[android-developers] Re: Shared library/separate module not found

2008-08-27 Thread Justin (Google Employee)
Its undocumented and I guess its actually in an internal package in android.jar. Either is an indication of an API that shouldn't be used. Cheers, Justin Android Team @ Google On Aug 26, 12:13 am, deviand <[EMAIL PROTECTED]> wrote: > Hi Justin! > > I can't find android.awt anywhere (documentatio

[android-developers] Re: MediaRecord Audio - working example? / raw data stream onPictureTaken()? / Bug in Pictures application?

2008-08-27 Thread Justin (Google Employee)
> Error: > > 08-24 19:27:18.675: ERROR/Database(178): Error inserting title=Content > Creation No.5 date_added=1219598838 _display_name= album_id=2 > title_key= - E C O 1 C O - > K 1 ) O 9 E C C E &„ artist_id=3 using INSERT INTO > audio_meta(title, date_added, _display_na

[android-developers] Browser crash

2008-08-27 Thread qvark
The browser crash when opening www.sourceforge.net. Below is de logcat output. Should I create a new issue in the tracker? 08-27 21:45:03.205: INFO/ActivityManager(51): Starting activity: Intent { action=android.intent.action.VIEW categories={android.intent.category.BROWSABLE} data=http:// source

[android-developers] Attempt to include a core VM class in something other than a core library

2008-08-27 Thread Oscar Castaneda
Hi, I'm building a reduced set of Tuscany modules to get a sample Tuscany application running on Android. However, building results in the error shown below. How can I pass the "--core-library" option to the compiler and would this be a solution? The problem is arising when processing class files

[android-developers] anyone has problem with verifyError?

2008-08-27 Thread chouman82
Anyone has problem using third party JAR file? I can't use external JAR, running into VerifyError. 08-27 00:08:20.312: WARN/dalvikvm(444): VFY: unable to find class referenced in signature (Lorg/jivesoftware/smack/Roster;) 08-27 00:08:20.312: WARN/dalvikvm(444): VFY: unable to resolve virtual met

[android-developers] Re: Feature Request: Virtual Contacts Content Provider

2008-08-27 Thread jtaylor
Then for security in this Virtual Contacts Content Provider, have signed certificates in some way. - Juan On Aug 27, 5:20 pm, jtaylor <[EMAIL PROTECTED]> wrote: > Yes, that's the point, not to mix them. So two different contact > providers separates the two different types of contacts. > > If t

[android-developers] Re: Feature Request: Virtual Contacts Content Provider

2008-08-27 Thread jtaylor
Yes, that's the point, not to mix them. So two different contact providers separates the two different types of contacts. If the other type of contact provider (not for personal contacts) called the Virtual Contacts Content Provider isn't provided, then developers have to make their own content p

[android-developers] Re: Activity Question

2008-08-27 Thread Gil
Thanks hackbod, I understand that the app is uninstalled and then reinstalled when started from Eclipse. I guess what I did not understand is that when you launch the app from Eclipse the behavior is different (as outlined in the sequence of steps to reproduce the problem I posted earlier) than wh

[android-developers] Re: Activity Question

2008-08-27 Thread webmonkey
> The behavior in Eclipse is correct. Each time you run from Eclipse, > you are uninstalling and reinstalling the app, so it will be started > completely fresh. True, and I wouldn't expect Eclipse to go back to where you left. But the fact still is that in this freshly started app the problem ab

[android-developers] Re: Activity Question

2008-08-27 Thread hackbod
On Aug 27, 1:37 pm, Gil <[EMAIL PROTECTED]> wrote: > Justin: Given what webmonkey stated I removed all the launch flags > from all the activities in the manifest file. The behavior seems > correct now if I start the app from the Home screen but not if I > launch the app from Eclipse. The behavior

[android-developers] Re: Manually restarting an Activity

2008-08-27 Thread webmonkey
I know it is all software based in the emulator but to my surprise I saw an small increase in speed when using Canvas.drawBitmapMesh with FEATURE_OPENGL. But as I mentioned, I can do without so it is not a big problem. Thanks On Aug 27, 10:21 pm, hackbod <[EMAIL PROTECTED]> wrote: > I think you

[android-developers] Re: Feature Request: Virtual Contacts Content Provider

2008-08-27 Thread hackbod
On Aug 27, 1:26 pm, jtaylor <[EMAIL PROTECTED]> wrote: > Also to mention that there should be big differences. Such as that > Virtual Contacts don't have a phone number. It sounds to me like you are talking about a different kind of content provider, not the normal contacts provider. > You may p

[android-developers] Re: active note application

2008-08-27 Thread Megha Joshi
You can use the addSubMenu() method of Menu class, alternately you can define submenus in XML. http://code.google.com/android/reference/android/view/Menu.html Also, see how its done in ApiDemos>app>Menu sample code. 2008/8/26 jalandar <[EMAIL PROTECTED]> > > Hi > I am junior andriod developer. >

[android-developers] Re: Errors with android httpclient (Thread forbids HTTP requests)

2008-08-27 Thread webmonkey
If you run the call in a separate thread it will work. On Aug 27, 9:51 pm, androidETuser <[EMAIL PROTECTED]> wrote: > I am trying to make HTTP requests thru android APis. But I am getting > some error. > > Did any one saw this error before? Can someone help me out here? > > Here is the code I am

[android-developers] Re: Activity Question

2008-08-27 Thread Gil
webmonkey: I confirm the behavior you are describing. If the application is started from Eclipse it behaves the way I described above. Once I start it from the Home screen the problem goes away. Justin: Given what webmonkey stated I removed all the launch flags from all the activities in the mani

[android-developers] Errors with android httpclient (Thread forbids HTTP requests)

2008-08-27 Thread androidETuser
I am trying to make HTTP requests thru android APis. But I am getting some error. Did any one saw this error before? Can someone help me out here? Here is the code I am running. This code executed when the sub activitilty is completed and the callback is called. protected void onActivityRes

[android-developers] Re: Feature Request: Virtual Contacts Content Provider

2008-08-27 Thread jtaylor
Also to mention that there should be big differences. Such as that Virtual Contacts don't have a phone number. You may press a button to put a virtual contact in your Personal Contacts though. Anyway, I think this is very important. This was an issue with the GTalkService problem I believe. But ho

[android-developers] Re: Manually restarting an Activity

2008-08-27 Thread hackbod
I think you have put the cart a little before the horse here. :) I wouldn't count on FEATURE_OPENGL speeding up your app... certainly, until you are running on actual hardware with graphics acceleration, you really can't know how much it will help. I would really suggest on doing anything at al

[android-developers] Feature Request: Virtual Contacts Content Provider

2008-08-27 Thread jtaylor
The problem with Contacts in mobile devices is that there are two types of Contacts. One is what I call Personal Contacts (family and friends) and the other is Virtual Contacts (social app friends/ multiplayer games). The Virtual Contacts don't go in the same place as Personal Contacts. So where d

[android-developers] Re: 0.9 SDK Build Error

2008-08-27 Thread Gil
Thanks Ralf! That solved the problem. --~--~-~--~~~---~--~~ 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 from this group,

[android-developers] Re: Manually restarting an Activity

2008-08-27 Thread webmonkey
I want to switch OpenGL on and off in my activity, because there are moments that would really benefit from the acceleration, even if that means re-starting the activity (my app goes through the cycle pretty fast). But there are also moments where I can't use OpenGL because it does not support all

[android-developers] Re: Simulator is slow to start up

2008-08-27 Thread Ralf
Just out of curiosity, how long is long? One, two, five, ten minutes? For me it usually takes one to three minutes to start the emulator. The good news is once it's started, you don't have to close it, eclipse will know how to reuse it for each run. R/ On Tue, Aug 26, 2008 at 9:19 PM, kevinr <[E

[android-developers] Re: Crash reading by 16384 of file

2008-08-27 Thread Ralf
Please file a bug in the tracker with a little snippet of code to reproduce it. R/ On Wed, Aug 27, 2008 at 9:06 AM, Jon Webb <[EMAIL PROTECTED]> wrote: > > BTW, I tracked the fault down to a bug in the Android SDK. It is that > InputStreamReader.read(char[], int, int) doesn't always work across

[android-developers] Re: Problem 2nd launch of my application

2008-08-27 Thread bleucalme
I fixed my problem. I had a thread that was still running when I taught my application was closed. Closing this thread in "OnDestroy()" workded (like LunarView example). Thanks everybody On Aug 27, 12:26 pm, hackbod <[EMAIL PROTECTED]> wrote: > Seeing the process running doesn't mean anything. >

[android-developers] Tool to generate callback listeners from AIDL

2008-08-27 Thread Josh Guilfoyle
I wrote a tool to generate extended RemoteCallbackList classes from an AIDL interface for use in services that implement listeners. The tool can be found here: http://android-random.googlecode.com/svn/trunk/aidl-cblistsub/aidl-cbliststub.pl With my full post here: http://devtcg.blogspot.com/2008

[android-developers] Re: 0.9 SDK Build Error

2008-08-27 Thread Ralf
Simply remove the "debug.keystore" in ~/.android and it will be re-created with an updated expiration date. R/ On Wed, Aug 27, 2008 at 9:21 AM, Gil <[EMAIL PROTECTED]> wrote: > > This morning I ran into the following error when I initiated the first > build of the day: > > Error generating final

[android-developers] issues with setPhotoData() and loadContactPhoto()

2008-08-27 Thread kingkung
I'm having trouble getting the new contact photo methods for 0.9 beta to work correctly. This is what I do currently: private static boolean storePhoto(Context context, AndroidContact ac,Uri personUri) { byte[] bytes = ExternalServices.retrieveBytesFromURL(ac.pho

[android-developers] Re: Could not fine HelloAndroid.apk when lauching the HelloAndroid example

2008-08-27 Thread Ralf
Please file a bug in the tracker. Also please specify which original timezone, locale and your operating system in the bug report so that we can try to reproduce it. R/ On Wed, Aug 27, 2008 at 8:58 AM, Vittee <[EMAIL PROTECTED]> wrote: > > Problem solved! Thanks :) > > I tried your solution and

[android-developers] Re: Manually restarting an Activity

2008-08-27 Thread Justin (Google Employee)
You could have Activity A start Activity B and after starting B calling finish(). Then have B, perhaps as the result of a button press, start a new instance of A. Of course, finish() won't result in onSaveInstanceState being called, which I believe is when a configuration change (because naturally

[android-developers] Re: Generic ADT problem?

2008-08-27 Thread Megha Joshi
Did you successfully install the new ADT plugin? Someone on the forum had a similar issue and it was fixed by deleting the debug.keystore file ( details in the link below). http://code.google.com/android/intro/develop-and-debug.html#signing 2008/8/26 Teo Hong Siang <[EMAIL PROTECTED]> > > Hi

[android-developers] Re: Could not fine HelloAndroid.apk when lauching the HelloAndroid example

2008-08-27 Thread Vittee
Problem solved! Thanks :) I tried your solution and I work! I also noticed that I need to re-create/import project from source once agina in order to solve the problem. bottom line... when creating a project in Eclipse the Windows system locale and location must be English, United States. shoul

[android-developers] Re: Manually restarting an Activity

2008-08-27 Thread Mark Murphy
> A configuration change as described in: > > http://code.google.com/android/reference/android/app/Activity.html#ConfigurationChanges > > "Unless you specify otherwise, a configuration change (such as a > change in screen orientation, language, input devices, etc) will cause > your current activit

[android-developers] Re: Manually restarting an Activity

2008-08-27 Thread webmonkey
A configuration change as described in: http://code.google.com/android/reference/android/app/Activity.html#ConfigurationChanges "Unless you specify otherwise, a configuration change (such as a change in screen orientation, language, input devices, etc) will cause your current activity to be dest

[android-developers] Re: Using the ItemizedOverlay and OverlayItem

2008-08-27 Thread Chris Chiappone
Same problem here, i converted code normal overlay code that worked in order to use the "recommended" ItemizedOverlay. Can anyone confirm that this is a bug or are we just doing something wrong. Thanks. On Tue, Aug 26, 2008 at 9:52 AM, Guillaume Perrot <[EMAIL PROTECTED]> wrote: > > Hi, > I hav

[android-developers] Re: Menu bug?

2008-08-27 Thread Megha Joshi
2008/8/26 android_dev <[EMAIL PROTECTED]> > > Menu does not show up. > > If the focus is on an EditText field with android:password="true", > then hitting the Menu key does not show the menu options for that > screen. If the focus is on some other field, then the menu shows up. > > Bug? I was no

[android-developers] Re: Manually restarting an Activity

2008-08-27 Thread Mark Murphy
> Is there a way for an Activity to restart itself, so that you go > trough a similar cycle that you get when there is a configuration > change? U...not sure what you mean by "configuration change", but if your activity calls finish(), it will close up and exit the activity. At least in M5, i

[android-developers] Manually restarting an Activity

2008-08-27 Thread webmonkey
Is there a way for an Activity to restart itself, so that you go trough a similar cycle that you get when there is a configuration change? Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" g

[android-developers] Re: Activity Question

2008-08-27 Thread webmonkey
Hi Gil, You probably have the exactly same issue that is discussed in: http://groups.google.com/group/android-developers/browse_thread/thread/112f3eb6b9b47d29# Like Justin said, there is no need to use singleTask, singleTop or any other special flags. It has something to do with the way Eclipse

[android-developers] android.view.WindowLeaked when onPause() is called

2008-08-27 Thread snowcrash
hi, i have an application running a background thread to do xml-parsing while the ui-thread displays a progressdialog. the activity has a handler to queue runnables from the other thread, mainly to display messages. when the xml-thread is finished and the activity is left using the back button on

[android-developers] Re: Could not fine HelloAndroid.apk when lauching the HelloAndroid example

2008-08-27 Thread Gil
I'm having the same problem today. --~--~-~--~~~---~--~~ 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 from this group, se

[android-developers] Re: Activity Question

2008-08-27 Thread Justin (Google Employee)
The answer is that singleTask and singleTop are working as intended. Basically, you're overthinking what you need to do. Don't use singleTask for your base Activity, just add the following intent- filter to the activity you're using singleTop with.

[android-developers] Re: location is always latitude 0 longitude 0 altitude 10 in v0.9

2008-08-27 Thread Zack
I'm a beginner so maybe this isn't helpful but testLocation.setLatitude(45.000); testLocation.setLongitude(-127.000); testLocation.setTime(System.currentTimeMillis()); then increment each setting a little bit or random amount. on the next

[android-developers] Re: ListView - If you have a item that can focus you can select the Item

2008-08-27 Thread Romain Guy
> So, in conclusion, I can have a focusable item or a focusable child > into the item but not both. No, items in a ListView are not focusable by default, they are selectable. So an item can be focusable (it gets focus or one of its children gets focus) OR selectable, but not both. You can make th

[android-developers] Re: ListView - If you have a item that can focus you can select the Item

2008-08-27 Thread sacoskun
Hello marielisacr, "That means, for example, that if I want to have a list of songs, where if I select one I play it, and each one have a button to add to one playlist is not possible? " If I were you, I would go for standard select handler in order to play the selected song and I would come up

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

2008-08-27 Thread jlapenna
Yeah, you're going to need to add it to your build path. You can do that by right clicking on your project in the Package Explorer, selecting Build Path -> Configure Build Path, clicking on Libraries then clicking "Add JARs." If nothing is listed you need to add the libraries to your project, you

[android-developers] HttpPost - setting parameters but the web page is not receiving them?

2008-08-27 Thread Zack
Thanks for helping. in m5 : client = new HttpClient(); pmethod = new PostMethod(posturl); pmethod.addParameter("PacketNum", mStringPacketNumber); ...other parameters set here... int statusCode = client.executeMethod(

[android-developers] Re: Developing a 2D game on Android

2008-08-27 Thread hackbod
If you want to do high performance graphics, you probably want to use OpenGL since that will be hardware accelerated. You can use OpenGL for 2d as much as 3d graphics. Otherwise, the high-level 2d APIs are very extensive; the main API is android.graphics.Canvas, with a number of secondary classe

[android-developers] Re: ListView - If you have a item that can focus you can select the Item

2008-08-27 Thread marielisacr
Hey Romain thanks for the answer, So, in conclusion, I can have a focusable item or a focusable child into the item but not both. That means, for example, that if I want to have a list of songs, where if I select one I play it, and each one have a button to add to one playlist is not possible?

[android-developers] Re: Problem 2nd launch of my application

2008-08-27 Thread hackbod
Seeing the process running doesn't mean anything. Please read: http://code.google.com/android/intro/appmodel.html On Aug 27, 8:13 am, bleucalme <[EMAIL PROTECTED]> wrote: > First, thank you for those quick replies. > > You're right, my application is still running after I taught it was > closed.

[android-developers] Re: Comunication Server->Phone: SMS directed to an application (0.9 SDK)

2008-08-27 Thread jtaylor
SMS is probably problematic on more than one level. There are HTTP api's and that's what you want. JAVA has an api and Apache has one as well. On Aug 26, 9:35 am, Cristina <[EMAIL PROTECTED]> wrote: > Hi! > > We are designing an application for android phones. In our application > there is a c

[android-developers] 0.9 SDK Build Error

2008-08-27 Thread Gil
This morning I ran into the following error when I initiated the first build of the day: Error generating final archive: Debug Certificate expired on 8/27/08 9:06 AM! I try restarting Eclipse but that did not help. I'm stuck. --~--~-~--~~~---~--~~ You received thi

[android-developers] Re: Crash reading by 16384 of file

2008-08-27 Thread Jon Webb
BTW, I tracked the fault down to a bug in the Android SDK. It is that InputStreamReader.read(char[], int, int) doesn't always work across buffer boundaries. Sometimes a NUL (0) gets inserted in the char[] array. I changed my code so that it uses InputStreamReader.read() repeatedly when I have to r

[android-developers] Re: Simulator is slow to start up

2008-08-27 Thread Romain Guy
Unfortunately the Android SDK contains an emulator, not a simulator. That means the software emulates every CPU instruction and all the hardware you would find in a phone. This requires a lot of host CPU and RAM to work properly. This is not fast but this is as close as it gets from real phones.

[android-developers] Re: ListView - If you have a item that can focus you can select the Item

2008-08-27 Thread Romain Guy
Hi, In a ListView, items can either have focus (they are focused themselves or contain a focused child) *or* be selected. They cannot be both at the same time. If you *really* want to do this (which I don't recommend), you can use a special XML attribute to tell the item to copy its children stat

[android-developers] Re: Is android:choiceMode implemented?

2008-08-27 Thread Romain Guy
It is a bug in the SDK 0.9 that we fixed since then. Sorry for the inconvenience. The next version of the SDK will provide you with the fix. On Wed, Aug 27, 2008 at 8:30 AM, Guillaume Perrot <[EMAIL PROTECTED]> wrote: > > I found that single choice demo doesn't work... > I exepcted that the check

[android-developers] Re: How to call MAP application to pick a location ?

2008-08-27 Thread Guillaume Perrot
A standard intent to pick a location is probably not available in this SDK but you still can "easily" implement it: - Extend MapActivity and edit the manifest file to include an intent filter with ACTION_PICK and the geo pattern. - Use a custom Overlay which overrides onTap (GeoPoint,MapView): whe

[android-developers] Re: Is android:choiceMode implemented?

2008-08-27 Thread Guillaume Perrot
I found that single choice demo doesn't work... I exepcted that the checkbox will change its graphical state when pressing it but nothing happen neither in multiple choice demo nor in single choice demo. Is this a bug ? On Aug 27, 5:20 pm, Guillaume Perrot <[EMAIL PROTECTED]> wrote: > I tested Ap

[android-developers] Re: Is android:choiceMode implemented?

2008-08-27 Thread Guillaume Perrot
I tested ApiDemos -> "11. Multiple Choice Lists" but clicking on an item or pressing enter (or dpad_center) on an item does nothing On Aug 26, 8:24 pm, "Romain Guy" <[EMAIL PROTECTED]> wrote: > Please refer to the ApiDemos, you will need to use a layout file for > your list items that support

[android-developers] Re: Problem 2nd launch of my application

2008-08-27 Thread bleucalme
First, thank you for those quick replies. You're right, my application is still running after I taught it was closed. For people having similar problems, in Eclipse, we can see active process under "DDMS"--> "emulator". I'll work on my bug and keep you informed. Thanks. On Aug 26, 3:48 pm, St

[android-developers] How to call MAP application to pick a location ?

2008-08-27 Thread Magellan
Hi, I'm trying to call Map Application trought an Intent, to pick a point on the map, and return it to my own application. The needs are : - setting the current location of the map (to center it on, on Map application startup) - the user will pick a new location on the map - the Map application

  1   2   >