[android-developers] Re: .9 SDK Questions
On Aug 20, 9:16 pm, tberthel [EMAIL PROTECTED] wrote: 1. The emulator to run on a system much faster than the real device. 2. Instrumentation to control timing. An emulator that accurately models the performance of real hardware will not be able to run in realtime on any machine sitting on someone's desk. And this still ignores things like graphics hardware acceleration (which can have a huge impact since it can do things like relieve the CPU of basically all work in compositing the screen whenever it changes), DSPs, etc. --~--~-~--~~~---~--~~ 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, send email to [EMAIL PROTECTED] Announcing the new Android 0.9 SDK beta! http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Activity Question
The normal behavior would be for the user to return to activity B. You must be doing something more than you describe here. Fwiw, this might be useful: http://code.google.com/android/intro/appmodel.html Also from a command like prompt, adb shell dumpsys activity while the emulator is running will let you see the current state of the activity stack in the system. On Aug 20, 9:30 pm, Gil [EMAIL PROTECTED] wrote: I have an Activity A (the main activity) which invokes startActivityForResult with an ACTION_EDIT Intent and the associated data URI, to launch Activity B. While Activity B is displayed, the user hits the Home button. From the home screen if I click my application icon the application displays Activity A which is my main activity. I would like it to display Activity B and restore the data URI of the item I was editing. What is the correct way to implement this behavior? --~--~-~--~~~---~--~~ 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, send email to [EMAIL PROTECTED] Announcing the new Android 0.9 SDK beta! http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Shared library/separate module not found
The package com.google.android.maps has also been removed, but it is used in ApiDemos and the application can be installed. The package com.google.android.gtalkservice is in the same situation. I don't understand why when java.awt is used the behavior is different. --~--~-~--~~~---~--~~ 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, send email to [EMAIL PROTECTED] Announcing the new Android 0.9 SDK beta! http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: sqlite3?
I need to access the system table in data/data/ com.android.providers.settings/databases/settings.db in the adb shell. I had earlier did this in the m5 to insert the 'http_proxy' field, but now i can't invoke sqlite3 from the adb shell. Please assist. On Aug 21, 1:30 am, Justin (Google Employee) [EMAIL PROTECTED] wrote: http://www.google.com/search?hl=enq=sqlite+windowsbtnG=Google+Search Cheers, Justin Android Team @ Google On Aug 20, 12:14 pm, Bob [EMAIL PROTECTED] wrote: I too wasted time trying to figure out whysqlite3was not found using the Windows 0.9 Beta SDK. When's the next SDK release? --~--~-~--~~~---~--~~ 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, send email to [EMAIL PROTECTED] Announcing the new Android 0.9 SDK beta! http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] -http-proxy problems
I am using a Win XP machine, I started the emulator with : emulator - http-proxy http://proxy:port but the default browser does'nt work (can't find message). Please assist. --~--~-~--~~~---~--~~ 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, send email to [EMAIL PROTECTED] Announcing the new Android 0.9 SDK beta! http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: -http-proxy problems
Try it this way: http://openhandsetmagazine.com/2007/11/tips-howto-connect-android-emulator-behind-proxy/ On Aug 21, 9:05 am, shan [EMAIL PROTECTED] wrote: I am using a Win XP machine, I started the emulator with : emulator - http-proxy http://proxy:port but the default browser does'nt work (can't find message). Please assist. --~--~-~--~~~---~--~~ 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, send email to [EMAIL PROTECTED] Announcing the new Android 0.9 SDK beta! http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: 0.9 and simple database management issue ?
Thanks! I am gonna watch. I didn't know that. Rgds C. On Aug 20, 11:43 pm, Megha Joshi [EMAIL PROTECTED] wrote: Can you compare your code against the NotePad tutorial and see , NotePad tutorial uses SQliteOpenHelper... On Wed, Aug 20, 2008 at 11:10 AM, 6real [EMAIL PROTECTED] wrote: Dear all, I am facing an issue (probably simple to solve!) while migrating my app under the last 0.9. Before I was creating and then opening a database. In teh doc I read I saw that now I need to create a class that inheriths from SQLiteOpenHelper. This is what I have done (anonymous class inside a new one) : -- class MyDBHelper extends SQLiteOpenHelper { public MyDBHelper(Context context, String name, CursorFactory factory, int version) { super(context, name, factory, version); } public void onCreate(SQLiteDatabase db) { return; } public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { return; } } Then I instanciate this class dbHelper = new MyDBHelper(launched, Constant.DB_DATABASE_NAME, null, Constant.DB_VERSION); - Now comes the issue, I'd like to execute a SQL request to my DB : myDB = dbHelper.getWritableDatabase(); myDB.execSQL(DELETE FROM + Constant.DB_TABLE_STATIONS + WHERE + Constant.DB_FIELD_S_NETWORK + =' + network + ';); And I have this error ? 08-20 18:07:41.119: ERROR/Database(172): sqlite3_open_v2(/data/data/ com.xirgonium.android/databases/myDB, handle, 6, NULL) failed -- Do you have an idea of the origin ?? Thanks a lot for your help ! --~--~-~--~~~---~--~~ 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, send email to [EMAIL PROTECTED] Announcing the new Android 0.9 SDK beta! http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: REST + JSON Web Service Client
Yes the Yelp.com offer a API with JSON response (http://www.yelp.com/ developers) Cu Christian On 21 Aug., 07:12, Baran [EMAIL PROTECTED] wrote: Anyone having any test web service link that provide response in JSON format. Need one to test the clinet. On Aug 21, 10:00 am, Baran [EMAIL PROTECTED] wrote: Hi, Thanks for the reply, actually I was confused with how we can use JSON. I suppose this is for manipulating the response we get after a successful web service request. Please correct me if I am wrong. Still new to this thing. On Aug 20, 7:00 pm, Mark Murphy [EMAIL PROTECTED] wrote: Baran wrote: Hi, I need to access a .Net web service in Rest format using JSON. I m pretty new to this concept and very much confused about how this works Any one who can give an overview of the two. I need the steps that I need to follow to use JSON. Right now my doubt is how to use JSON to grab to output. Lets say we create a http client and it get the respone now what? How can we use the JSON object to manipulate the response... There is a JSON parser built into Android: http://code.google.com/android/reference/org/json/package-summary.html And there is an HTTP client built into Android: http://code.google.com/android/reference/org/apache/http/package-summ... though you may wish to view the HttpClient documentation here: http://hc.apache.org/ Both of these are open source projects with their own documentation, on top of what is in Android. Both are usable in other Java projects outside of Android. If you have specific questions regarding the use of one or the other, particular as it pertains to Android, write back with the details! -- Mark Murphy (a Commons Guy)http://commonsware.com Warescription: All titles, revisions, ebook formats, just $35/year --~--~-~--~~~---~--~~ 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, send email to [EMAIL PROTECTED] Announcing the new Android 0.9 SDK beta! http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] convert db from mysql to sqlite
Hi. I've big database in mysql, to manage it I'm using phpmysql and I wont to import it in android app. I guess first of all I want to convert it to sqlite format. Is there any easy way to do this? --~--~-~--~~~---~--~~ 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, send email to [EMAIL PROTECTED] Announcing the new Android 0.9 SDK beta! http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: -http-proxy problems
Sorry I forgot to mention i am using the SDK 0.9 beta for Windows which does'nt have sqlite3 embedded. I can't invoke the sqlite3 from the adb shell. I can't access the system table in the /data/.settings.db path. Any solutions? On Aug 21, 12:08 pm, andyn [EMAIL PROTECTED] wrote: Try it this way:http://openhandsetmagazine.com/2007/11/tips-howto-connect-android-emu... On Aug 21, 9:05 am, shan [EMAIL PROTECTED] wrote: I am using a Win XP machine, I started the emulator with : emulator - http-proxy http://proxy:port but the default browser does'nt work (can't find message). Please assist.- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ 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, send email to [EMAIL PROTECTED] Announcing the new Android 0.9 SDK beta! http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: attempt to acquire a reference on a close SQLiteClosable
YIHAAW! that did the trick! i removed all close()-calls on managed Cursors and now it works! Thanx a lot for your effort you guys. So what is the best way to call a Cursor? since i got a meta-database i have quite a few queries where i just get myself a small piece of information and then i don't need the cursor anymore, so i call close() directly after extracting information from it. within an activity, i think the most comfortable way is to call managedQuery() because you don't have to care about exceptions and stuff. but how long will the system try to kkep my cursor available although i don't need it anymore? is the only efficient way to call, get data from and close a cursor through a call to try{ Cursor c = getContentResolver().acquireProvider(uri).query(...); }catch(RemoteException e){...} or are there other ways how i can get a cursor that i can manage myself? Again, thanks a lot for your useful tips. you saved my ass! On Aug 21, 1:58 am, Jeff Hamilton [EMAIL PROTECTED] wrote: If you're using a managed cursor you shouldn't be calling close() or deactivate() on the cursor yourself, since the system will do that for you. If you're not using a managed cursor and you call close() on it you cannot use that cursor again and should make sure that you don't have any observers registered before calling close(), and then explicitly set all references you hold to the cursor to null just to make sure you won't use it again. If you plan on reusing the cursor again, you should call deactivate(), which releases a bunch of resources, but not all of them. A deactivated cursor can't be used again until you call requery() on it. -Jeff On Wed, Aug 20, 2008 at 1:36 AM, simon [EMAIL PROTECTED] wrote: Thanks for your help. But i still don't understand exactly what i'm doing wrong. I'm navigating from Activity1 to Activity2. Then i navigate back to Activity1 by pushing the Back-Button. You say i should overwrite onPause() on Activity2 to release its resources. So the error has nothing to do with Activity1? But i'm already using a managed Cursor plus i'm calling Cursor.close() in onPause() (just to be sure) in Activity2. Other Cursors i am using in other classes also get released (by calling close()) immediately after gathering information from them. so i don't know what i am doing wrong...is close() the wrong function to call? Do i have to release other resources as well? such as ContentProviders? i found out that ContentResolver got a new method called releaseProvider(IContentProvider icp). But it's not documented yet. should it be used to release the ContentProviders? just because i'm interested: why does the system try to acquire a reference on a Cursor if an activity gets closed anyway? i'm getting the following RuntimeException (which gets caused by the Exception i posted earlier): java.lang.RuntimeException: Unable to resume activity {my.package/ my.package.Activity2}: java.lang.IllegalStateException: attempt to acquire a reference on a close SQLiteClosable Why does the system tell me that it's unable to resume an Activity which i just wanted to close by pushing the back button? and what is a close SQLiteClosable? shouldn't it read closeD SQLiteClosable? And if i release Cursors by calling close(), aren't these also close SQLiteClosables which can't be acquired? i just dont get it... I would be happy to get more information about what the system is doing between the Activities and why those strange error messages occur Thanks a lot Simon On Aug 19, 6:05 pm, Justin (Google Employee) [EMAIL PROTECTED] wrote: My guess would be that you have an SQLite cursor that you're not releasing when your Activity loses focus. I believe you have two options. You say that you've tried to handle this in callback functions onRestart, onResume, etc. The problem is you're looking at the wrong end of the lifecycle. When the user hits the 'back' key, onPause is called. In onPause you should handling releasing resources and any other tear-down you need to do. I'd suggest reviewing the Activity lifecycle information (http://code.google.com/android/reference/android/app/Activity.html ) . The other option is to use a managed cursor. To do this call Activity.startManagingCursor(yourCursor). Cheers, Justin Android Team @ Google On Aug 19, 7:16 am, simon [EMAIL PROTECTED] wrote: Hi all! First of all i wanted to say thank you to Google for the new SDK! Lookin forward to the phones! now to my problem: as soon as i push the back button in some of my application's activities, i get the following error: 08-19 14:10:13.050: ERROR/AndroidRuntime(1183): Caused by: java.lang.IllegalStateException: attempt to acquire a reference on a close SQLiteClosable 08-19 14:10:13.050: ERROR/AndroidRuntime(1183): at android.database.sqlite.SQLiteClosable.acquireReference(SQLiteClosable.java:
[android-developers] Re: 0.9 and simple database management issue ? [SOLVED]
Actually the issu was ...; in the rights attributed to the databases directory !!! I have changed the right thanks to a chmod 777 and now it works fine ! I don't understand which user is used when laucnhing the app but my issu is solved. I hope I wont have the same issu on final telephone ! 6real wrote: Still not work :-( I have changes the method to copy the tutorial. Actually it seems the onCreate method is never called, even when I call getWritable or getReadable ! I saw this behaviour thanks to breakpoints in debug mode. Nobody as such issues ? On Aug 21, 9:17�am, 6real [EMAIL PROTECTED] wrote: Thanks! I am gonna watch. I didn't know that. Rgds C. On Aug 20, 11:43�pm, Megha Joshi [EMAIL PROTECTED] wrote: Can you compare your code against the NotePad tutorial and see , NotePad tutorial uses SQliteOpenHelper... On Wed, Aug 20, 2008 at 11:10 AM, 6real [EMAIL PROTECTED] wrote: Dear all, I am facing an issue (probably simple to solve!) while migrating my app under the last 0.9. Before I was creating and then opening a database. In teh doc I read I saw that now I need to create a class that inheriths from SQLiteOpenHelper. This is what I have done (anonymous class inside a new one) : -- � �class MyDBHelper extends SQLiteOpenHelper { � � � �public MyDBHelper(Context context, String name, CursorFactory factory, int version) { � � � � � �super(context, name, factory, version); � � � �} � � � �public void onCreate(SQLiteDatabase db) { � � � � � �return; � � � �} � � � �public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { � � � � � �return; � � � �} � �} Then I instanciate this class �dbHelper = new MyDBHelper(launched, Constant.DB_DATABASE_NAME, null, Constant.DB_VERSION); - Now comes the issue, I'd like to execute a SQL request to my DB : myDB = dbHelper.getWritableDatabase(); � � � � � �myDB.execSQL(DELETE FROM + Constant.DB_TABLE_STATIONS + WHERE + Constant.DB_FIELD_S_NETWORK + =' + network + ';); And I have this error ? 08-20 18:07:41.119: ERROR/Database(172): sqlite3_open_v2(/data/data/ com.xirgonium.android/databases/myDB, handle, 6, NULL) failed -- Do you have an idea of the origin ?? Thanks a lot for your help ! --~--~-~--~~~---~--~~ 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, send email to [EMAIL PROTECTED] Announcing the new Android 0.9 SDK beta! http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: LocationManager - getLastKnownLocation() - NullPointer Exception
Thank you for your reponse. I'm trying to implement the requestUpdates() now. At the moment I'm faced with the follwing problem. I've implemented the LocationListener but always get the following LogCat error. Can't create handler inside thread that has not called Looper.prepare() Well I'm calling my geo class in a thread that was started by a service. At the moment it looks like this. What do I have to change in order to get the listener working? My Geo class: http://paste.pocoo.org/show/80ypWR00yHnHRz9pN7mc/ Regards! On 20 Aug., 18:36, Reto [EMAIL PROTECTED] wrote: The getLastKnownLocation method will return null until the provider you specify has gotten at least one update. In practice that means you need to have an application (any application, doesn't have to be the one your testing) request (and receive) updates at least once in your emulator session before it will getLastKnown will return a value. You can disable the updates after the first return if you want to, in fact that's probably a reasonable way of implementing the 'getCurrentLocation' functionality you're after. Cheers Reto On 20 Aug, 14:21, code_android_festival_way [EMAIL PROTECTED] wrote: Firstly I got the question why I can't get the currentlocationany more. I don't need repeating updates of my position I just need the currentlocation. At the moment I'm using getLastKnownLocation() but I would assume that this position could be very outdated. Furthermore the method getLastKnownLocation() returns me aLocation object that is null. Here is the code that I'm using at the moment: LocationManager lM = (LocationManager)context.getSystemService(context.LOCATION_SERVICE); LocationProvider lP = lM.getProvider(gps); Locationloc = lM.getLastKnownLocation(lP.getName()); String[]location= {String.valueOf(loc.getLongitude()),String.valueOf(loc.getLatitude())}; I've added the following permission to my manifest file: uses-permission android:name=android.permission.ACCESS_LOCATION / uses-permission android:name=android.permission.ACCESS_FINE_LOCATION / uses-permission android:name=android.permission.ACCESS_GPS / uses-permission android:name=android.permission.ACCESS_MOCK_LOCATION / But I'm always getting a Nullpointer Exception using theLocation. (so theLocationreturned is null) Could you give me a hint how I could achieve to get my current/ lastKnownlocationin 0.9? (in M5 everything was fine) Looking forward getting your answers. Regards and happy coding! --~--~-~--~~~---~--~~ 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, send email to [EMAIL PROTECTED] Announcing the new Android 0.9 SDK beta! http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: LocationManager - getLastKnownLocation() - NullPointer Exception
Ok. It was a silly question. Looper.prepare(); added. But I dont get any LocationUpdates. I have pushed locations to the device through the DDMS interface but get no LocationUpdate. On 21 Aug., 11:40, code_android_festival_way [EMAIL PROTECTED] wrote: Thank you for your reponse. I'm trying to implement the requestUpdates() now. At the moment I'm faced with the follwing problem. I've implemented the LocationListener but always get the following LogCat error. Can't create handler inside thread that has not called Looper.prepare() Well I'm calling my geo class in a thread that was started by a service. At the moment it looks like this. What do I have to change in order to get the listener working? My Geo class: http://paste.pocoo.org/show/80ypWR00yHnHRz9pN7mc/ Regards! On 20 Aug., 18:36, Reto [EMAIL PROTECTED] wrote: The getLastKnownLocation method will return null until the provider you specify has gotten at least one update. In practice that means you need to have an application (any application, doesn't have to be the one your testing) request (and receive) updates at least once in your emulator session before it will getLastKnown will return a value. You can disable the updates after the first return if you want to, in fact that's probably a reasonable way of implementing the 'getCurrentLocation' functionality you're after. Cheers Reto On 20 Aug, 14:21, code_android_festival_way [EMAIL PROTECTED] wrote: Firstly I got the question why I can't get the currentlocationany more. I don't need repeating updates of my position I just need the currentlocation. At the moment I'm using getLastKnownLocation() but I would assume that this position could be very outdated. Furthermore the method getLastKnownLocation() returns me aLocation object that is null. Here is the code that I'm using at the moment: LocationManager lM = (LocationManager)context.getSystemService(context.LOCATION_SERVICE); LocationProvider lP = lM.getProvider(gps); Locationloc = lM.getLastKnownLocation(lP.getName()); String[]location= {String.valueOf(loc.getLongitude()),String.valueOf(loc.getLatitude())}; I've added the following permission to my manifest file: uses-permission android:name=android.permission.ACCESS_LOCATION / uses-permission android:name=android.permission.ACCESS_FINE_LOCATION / uses-permission android:name=android.permission.ACCESS_GPS / uses-permission android:name=android.permission.ACCESS_MOCK_LOCATION / But I'm always getting a Nullpointer Exception using theLocation. (so theLocationreturned is null) Could you give me a hint how I could achieve to get my current/ lastKnownlocationin 0.9? (in M5 everything was fine) Looking forward getting your answers. Regards and happy coding! --~--~-~--~~~---~--~~ 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, send email to [EMAIL PROTECTED] Announcing the new Android 0.9 SDK beta! http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] An issue about Typeface
I am porting my application from M5 to 0.9 SDK, and i just meet a problem when i use setTypeface method. I got a textview which its text is bold and italic. I tried these 2 solution, the first one works fine, but the second one just make bold text, not italic. 1. textview.setTypeface(Typeface.DEFAULT, Typeface.BOLD_ITALIC); 2. textview.setTypeface(Typeface.create(Typeface.DEFAULT, Typeface.BOLD_ITALIC)); So the Typeface's create(Typeface family, int style) doesn't work as i hope, i don't know if i misunderstand this method or it is a bug. Comments are appreciate. --~--~-~--~~~---~--~~ 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, send email to [EMAIL PROTECTED] Announcing the new Android 0.9 SDK beta! http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How to display a local file in the browser?
I tried but I can only render plain or simple html content. When emails contain network references (such as images), loadData is not able to retrieve them. I need a local path: reachable from browser where I have rd/wr premission On 21 Ago, 03:34, Gil [EMAIL PROTECTED] wrote: Sorry for my bad English earlier. Recently I had to solve a similar problem. I decided to load the contents of the file myself and then call loadData in an Activity which includes a WebView. That trick worked for me. --~--~-~--~~~---~--~~ 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, send email to [EMAIL PROTECTED] Announcing the new Android 0.9 SDK beta! http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: LocationManager - getLastKnownLocation() - NullPointer Exception
I've added Location loc = new Location(lP.getName()); loc.setLatitude(37.422006); loc.setLongitude(-122.084095); lM.setTestProviderLocation(lP.getName(), loc); but the LocationListener doesnt get called. So I get no location update. On 21 Aug., 11:46, code_android_festival_way [EMAIL PROTECTED] wrote: Ok. It was a silly question. Looper.prepare(); added. But I dont get any LocationUpdates. I have pushed locations to the device through the DDMS interface but get no LocationUpdate. On 21 Aug., 11:40, code_android_festival_way [EMAIL PROTECTED] wrote: Thank you for your reponse. I'm trying to implement the requestUpdates() now. At the moment I'm faced with the follwing problem. I've implemented the LocationListener but always get the following LogCat error. Can't create handler inside thread that has not called Looper.prepare() Well I'm calling my geo class in a thread that was started by a service. At the moment it looks like this. What do I have to change in order to get the listener working? My Geo class: http://paste.pocoo.org/show/80ypWR00yHnHRz9pN7mc/ Regards! On 20 Aug., 18:36, Reto [EMAIL PROTECTED] wrote: The getLastKnownLocation method will return null until the provider you specify has gotten at least one update. In practice that means you need to have an application (any application, doesn't have to be the one your testing) request (and receive) updates at least once in your emulator session before it will getLastKnown will return a value. You can disable the updates after the first return if you want to, in fact that's probably a reasonable way of implementing the 'getCurrentLocation' functionality you're after. Cheers Reto On 20 Aug, 14:21, code_android_festival_way [EMAIL PROTECTED] wrote: Firstly I got the question why I can't get the currentlocationany more. I don't need repeating updates of my position I just need the currentlocation. At the moment I'm using getLastKnownLocation() but I would assume that this position could be very outdated. Furthermore the method getLastKnownLocation() returns me aLocation object that is null. Here is the code that I'm using at the moment: LocationManager lM = (LocationManager)context.getSystemService(context.LOCATION_SERVICE); LocationProvider lP = lM.getProvider(gps); Locationloc = lM.getLastKnownLocation(lP.getName()); String[]location= {String.valueOf(loc.getLongitude()),String.valueOf(loc.getLatitude())}; I've added the following permission to my manifest file: uses-permission android:name=android.permission.ACCESS_LOCATION / uses-permission android:name=android.permission.ACCESS_FINE_LOCATION / uses-permission android:name=android.permission.ACCESS_GPS / uses-permission android:name=android.permission.ACCESS_MOCK_LOCATION / But I'm always getting a Nullpointer Exception using theLocation. (so theLocationreturned is null) Could you give me a hint how I could achieve to get my current/ lastKnownlocationin 0.9? (in M5 everything was fine) Looking forward getting your answers. Regards and happy coding! --~--~-~--~~~---~--~~ 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, send email to [EMAIL PROTECTED] Announcing the new Android 0.9 SDK beta! http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: LocationManager - getLastKnownLocation() - NullPointer Exception
I'm not at a PC I can test with, but try switching the order of your setTestProviderEnabled and setTestProviderStatus commands. I know in my code I've done it the other way around :) On 21 Aug, 11:10, code_android_festival_way [EMAIL PROTECTED] wrote: I've added Location loc = new Location(lP.getName()); loc.setLatitude(37.422006); loc.setLongitude(-122.084095); lM.setTestProviderLocation(lP.getName(), loc); but the LocationListener doesnt get called. So I get no location update. On 21 Aug., 11:46, code_android_festival_way [EMAIL PROTECTED] wrote: Ok. It was a silly question. Looper.prepare(); added. But I dont get any LocationUpdates. I have pushed locations to the device through the DDMS interface but get no LocationUpdate. On 21 Aug., 11:40, code_android_festival_way [EMAIL PROTECTED] wrote: Thank you for your reponse. I'm trying to implement the requestUpdates() now. At the moment I'm faced with the follwing problem. I've implemented the LocationListener but always get the following LogCat error. Can't create handler inside thread that has not called Looper.prepare() Well I'm calling my geo class in a thread that was started by a service. At the moment it looks like this. What do I have to change in order to get the listener working? My Geo class: http://paste.pocoo.org/show/80ypWR00yHnHRz9pN7mc/ Regards! On 20 Aug., 18:36, Reto [EMAIL PROTECTED] wrote: The getLastKnownLocation method will return null until the provider you specify has gotten at least one update. In practice that means you need to have an application (any application, doesn't have to be the one your testing) request (and receive) updates at least once in your emulator session before it will getLastKnown will return a value. You can disable the updates after the first return if you want to, in fact that's probably a reasonable way of implementing the 'getCurrentLocation' functionality you're after. Cheers Reto On 20 Aug, 14:21, code_android_festival_way [EMAIL PROTECTED] wrote: Firstly I got the question why I can't get the currentlocationany more. I don't need repeating updates of my position I just need the currentlocation. At the moment I'm using getLastKnownLocation() but I would assume that this position could be very outdated. Furthermore the method getLastKnownLocation() returns me aLocation object that is null. Here is the code that I'm using at the moment: LocationManager lM = (LocationManager)context.getSystemService(context.LOCATION_SERVICE); LocationProvider lP = lM.getProvider(gps); Locationloc = lM.getLastKnownLocation(lP.getName()); String[]location= {String.valueOf(loc.getLongitude()),String.valueOf(loc.getLatitude())}; I've added the following permission to my manifest file: uses-permission android:name=android.permission.ACCESS_LOCATION / uses-permission android:name=android.permission.ACCESS_FINE_LOCATION / uses-permission android:name=android.permission.ACCESS_GPS / uses-permission android:name=android.permission.ACCESS_MOCK_LOCATION / But I'm always getting a Nullpointer Exception using theLocation. (so theLocationreturned is null) Could you give me a hint how I could achieve to get my current/ lastKnownlocationin 0.9? (in M5 everything was fine) Looking forward getting your answers. Regards and happy coding!- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ 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, send email to [EMAIL PROTECTED] Announcing the new Android 0.9 SDK beta! http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: I can't run m3 simulator after I test 0.9 simulator
[EMAIL PROTECTED] wrote: I decompressed the 0.9 SDK in another directory. After I had run the simulator in 0.9 SDK, I found my m3 simulator didn't work, it stayed in red eye, Do you know how to solve this problem? Thanks. The emulator stores data, such as the stuff you load onto it, in a disk image. http://code.google.com/android/reference/emulator.html#diskimages I would imagine the runtime images differ between SDK releases. Try renaming or deleting the appropriate directory, then running the emulator: Linux and OS X: ~/.android Windows: C:\Documents and Settings\user\Local Settings\Application Data\Android If you are going to be moving back-and-forth between SDK releases frequently, you may wish to try using the -data switch on the emulator, so you can keep separate copies of your M5 and 0.9 emulator images. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 1.1 Published! --~--~-~--~~~---~--~~ 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, send email to [EMAIL PROTECTED] Announcing the new Android 0.9 SDK beta! http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: sqlite3?
shan wrote: I need to access the system table in data/data/ com.android.providers.settings/databases/settings.db in the adb shell. I had earlier did this in the m5 to insert the 'http_proxy' field, but now i can't invoke sqlite3 from the adb shell. Please assist. Use adb pull (or the equivalent IDE action) to download your SQLite database to your development machine. Then use any SQLite client you want (sqlite3 console app, SQLite Manager Firefox extension, etc.). If you make changes you want reflected on the phone, use adb push (or the equivalent IDE action) to put the database back on the phone. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 1.1 Published! --~--~-~--~~~---~--~~ 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, send email to [EMAIL PROTECTED] Announcing the new Android 0.9 SDK beta! http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: I can't run m3 simulator after I test 0.9 simulator
You are in luck, I had similar problem as you and found the solution. Use the wipe data command, it will del all the apps you installed. But at least your emulator will start and you can re-install them.. Windows: emulator -wipe-data Mac/Linux: ./emulator -wipe-data Cheers Eric Portable Electonics Ltd www.hdmp4.com On Aug 21, 8:50 pm, Mark Murphy [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] wrote: I decompressed the 0.9 SDK in another directory. After I had run the simulator in 0.9 SDK, I found my m3 simulator didn't work, it stayed in red eye, Do you know how to solve this problem? Thanks. The emulator stores data, such as the stuff you load onto it, in a disk image. http://code.google.com/android/reference/emulator.html#diskimages I would imagine the runtime images differ between SDK releases. Try renaming or deleting the appropriate directory, then running the emulator: Linux and OS X: ~/.android Windows: C:\Documents and Settings\user\Local Settings\Application Data\Android If you are going to be moving back-and-forth between SDK releases frequently, you may wish to try using the -data switch on the emulator, so you can keep separate copies of your M5 and 0.9 emulator images. -- Mark Murphy (a Commons Guy)http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 1.1 Published! --~--~-~--~~~---~--~~ 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, send email to [EMAIL PROTECTED] Announcing the new Android 0.9 SDK beta! http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: -http-proxy problems
Hm, I don't really know a solution. Maybe you can wait till the next release? It will have sqlite3 included also at the Windows version - http://groups.google.com/group/android-developers/browse_frm/thread/8be1419bef6fe2e2?hl=en On Aug 21, 10:00 am, shan [EMAIL PROTECTED] wrote: Sorry I forgot to mention i am using the SDK 0.9 beta for Windows which does'nt have sqlite3 embedded. I can't invoke the sqlite3 from the adb shell. I can't access the system table in the /data/.settings.db path. Any solutions? On Aug 21, 12:08 pm, andyn [EMAIL PROTECTED] wrote: Try it this way:http://openhandsetmagazine.com/2007/11/tips-howto-connect-android-emu... On Aug 21, 9:05 am, shan [EMAIL PROTECTED] wrote: I am using a Win XP machine, I started the emulator with : emulator - http-proxy http://proxy:port but the default browser does'nt work (can't find message). Please assist.- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ 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, send email to [EMAIL PROTECTED] Announcing the new Android 0.9 SDK beta! http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] ANDROID Media Player problem with files generated by emulator
Hi, I've got a strange problem that is im able to play a wave file that is in the sdcard but whem i try to play a copy of the file that is created in the emulator throws IOException. I've seen the file in HEX and there the same, the file plays fine outside the emulator but in the emulator throws exception. Any idea way? Regards Jaime Cordeiro --~--~-~--~~~---~--~~ 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, send email to [EMAIL PROTECTED] Announcing the new Android 0.9 SDK beta! http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: LocationManager - getLastKnownLocation() - NullPointer Exception
Getting the status bar icon is a good sign -- that means the GPS_PROVIDER is receiving the updates. I've got one more cheap/easy idea for you. I'm not sure if 0 is a valid limit to set for the refresh time / distance. Try setting it to 1000 (milliseconds) and 1 (meter) to see if that helps. On 21 Aug, 12:41, code_android_festival_way [EMAIL PROTECTED] wrote: Thank you for your reponse. I've changed the order the other way round but get the same result. Waiting for the Listener to be invoked but nothing happens. I tried it with the DDMS again and get an icon in the status bar (http:// img.skitch.com/20080821-eypgin7w8fd9ku3ftj1ix38s7.jpg) after pushing a single location. But the Listener doesnt get invoked either. So I'm pretty much at the end of my knowledge to what I can try in order to get my geo location. :-) Regards! On 21 Aug., 12:29, Reto [EMAIL PROTECTED] wrote: I'm not at a PC I can test with, but try switching the order of your setTestProviderEnabled and setTestProviderStatus commands. I know in my code I've done it the other way around :) On 21 Aug, 11:10, code_android_festival_way [EMAIL PROTECTED] wrote: I've added Location loc = new Location(lP.getName()); loc.setLatitude(37.422006); loc.setLongitude(-122.084095); lM.setTestProviderLocation(lP.getName(), loc); but the LocationListener doesnt get called. So I get no location update. On 21 Aug., 11:46, code_android_festival_way [EMAIL PROTECTED] wrote: Ok. It was a silly question. Looper.prepare(); added. But I dont get any LocationUpdates. I have pushed locations to the device through the DDMS interface but get no LocationUpdate. On 21 Aug., 11:40, code_android_festival_way [EMAIL PROTECTED] wrote: Thank you for your reponse. I'm trying to implement the requestUpdates() now. At the moment I'm faced with the follwing problem. I've implemented the LocationListener but always get the following LogCat error. Can't create handler inside thread that has not called Looper.prepare() Well I'm calling my geo class in a thread that was started by a service. At the moment it looks like this. What do I have to change in order to get the listener working? My Geo class: http://paste.pocoo.org/show/80ypWR00yHnHRz9pN7mc/ Regards! On 20 Aug., 18:36, Reto [EMAIL PROTECTED] wrote: The getLastKnownLocation method will return null until the provider you specify has gotten at least one update. In practice that means you need to have an application (any application, doesn't have to be the one your testing) request (and receive) updates at least once in your emulator session before it will getLastKnown will return a value. You can disable the updates after the first return if you want to, in fact that's probably a reasonable way of implementing the 'getCurrentLocation' functionality you're after. Cheers Reto On 20 Aug, 14:21, code_android_festival_way [EMAIL PROTECTED] wrote: Firstly I got the question why I can't get the currentlocationany more. I don't need repeating updates of my position I just need the currentlocation. At the moment I'm using getLastKnownLocation() but I would assume that this position could be very outdated. Furthermore the method getLastKnownLocation() returns me aLocation object that is null. Here is the code that I'm using at the moment: LocationManager lM = (LocationManager)context.getSystemService(context.LOCATION_SERVICE); LocationProvider lP = lM.getProvider(gps); Locationloc = lM.getLastKnownLocation(lP.getName()); String[]location= {String.valueOf(loc.getLongitude()),String.valueOf(loc.getLatitude())}; I've added the following permission to my manifest file: uses-permission android:name=android.permission.ACCESS_LOCATION / uses-permission android:name=android.permission.ACCESS_FINE_LOCATION / uses-permission android:name=android.permission.ACCESS_GPS / uses-permission android:name=android.permission.ACCESS_MOCK_LOCATION / But I'm always getting a Nullpointer Exception using theLocation. (so theLocationreturned is null) Could you give me a hint how I could achieve to get my current/ lastKnownlocationin 0.9? (in M5 everything was fine) Looking forward getting your answers. Regards and happy coding!- Hide quoted text - - Show quoted text -- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ 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
[android-developers] Re: LocationManager - getLastKnownLocation() - NullPointer Exception
Well I've chosen the 0 because the sample appliction provided by google uses the same parameter value. Could it be that my while loop blocks the class (thread) and so the listenere cant be invoked? On 21 Aug., 13:57, Reto [EMAIL PROTECTED] wrote: Getting the status bar icon is a good sign -- that means the GPS_PROVIDER is receiving the updates. I've got one more cheap/easy idea for you. I'm not sure if 0 is a valid limit to set for the refresh time / distance. Try setting it to 1000 (milliseconds) and 1 (meter) to see if that helps. On 21 Aug, 12:41, code_android_festival_way [EMAIL PROTECTED] wrote: Thank you for your reponse. I've changed the order the other way round but get the same result. Waiting for the Listener to be invoked but nothing happens. I tried it with the DDMS again and get an icon in the status bar (http:// img.skitch.com/20080821-eypgin7w8fd9ku3ftj1ix38s7.jpg) after pushing a single location. But the Listener doesnt get invoked either. So I'm pretty much at the end of my knowledge to what I can try in order to get my geo location. :-) Regards! On 21 Aug., 12:29, Reto [EMAIL PROTECTED] wrote: I'm not at a PC I can test with, but try switching the order of your setTestProviderEnabled and setTestProviderStatus commands. I know in my code I've done it the other way around :) On 21 Aug, 11:10, code_android_festival_way [EMAIL PROTECTED] wrote: I've added Location loc = new Location(lP.getName()); loc.setLatitude(37.422006); loc.setLongitude(-122.084095); lM.setTestProviderLocation(lP.getName(), loc); but the LocationListener doesnt get called. So I get no location update. On 21 Aug., 11:46, code_android_festival_way [EMAIL PROTECTED] wrote: Ok. It was a silly question. Looper.prepare(); added. But I dont get any LocationUpdates. I have pushed locations to the device through the DDMS interface but get no LocationUpdate. On 21 Aug., 11:40, code_android_festival_way [EMAIL PROTECTED] wrote: Thank you for your reponse. I'm trying to implement the requestUpdates() now. At the moment I'm faced with the follwing problem. I've implemented the LocationListener but always get the following LogCat error. Can't create handler inside thread that has not called Looper.prepare() Well I'm calling my geo class in a thread that was started by a service. At the moment it looks like this. What do I have to change in order to get the listener working? My Geo class: http://paste.pocoo.org/show/80ypWR00yHnHRz9pN7mc/ Regards! On 20 Aug., 18:36, Reto [EMAIL PROTECTED] wrote: The getLastKnownLocation method will return null until the provider you specify has gotten at least one update. In practice that means you need to have an application (any application, doesn't have to be the one your testing) request (and receive) updates at least once in your emulator session before it will getLastKnown will return a value. You can disable the updates after the first return if you want to, in fact that's probably a reasonable way of implementing the 'getCurrentLocation' functionality you're after. Cheers Reto On 20 Aug, 14:21, code_android_festival_way [EMAIL PROTECTED] wrote: Firstly I got the question why I can't get the currentlocationany more. I don't need repeating updates of my position I just need the currentlocation. At the moment I'm using getLastKnownLocation() but I would assume that this position could be very outdated. Furthermore the method getLastKnownLocation() returns me aLocation object that is null. Here is the code that I'm using at the moment: LocationManager lM = (LocationManager)context.getSystemService(context.LOCATION_SERVICE); LocationProvider lP = lM.getProvider(gps); Locationloc = lM.getLastKnownLocation(lP.getName()); String[]location= {String.valueOf(loc.getLongitude()),String.valueOf(loc.getLatitude())}; I've added the following permission to my manifest file: uses-permission android:name=android.permission.ACCESS_LOCATION / uses-permission android:name=android.permission.ACCESS_FINE_LOCATION / uses-permission android:name=android.permission.ACCESS_GPS / uses-permission android:name=android.permission.ACCESS_MOCK_LOCATION / But I'm always getting a Nullpointer Exception using theLocation. (so theLocationreturned is null) Could you give me a hint how I could achieve to get my current/ lastKnownlocationin 0.9? (in M5 everything was fine) Looking forward getting your
[android-developers] Re: I can't run m3 simulator after I test 0.9 simulator
Following your advice, I have solved the problem. Thank you all. Regards On 8月21日, 下午7时09分, Eric [EMAIL PROTECTED] wrote: You are in luck, I had similar problem as you and found the solution. Use the wipe data command, it will del all the apps you installed. But at least your emulator will start and you can re-install them.. Windows: emulator -wipe-data Mac/Linux: ./emulator -wipe-data Cheers Eric Portable Electonics Ltdwww.hdmp4.com On Aug 21, 8:50 pm, Mark Murphy [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] wrote: I decompressed the 0.9 SDK in another directory. After I had run the simulator in 0.9 SDK, I found my m3 simulator didn't work, it stayed in red eye, Do you know how to solve this problem? Thanks. The emulator stores data, such as the stuff you load onto it, in a disk image. http://code.google.com/android/reference/emulator.html#diskimages I would imagine the runtime images differ between SDK releases. Try renaming or deleting the appropriate directory, then running the emulator: Linux and OS X: ~/.android Windows: C:\Documents and Settings\user\Local Settings\Application Data\Android If you are going to be moving back-and-forth between SDK releases frequently, you may wish to try using the -data switch on the emulator, so you can keep separate copies of your M5 and 0.9 emulator images. -- Mark Murphy (a Commons Guy)http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 1.1 Published! --~--~-~--~~~---~--~~ 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, send email to [EMAIL PROTECTED] Announcing the new Android 0.9 SDK beta! http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: LocationManager - getLastKnownLocation() - NullPointer Exception
code_android_festival_way wrote: Could it be that my while loop blocks the class (thread) and so the listenere cant be invoked? Sorry, I haven't looked at your code. But you may be right on this. Android applications have the main event thread, plus any secondary threads you create on your own. Listener callbacks, AFAIK, happen on the main event thread, which is why you can update UI elements without muss or fuss. If your while loop is also on the main event thread, you never release that thread, and hence your listeners may never be called. -- Mark Murphy (a Commons Guy) http://commonsware.com Warescription: All titles, revisions, ebook formats, just $35/year --~--~-~--~~~---~--~~ 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, send email to [EMAIL PROTECTED] Announcing the new Android 0.9 SDK beta! http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: maps behind proxy 0.9 beta
I am in the same situation that the browser in 0.9 couldn't get any data behind proxy. Also I recognize this problem is same as map view. Because of most proxy server will not convey a packet besides SSL(443) port with CONNECT method but MapView is trying to connect with CONNECT method first. The browser in 0.9 has changed same as MapView. As for the solution, I make a small program that ignore the CONNECT method and change the POST's URI. It is written in PHP and it is only 200 lines. Please let me know if you are interesting in my program, and I will give it. On 8月21日, 午後2:26, shan [EMAIL PROTECTED] wrote: No the browser is not working till now, the -http-proxystartup option does'nt seem to work(for the 0.9). But in the m5r15 i could get the browser to work via the http_proxy field in the system table, but the maps application could not connect to the server. I think that it uses a config totally different from the standard ones, to which we dont have access. I am guessing that the situation would be same in 0.9 as well. Only hope being that the maps API would recognise the http-proxyoption. 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 aproxyand my guess would be that you aren't able to use any data at all. Cheers, Justin Android Team @ Google On Aug 20, 5:40 am, shan [EMAIL PROTECTED] wrote: Can the maps API work behindproxyin the 0.9 beta?- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ 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, send email to [EMAIL PROTECTED] Announcing the new Android 0.9 SDK beta! http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: LocationManager - getLastKnownLocation() - NullPointer Exception
hello dears, sorry for this interrupted question but i'm tring to download the SDK 0.9 but the following error appears: The requested URL /android/android-sdk-windows-0.9_beta.zip was not found on this server. any help ! On 8/21/08, code_android_festival_way [EMAIL PROTECTED] wrote: Thank you for your reponse. I'm trying to implement the requestUpdates() now. At the moment I'm faced with the follwing problem. I've implemented the LocationListener but always get the following LogCat error. Can't create handler inside thread that has not called Looper.prepare() Well I'm calling my geo class in a thread that was started by a service. At the moment it looks like this. What do I have to change in order to get the listener working? My Geo class: http://paste.pocoo.org/show/80ypWR00yHnHRz9pN7mc/ Regards! On 20 Aug., 18:36, Reto [EMAIL PROTECTED] wrote: The getLastKnownLocation method will return null until the provider you specify has gotten at least one update. In practice that means you need to have an application (any application, doesn't have to be the one your testing) request (and receive) updates at least once in your emulator session before it will getLastKnown will return a value. You can disable the updates after the first return if you want to, in fact that's probably a reasonable way of implementing the 'getCurrentLocation' functionality you're after. Cheers Reto On 20 Aug, 14:21, code_android_festival_way [EMAIL PROTECTED] wrote: Firstly I got the question why I can't get the currentlocationany more. I don't need repeating updates of my position I just need the currentlocation. At the moment I'm using getLastKnownLocation() but I would assume that this position could be very outdated. Furthermore the method getLastKnownLocation() returns me aLocation object that is null. Here is the code that I'm using at the moment: LocationManager lM = (LocationManager)context.getSystemService(context.LOCATION_SERVICE); LocationProvider lP = lM.getProvider(gps); Locationloc = lM.getLastKnownLocation(lP.getName()); String[]location= {String.valueOf(loc.getLongitude()),String.valueOf(loc.getLatitude())}; I've added the following permission to my manifest file: uses-permission android:name=android.permission.ACCESS_LOCATION / uses-permission android:name=android.permission.ACCESS_FINE_LOCATION / uses-permission android:name=android.permission.ACCESS_GPS / uses-permission android:name=android.permission.ACCESS_MOCK_LOCATION / But I'm always getting a Nullpointer Exception using theLocation. (so theLocationreturned is null) Could you give me a hint how I could achieve to get my current/ lastKnownlocationin 0.9? (in M5 everything was fine) Looking forward getting your answers. Regards and happy coding! -- Regards Mazen --~--~-~--~~~---~--~~ 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, send email to [EMAIL PROTECTED] Announcing the new Android 0.9 SDK beta! http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: MediaMetadataRetriever works?
MediaMetadataRetriever is not complicated to use. I created object, setDataSource and captureFrame. I played the same video file with MediaPlayer well. code MediaMetadataRetriever metaRetriever = new MediaMetadataRetriever(); metaRetriever.setMode(MediaMetadataRetriever.MODE_CAPTURE_FRAME_ONLY); metaRetriever.setDataSource(VIDEO_FILEPATH); Bitmap bitmap = metaRetriever.captureFrame(); metaRetriever.release(); error ERROR/AndroidRuntime(754): Uncaught handler: thread main exiting due to uncaught exception ERROR/AndroidRuntime(754): java.lang.NoSuchMethodError: init ERROR/AndroidRuntime(754): at android.media.MediaMetadataRetriever.captureFrame(Native Method) --~--~-~--~~~---~--~~ 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, send email to [EMAIL PROTECTED] Announcing the new Android 0.9 SDK beta! http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: LocationManager - getLastKnownLocation() - NullPointer Exception
I agree. There's definitely a very good chance that the while loop is blocking the listener callback. Note: I believe he's running the whole lot in a new thread (and forcing the update requests to fire on that same thread) rather than the main event thread, but it still turns in to the same problem in the end. On 21 Aug, 13:47, Mark Murphy [EMAIL PROTECTED] wrote: code_android_festival_way wrote: Could it be that my while loop blocks the class (thread) and so the listenere cant be invoked? Sorry, I haven't looked at your code. But you may be right on this. Android applications have the main event thread, plus any secondary threads you create on your own. Listener callbacks, AFAIK, happen on the main event thread, which is why you can update UI elements without muss or fuss. If your while loop is also on the main event thread, you never release that thread, and hence your listeners may never be called. -- Mark Murphy (a Commons Guy)http://commonsware.com Warescription: All titles, revisions, ebook formats, just $35/year --~--~-~--~~~---~--~~ 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, send email to [EMAIL PROTECTED] Announcing the new Android 0.9 SDK beta! http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: LocationManager - getLastKnownLocation() - NullPointer Exception
Well I'm starting a service from my main thread. (some activity) In the service I'm starting a new thread and do some work. (communication with external APIs (flickr)) While that work I need the position of the device. To get the position I had written this class: http://paste.pocoo.org/show/80ypWR00yHnHRz9pN7mc/ In M5 I only called getCurrentLocation() and everything was fine. Now as the methode is gone I need to set this update request to the LocationManager in order to get a not outdatet position. To achieve that I have to loop inside my geo location class and wait for the Listener to be invoked in order to be able to return some location from the geo location class. Now I don't really know how to do that the right way. (not blocking the thread) I would appreciate every hint that you could give me. I dont really know how to handle that situation. Best Regards! On 21 Aug., 14:47, Mark Murphy [EMAIL PROTECTED] wrote: code_android_festival_way wrote: Could it be that my while loop blocks the class (thread) and so the listenere cant be invoked? Sorry, I haven't looked at your code. But you may be right on this. Android applications have the main event thread, plus any secondary threads you create on your own. Listener callbacks, AFAIK, happen on the main event thread, which is why you can update UI elements without muss or fuss. If your while loop is also on the main event thread, you never release that thread, and hence your listeners may never be called. -- Mark Murphy (a Commons Guy)http://commonsware.com Warescription: All titles, revisions, ebook formats, just $35/year --~--~-~--~~~---~--~~ 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, send email to [EMAIL PROTECTED] Announcing the new Android 0.9 SDK beta! http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: GPS LocationProvider journey simulation
Hello again, I found something interesting whilst starting up the emulator: 08-21 13:01:44.762: ERROR/GpsLocationProvider(47): Could not open GPS configuration file /etc/gps.conf 08-21 13:01:44.762: ERROR/GpsLocationProvider(47): java.io.FileNotFoundException: /etc/gps.conf Maybe that's the reason why the default journey simulation doesn't work?! Regards, Marcel --~--~-~--~~~---~--~~ 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, send email to [EMAIL PROTECTED] Announcing the new Android 0.9 SDK beta! http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: maps behind proxy 0.9 beta
sure jokochi, that would be a great help. At least we can expect a reply from google about the situation 2008/8/21 jokochi [EMAIL PROTECTED] I am in the same situation that the browser in 0.9 couldn't get any data behind proxy. Also I recognize this problem is same as map view. Because of most proxy server will not convey a packet besides SSL(443) port with CONNECT method but MapView is trying to connect with CONNECT method first. The browser in 0.9 has changed same as MapView. As for the solution, I make a small program that ignore the CONNECT method and change the POST's URI. It is written in PHP and it is only 200 lines. Please let me know if you are interesting in my program, and I will give it. On 8月21日, 午後2:26, shan [EMAIL PROTECTED] wrote: No the browser is not working till now, the -http-proxystartup option does'nt seem to work(for the 0.9). But in the m5r15 i could get the browser to work via the http_proxy field in the system table, but the maps application could not connect to the server. I think that it uses a config totally different from the standard ones, to which we dont have access. I am guessing that the situation would be same in 0.9 as well. Only hope being that the maps API would recognise the http-proxyoption. 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 aproxyand my guess would be that you aren't able to use any data at all. Cheers, Justin Android Team @ Google On Aug 20, 5:40 am, shan [EMAIL PROTECTED] wrote: Can the maps API work behindproxyin the 0.9 beta?- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ 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, send email to [EMAIL PROTECTED] Announcing the new Android 0.9 SDK beta! http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: HTC skin now available for Android Emulator!
This is really cool, finally something to change it up a bit. Thanks! On Aug 21, 12:22 am, Tea Vui Huang [EMAIL PROTECTED] wrote: HTC skin now available for Android Emulator!http://teavuihuang.com/android To install, download and unzip HVGA-P-HTC.zip to the Android skin directory, e.g. C:\android-sdk-windows-0.9_beta\tools\lib\images \skins. To run the Android emulator with this HTC skin, enter this on the command line: emulator -skin HVGA-P-HTC. --~--~-~--~~~---~--~~ 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, send email to [EMAIL PROTECTED] Announcing the new Android 0.9 SDK beta! http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: LocationManager - getLastKnownLocation() - NullPointer Exception
code_android_festival_way wrote: In M5 I only called getCurrentLocation() and everything was fine. Now as the methode is gone I need to set this update request to the LocationManager in order to get a not outdatet position. To achieve that I have to loop inside my geo location class and wait for the Listener to be invoked in order to be able to return some location from the geo location class. Off the cuff, I suspect you will need to have whatever code uses GeoProvider switch to supporting asynchronous delivery of location data. It may no longer be possible to synchronously get your current position. But, I won't be diving into the new mapping code until this weekend at the earliest, so I can't comment on how better to handle your situation until then. If you're still struggling come Monday, send me an email to remind me to post something. -- Mark Murphy (a Commons Guy) http://commonsware.com Warescription: All titles, revisions, ebook formats, just $35/year --~--~-~--~~~---~--~~ 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, send email to [EMAIL PROTECTED] Announcing the new Android 0.9 SDK beta! http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: LocationManager - getLastKnownLocation() - NullPointer Exception
Thank you for your response. I will try handling this in a different way now. If I'm struggling I will come back to your offer. :-) Regards! On 21 Aug., 15:38, Mark Murphy [EMAIL PROTECTED] wrote: code_android_festival_way wrote: In M5 I only called getCurrentLocation() and everything was fine. Now as the methode is gone I need to set this update request to the LocationManager in order to get a not outdatet position. To achieve that I have to loop inside my geo location class and wait for the Listener to be invoked in order to be able to return some location from the geo location class. Off the cuff, I suspect you will need to have whatever code uses GeoProvider switch to supporting asynchronous delivery of location data. It may no longer be possible to synchronously get your current position. But, I won't be diving into the new mapping code until this weekend at the earliest, so I can't comment on how better to handle your situation until then. If you're still struggling come Monday, send me an email to remind me to post something. -- Mark Murphy (a Commons Guy)http://commonsware.com Warescription: All titles, revisions, ebook formats, just $35/year --~--~-~--~~~---~--~~ 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, send email to [EMAIL PROTECTED] Announcing the new Android 0.9 SDK beta! http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] URL class using server url with |
hi, does anyone know how to avoid an IllegalArgumentException? When accessing to a web server with URL class on android platform, this error occurs. According to an error message, the | is invalid. Here is a sample code. /** sample code */ String host = chart.apis.google.com; String path = chart?cht=p3chd=t: 60,40chs=250x100chl=Hello|World; URL url = new URL(http, host, 80, / + path); HttpURLConnection urlcon = (HttpURLConnection) url.openConnection(); InputStream fileIS = urlcon.getInputStream(); But you can see it work well on strandard jdk platfrom (I dont know right way to say standard platform). For example, with JDK 1.6.xx.xx, you can access to google api server without an IllegalArgumentException. Does anybody have an idea to access to the google api chart server? --~--~-~--~~~---~--~~ 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, send email to [EMAIL PROTECTED] Announcing the new Android 0.9 SDK beta! http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: URL class using server url with |
Additional Info...Speaking of goole char api server, you'd see the same error even if you do encode (URLEncoder.encode(path)). The server seems that %7C (encoded |) would not fit into the server...The server returns one html page sayingBad Request... On 8月21日, 午後11:09, dai [EMAIL PROTECTED] wrote: hi, does anyone know how to avoid an IllegalArgumentException? When accessing to a web server with URL class on android platform, this error occurs. According to an error message, the | is invalid. Here is a sample code. /** sample code */ String host = chart.apis.google.com; String path = chart?cht=p3chd=t: 60,40chs=250x100chl=Hello|World; URL url = new URL(http, host, 80, / + path); HttpURLConnection urlcon = (HttpURLConnection) url.openConnection(); InputStream fileIS = urlcon.getInputStream(); But you can see it work well on strandard jdk platfrom (I dont know right way to say standard platform). For example, with JDK 1.6.xx.xx, you can access to google api server without an IllegalArgumentException. Does anybody have an idea to access to the google api chart server? --~--~-~--~~~---~--~~ 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, send email to [EMAIL PROTECTED] Announcing the new Android 0.9 SDK beta! http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: LocationManager - getLastKnownLocation() - NullPointer Exception
The LocationManager.request*Updates methods must be called from a Looper thread, such as the main thread of an Activity. Additional method variants have been added that take an explicit Looper argument to allow for use outside of a main thread. This could be the solution for my problem. Now I have to understand what that means for me. If someone knows the solution I'm looking forward reading it. :-) Regards! On 21 Aug., 15:50, code_android_festival_way [EMAIL PROTECTED] wrote: Thank you for your response. I will try handling this in a different way now. If I'm struggling I will come back to your offer. :-) Regards! On 21 Aug., 15:38, Mark Murphy [EMAIL PROTECTED] wrote: code_android_festival_way wrote: In M5 I only called getCurrentLocation() and everything was fine. Now as the methode is gone I need to set this update request to the LocationManager in order to get a not outdatet position. To achieve that I have to loop inside my geo location class and wait for the Listener to be invoked in order to be able to return some location from the geo location class. Off the cuff, I suspect you will need to have whatever code uses GeoProvider switch to supporting asynchronous delivery of location data. It may no longer be possible to synchronously get your current position. But, I won't be diving into the new mapping code until this weekend at the earliest, so I can't comment on how better to handle your situation until then. If you're still struggling come Monday, send me an email to remind me to post something. -- Mark Murphy (a Commons Guy)http://commonsware.com Warescription: All titles, revisions, ebook formats, just $35/year --~--~-~--~~~---~--~~ 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, send email to [EMAIL PROTECTED] Announcing the new Android 0.9 SDK beta! http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: I want to gain the coordinate when i touch on the screen,how to?
Did you try: event.getRawX() event.getRawY() On Aug 21, 3:48 am, China-jlu-wangliang [EMAIL PROTECTED] wrote: yeah,i have tried to use the functions that you said,but when i pressed on the button i can't get the raw coordinate. On 8月18日, 下午12时10分, andylau [EMAIL PROTECTED] wrote: hi, try to use flows event.getX(); event.getY(); On Aug 1, 11:35 am, China-jlu-wangliang [EMAIL PROTECTED] wrote: I knowonTouchEvent(MotionEventevent) ,but when i press a button,if i can get the coordinate by usingonTouchEvent(MotionEvent event) ,and how to do that.- 隐藏被引用文字 - - 显示引用的文字 - --~--~-~--~~~---~--~~ 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, send email to [EMAIL PROTECTED] Announcing the new Android 0.9 SDK beta! http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Home Key Just installed application
There is activity manager bug. 1. Install apidemo apk in Eclipse 2. launch apidemo 3. Click submenu in apidemo. 4. Press Home Key. 5. Click ApiDemo icon in Home Screen. (!) 6. New activity is created and show main menu list. (Correct behavior : resume show submenu.) I can make it work correctly. 7. Launch apidemo 8. Press back key to return Home Screen. 9. repeat step 2-5. 10. activity is resumed well. I found that this happens only when new application is installed. --~--~-~--~~~---~--~~ 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, send email to [EMAIL PROTECTED] Announcing the new Android 0.9 SDK beta! http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: No Bluetooth API in 0.9 or 1.0 SDK?!?!?
Bluetooth is very important for further integration of other sensors/ device to android device. I think they underestimate the importance of bluetooth. Let me put it this way: With bluetooth there is a possibility to connect Android device to lots of other thing (from T.V. and Refrigerator to phone and PC) and they simply removed it !!! I don't have enough time to wait another six month for Android 1.1, if it will not be released in version 1.0 I will go for another platform. On Aug 21, 1:04 am, foxxtrot [EMAIL PROTECTED] wrote: On Aug 20, 7:55 am, kokuryu [EMAIL PROTECTED] wrote: It looks like Android is only being released for people to make simple handheld games with. With no usable Bluetooth API in the 0.9 SDK nor in the release 1.0 SDK or release 1.0 device, The API documentation does not say that there will be no Bluetooth API, only that the API will not be comprehensive. This suggests that by the time of 1.0, a partial API may be implemented. I have little doubt that a comprehensive Bluetooth API is near the top of the list of things that need to be done shortly after the 1.0 release. Sorry, but I dont have time to write any games - I'm writing serious applications. I'm sorry, but get over yourself. Even with the current state of the Android Bluetooth API (and I really wish there was more information about the upstream issues), there is plenty of room for 'real' application development. And the lack of a comprehensive API does not mean that the phone won't support Bluetooth altogether. HTC would not release a smartphone in this day and age that lacked Bluetooth support. At worst, we may need to wait until the 1.1 firmware to be able to write applications that fully utilize Bluetooth. This is an unfortunate turn of events, that is certain. But the lack of a comprehensive API does not mean the lack of any support whatsoever. Jeff Craig --~--~-~--~~~---~--~~ 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, send email to [EMAIL PROTECTED] Announcing the new Android 0.9 SDK beta! http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Draw children manually in custom ViewGroup
Thanks, that was a much easier way to modify the views at drawing. Some tips which I learned as I tested this approach: You indicate that the ViewGroup supports static transformation with: this.mGroupFlags = this.mGroupFlags | FLAG_SUPPORT_STATIC_TRANSFORMATIONS; For the modified transformation to be performed you should return true from: boolean getChildStaticTransformation(View child, Transformation t) Kindest regards, //Erik On Aug 14, 5:12 pm, Romain Guy [EMAIL PROTECTED] wrote: You need to translate the canvas to the right position for each child and take into account the scroll offsets. I highly advise against overriding dispatchDraw() because it does a number of delicate things. The next version of the SDK will make ViewGroup.drawChild() protected so that you can override dispatchDraw() more safely. To move, scale and apply transparency to your Views at drawing time, it's a lot simpler than what you are doing. You can simply override the getChildStaticTransformation() method (I'm not sure of the exact name) and make sure your ViewGroup indicates it supports static transformations. Then simply return the appropriate Transformation that translates, scales and applies alpha. This is what Gallery does for instance. On Thu, Aug 14, 2008 at 5:15 AM, Erik Calissendorff [EMAIL PROTECTED] wrote: I'm trying to draw the children manually in my custom ViewGroup but the code below only displays the left top most child. I have tried not to clip the canvas and simply just call the child draw(Canvas c) method directly but that results in that all children are drawn on top of each other. What I like to accomplish is to be able to manually move,scale and modify the transparency of theViewat each draw call from the parent. I hope that someone can inform me how to make this work. Below is a my onLayout and dispatchDraw functions as they are now. @Override protected void onLayout(boolean changed, int l, int t, int r, int b) { for(int i=0;ithis.getChildCount();i++) { Viewchild = this.getChildAt(i); Rectrect=this.mCellPositions[i]; child.layout(rect.left,rect.top,rect.right,rect.bottom); } } @Override protected void dispatchDraw(Canvas canvas) { for(int i=0;ithis.getChildCount();i++) { Viewview= this.getChildAt(i); Rectcell=this.mCellPositions[i]; canvas.save(); if(canvas.clipRect(cell,Op.REPLACE)) { if(!canvas.quickReject(view.getLeft(),view.getTop(), view.getRight(),view.getBottom(), EdgeType.BW)) { view.draw(canvas); } } canvas.restore(); } } -- Romain Guywww.curious-creature.org --~--~-~--~~~---~--~~ 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, send email to [EMAIL PROTECTED] Announcing the new Android 0.9 SDK beta! http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: VideoView won't display video for some videos in the beta SDK
Thanks for helping to investigate, Megha. The URL is: http://feeds.feedburner.com/~r/IdolsOnEllen/~5/265429513/idolcast0407_dl.m4v On Aug 20, 7:05 pm, Megha Joshi [EMAIL PROTECTED] wrote: Please post your Video1 file.. On Wed, Aug 20, 2008 at 4:57 PM, Cheryl Sedota [EMAIL PROTECTED]wrote: The VideoView seems to be a bit broken in the new beta (v0.9) SDK: I have two videos that are of the same format/encoding. Video1 has 29 frames per second with dimensions 640x426. Video2 has 23 frames per second with dimensions 320x180. Video2 plays just fine using the VideoView (audio + video). Video1 only has audio playing and the VideoView is empty visually. I am running the emulator on Windows XP. Please advise. Thanks, Cheryl --~--~-~--~~~---~--~~ 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, send email to [EMAIL PROTECTED] Announcing the new Android 0.9 SDK beta! http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Updated Slideme site
We rolled a new version of our site: http://slideme.org so feel free to check it out. Thanks, Shane --~--~-~--~~~---~--~~ 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, send email to [EMAIL PROTECTED] Announcing the new Android 0.9 SDK beta! http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] dowload
good morning, i need of dowload aplication android for develop ,with make? sorry ,my english not's good very tahnks, Dyonis Silva --~--~-~--~~~---~--~~ 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, send email to [EMAIL PROTECTED] Announcing the new Android 0.9 SDK beta! http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] [Android 0.9][Mac OS X] webView.loadUrl question
Hi, Is webView.loadUrl is supposed to work on a real URL like http://www.google.com; or can only access to local files? This provide a Web page unvailable error on my Mac. If yes, Is this can be related to the fact I use a proxy ? Best regards -- Didier Guillion - Myriad Web site: http://www.myriad-online.com --~--~-~--~~~---~--~~ 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, send email to [EMAIL PROTECTED] Announcing the new Android 0.9 SDK beta! http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] java.lang.VerifyError with 0.9
Hello, After migrating my application to the new sdk version, I'm getting an exception (VerifyError) from one file that belongs to a library that I used in m5 sdk version without any problems. I tried to compile again the library(jar file), but the error persist. Any ideas?? Best Regards, Diogo Júnior --~--~-~--~~~---~--~~ 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, send email to [EMAIL PROTECTED] Announcing the new Android 0.9 SDK beta! http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Socket exception-unknown error from HttpClient execute() method
Hi everyone I'm trying to figure out how to use HttpClient 4.x to do POST requests routed via a Proxy server. I'm seeing a socket exception triggered by calling DefaultHttpClient.execute(HttpHost target, HttpRequest method). My HttpPoster class looks like package com.bt.gcto.android.testhttp; import java.io.IOException; import java.util.Hashtable; import org.apache.http.Header; import org.apache.http.HttpEntity; import org.apache.http.HttpHost; import org.apache.http.HttpResponse; import org.apache.http.HttpVersion; import org.apache.http.client.HttpClient; import org.apache.http.client.methods.HttpPost; import org.apache.http.conn.ClientConnectionManager; import org.apache.http.conn.params.ConnRoutePNames; import org.apache.http.conn.scheme.PlainSocketFactory; import org.apache.http.conn.scheme.Scheme; import org.apache.http.conn.scheme.SchemeRegistry; import org.apache.http.conn.scheme.SocketFactory; import org.apache.http.conn.ssl.SSLSocketFactory; import org.apache.http.impl.client.DefaultHttpClient; import org.apache.http.impl.conn.tsccm.ThreadSafeClientConnManager; import org.apache.http.params.BasicHttpParams; import org.apache.http.params.HttpParams; import org.apache.http.params.HttpProtocolParams; import org.apache.http.util.EntityUtils; import android.net.Uri; import android.util.Log; public class HttpPoster { private final String TAG=HttpPoster; private final String NETWORK_DEVICE_SIDE_TRUE = ;deviceside=true; private final String NETWORK_DEVICE_SIDE_FALSE = ;deviceside=false; private final String NETWORK_WIFI = ;interface=wifi; //private final String proxy=proxy.intra.bt.com:8080; private boolean useWifi; private boolean deviceSide; // Apache HttpClient 4.x stuff private static HttpParams defaultParameters = null; private static SchemeRegistry supportedSchemes = null; /** * Performs general setup. * This should be called only once. */ private final static void setup() { supportedSchemes = new SchemeRegistry(); // Register the http and https protocol schemes, they are // required by the default operator to look up socket factories. SocketFactory sf = PlainSocketFactory.getSocketFactory(); supportedSchemes.register(new Scheme(http, sf, 80)); sf = SSLSocketFactory.getSocketFactory(); supportedSchemes.register(new Scheme(https, sf, 80)); // prepare parameters HttpParams params = new BasicHttpParams(); HttpProtocolParams.setVersion(params, HttpVersion.HTTP_1_1); HttpProtocolParams.setContentCharset(params, UTF-8); HttpProtocolParams.setUseExpectContinue(params, true); defaultParameters = params; } // setup private final static HttpParams getParams() { return defaultParameters; } HttpPoster(boolean deviceSide, boolean useWifi) { this.useWifi = useWifi; this.deviceSide = deviceSide; System.err.println(HttpPoster::HttpPoster); } public String post(String url, HashtableString,String headerProperties, byte[] bytes ) throws IOException { HttpClient client = null; HttpPost method=null; //InputStream is = null; //OutputStream os = null; //String response = ; HttpResponse rsp = null; HttpEntity entity=null; String fullUrl; //int rc; Log.d(TAG,post() ---ENTER---); Log.d(TAG,HttpPoster::post); Log.d(TAG,http.proxyHost = + System.getProperty(http.proxyHost)); Log.d(TAG,http.proxyPort = + System.getProperty(http.proxyPort)); try { fullUrl = url + (deviceSide ? NETWORK_DEVICE_SIDE_TRUE : NETWORK_DEVICE_SIDE_FALSE) + (useWifi ? NETWORK_WIFI : ); Uri fullUri = Uri.parse( fullUrl ); String targetname = fullUri.getHost(); Log.d(TAG,HttpPoster::post -- about to open connection on URL = + fullUrl); // // setup proxy server // final HttpHost target = new HttpHost(targetname, 80, http); final HttpHost proxy = new HttpHost(proxy.mycompany.com, 8080, http); setup() ; // Some general setup client = new DefaultHttpClient() ; client.getParams().setParameter(ConnRoutePNames.DEFAULT_PROXY, proxy); method = new HttpPost( fullUrl
[android-developers] URI_MATCHER doesn't work correctly
Hi Guys, I've written my own ContentProvider, which works, except for the URI_MATCHER. URI_MATCHER returns -1, when it should give me 1. First, I add my URI, so that the matcher is able to recognize it: URI_MATCHER.addURI(Crowd.CROWD_AUTHORITY, /Crowd, CUSTOMER); At this point: is Crowd.CROWD_AUTHORITY = lan.tiptop.android.CrowdProvider and CUSTOMER = 1 At some points in the code it's necessary to check the URI: if (URI_MATCHER.match(uri) != CUSTOMER) { throw new IllegalArgumentException(Unknown URI: + uri); } The if-statement throws this exception: Unkown URI: content://lan.tiptop.android.CrowdProvider/Crowd I think the URI ist correct and URI_MATCHER should give me 1. Does anybody know, how to solve this? Regards, Frank P.S.: I use version 0.9 of the SDK. --~--~-~--~~~---~--~~ 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, send email to [EMAIL PROTECTED] Announcing the new Android 0.9 SDK beta! http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: URI_MATCHER doesn't work correctly
You need to remove the / from the beginning of the path, so it should read this: URI_MATCHER.addURI(Crowd.CROWD_AUTHORITY, Crowd, CUSTOMER); When building the URI tree it automatically puts the / between the authority and the path for you so you were ending up with content://lan.tiptop.android.CrowdProvider//Crowd. -Jeff On Thu, Aug 21, 2008 at 9:35 AM, Frank N. Stein [EMAIL PROTECTED] wrote: Hi Guys, I've written my own ContentProvider, which works, except for the URI_MATCHER. URI_MATCHER returns -1, when it should give me 1. First, I add my URI, so that the matcher is able to recognize it: URI_MATCHER.addURI(Crowd.CROWD_AUTHORITY, /Crowd, CUSTOMER); At this point: is Crowd.CROWD_AUTHORITY = lan.tiptop.android.CrowdProvider and CUSTOMER = 1 At some points in the code it's necessary to check the URI: if (URI_MATCHER.match(uri) != CUSTOMER) { throw new IllegalArgumentException(Unknown URI: + uri); } The if-statement throws this exception: Unkown URI: content://lan.tiptop.android.CrowdProvider/Crowd I think the URI ist correct and URI_MATCHER should give me 1. Does anybody know, how to solve this? Regards, Frank P.S.: I use version 0.9 of the SDK. --~--~-~--~~~---~--~~ 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, send email to [EMAIL PROTECTED] Announcing the new Android 0.9 SDK beta! http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: No Bluetooth API in 0.9 or 1.0 SDK?!?!?
Can you post in a *new* thread in your best language and I will use machine translation to try to understand your request? Thanks, Justin Android Team @ Google On Aug 21, 8:08 am, dyonis [EMAIL PROTECTED] wrote: good morning, i need ofdowloadaplication android for develop ,with make? sorry ,my english not's good very tahnks, Dyonis Silva --~--~-~--~~~---~--~~ 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, send email to [EMAIL PROTECTED] Announcing the new Android 0.9 SDK beta! http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Changing Content of a Tab dynamically - TabHost/Tabspec
Hi, My main UI has a tabular layout containing 3 tabs. On one of my tabs, I display a List and upon clicking a list item, I want a new view (containing another list) to overlap the existing tab content. My current implementation starts a new List Activity when list item is clicked, but that List activity as expected takes up the entire window thereby hiding my tabs. Any help is highly appreciated. Thanks, snep. --~--~-~--~~~---~--~~ 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, send email to [EMAIL PROTECTED] Announcing the new Android 0.9 SDK beta! http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] How to Keep Expandable List View be expanded by default?
Hi, Does anyone know of a easy way (via coding or through xml attributes) to display ExpandableListView as expanded/opened by default. Any help is highly appreciated. Thanks, Snep. --~--~-~--~~~---~--~~ 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, send email to [EMAIL PROTECTED] Announcing the new Android 0.9 SDK beta! http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Changing Content of a Tab dynamically - TabHost/Tabspec
Slater wrote: My main UI has a tabular layout containing 3 tabs. On one of my tabs, I display a List and upon clicking a list item, I want a new view (containing another list) to overlap the existing tab content. My current implementation starts a new List Activity when list item is clicked, but that List activity as expected takes up the entire window thereby hiding my tabs. Any help is highly appreciated. You could use a ViewFlipper: http://androidguys.com/2008/08/14/flipping-your-views/ Basically, your two ListViews would be children of the ViewFlipper, and when the first list selection is made, you'd flip to the second list. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 1.1 Published! --~--~-~--~~~---~--~~ 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, send email to [EMAIL PROTECTED] Announcing the new Android 0.9 SDK beta! http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: URI_MATCHER doesn't work correctly
Thanks Jeff, you made my day. I think, I was confused, because of the correct URI in the exception. Hopefully Google will release the sourcecode of Android, so that developers are able to understand, how things get built. Have a nice day. On 21 Aug., 19:03, Jeff Hamilton [EMAIL PROTECTED] wrote: You need to remove the / from the beginning of the path, so it should read this: URI_MATCHER.addURI(Crowd.CROWD_AUTHORITY, Crowd, CUSTOMER); When building the URI tree it automatically puts the / between the authority and the path for you so you were ending up with content://lan.tiptop.android.CrowdProvider//Crowd. -Jeff On Thu, Aug 21, 2008 at 9:35 AM, Frank N. Stein [EMAIL PROTECTED] wrote: Hi Guys, I've written my own ContentProvider, which works, except for the URI_MATCHER. URI_MATCHER returns -1, when it should give me 1. First, I add my URI, so that the matcher is able to recognize it: URI_MATCHER.addURI(Crowd.CROWD_AUTHORITY, /Crowd, CUSTOMER); At this point: is Crowd.CROWD_AUTHORITY = lan.tiptop.android.CrowdProvider and CUSTOMER = 1 At some points in the code it's necessary to check the URI: if (URI_MATCHER.match(uri) != CUSTOMER) { throw new IllegalArgumentException(Unknown URI: + uri); } The if-statement throws this exception: Unkown URI: content://lan.tiptop.android.CrowdProvider/Crowd I think the URI ist correct and URI_MATCHER should give me 1. Does anybody know, how to solve this? Regards, Frank P.S.: I use version 0.9 of the SDK. --~--~-~--~~~---~--~~ 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, send email to [EMAIL PROTECTED] Announcing the new Android 0.9 SDK beta! http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Remote 3GP video in 0.9 SDK
I spent most of a day using the emulator in 0.9 surfing to sample video files on video contest provider sites, I must have tried playing 100's of files. Not one played. I have been able to encode a mp4 (mp4v/mp4a codecs) video file and load it from the browser (enter url in browser, probably due to mime type returned from server, it gets passed to the media player which then does its own http get request (which in it self it bugged, reported)). Problem is the audio is distorted, like playing a 45 record at 33 is best description. I have tried numerous audio bit rates and sample rates, to no avail, it is either distorted or it crashes media player. Where if anywhere are serious and complete specs on supported media player transports, encapsulation formats and supported codes and subspecs like sample, stream and frame rates supported? Can whoever wrote the media player provide any test video files that actually work? Oh and by the way, I'm sure that writing tons of different media player applications is interesting and all, but i'm pretty sure users in the end will want to click on links in the broswer and have video and audio play, not type or copy/paste them into standalone players. This is a place where android can be a iPhone killer, because ATT and Apple are trying so hard to control content delivery so they can wring more money out of the users pockets. At the moment Android is failing here. On Aug 20, 3:19 pm, Maklouf [EMAIL PROTECTED] wrote: Hi there, Is rtsp or any other formats going to be supported in the final release? where can we find the complete specs of the media capabilities? We want to build an application to stream Live content to an android device (eg Live content from a web cam), is this possible with the current SDK? From what I have read in this forum you can only stream already complete encorded files. Regards. Maklouf On Aug 19, 2:35 pm, Justin (Google Employee) [EMAIL PROTECTED] wrote: Snowcrash, thanks for pointing this out! To elaborate on reasonably interleaved... What determines reasonably is dependent on many factors like network bandwidth, network latency, and buffer size. In general you want to have a chunk of audio for a certain unit of time followed by a corresponding chunk of video for the same amount of time, your video creation software should be formatting the stream that for you anyway. The next question is how large a unit of playback time this should be. To repeat, the best answer to this question is dependent on network conditions, buffer size, and bitrate, factors which may change over time and be different from Android device to Android device. Having said all that, a good guideline is to packetize your stream into 0.5 second parts. Your results may vary and I encourage you to test for your actual applications, but this is a reasonable place to start experimenting. Regards, Justin Android Team @ Google On Aug 19, 1:03 pm, Megha Joshi [EMAIL PROTECTED] wrote: Yes, you can use QuickTime Pro to create progressive streamable format: Steps below: 1. Open the video file in Quick Time Pro. 2. Goto File Export 3. Select type as 'Movie to 3G' 4. Click Options 5. Select file format as 3gpp 6. In the drop down menu below the file format, select 'Streaming' from the list of available options (Audio, Video, Text, Streaming, Advanced) 7. Select the required maximum packet size and maximum packet duration 8. Click Save On Tue, Aug 19, 2008 at 6:44 AM, snowcrash [EMAIL PROTECTED] wrote: Hi there, your video filehttp://www.jsharkey.org/downloads/dailytest.3gp doesn't conform to the specifications stated in the source code: Mediaplayercan only play progressive streamable contents which basically means: 1. the movie atom has to precede all the media data atoms. 2. The clip has to be reasonably interleaved. For your file, ' strings dailytest.3gp | grep -n mdat\|moov ' returns: 4:k:mdat 2773:moov which is a violation of (1.) where 'moov' has to precede any 'mdat'. But what 'reasonably interleaved' means is still mysterious. Perhaps someone from Google reading here can shed some light on this. Regards, 131071 On 19 Aug., 07:07, Jeffrey Sharkey [EMAIL PROTECTED] wrote: Also, just to follow-up on this more, I installed lighttpd locally on the same computer as the emulator. I also made sure to add the 3GP video mime-type. This way, I could try using http://10.0.2.2/dailytest.3gp; as my test URL from the emulator, which should bypass even the emulator's bridge NAT. Still came back with the same errors. :( Interestingly, the player only made a HEAD request this time, and didn't begin streaming the data with a GET request. Here is the HEAD details from the lighttpd server, showing the correct mimetype: HTTP/1.1 200 OK Content-Type:
[android-developers] Re: setAlignment gone from TextView
Use android:gravity=center On Thu, Aug 21, 2008 at 10:36 AM, RPO [EMAIL PROTECTED] wrote: This code fragment no longer works in the 0.9 SDK: TextView label; label.setAlignment(Alignment.ALIGN_CENTER); So how do I center text within a TextView? Thanks! Bob O'Hara -- Romain Guy www.curious-creature.org --~--~-~--~~~---~--~~ 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, send email to [EMAIL PROTECTED] Announcing the new Android 0.9 SDK beta! http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How to play audio recorded with MediaRecorder
On Wed, Aug 20, 2008 at 7:26 PM, walterc [EMAIL PROTECTED] wrote: i've successfully record sound using sample code on http://code.google.com/android/toolbox/apis/media.html but is having problem playing it back using MediaPlayer. Can you play back this file using mediaplayer on your machine? Is this recorded file of 3gpp format or ogg? i can play back a local .ogg file without problem but just couldnt get the recorded file to play. any suggestions? regards, walter chang --~--~-~--~~~---~--~~ 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, send email to [EMAIL PROTECTED] Announcing the new Android 0.9 SDK beta! http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How to play audio recorded with MediaRecorder
On Thu, Aug 21, 2008 at 10:54 AM, Megha Joshi [EMAIL PROTECTED] wrote: On Wed, Aug 20, 2008 at 7:26 PM, walterc [EMAIL PROTECTED] wrote: i've successfully record sound using sample code on http://code.google.com/android/toolbox/apis/media.html but is having problem playing it back using MediaPlayer. Can you play back this file using mediaplayer on your machine? Is this recorded file of 3gpp format or ogg? Also what is the logcat error? i can play back a local .ogg file without problem but just couldnt get the recorded file to play. any suggestions? regards, walter chang --~--~-~--~~~---~--~~ 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, send email to [EMAIL PROTECTED] Announcing the new Android 0.9 SDK beta! http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Remote 3GP video in 0.9 SDK
For what it's worth all our 3gp videos play fine in 0.9. We encoded them with Sorenson Squeeze with progressive streaming turned on. On Aug 21, 1:48 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I spent most of a day using the emulator in 0.9 surfing to sample video files on video contest provider sites, I must have tried playing 100's of files. Not one played. I have been able to encode a mp4 (mp4v/mp4a codecs) video file and load it from the browser (enter url in browser, probably due to mime type returned from server, it gets passed to the media player which then does its own http get request (which in it self it bugged, reported)). Problem is the audio is distorted, like playing a 45 record at 33 is best description. I have tried numerous audio bit rates and sample rates, to no avail, it is either distorted or it crashes media player. Where if anywhere are serious and complete specs on supported media player transports, encapsulation formats and supported codes and subspecs like sample, stream and frame rates supported? Can whoever wrote the media player provide any test video files that actually work? Oh and by the way, I'm sure that writing tons of different media player applications is interesting and all, but i'm pretty sure users in the end will want to click on links in the broswer and have video and audio play, not type or copy/paste them into standalone players. This is a place where android can be a iPhone killer, because ATT and Apple are trying so hard to control content delivery so they can wring more money out of the users pockets. At the moment Android is failing here. On Aug 20, 3:19 pm, Maklouf [EMAIL PROTECTED] wrote: Hi there, Is rtsp or any other formats going to be supported in the final release? where can we find the complete specs of the media capabilities? We want to build an application to stream Live content to an android device (eg Live content from a web cam), is this possible with the current SDK? From what I have read in this forum you can only stream already complete encorded files. Regards. Maklouf On Aug 19, 2:35 pm, Justin (Google Employee) [EMAIL PROTECTED] wrote: Snowcrash, thanks for pointing this out! To elaborate on reasonably interleaved... What determines reasonably is dependent on many factors like network bandwidth, network latency, and buffer size. In general you want to have a chunk of audio for a certain unit of time followed by a corresponding chunk of video for the same amount of time, your video creation software should be formatting the stream that for you anyway. The next question is how large a unit of playback time this should be. To repeat, the best answer to this question is dependent on network conditions, buffer size, and bitrate, factors which may change over time and be different from Android device to Android device. Having said all that, a good guideline is to packetize your stream into 0.5 second parts. Your results may vary and I encourage you to test for your actual applications, but this is a reasonable place to start experimenting. Regards, Justin Android Team @ Google On Aug 19, 1:03 pm, Megha Joshi [EMAIL PROTECTED] wrote: Yes, you can use QuickTime Pro to create progressive streamable format: Steps below: 1. Open the video file in Quick Time Pro. 2. Goto File Export 3. Select type as 'Movie to 3G' 4. Click Options 5. Select file format as 3gpp 6. In the drop down menu below the file format, select 'Streaming' from the list of available options (Audio, Video, Text, Streaming, Advanced) 7. Select the required maximum packet size and maximum packet duration 8. Click Save On Tue, Aug 19, 2008 at 6:44 AM, snowcrash [EMAIL PROTECTED] wrote: Hi there, your video filehttp://www.jsharkey.org/downloads/dailytest.3gp doesn't conform to the specifications stated in the source code: Mediaplayercan only play progressive streamable contents which basically means: 1. the movie atom has to precede all the media data atoms. 2. The clip has to be reasonably interleaved. For your file, ' strings dailytest.3gp | grep -n mdat\|moov ' returns: 4:k:mdat 2773:moov which is a violation of (1.) where 'moov' has to precede any 'mdat'. But what 'reasonably interleaved' means is still mysterious. Perhaps someone from Google reading here can shed some light on this. Regards, 131071 On 19 Aug., 07:07, Jeffrey Sharkey [EMAIL PROTECTED] wrote: Also, just to follow-up on this more, I installed lighttpd locally on the same computer as the emulator. I also made sure to add the 3GP video mime-type. This way, I could try using http://10.0.2.2/dailytest.3gp; as my test URL from the emulator, which should bypass even the emulator's bridge
[android-developers] Re: An issue about Typeface
On Thu, Aug 21, 2008 at 3:02 AM, roland [EMAIL PROTECTED] wrote: I am porting my application from M5 to 0.9 SDK, and i just meet a problem when i use setTypeface method. I got a textview which its text is bold and italic. I tried these 2 solution, the first one works fine, but the second one just make bold text, not italic. 1. textview.setTypeface(Typeface.DEFAULT, Typeface.BOLD_ITALIC); 2. textview.setTypeface(Typeface.create(Typeface.DEFAULT, Typeface.BOLD_ITALIC)); So the Typeface's create(Typeface family, int style) doesn't work as i hope, i don't know if i misunderstand this method or it is a bug. This looks like a bug,could you please add it to the public issue tracker... Comments are appreciate. --~--~-~--~~~---~--~~ 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, send email to [EMAIL PROTECTED] Announcing the new Android 0.9 SDK beta! http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Remote 3GP video in 0.9 SDK
A bit thin on details, which version of squeeze, you made a file with a 3gp extension...what encapsulation and codecs and rates were used that worked? How was it played/transported, from a url, (link in a browser), a file on the sd card, http, rtsp, what server was used to stream the rtsp? On Aug 21, 11:05 am, Travis Choma [EMAIL PROTECTED] wrote: For what it's worth all our 3gp videos play fine in 0.9. We encoded them with Sorenson Squeeze with progressive streaming turned on. On Aug 21, 1:48 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I spent most of a day using the emulator in 0.9 surfing to sample video files on video contest provider sites, I must have tried playing 100's of files. Not one played. I have been able to encode a mp4 (mp4v/mp4a codecs) video file and load it from the browser (enter url in browser, probably due to mime type returned from server, it gets passed to the media player which then does its own http get request (which in it self it bugged, reported)). Problem is the audio is distorted, like playing a 45 record at 33 is best description. I have tried numerous audio bit rates and sample rates, to no avail, it is either distorted or it crashes media player. Where if anywhere are serious and complete specs on supported media player transports, encapsulation formats and supported codes and subspecs like sample, stream and frame rates supported? Can whoever wrote the media player provide any test video files that actually work? Oh and by the way, I'm sure that writing tons of different media player applications is interesting and all, but i'm pretty sure users in the end will want to click on links in the broswer and have video and audio play, not type or copy/paste them into standalone players. This is a place where android can be a iPhone killer, because ATT and Apple are trying so hard to control content delivery so they can wring more money out of the users pockets. At the moment Android is failing here. On Aug 20, 3:19 pm, Maklouf [EMAIL PROTECTED] wrote: Hi there, Is rtsp or any other formats going to be supported in the final release? where can we find the complete specs of the media capabilities? We want to build an application to stream Live content to an android device (eg Live content from a web cam), is this possible with the current SDK? From what I have read in this forum you can only stream already complete encorded files. Regards. Maklouf On Aug 19, 2:35 pm, Justin (Google Employee) [EMAIL PROTECTED] wrote: Snowcrash, thanks for pointing this out! To elaborate on reasonably interleaved... What determines reasonably is dependent on many factors like network bandwidth, network latency, and buffer size. In general you want to have a chunk of audio for a certain unit of time followed by a corresponding chunk of video for the same amount of time, your video creation software should be formatting the stream that for you anyway. The next question is how large a unit of playback time this should be. To repeat, the best answer to this question is dependent on network conditions, buffer size, and bitrate, factors which may change over time and be different from Android device to Android device. Having said all that, a good guideline is to packetize your stream into 0.5 second parts. Your results may vary and I encourage you to test for your actual applications, but this is a reasonable place to start experimenting. Regards, Justin Android Team @ Google On Aug 19, 1:03 pm, Megha Joshi [EMAIL PROTECTED] wrote: Yes, you can use QuickTime Pro to create progressive streamable format: Steps below: 1. Open the video file in Quick Time Pro. 2. Goto File Export 3. Select type as 'Movie to 3G' 4. Click Options 5. Select file format as 3gpp 6. In the drop down menu below the file format, select 'Streaming' from the list of available options (Audio, Video, Text, Streaming, Advanced) 7. Select the required maximum packet size and maximum packet duration 8. Click Save On Tue, Aug 19, 2008 at 6:44 AM, snowcrash [EMAIL PROTECTED] wrote: Hi there, your video filehttp://www.jsharkey.org/downloads/dailytest.3gp doesn't conform to the specifications stated in the source code: Mediaplayercan only play progressive streamable contents which basically means: 1. the movie atom has to precede all the media data atoms. 2. The clip has to be reasonably interleaved. For your file, ' strings dailytest.3gp | grep -n mdat\|moov ' returns: 4:k:mdat 2773:moov which is a violation of (1.) where 'moov' has to precede any 'mdat'. But what 'reasonably interleaved' means is still mysterious. Perhaps someone from Google reading here can shed some light on
[android-developers] Re: 0.9 and simple database management issue ? [SOLVED]
You shouldn't have to change the database directory permissions manually...getWritableDatabase() should do that for you. Infact that is what it does in the Notepad tutorial. I don't see the create database script being executed from your DBHelper.onCreate() method. Is this database being created in the same app that you are using it from? On Thu, Aug 21, 2008 at 2:31 AM, 6real [EMAIL PROTECTED] wrote: Actually the issu was ...; in the rights attributed to the databases directory !!! I have changed the right thanks to a chmod 777 and now it works fine ! I don't understand which user is used when laucnhing the app but my issu is solved. I hope I wont have the same issu on final telephone ! 6real wrote: Still not work :-( I have changes the method to copy the tutorial. Actually it seems the onCreate method is never called, even when I call getWritable or getReadable ! I saw this behaviour thanks to breakpoints in debug mode. Nobody as such issues ? On Aug 21, 9:17�am, 6real [EMAIL PROTECTED] wrote: Thanks! I am gonna watch. I didn't know that. Rgds C. On Aug 20, 11:43�pm, Megha Joshi [EMAIL PROTECTED] wrote: Can you compare your code against the NotePad tutorial and see , NotePad tutorial uses SQliteOpenHelper... On Wed, Aug 20, 2008 at 11:10 AM, 6real [EMAIL PROTECTED] wrote: Dear all, I am facing an issue (probably simple to solve!) while migrating my app under the last 0.9. Before I was creating and then opening a database. In teh doc I read I saw that now I need to create a class that inheriths from SQLiteOpenHelper. This is what I have done (anonymous class inside a new one) : -- � �class MyDBHelper extends SQLiteOpenHelper { � � � �public MyDBHelper(Context context, String name, CursorFactory factory, int version) { � � � � � �super(context, name, factory, version); � � � �} � � � �public void onCreate(SQLiteDatabase db) { � � � � � �return; � � � �} � � � �public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { � � � � � �return; � � � �} � �} Then I instanciate this class �dbHelper = new MyDBHelper(launched, Constant.DB_DATABASE_NAME, null, Constant.DB_VERSION); - Now comes the issue, I'd like to execute a SQL request to my DB : myDB = dbHelper.getWritableDatabase(); � � � � � �myDB.execSQL(DELETE FROM + Constant.DB_TABLE_STATIONS + WHERE + Constant.DB_FIELD_S_NETWORK + =' + network + ';); And I have this error ? 08-20 18:07:41.119: ERROR/Database(172): sqlite3_open_v2(/data/data/ com.xirgonium.android/databases/myDB, handle, 6, NULL) failed -- Do you have an idea of the origin ?? Thanks a lot for your help ! --~--~-~--~~~---~--~~ 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, send email to [EMAIL PROTECTED] Announcing the new Android 0.9 SDK beta! http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Adding content to a tab view dynamically
Hi, i tried debugging quite a bit, but i can't figure it out; is it possible to add something (buttons, etc.) to a tab? I'm using a FrameLayout inside a TabWidget inside a TabHost. I tried lots of things, including adding to TabHost's getCurrentTabView, but i wasn't lucky. Any tips? Thanks, Teo --~--~-~--~~~---~--~~ 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, send email to [EMAIL PROTECTED] Announcing the new Android 0.9 SDK beta! http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Adding content to a tab view dynamically
help,for how to program to google. - Original Message - From: Teo [EMAIL PROTECTED] To: Android Developers android-developers@googlegroups.com Sent: Thursday, August 21, 2008 2:28 PM Subject: [android-developers] Adding content to a tab view dynamically Hi, i tried debugging quite a bit, but i can't figure it out; is it possible to add something (buttons, etc.) to a tab? I'm using a FrameLayout inside a TabWidget inside a TabHost. I tried lots of things, including adding to TabHost's getCurrentTabView, but i wasn't lucky. Any tips? Thanks, Teo --~--~-~--~~~---~--~~ 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, send email to [EMAIL PROTECTED] Announcing the new Android 0.9 SDK beta! http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How to Keep Expandable List View be expanded by default?
help,for how to program to google. - Original Message - From: Slater [EMAIL PROTECTED] To: Android Developers android-developers@googlegroups.com Sent: Thursday, August 21, 2008 1:26 PM Subject: [android-developers] How to Keep Expandable List View be expanded by default? Hi, Does anyone know of a easy way (via coding or through xml attributes) to display ExpandableListView as expanded/opened by default. Any help is highly appreciated. Thanks, Snep. --~--~-~--~~~---~--~~ 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, send email to [EMAIL PROTECTED] Announcing the new Android 0.9 SDK beta! http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: setAlignment gone from TextView
It works, thanks. Gravity it is. If this were the 60's I would say Heavy, man! --~--~-~--~~~---~--~~ 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, send email to [EMAIL PROTECTED] Announcing the new Android 0.9 SDK beta! http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Geeting Error in New SDK:- emulator: broken configuration file doesn't have 'window' element
Group, I am getting following error if launch emulator itself. And also I don't see emulator.cfg file anywhere in my system. Error:- emulator: broken configuration file doesn't have 'window' element Please note, if I launch emulator through IDE, error does not appear. Any specific reason for this behavior. Thanks, Dipen --~--~-~--~~~---~--~~ 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, send email to [EMAIL PROTECTED] Announcing the new Android 0.9 SDK beta! http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Activity Question
I did more research on this subject and I have a new situation. Activity A is the main activity and it uses the singleTask launch mode. Activity B uses the singleTop launch mode. In my app Activity A is the login activity for my application. The user enters the username and password and if it is correct I call finish() on Activity A an call startActivity to start Activty B. If I hit the Home button while in the Activity B and then hit the home screen icon of the app something interesting happens: Activity A comes to the front. If I hit the Back button I now see Activity B. I thought to my self: If I know that the user is logged in I can call finish() in the onCreate() of Activty A.That works, meaning that while I'm in Activity B I hit the Home button, clicking the home screen app icon returns me to Activity B without displaying Activty A; so far so good. The problem now is that if I hit Back from Activity B and then click the home screen app icon of course nothing happens because Activity A calls finish(). Please let me know if I'm on the right path. Thanks! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] Announcing the new Android 0.9 SDK beta! http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] SDK 0.9 camera issues
SDK 0.9 camera issues I am porting from SDK M5 RC15 (where my app worked) to SDK 0.9 beta, and I run into the following problems with the camera preview: 1. The camera preview on the emulator gives a greyscale animation, while I need a color view for testing. How can I fix this? Having the color animation of SDK M5 RC15 would have been OK for me. I hope that greyscale preview is not going to be the preview standard for the physical phones? 2. I can resize the camera preview, but I cannot position it??? The current documentation does not specify parameters like leftPixel or topPixel for use with the camera preview mode. As a reminder: Java ME (J2ME) has setDisplaySize() and setDisplayLocation() for VideoControl, and we need equivalents in Android. Will this be fixed? I need a small camera preview that is not stuck at the top left corner of the screen. Then for the camera snapshots, takePicture(), 3. There is still no method to query the camera device for supported resolutions. As a reminder: Java ME (J2ME) has getSupportedStillResolutions() for CameraControl, so we need an equivalent in Android because different phones will support different resolutions. Despite all the Android SDK 0.9 API changes, all of this doesn't look like a near-final camera API set, right? How many times do we have to port our Android code to completely different API sets with each new SDK? And that while it would have been easy to borrow some camera API concepts from J2ME. Thanks. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] Announcing the new Android 0.9 SDK beta! http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How to display a local file in the browser?
On Wed, Aug 20, 2008 at 4:46 PM, Megha Joshi [EMAIL PROTECTED] wrote: For security reasons, WebView does not allow file: access any more. If you want the link to be loaded in your activity, you should provide a WebViewClient and implement shouldOverrideUrlLoading with { return false; } This option does not work anymore, sorry for the confusion! So the only way to load local file contents into WebView, is as Gil pointed out ...by loading the contents with loadData()/ Sample code: static final int MAXFILESIZE = 8096; String path = uri.getPath(); File f = new File(path); final long length = f.length(); if (!f.exists() || length MAXFILESIZE) { return; } // typecast to int is safe as long as MAXFILESIZE MAXINT byte[] array = new byte[(int)length]; try { InputStream is = new FileInputStream(f); is.read(array); is.close(); } catch (FileNotFoundException ex) { // Checked for file existance already, so this should not happen return; } catch (IOException ex) { // read or close failed Log.e(LOGTAG, Failed to access file: + path, ex); return; } mWebView.loadData(new String(array), mimeType, null); There is a 8KB limit on the file size. So if your data is more that 8KB, you should create a content provider for your files and then the use the ContentResolver.openContentURI()... On Wed, Aug 20, 2008 at 4:34 PM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I used WebView to display rich content emails (I'm writing a mail client). It worked well loading URI such as file://sdcard/filewhateveryouwant.xxx ... Now I upgraded to 0.9 and Android OS is displaying me a page with The requested file was not found. Maybe a PERMISSION issue? On 19 Ago, 20:36, Megha Joshi [EMAIL PROTECTED] wrote: Browser does not support viewing local files... On Tue, Aug 19, 2008 at 12:38 AM, Peli [EMAIL PROTECTED] wrote: Is it possible to open a local file in the browser? In the Android browser, I tried menu / go to: file:///sdcard/test.html I always receive the error message: Web page not available. The web page at file:///sdcard/test.html could not be loaded as: The requested file was not found. even though the files exist in /sdcard/test.html. Do I have to use a different URL, or put files into a different folder? Peli PS: From within an application, there seems to be a way to load local files: The prefix file:///android_asset/ will cause WebView to load content from the current application's assets folder. http://code.google.com/android/reference/android/webkit/WebView.html --~--~-~--~~~---~--~~ 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, send email to [EMAIL PROTECTED] Announcing the new Android 0.9 SDK beta! http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: ANDROID Media Player problem with files generated by emulator
Are you refering to a file recorded by the MediaRecorder as file created by the emulator? What kind of file is this...video or audio? Can you attach the file here? On Thu, Aug 21, 2008 at 4:42 AM, Jaime Cordeiro [EMAIL PROTECTED]wrote: Hi, I've got a strange problem that is im able to play a wave file that is in the sdcard but whem i try to play a copy of the file that is created in the emulator throws IOException. I've seen the file in HEX and there the same, the file plays fine outside the emulator but in the emulator throws exception. Any idea way? Regards Jaime Cordeiro --~--~-~--~~~---~--~~ 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, send email to [EMAIL PROTECTED] Announcing the new Android 0.9 SDK beta! http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] I'd like to modify the Dialer program
What I'd like to do is give the user the option of how they want to dial someone. ex service provider, yahoo voice, skype, vonage. Why stop there? You could bind phone numbers from several service providers as well if you wanted to. Also I want each protocol to play nice with each other when incoming calls come in. I'd like the dialer to accept a plug-in for each service. I know the scope of this project would be pretty big. Most protocols are not available to the public and I think most companies don't want users to have this kind of flexibility on a phone. It would be nice to start off with maybe just one other option besides service provider. Hopefully the most simple. Any suggestions? I'd also be interested in knowing if the dialer source code is available. I downloaded the SDK 0.9 code and did a grep for dialer but found nothing. If it's not open then what kind of views were used to make the custom buttons and text boxes? --~--~-~--~~~---~--~~ 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, send email to [EMAIL PROTECTED] Announcing the new Android 0.9 SDK beta! http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Adding content to a tab view dynamically
Do you mean to add a new tab or simply dynamically adjust the View hierarchy in a particular tab? If so, getCurrentTabView will work to do what you need. Just modify the view hierarchy found there. Do realize that you are getting the root-level View of the tab, so you must search within that using View#findViewById to locate the actual view you're looking to modify. On Aug 21, 11:28 am, Teo [EMAIL PROTECTED] wrote: Hi, i tried debugging quite a bit, but i can't figure it out; is it possible to add something (buttons, etc.) to a tab? I'm using a FrameLayout inside a TabWidget inside a TabHost. I tried lots of things, including adding to TabHost's getCurrentTabView, but i wasn't lucky. Any tips? Thanks, Teo --~--~-~--~~~---~--~~ 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, send email to [EMAIL PROTECTED] Announcing the new Android 0.9 SDK beta! http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Adding content to a tab view dynamically
Actually my mistake. getCurrentTabView might just get the view of the tab you have selected (not the contents of the tab). Try getCurrentView. Post sample code if you can't get it working and I will explore further. On Aug 21, 2:04 pm, Josh Guilfoyle [EMAIL PROTECTED] wrote: Do you mean to add a new tab or simply dynamically adjust the View hierarchy in a particular tab? If so, getCurrentTabView will work to do what you need. Just modify the view hierarchy found there. Do realize that you are getting the root-level View of the tab, so you must search within that using View#findViewById to locate the actual view you're looking to modify. On Aug 21, 11:28 am, Teo [EMAIL PROTECTED] wrote: Hi, i tried debugging quite a bit, but i can't figure it out; is it possible to add something (buttons, etc.) to a tab? I'm using a FrameLayout inside a TabWidget inside a TabHost. I tried lots of things, including adding to TabHost's getCurrentTabView, but i wasn't lucky. Any tips? Thanks, Teo --~--~-~--~~~---~--~~ 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, send email to [EMAIL PROTECTED] Announcing the new Android 0.9 SDK beta! http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Why is video so broken, there is a serious media stack hiding in there.
According to this article http://www.gearlog.com/2007/11/fresh_hot_specs_googles_androi.php there is a serious media stack available. I have seen http requests from a client identifying itself as User- Agent: PVCore/5.02.00.00. This matches the name of the product referred to in the article. So what seems broken? As I mentioned in an earlier post, I spent a day browsing video content provider sites that had a multitude of sample download, progressive download and streaming links to test. None worked. Not one all day, and I was picking the low res stuff too. Part of the problem is that mime types are not configured in the Android browser, open a .3gp link, you see the bytes in the browser like they are a text file. The only mime type that I have noticed that gets handed off to the media player is the one associated with .mp4, video/mp4. Try opening a .sdp file, mime type application/sdp, that describes a rtsp video feed and you get unsupported content message. It seems that there is the capability to handle more media types than the iPhone can, yet the integration between the browser and the media player is so bad that the media player is basically worthless. 1. When will mime types be associated in the browser, so non programmers can use it to open media links, you know - users? 2. How can I associate mime types with the existing media player now? 3. Why is there no UI that I can find at all in the media player to navigate to content? --~--~-~--~~~---~--~~ 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, send email to [EMAIL PROTECTED] Announcing the new Android 0.9 SDK beta! http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Activity Question
Dianne, please save me one more time. --~--~-~--~~~---~--~~ 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, send email to [EMAIL PROTECTED] Announcing the new Android 0.9 SDK beta! http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: VideoView won't display video for some videos in the beta SDK
Hi Cheryl, Thanks for the link...I get the following error in logcat on playing your video: W/PlayerDriver( 25): Video cannot catch up. Are you playing a high quality content? E/MediaPlayer(18559): Error (44,0) D/VideoView(18559): Error: 44,0 which gives you the reason why its failing. To elaborate...the quality of the video that you tried to play it too high (it's 640x426, 30fps). Android only supports H.264 Base profile HVGA 30fps 600Kbps video bitstream. That's why you are seeing the error 44 which means that the video failed to catch up with the audio and it's more than 120 frames dropped. On Thu, Aug 21, 2008 at 8:53 AM, Cheryl Sedota [EMAIL PROTECTED]wrote: Thanks for helping to investigate, Megha. The URL is: http://feeds.feedburner.com/~r/IdolsOnEllen/~5/265429513/idolcast0407_dl.m4vhttp://feeds.feedburner.com/%7Er/IdolsOnEllen/%7E5/265429513/idolcast0407_dl.m4v On Aug 20, 7:05 pm, Megha Joshi [EMAIL PROTECTED] wrote: Please post your Video1 file.. On Wed, Aug 20, 2008 at 4:57 PM, Cheryl Sedota [EMAIL PROTECTED] wrote: The VideoView seems to be a bit broken in the new beta (v0.9) SDK: I have two videos that are of the same format/encoding. Video1 has 29 frames per second with dimensions 640x426. Video2 has 23 frames per second with dimensions 320x180. Video2 plays just fine using the VideoView (audio + video). Video1 only has audio playing and the VideoView is empty visually. I am running the emulator on Windows XP. Please advise. Thanks, Cheryl --~--~-~--~~~---~--~~ 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, send email to [EMAIL PROTECTED] Announcing the new Android 0.9 SDK beta! http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: ANDROID Media Player problem with files generated by emulator
Hi, The objective is to send wave file throught a socket in to a second emulator and rebuild the file there. the bytes read are the bytes passed to rebuilding the file. If i extract the file and play in windows media player its fine, but if i try to use the androids mediaplayer it throws an IO exceptions while running the MediaPlayer.prepare method. On 21 Ago, 21:38, Megha Joshi [EMAIL PROTECTED] wrote: Are you refering to a file recorded by the MediaRecorder as file created by the emulator? What kind of file is this...video or audio? Can you attach the file here? On Thu, Aug 21, 2008 at 4:42 AM, Jaime Cordeiro [EMAIL PROTECTED]wrote: Hi, I've got a strange problem that is im able to play a wave file that is in the sdcard but whem i try to play a copy of the file that is created in the emulator throws IOException. I've seen the file in HEX and there the same, the file plays fine outside the emulator but in the emulator throws exception. Any idea way? Regards Jaime Cordeiro- Ocultar texto citado - - Mostrar texto citado - --~--~-~--~~~---~--~~ 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, send email to [EMAIL PROTECTED] Announcing the new Android 0.9 SDK beta! http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: ANDROID Media Player problem with files generated by emulator
On Thu, Aug 21, 2008 at 2:20 PM, Jaime Cordeiro [EMAIL PROTECTED]wrote: Hi, The objective is to send wave file throught a socket in to a second emulator and rebuild the file there. the bytes read are the bytes passed to rebuilding the file. If i extract the file and play in windows media player its fine, but if i try to use the androids mediaplayer it throws an IO exceptions while running the MediaPlayer.prepare method. hmm...can you send the logcat output? On 21 Ago, 21:38, Megha Joshi [EMAIL PROTECTED] wrote: Are you refering to a file recorded by the MediaRecorder as file created by the emulator? What kind of file is this...video or audio? Can you attach the file here? On Thu, Aug 21, 2008 at 4:42 AM, Jaime Cordeiro [EMAIL PROTECTED]wrote: Hi, I've got a strange problem that is im able to play a wave file that is in the sdcard but whem i try to play a copy of the file that is created in the emulator throws IOException. I've seen the file in HEX and there the same, the file plays fine outside the emulator but in the emulator throws exception. Any idea way? Regards Jaime Cordeiro- Ocultar texto citado - - Mostrar texto citado - --~--~-~--~~~---~--~~ 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, send email to [EMAIL PROTECTED] Announcing the new Android 0.9 SDK beta! http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Managed Dialogs
A related question... I noticed that the AlertDialogs that I use in my app seem to be managed without me calling showDialog in an Activity. If that is true, is there a way for me to write a class which extends Dialog and maybe call some getOwnerActivty() member methods to achieve the managed status for my Dialog? --~--~-~--~~~---~--~~ 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, send email to [EMAIL PROTECTED] Announcing the new Android 0.9 SDK beta! http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] AlertDialog Padding
I need to implement an AlertDialog with a EditView and an an OK and a Cancel button. I would like to be able to enable/disable the OK button if the EditText has/does not have text in it. I have two choices but I have problems with each approach: 1) If I create the AlertDialog with a layout which contains simply the EditText, the problem I'm having is that I can't get hold of the OK button widget to enable/disable it. Maybe you can suggest a way... like calling findViewById( unknown_ok_button_id) for the dialog layout which I don't know how to get :-) 2) I can create the AlertDialog with a layout which contains the EditText and the OK and the Cancel buttons (no positive and negative buttons). This approach works but there is side effect. In the 0.9 SDK there is unwanted padding at the bottom and the of the dialog (maybe 20dip). Maybe you can suggest a way to modify my layout to make it ignore the padding of the dialog layout. I tried clipToPadding=false but that did not work. --~--~-~--~~~---~--~~ 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, send email to [EMAIL PROTECTED] Announcing the new Android 0.9 SDK beta! http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: maps behind proxy 0.9 beta
Jokochi, I would be interested in seeing your solution as well. Thanks. On Aug 21, 5:12 am, jokochi [EMAIL PROTECTED] wrote: I am in the same situation that the browser in 0.9 couldn't get any data behind proxy. Also I recognize this problem is same as map view. Because of most proxy server will not convey a packet besides SSL(443) port with CONNECT method but MapView is trying to connect with CONNECT method first. The browser in 0.9 has changed same as MapView. As for the solution, I make a small program that ignore the CONNECT method and change the POST's URI. It is written in PHP and it is only 200 lines. Please let me know if you are interesting in my program, and I will give it. On 8月21日, 午後2:26, shan [EMAIL PROTECTED] wrote: No the browser is not working till now, the -http-proxystartup option does'nt seem to work(for the 0.9). But in the m5r15 i could get the browser to work via the http_proxy field in the system table, but the maps application could not connect to the server. I think that it uses a config totally different from the standard ones, to which we dont have access. I am guessing that the situation would be same in 0.9 as well. Only hope being that the maps API would recognise the http-proxyoption. 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 aproxyand my guess would be that you aren't able to use any data at all. Cheers, Justin Android Team @ Google On Aug 20, 5:40 am, shan [EMAIL PROTECTED] wrote: Can the maps API work behindproxyin the 0.9 beta?- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ 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, send email to [EMAIL PROTECTED] Announcing the new Android 0.9 SDK beta! http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: SDK 0.9 camera issues
1. The camera preview on the emulator gives a greyscale animation, while I need a color view for testing. How can I fix this? Having the color animation of SDK M5 RC15 would have been OK for me. I hope that greyscale preview is not going to be the preview standard for the physical phones? I think that's just the emulator providing a greyscale testing image. The preview is still full color, but the raw data doesn't have any color in it for you to see. As for supported resolutions, it looks like getParameters().getPreviewSize() might be the right direction. --~--~-~--~~~---~--~~ 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, send email to [EMAIL PROTECTED] Announcing the new Android 0.9 SDK beta! http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Icon Pack
Is there a way to get the Android Desktop Icons (Browser, Folder, etc..) as PNGs with Alpha? - Gavin Greenwalt --~--~-~--~~~---~--~~ 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, send email to [EMAIL PROTECTED] Announcing the new Android 0.9 SDK beta! http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Problem with TableLayout
I have two questions regarding the use of a TableLayout. 1) First of all, i am using a horizontal orientation. The content of my TableLayout gets hidden at the bottom of the screen if the title feature is not turned off. if i use requestWindowFeature(Window.FEATURE_NO_TITLE); then. all the contents fit well. To me, it looks like it calculates the height needed for the TableLayout and then just adds the title above it which pushes the entire layout down and hence, some stuff gets hidden. Is this an issue and if yes, was it there in the old SDK? What would be a workaround? 2) My second question is regarding a TableRow. By default, the layout_height for a table row and its children is set to WRAP_CONTENT. If i need the row's layout_height property to be set to FILL_PARENT, how can i do that? Is it possible? or is there a possible workaround? Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] Announcing the new Android 0.9 SDK beta! http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Images
I apologize if this double posts. I posted this a half hour ago and it never went up so I assume something went wrong. 1) Is it possible to extract the icons as PNGs and 2) are the Backgrounds also extractable? (From the SDK)/Emulator. Thanks, Gavin Greenwalt --~--~-~--~~~---~--~~ 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, send email to [EMAIL PROTECTED] Announcing the new Android 0.9 SDK beta! http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Activity Question
The user enters the username and password and if it is correct I call finish() on Activity A an call startActivity to start Activty B. You are calling startActivity from onPause() then? If you are calling startActivity and then finish(), finish() won't actually execute until the new activity you started finishes. At the moment you call startActivity on B, A's onPause will be called and B will start executing. I thought to my self: If I know that the user is logged in I can call finish() in the onCreate() of Activty A. From the rest of your description I'm also not clear if your code is the same when you started your question as it is when you finish it. Do your comments after this point in your post relate to code that is different. The problem now is that if I hit Back from Activity B and then click the home screen app icon of course nothing happens because Activity A calls finish(). What do you mean nothing happens? Something has to happen, something will be launch, even it it closes immediately. If you were in B and you press 'back' and see the home screen, then an instance of A no longer exists, because it would be behind B. My guess is what is actually happening is that when you hit 'back' from B, A is immediately finishing. When you try to launch your application from the home screen again, I'm not sure what is happening. Hopefully you can clarify exactly what you're doing. Cheers, Justin Android Team @ Google On Aug 21, 12:38 pm, Gil [EMAIL PROTECTED] wrote: I did more research on this subject and I have a new situation. Activity A is the main activity and it uses the singleTask launch mode. Activity B uses the singleTop launch mode. In my app Activity A is the login activity for my application. The user enters the username and password and if it is correct I call finish() on Activity A an call startActivity to start Activty B. If I hit the Home button while in the Activity B and then hit the home screen icon of the app something interesting happens: Activity A comes to the front. If I hit the Back button I now see Activity B. I thought to my self: If I know that the user is logged in I can call finish() in the onCreate() of Activty A.That works, meaning that while I'm in Activity B I hit the Home button, clicking the home screen app icon returns me to Activity B without displaying Activty A; so far so good. The problem now is that if I hit Back from Activity B and then click the home screen app icon of course nothing happens because Activity A calls finish(). Please let me know if I'm on the right path. Thanks! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] Announcing the new Android 0.9 SDK beta! http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Remote 3GP video in 0.9 SDK
What encoding settings are you using? What are you encoding with? Are you configuring for progressive streaming? Do you know the files that you've tried are progressively streamable? Can you provide some example URLs? Cheers, Justin Android Team @ GOogle On Aug 21, 10:48 am, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I spent most of a day using the emulator in 0.9 surfing to sample video files on video contest provider sites, I must have tried playing 100's of files. Not one played. I have been able to encode a mp4 (mp4v/mp4a codecs) video file and load it from the browser (enter url in browser, probably due to mime type returned from server, it gets passed to the media player which then does its own http get request (which in it self it bugged, reported)). Problem is the audio is distorted, like playing a 45 record at 33 is best description. I have tried numerous audio bit rates and sample rates, to no avail, it is either distorted or it crashes media player. Where if anywhere are serious and complete specs on supported media player transports, encapsulation formats and supported codes and subspecs like sample, stream and frame rates supported? Can whoever wrote the media player provide any test video files that actually work? Oh and by the way, I'm sure that writing tons of different media player applications is interesting and all, but i'm pretty sure users in the end will want to click on links in the broswer and have video and audio play, not type or copy/paste them into standalone players. This is a place where android can be a iPhone killer, because ATT and Apple are trying so hard to control content delivery so they can wring more money out of the users pockets. At the moment Android is failing here. On Aug 20, 3:19 pm, Maklouf [EMAIL PROTECTED] wrote: Hi there, Is rtsp or any other formats going to be supported in the final release? where can we find the complete specs of the media capabilities? We want to build an application to stream Live content to an android device (eg Live content from a web cam), is this possible with the current SDK? From what I have read in this forum you can only stream already complete encorded files. Regards. Maklouf On Aug 19, 2:35 pm, Justin (Google Employee) [EMAIL PROTECTED] wrote: Snowcrash, thanks for pointing this out! To elaborate on reasonably interleaved... What determines reasonably is dependent on many factors like network bandwidth, network latency, and buffer size. In general you want to have a chunk of audio for a certain unit of time followed by a corresponding chunk of video for the same amount of time, your video creation software should be formatting the stream that for you anyway. The next question is how large a unit of playback time this should be. To repeat, the best answer to this question is dependent on network conditions, buffer size, and bitrate, factors which may change over time and be different from Android device to Android device. Having said all that, a good guideline is to packetize your stream into 0.5 second parts. Your results may vary and I encourage you to test for your actual applications, but this is a reasonable place to start experimenting. Regards, Justin Android Team @ Google On Aug 19, 1:03 pm, Megha Joshi [EMAIL PROTECTED] wrote: Yes, you can use QuickTime Pro to create progressive streamable format: Steps below: 1. Open the video file in Quick Time Pro. 2. Goto File Export 3. Select type as 'Movie to 3G' 4. Click Options 5. Select file format as 3gpp 6. In the drop down menu below the file format, select 'Streaming' from the list of available options (Audio, Video, Text, Streaming, Advanced) 7. Select the required maximum packet size and maximum packet duration 8. Click Save On Tue, Aug 19, 2008 at 6:44 AM, snowcrash [EMAIL PROTECTED] wrote: Hi there, your video filehttp://www.jsharkey.org/downloads/dailytest.3gp doesn't conform to the specifications stated in the source code: Mediaplayercan only play progressive streamable contents which basically means: 1. the movie atom has to precede all the media data atoms. 2. The clip has to be reasonably interleaved. For your file, ' strings dailytest.3gp | grep -n mdat\|moov ' returns: 4:k:mdat 2773:moov which is a violation of (1.) where 'moov' has to precede any 'mdat'. But what 'reasonably interleaved' means is still mysterious. Perhaps someone from Google reading here can shed some light on this. Regards, 131071 On 19 Aug., 07:07, Jeffrey Sharkey [EMAIL PROTECTED] wrote: Also, just to follow-up on this more, I installed lighttpd locally on the same computer as the emulator. I also made sure to add the 3GP video mime-type. This way, I could try using
[android-developers] Re: running httpclient with beta 0.9
You'll need to add uses-permission android:name=android.permission.INTERNET / to your manifest file if your application wishes to use data. Cheers, Justin Android Team @ Google On Aug 20, 12:43 am, DeMorgan [EMAIL PROTECTED] wrote: Justine: I'm able to use HttpClient just fine (in fact, just posted some sample code for doing multipart posts). Hi Justine, I have tried to migrate to new http client, in previous release I was using classes: import org.apache.commons.httpclient.HttpClient; import org.apache.commons.httpclient.HttpStatus; import org.apache.commons.httpclient.methods.ByteArrayRequestEntity; import org.apache.commons.httpclient.methods.PostMethod; Now I have moved to new http client, but I am getting en exception: java.net.SocketException: unknown error at org.apache.harmony.luni.platform.OSNetworkSystem.createSocketImpl(Native Method) at org.apache.harmony.luni.platform.OSNetworkSystem.createSocket(OSNetworkSystem.java: 79) at org.apache.harmony.luni.net.PlainSocketImpl2.create(PlainSocketImpl2.java: 59) at java.net.Socket.checkClosedAndCreate(Socket.java:763) at java.net.Socket.connect(Socket.java:910) at org.apache.http.conn.scheme.PlainSocketFactory.connectSocket(PlainSocketFactory.java: 117) at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java: 129) at org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java: 164) at org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java: 119) at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java: 348) at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java: 555) at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java: 487) at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java: 465) If you have working examples with new client, please let me know where I can find them. Regards, Nick On Aug 20, 3:40 am, dai [EMAIL PROTECTED] wrote: aahh, I'm so sorry.. What I said I could run was with RC5. Thank you, I'll post code later. I'm confused -- you say for HTTPS, you get the exception, then later, you say you use HTTPS and it works. Which is it? Or does the exception come and go? On Aug 20, 9:35 am, Mark Murphy [EMAIL PROTECTED] wrote: dai wrote: Yes, I can access web sites via build in web browser. I mainly use https:443.. then run into unknownhost exception. I aslo tried to access via http:80, same error happened. Speaking of https:443, I could reach the target host without problems. I'm confused -- you say for HTTPS, you get the exception, then later, you say you use HTTPS and it works. Which is it? Or does the exception come and go? Are you be able to access web sites now from you own app with beta0.9 - httpclient..? I won't be updating that chapter in my book until this weekend, in all likelihood. Too many code samples, too little time... But, as Justin pointed out, others can use the new HttpClient just fine. Can you post some code that demonstrates the problem? -- Mark Murphy (a Commons Guy)http://commonsware.com Warescription: All titles, revisions, ebook formats, just $35/year --~--~-~--~~~---~--~~ 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, send email to [EMAIL PROTECTED] Announcing the new Android 0.9 SDK beta! http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: running httpclient with beta 0.9
Ah, and Mark already got this one. Such a mess in here with the changed subject lines! :-) Cheers, Justin Android Team @ Google On Aug 21, 4:07 pm, Justin (Google Employee) [EMAIL PROTECTED] wrote: You'll need to add uses-permission android:name=android.permission.INTERNET / to your manifest file if your application wishes to use data. Cheers, Justin Android Team @ Google On Aug 20, 12:43 am, DeMorgan [EMAIL PROTECTED] wrote: Justine: I'm able to use HttpClient just fine (in fact, just posted some sample code for doing multipart posts). Hi Justine, I have tried to migrate to new http client, in previous release I was using classes: import org.apache.commons.httpclient.HttpClient; import org.apache.commons.httpclient.HttpStatus; import org.apache.commons.httpclient.methods.ByteArrayRequestEntity; import org.apache.commons.httpclient.methods.PostMethod; Now I have moved to new http client, but I am getting en exception: java.net.SocketException: unknown error at org.apache.harmony.luni.platform.OSNetworkSystem.createSocketImpl(Native Method) at org.apache.harmony.luni.platform.OSNetworkSystem.createSocket(OSNetworkSystem.java: 79) at org.apache.harmony.luni.net.PlainSocketImpl2.create(PlainSocketImpl2.java: 59) at java.net.Socket.checkClosedAndCreate(Socket.java:763) at java.net.Socket.connect(Socket.java:910) at org.apache.http.conn.scheme.PlainSocketFactory.connectSocket(PlainSocketFactory.java: 117) at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java: 129) at org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java: 164) at org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java: 119) at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java: 348) at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java: 555) at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java: 487) at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java: 465) If you have working examples with new client, please let me know where I can find them. Regards, Nick On Aug 20, 3:40 am, dai [EMAIL PROTECTED] wrote: aahh, I'm so sorry.. What I said I could run was with RC5. Thank you, I'll post code later. I'm confused -- you say for HTTPS, you get the exception, then later, you say you use HTTPS and it works. Which is it? Or does the exception come and go? On Aug 20, 9:35 am, Mark Murphy [EMAIL PROTECTED] wrote: dai wrote: Yes, I can access web sites via build in web browser. I mainly use https:443.. then run into unknownhost exception. I aslo tried to access via http:80, same error happened. Speaking of https:443, I could reach the target host without problems. I'm confused -- you say for HTTPS, you get the exception, then later, you say you use HTTPS and it works. Which is it? Or does the exception come and go? Are you be able to access web sites now from you own app with beta0.9 - httpclient..? I won't be updating that chapter in my book until this weekend, in all likelihood. Too many code samples, too little time... But, as Justin pointed out, others can use the new HttpClient just fine. Can you post some code that demonstrates the problem? -- Mark Murphy (a Commons Guy)http://commonsware.com Warescription: All titles, revisions, ebook formats, just $35/year --~--~-~--~~~---~--~~ 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, send email to [EMAIL PROTECTED] Announcing the new Android 0.9 SDK beta! http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Problem with TableLayout
To me, it looks like it calculates the height needed for the TableLayout and then just adds the title above it which pushes the entire layout down and hence, some stuff gets hidden. Is this an issue and if yes, was it there in the old SDK? What would be a workaround? Your content is simply too large for the screen. You should put your TableLayout inside a ScrollView. 2) My second question is regarding a TableRow. By default, the layout_height for a table row and its children is set to WRAP_CONTENT. If i need the row's layout_height property to be set to FILL_PARENT, how can i do that? Is it possible? or is there a possible workaround? You can't, because in this case you would see only one row at a time. You should use a LinearLayout to do this. -- Romain Guy www.curious-creature.org --~--~-~--~~~---~--~~ 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, send email to [EMAIL PROTECTED] Announcing the new Android 0.9 SDK beta! http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Activity Question
Sorry it was not clear.Please let me try to explain the second part in a different way. 1) Start the application for the first time. Activity A is displayed (it is the main Activity i.e. uses MAIN/LAUNCHER in the intent filter). Activity A also uses singleTask launch mode. 2) User enters username and password. An asynchronous authentication is started. When authetication completes I execute the following code inside the authentication callback: finish(); Intent intent = new Intent( this, ActivityB.class); intent.setAction( Intent.ACTION_VIEW); intent.setData( m_signedInUser.getContentUri()); startActivity( intent); 3) Now, Activity B is visible. BTW, Activity B uses the singleTop launch mode. 4) User hits the Home button. Activity B is no longer visible. 5) The user clicks the app icon in the home screen. Activity A is displayed. Note: As hackbod said earlier, Activity B should be displayed. 6) While Activity A is still visible hit the Back button. Activity B is now visible. Hope this is clearer. Thanks for helping out! --~--~-~--~~~---~--~~ 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, send email to [EMAIL PROTECTED] Announcing the new Android 0.9 SDK beta! http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Activity Question
How are you performing your asynchronous authentication? Are you just starting another thread from your Activity or are you using a specific class? Cheers, Justin Android Team @ Google On Aug 21, 4:13 pm, Gil [EMAIL PROTECTED] wrote: Sorry it was not clear.Please let me try to explain the second part in a different way. 1) Start the application for the first time. Activity A is displayed (it is the main Activity i.e. uses MAIN/LAUNCHER in the intent filter). Activity A also uses singleTask launch mode. 2) User enters username and password. An asynchronous authentication is started. When authetication completes I execute the following code inside the authentication callback: finish(); Intent intent = new Intent( this, ActivityB.class); intent.setAction( Intent.ACTION_VIEW); intent.setData( m_signedInUser.getContentUri()); startActivity( intent); 3) Now, Activity B is visible. BTW, Activity B uses the singleTop launch mode. 4) User hits the Home button. Activity B is no longer visible. 5) The user clicks the app icon in the home screen. Activity A is displayed. Note: As hackbod said earlier, Activity B should be displayed. 6) While Activity A is still visible hit the Back button. Activity B is now visible. Hope this is clearer. Thanks for helping out! --~--~-~--~~~---~--~~ 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, send email to [EMAIL PROTECTED] Announcing the new Android 0.9 SDK beta! http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Activity Question
I'm starting my own thread from Activity A and then I use a Handler to post the callback to make it thread safe. --~--~-~--~~~---~--~~ 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, send email to [EMAIL PROTECTED] Announcing the new Android 0.9 SDK beta! http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Images Cursor Problem
My code launches the image picker to select a photo from external media. In the onActivityResult I call extra.getData() to obtain the image Uri. I know that it is valid because I can obtain a bitmap from the Uri. However, when I try to get a cursor for this item for the purpose of getting the photo information (description, ...) I get an exception: Cursor cursor = MediaStore.Images.Media.query( getContentResolver(), extras.getData(), null); ERROR/AndroidRuntime(1463): Caused by: android.database.sqlite.SQLiteException: no such column: name: , while compiling: SELECT * FROM images WHERE (_id = 40) ORDER BY name ASC ERROR/AndroidRuntime(1463): at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java: 143) ERROR/AndroidRuntime(1463): at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java: 111) ERROR/AndroidRuntime(1463): at android.content.ContentProviderProxy.bulkQuery(ContentProviderNative.java: 259) ERROR/AndroidRuntime(1463): at android.content.ContentProviderProxy.query(ContentProviderNative.java: 278) ERROR/AndroidRuntime(1463): at android.content.ContentResolver.query(ContentResolver.java:146) ERROR/AndroidRuntime(1463): at android.provider.MediaStore$Images $Media.query(MediaStore.java:186) ERROR/AndroidRuntime(1463): at com.multiplefacets.blogger.PostActivity.onActivityResult(PostActivity.java: 493) ERROR/AndroidRuntime(1463): at android.app.Activity.dispatchActivityResult(Activity.java:3413) ERROR/AndroidRuntime(1463): at android.app.ActivityThread.deliverResults(ActivityThread.java:2826) Any idea what is causing this? Does the column name actually exist? --~--~-~--~~~---~--~~ 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, send email to [EMAIL PROTECTED] Announcing the new Android 0.9 SDK beta! http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Can I change the homesample code?
SDK 0.9 give the m15 home screen code, I try to change the code ,but it doesn't work! Who can tell me why? -- Confidentiality Notice: The information contained in this e-mail and any accompanying attachment(s) is intended only for the use of the intended recipient and may be confidential and/or privileged of Neusoft Corporation, its subsidiaries and/or its affiliates. If any reader of this communication is not the intended recipient, unauthorized use, forwarding, printing, storing, disclosure or copying is strictly prohibited, and may be unlawful. If you have received this communication in error, please immediately notify the sender by return e-mail, and delete the original message and all copies from your system. Thank you. --- --~--~-~--~~~---~--~~ 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, send email to [EMAIL PROTECTED] Announcing the new Android 0.9 SDK beta! http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: 答复: [android-de velopers] Re: 答复: [android-developers] Re: ca n iadd widget to home screen
希望建一个汉语的类似圈子的东东,方便国人内部沟通。 From nainfanta 2008-08-22 08:58:21 Shenzhen Kehao Information Technologies Co., Ltd. http://www.kehaoinfo.com 发件人: 于慧娟 发送时间: 2008-08-21 09:04:58 收件人: android-developers@googlegroups.com 抄送: [EMAIL PROTECTED] 主题: [android-developers] 答复: [android-developers] Re: 答复: [android-developers] Re: can iadd widget to home screen 是的我是中国人,说汉语。 发件人: android-developers@googlegroups.com [mailto:[EMAIL PROTECTED] 代表 lianglz2008 发送时间: 2008年8月21日 8:55 收件人: android-developers@googlegroups.com 主题: [android-developers] Re: 答复: [android-developers] Re: can i add widget to home screen 您好: 如果您会说汉语的话,希望我们能够汉语沟通,因为我英语学的不是很好。 在2008-08-20 17:09:12,于慧娟 [EMAIL PROTECTED] 写道: Thank you so much! -邮件原件- 发件人: android-developers@googlegroups.com [mailto:[EMAIL PROTECTED] 代表 Romain Guy 发送时间: 2008年8月20日 16:37 收件人: android-developers@googlegroups.com 主题: [android-developers] Re: can i add widget to home screen Hi, You can only add one of the built-in widgets (Clock, Photo Frame, Search) by either long-pressing an empty spot on your wallpaper or by going in Menu Add. Android 1.0 won't give external applications the ability to add new widgets to the Home screen. This is however something we want to do post-1.0. Note that external applications can already provide custom shortcuts. Shortcuts are simply Intents with custom icons. On Wed, Aug 20, 2008 at 1:11 AM, 于慧娟 伊利:有梦想,就有下一次飞翔。期待刘翔王者归来。/a --~--~-~--~~~---~--~~ 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, send email to [EMAIL PROTECTED] Announcing the new Android 0.9 SDK beta! http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---