[android-developers] Using mediaplayer class over HTTPS?
Is there any way to get the MediaPlayer class to play files streamed over HTTPS? The project I'm currently working on was working while we used HTTP only, but when we started using HTTPS instead, we found that doing the same thing with MediaPlayer over HTTPS will cause it to do nothing. Is there something that we're missing, or need to do first to prepare it for HTTPS? --~--~-~--~~~---~--~~ 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 android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Audio streaming/progressive download over HTTP
I'm currently using the MediaPlayer class to play some files. However, it seems that whenever I seek back and forth, it needs to re-download and buffer parts it has already played. Is this what you mean by no "progressive download yet"? On Apr 14, 2:56 pm, Dave Sparks wrote: > We don't have an API for progressive download yet. Technically, the > website should say "progressive streaming", but from a file authoring > perspective there is no distinction between the two. > > RTSP support is only available for MPEG-4 file formats. There is no > support for raw AMR, AAC, or MP3 streams. > > On Apr 14, 1:12 pm, Alexander wrote: > > > Hi All, > > > I have a couple questions regarding audio streaming/progressive > > download over > > HTTP. Could you please help me? > > > 1. MediaPlayer supports progressive download according to the > > developer guide from > > this linkhttp://developer.android.com/guide/topics/media/index.html > > ("If you're > > passing a URL to an online media file, the file must be capable of > > progressive > > download."). As far as I understand progressive download means media > > playback during > > download process with saving the media file to file system(SD card or > > internal FS) after > > the downloading is finished (if it's a file, not a stream in the > > passed URL). > > So, I tried to set the following URL: setDataSource > > (http://84.204.154.49/mmapi/music.mp3). Playback is fine, but the file > > isn't saved to > > SD card or internal phone file system. Can MediaPlayer save media > > content to the file system > > after downloading is completed? Is there a way to turn on such > > capability? > > > 2. Does MediaPlayer support HTTP streaming? I tried to > > usehttp://217.10.32.134:8129/ultrafan128.mp3,http://62.32.66.180:8800, > > also AMR-, AAC- > > audio stream over HTTP on the local server, but playback does not > > work. For example, > > RTSP streaming works fine with AMR and AAC. > > > Thank you, > > Alexander --~--~-~--~~~---~--~~ 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 android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How to get the handle for one pop-up dialog?
Can anyone give me a hand? On Tue, Mar 24, 2009 at 10:19 PM, david liu wrote: > Hi All, > > Here I have one question about I want to get the handle for one popup > dialog, such as, there is one "Delete" alertDialog pop up when you want to > delete one picture. So could anyone have the good idea about this? > > Thanks, > David > --~--~-~--~~~---~--~~ 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 android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] How to get the handle for one pop-up dialog?
Hi All, Here I have one question about I want to get the handle for one popup dialog, such as, there is one "Delete" alertDialog pop up when you want to delete one picture. So could anyone have the good idea about this? Thanks, David --~--~-~--~~~---~--~~ 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 android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Which version of source codes is CupCake? When will it release?
I saw some people mentioned CupCake in the email threads, could anyone talk in details? --~--~-~--~~~---~--~~ 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 android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: crash in com.android.camera after calling Images.Media.insertImage
Similar error is happened. Could anyone help? On Tue, Feb 24, 2009 at 9:22 AM, Freddy wrote: > > I'm running android sdk v1.1-r1 testing with a T-Mobile G1 device > HT841GZ04082. > > I have a jpg on the sdcard that I want to add to the photo viewer. I > do this quite simply with the test code > > Bitmap bm = BitmapFactory.decodeFile("/sdcard/test.jpg"); > String test = Images.Media.insertImage(getContentResolver(), bm, > "title", "desciption"); > > which appears to work fine. I receive a value for bm and test is > "content://media/external/images/media/163" or such. All great to > this pointyuppie! > > Now the problem; when I launch photo viewer from the home screen it > always crashes until I reset the phone. Here's the crash dump with an > uncaught exception. I assume this is a bug in the andoid photo > viewer. Can anyone verify this and/or let me know how else I can add > an existing jpg to the photo viewer without crashing the app? > > Thanks. > > > 02-23 16:47:09.152: ERROR/AndroidRuntime(368): Uncaught handler: > thread main exiting due to uncaught exception > 02-23 16:47:09.162: ERROR/AndroidRuntime(368): > java.lang.RuntimeException: Unable to resume activity > {com.android.camera/com.android.camera.GalleryPicker}: > java.lang.NullPointerException > 02-23 16:47:09.162: ERROR/AndroidRuntime(368): at > android.app.ActivityThread.performResumeActivity(ActivityThread.java: > 2505) > 02-23 16:47:09.162: ERROR/AndroidRuntime(368): at > android.app.ActivityThread.handleResumeActivity(ActivityThread.java: > 2520) > 02-23 16:47:09.162: ERROR/AndroidRuntime(368): at > android.app.ActivityThread.handleLaunchActivity(ActivityThread.java: > 2160) > 02-23 16:47:09.162: ERROR/AndroidRuntime(368): at > android.app.ActivityThread.access$1800(ActivityThread.java:112) > 02-23 16:47:09.162: ERROR/AndroidRuntime(368): at > android.app.ActivityThread$H.handleMessage(ActivityThread.java:1581) > 02-23 16:47:09.162: ERROR/AndroidRuntime(368): at > android.os.Handler.dispatchMessage(Handler.java:88) > 02-23 16:47:09.162: ERROR/AndroidRuntime(368): at > android.os.Looper.loop(Looper.java:123) > 02-23 16:47:09.162: ERROR/AndroidRuntime(368): at > android.app.ActivityThread.main(ActivityThread.java:3739) > 02-23 16:47:09.162: ERROR/AndroidRuntime(368): at > java.lang.reflect.Method.invokeNative(Native Method) > 02-23 16:47:09.162: ERROR/AndroidRuntime(368): at > java.lang.reflect.Method.invoke(Method.java:515) > 02-23 16:47:09.162: ERROR/AndroidRuntime(368): at > com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run > (ZygoteInit.java:739) > 02-23 16:47:09.162: ERROR/AndroidRuntime(368): at > com.android.internal.os.ZygoteInit.main(ZygoteInit.java:497) > 02-23 16:47:09.162: ERROR/AndroidRuntime(368): at > dalvik.system.NativeStart.main(Native Method) > 02-23 16:47:09.162: ERROR/AndroidRuntime(368): Caused by: > java.lang.NullPointerException > 02-23 16:47:09.162: ERROR/AndroidRuntime(368): at > com.android.camera.GalleryPicker$GalleryPickerAdapter.init > (GalleryPicker.java:251) > 02-23 16:47:09.162: ERROR/AndroidRuntime(368): at > com.android.camera.GalleryPicker.rebake(GalleryPicker.java:96) > 02-23 16:47:09.162: ERROR/AndroidRuntime(368): at > com.android.camera.GalleryPicker.onResume(GalleryPicker.java:435) > 02-23 16:47:09.162: ERROR/AndroidRuntime(368): at > android.app.Instrumentation.callActivityOnResume(Instrumentation.java: > 1224) > 02-23 16:47:09.162: ERROR/AndroidRuntime(368): at > android.app.Activity.performResume(Activity.java:3359) > 02-23 16:47:09.162: ERROR/AndroidRuntime(368): at > android.app.ActivityThread.performResumeActivity(ActivityThread.java: > 2492) > 02-23 16:47:09.162: ERROR/AndroidRuntime(368): ... 12 more > > > > --~--~-~--~~~---~--~~ 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 android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Cannot sync Calendar with Google Calendar service on emulator
Hi Johnson, Could you please tell me how to configure the username and pwd for the Google Service Login on the emulator? Thanks very much, David On Sat, Feb 21, 2009 at 1:15 AM, Johnson wrote: > Hi, > I run the 1.0r1 emulator and install Calendar.apk and CalendarProvider.apk > on the emulator. And I configure the username and pwd from DevTools->Google > Service Login successfully. > Now I can start the Calendar app successfully, with the month view/week > view/etc. But I don't know how to sync the calendars or events with Google > Calendar service. From the source code, I assume there should happen sync > operation. But it didn't happened. And I know another trigger to sync is > Menu->More->My Calendars, but after selected, the activity will crash. The > below is from DDMS logcat: > 02-21 00:59:44.260: INFO/ActivityManager(56): Starting activity: Intent { > action=android.intent.action.VIEW > comp={com.android.calendar/com.android.calendar.SelectCalendarsActivity} } > 02-21 00:59:44.681: WARN/dalvikvm(376): VFY: unable to resolve virtual > method 428: > Lcom/google/android/googleapps/GoogleLoginCredentialsResult;.getStatus > ()Lcom/google/android/googleapps/LoginData$Status; > 02-21 00:59:44.681: WARN/dalvikvm(376): VFY: rejecting opcode 0x6e at > 0x0012 > 02-21 00:59:44.681: WARN/dalvikvm(376): VFY: rejected > Lcom/google/android/googlelogin/GoogleLoginServiceBlockingHelper;.getAuthToken > (Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String; > 02-21 00:59:44.681: WARN/dalvikvm(376): Verifier rejected class > Lcom/google/android/googlelogin/GoogleLoginServiceBlockingHelper; > 02-21 00:59:44.681: WARN/dalvikvm(376): threadid=17: thread exiting with > uncaught exception (group=0x40010e28) > 02-21 00:59:44.681: ERROR/AndroidRuntime(376): Uncaught handler: thread > AsyncQueryWorker exiting due to uncaught exception > 02-21 00:59:44.711: ERROR/AndroidRuntime(376): java.lang.VerifyError: > com.google.android.googlelogin.GoogleLoginServiceBlockingHelper > 02-21 00:59:44.711: ERROR/AndroidRuntime(376): at > com.android.providers.calendar.CalendarProvider.fetchCalendarsFromServer(CalendarProvider.java:965) > 02-21 00:59:44.711: ERROR/AndroidRuntime(376): at > com.android.providers.calendar.CalendarProvider.queryInternal(CalendarProvider.java:841) > 02-21 00:59:44.711: ERROR/AndroidRuntime(376): at > android.content.SyncableContentProvider.query(SyncableContentProvider.java:373) > 02-21 00:59:44.711: ERROR/AndroidRuntime(376): at > android.content.ContentProvider$Transport.query(ContentProvider.java:128) > 02-21 00:59:44.711: ERROR/AndroidRuntime(376): at > android.content.ContentResolver.query(ContentResolver.java:147) > 02-21 00:59:44.711: ERROR/AndroidRuntime(376): at > android.content.AsyncQueryHandler$WorkerHandler.handleMessage(AsyncQueryHandler.java:74) > 02-21 00:59:44.711: ERROR/AndroidRuntime(376): at > android.os.Handler.dispatchMessage(Handler.java:88) > 02-21 00:59:44.711: ERROR/AndroidRuntime(376): at > android.os.Looper.loop(Looper.java:123) > 02-21 00:59:44.711: ERROR/AndroidRuntime(376): at > android.os.HandlerThread.run(HandlerThread.java:60) > > > -- > Best and Regards > Johnson > > > > --~--~-~--~~~---~--~~ 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 android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: After install ADT0.9,failed to launch APP as no VM compatible with android 1.5
You need create one vm firstly, then launch emulator with that vm. On Thu, Feb 19, 2009 at 10:26 PM, harry wrote: > > Same issue here. Cannot launch VM with ADT0.9.0 plugin, nor is > hardware device recognized. I had a look at > AndroidLaunchController.java and tried to patch the launch() function > but without success. Unfortunately I am not aware how to debug the > plugin itself, so I am stuck. Any suggestions? > > On 11 Feb., 03:28, tony wrote: > > Anybody can useADT0.9 run application now? > > > > > > --~--~-~--~~~---~--~~ 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 android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Is there one way to access http://developer.android.com from China MainLand
Hi All, I want to access this web site and download the latest SDK for my development. 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 android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Using android 1.5 emulator, the sdcard can't be mounted
I have another issue about I cannot see the pictures in the Gallery immediately after I push some pictures to sdcard. Is anyone have fix for this? Thanks, David On Wed, Feb 18, 2009 at 3:59 PM, PYJ wrote: > > You can try 'adb remount' command before push and pull some files. > > > On Jan 22, 5:21 pm, tony wrote: > > Command sequence is: > > > > 1.make sdk first, and > > cd /home/tony/android-sdk_eng.tony_linux-x86/tools/ > > 2../emulator -image ../platforms/android-1.5/images/system.img - > > kernel ../platforms/android-1.5/images/kernel-qemu -ramdisk ../ > > platforms/android-1.5/images/ramdisk.img -data ../platforms/ > > android-1.5/images/userdata.img -sdcard /home/motorola/sdcard.img - > > skindir ../platforms/android-1.5/skins -skin HVGA > > > > 3. ./adb push NOTICE.txt /sdcard > > failed to copy 'NOTICE.txt' to '/sdcard/NOTICE.txt': Read-only file > > system > > > > --~--~-~--~~~---~--~~ 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 android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Android 1.1_r1 SDK released and developer.android.com launched
I just saw one email about this, there is one fix you can download from http://developer.android.com/sdk/download.html?v=android-sdk-windows-1.1_r1.zip I cannot download it, since the problem with my network, hope you can get it. On Thu, Feb 19, 2009 at 5:27 AM, E. Litwin wrote: > > Any update on the Javadoc issue? > > On Feb 18, 9:40 am, Guillaume Perrot wrote: > > I have 0.8.0.v200809220836-110569 and no updates are available. > > > > 2009/2/18 DavidLiu : > > > > > > > > > > > > > what is the version of the android plugin? > > > > > On Feb 17, 12:58 pm, "Fred Grott(shareme)" > > > wrote: > > >> Yes, will a javadoc with this sdk version be supplied? I put off > > >> making the swtich because I did not want to loose code autocomplete > > >> just yet.. > > > > >> Once again thanks to the Google an OHA Engineers in pushing this out > > > > >> On Feb 15, 4:53 am, nuno wrote: > > > > >> > Is anyone looking into the javadoc issue? > > > > >> > On Feb 14, 7:17 pm, Guillaume Perrot > wrote: > > > > >> > > Sadly, the javadoc is not included in the new android.jar, so we > can't > > >> > > have the doc in Eclipse anymore when auto-completing... Is there a > way > > >> > > to restore that ? > > > > >> > > On Feb 14, 12:27 am, Mark Murphy wrote: > > > > >> > > > DavidLanz wrote: > > >> > > > > do you guys know what's the different from 1.0.r2 to 1.1r1? > > >> > > > > is there a reference or documentation about the difference? > > > > >> > > >http://developer.android.com/sdk/android-1.1.html > > > > >> > > > -- > > >> > > > Mark Murphy (a Commons Guy)http://commonsware.com > > >> > > > _The Busy Coder's Guide to Android Development_ Version 2.0 > Available!- Hide quoted text - > > > > >> - Show quoted text - > > > > -- > > Guillaume Perrot > > Software Engineer at Ubikod > > BuddyMob developer > > > > --~--~-~--~~~---~--~~ 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 android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: add files to data/data folder of android phone
I can create it, there is no permission for this one. On Thu, Feb 19, 2009 at 6:26 PM, Munish wrote: > > Hi > > I tried to access the data from "data/data" folder from emulator > memory and it worked fine > but when i created the same structure in android phone then > > 1). it didn't gave me permissions to create the directory "files" in > phone memory ( data/data/package name/) > > 2) any how i created the (data/data/package name//files/album) > structure through coding but now i am unable to do "cd files" > > I need to push some image files in the folder data/data/package name// > files/album > > Pl helpby replying asap > > > > > --~--~-~--~~~---~--~~ 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 android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: getAssets().open(file.txt)
Can you paste the log here? On Thu, Feb 19, 2009 at 6:31 PM, zeeshan wrote: > > i am trying to access a resource file by > > try { >InputStream is = getAssets().open("read_asset.txt"); > > > int size = is.available(); > >byte[] buffer = new byte[size]; >is.read(buffer); >is.close(); > >// Convert the buffer into a string. >String text = new String(buffer); > >// Finally stick the string into the text view. > TextView tv = (TextView)findViewById(R.id.text); >tv.setText(text); >} catch (IOException e) { > >// Should never happen! >throw new RuntimeException(e); >} > > > > and it is returning me exception, please help me > > > > 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 android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: problem in deleting Call Log
There are three paremeters for delete(delUri,null,null), I think the first one is about the table which you want to operate, the second is Where clause, here you need put the selecting condition (such as, rowId = 2), the third one we can use null. You also can refer to the instruction of this method in the package "android.database.sqlite.SQLiteDatabase". On Wed, Feb 18, 2009 at 11:13 PM, shahzad ahmad wrote: > I'm using SDK 1.0 r2 . This fucntion cursor.deleteRow is deprecated in > latest SDK > > On Wed, Feb 18, 2009 at 6:49 PM, Chandra Mouli wrote: > >> Try cursor.deleteRow() on the cursor you got from query. >> >> >> On Wed, Feb 18, 2009 at 7:09 PM, shahzad ahmad < >> shahzad.s.ah...@gmail.com> wrote: >> >>> Hi, >>> >>> I can easily delete the whole call log with following code >>> >>> >>> >>> getContentResolver().delete(CallLog.Calls.CONTENT_URI,null,null); >>> >>> >>> >>> I can query a particular call log with following code >>> >>> delUri = Uri.withAppendedPath(CallLog.Calls.CONTENT_URI, >>> "2"); >>> >>> Cursor cursor = >>> getContentResolver().query(delUri,null,null,null,null); >>> >>> But i always get unsupported function error when i try to delete a single >>> call log >>> >>> getContentResolver().delete(delUri,null,null); >>> >>> >>> Please guide me how to resolve this issue . >>> >>> thanks, >>> shahzad >>> >>> >>> >>> >>> -- >>> G . chandra mouli >>> >>> >>> > > > > --~--~-~--~~~---~--~~ 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 android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---