[android-developers] Re: Main and three binder threads are running after application close
Well, this is what I observe when I press the "back" button: In the main activity: - onPause() is called - onStop() is called - on Destroy() is called In the remote service: - onUnbind() is called (I unbind in onDestroy() of the main activity) - onDestroy() is called After that in the debugger: - main and three Binder threads (#1, 2, and 3) are still running Those threads will be running as long as I do not terminate them in the Debugger. Any ideas how to clean this? On May 21, 9:50 pm, Mike Hearn wrote: > Pressing the back button doesn't necessarily destroy the activity, it > just pauses it. Read the lifecycle docs to understand what you are > seeing. --~--~-~--~~~---~--~~ 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: whats wrong with my EditText to int
Can you provide the logcat output that shows the stack trace? What value did you enter for the et2 field? -- Jack Ha Open Source Development Center ・T・ ・ ・Mobile・ stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On May 22, 10:55 pm, "hencechen...@gmail.com" wrote: > here is my code,and it always goes to Exception. > > EditText et1=(EditText) > findViewById(R.id.content); > EditText et2=(EditText) > findViewById(R.id.money); > String con=et1.getText().toString(); > try{ > int > money=Integer.parseInt(et2.getText().toString()); > data.get(index).add(con, money); > Dialog dlg=new Dialog(android01.this); > dlg.setContentView(R.layout.succeed); > dlg.show(); > } > catch(Exception ex){ > Dialog dlg=new Dialog(android01.this); > dlg.setContentView(R.layout.error); > dlg.show(); > } > > How can i fix it? > > Thank you for your helping. > Hence --~--~-~--~~~---~--~~ 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] whats wrong with my EditText to int
here is my code,and it always goes to Exception. EditText et1=(EditText) findViewById(R.id.content); EditText et2=(EditText) findViewById(R.id.money); String con=et1.getText().toString(); try{ int money=Integer.parseInt(et2.getText().toString()); data.get(index).add(con, money); Dialog dlg=new Dialog(android01.this); dlg.setContentView(R.layout.succeed); dlg.show(); } catch(Exception ex){ Dialog dlg=new Dialog(android01.this); dlg.setContentView(R.layout.error); dlg.show(); } How can i fix it? Thank you for your helping. Hence --~--~-~--~~~---~--~~ 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] Sharing youtube videos on youtube playlist within application
Hi guys, I am looking at creating a shared playlist of youtube videos for my app and is wondering if there is an api for me to do that. I check on the stock youtube.apk and there is an activity where the users can select from a list of videos added on his/her playlist. Does anyone has any clue how can I have access to the playlist videos? Cheers Zi Yong --~--~-~--~~~---~--~~ 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: AsyncTask posting mulitple parameters
Just use the type Object for the parameters and you can then pass whatever you want. On Fri, May 22, 2009 at 9:24 PM, avrono wrote: > > This maybe a silly question, but I was wondering how to pass multiple > parameters to AsyncTask > > I have somthing like : > > private class DownloadTask extends AsyncTask < ArrayList, int [], > Cursor, void, void> { > protected ArrayList doInBackground(ArrayList > lst, int [] _thread_keys, Cursor c) { > return selectThreads2(lst, _thread_keys, c); > } > > > I would like to pass in the 3 parameters , I am not sure (1) if it is > possible and (2) what the syntax would be > > Thanks in advance > > > -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them --~--~-~--~~~---~--~~ 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] will maps application work on sdk 1.5 supported devices?
Hi, can any one please explain in detail why 1.5, 1.5G emulators are given? Can't the maps applications work on 1.5 emulator/supported devices ? The added advantage of 1.5G emulator is for running the maps kind of applications. Is it true? And are there any two separate devices available for 1.5 and 1.5G? Can any one please explain me in detail about the above queries. Help would be appreciated. Thanks, Manoj. --~--~-~--~~~---~--~~ 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] VERY URGENT : The app not working fine on 1.5G emulator (target name: Google APIs) which is working fine on 1.0 emulator
Hi I have written a location based app. The app finds a route between two coordinates. Its working fine on 1.0 emulator as well as on 1.0 supported devices. Now I tried to run the same app on 1.5G (Google APIs ) emulator. Its not working. It is not showing the route. and got the following log messages: D/GpsLocationProvider( 568): setMinTime 0 I/Maps.MyLocationOverlay( 655): Request updates from gps E/LocationManagerService( 568): isProviderEnabled got exception: E/LocationManagerService( 568): java.lang.IllegalArgumentException: provider=network E/LocationManagerService( 568):at com.android.server.LocationManagerService._isProviderEnabledLocked (LocationManagerService.java:1514) E/LocationManagerService( 568):at com.android.server.LocationManagerService.isProviderEnabled (LocationManagerService.java:1499) E/LocationManagerService( 568):at android.location.ILocationManager $Stub.onTransact(ILocationManager.java:245) E/LocationManagerService( 568):at android.os.Binder.execTransact (Binder.java:287) E/LocationManagerService( 568):at dalvik.system.NativeStart.run (Native Method) and I tested the maps app on 1.5G emulator. When I tried to get my current location, I got the alert "Your location cannot be determined. We will keep trying, but you can also try moving your position". and the log says: D/GpsLocationProvider( 568): setMinTime 0 I/Maps.MyLocationOverlay( 655): Request updates from gps E/LocationManagerService( 568): isProviderEnabled got exception: E/LocationManagerService( 568): java.lang.IllegalArgumentException: provider=network E/LocationManagerService( 568):at com.android.server.LocationManagerService._isProviderEnabledLocked (LocationManagerService.java:1514) E/LocationManagerService( 568):at com.android.server.LocationManagerService.isProviderEnabled (LocationManagerService.java:1499) E/LocationManagerService( 568):at android.location.ILocationManager $Stub.onTransact(ILocationManager.java:245) E/LocationManagerService( 568):at android.os.Binder.execTransact (Binder.java:287) E/LocationManagerService( 568):at com.android.server.SystemServer.init1(Native Method) E/LocationManagerService( 568):at com.android.server.SystemServer.main(SystemServer.java:412) E/LocationManagerService( 568):at java.lang.reflect.Method.invokeNative(Native Method) E/LocationManagerService( 568):at java.lang.reflect.Method.invoke (Method.java:521) E/LocationManagerService( 568):at com.android.internal.os.ZygoteInit $MethodAndArgsCaller.run(ZygoteInit.java:782) E/LocationManagerService( 568):at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:540) E/LocationManagerService( 568):at dalvik.system.NativeStart.main (Native Method) W/I I am not understanding why I am not getting the current location. Can any one please help me to solve this problem? Thanks, Manoj. --~--~-~--~~~---~--~~ 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] Computer Tips, Download Freeware, Music
http://free-belajaronline.blogspot.com/2009/05/amazon-adds-physical-data-transfer.html Amazon adds physical data transfer option to AWS http://free-belajaronline.blogspot.com/2009/05/deskpins-adds-always-on-top-thumbtack.html DeskPins adds an "always on top" thumbtack to any ... http://free-belajaronline.blogspot.com/2009/05/blipfm-adds-youtube-videos.html Blip.fm adds YouTube videos http://free-belajaronline.blogspot.com/2009/05/how-to-salvage-your-videos-before.html How to salvage your videos before Jumpcut shuts do... http://free-belajaronline.blogspot.com/2009/05/google-chrome-20-is-faster-features.html Google Chrome 2.0 is faster, features full page zo... http://free-belajaronline.blogspot.com/2009/05/whats-gmails-magic-inbox.html What's Gmail's "Magic Inbox?" http://free-belajaronline.blogspot.com/2009/05/get-alerts-when-apps-become-resource.html Get alerts when apps become resource-hungry with U... http://free-belajaronline.blogspot.com/2009/05/microsoft-dumps-3-app-limit-from.html Microsoft dumps 3-app limit from Windows 7 Starter... http://free-belajaronline.blogspot.com/2009/05/doom-heretic-hexen-in-your-browser-epic.html Doom + Heretic + Hexen (in your browser) = Epic Wi... http://free-belajaronline.blogspot.com/2009/05/switch-applications-in-os-x-just-like.html Switch applications in OS X just like you did in O... http://free-belajaronline.blogspot.com/2009/05/preview-your-inbox-before-gmail.html Preview your inbox before Gmail finishes loading http://free-belajaronline.blogspot.com/2009/05/svchost-process-analyzer-tells-you-what.html Svchost Process Analyzer tells you what the heck s... http://free-belajaronline.blogspot.com/2009/05/focuswriter-helps-you-write-by-blocking.html FocusWriter helps you write by blocking distractio... http://free-belajaronline.blogspot.com/2009/05/runpeecom-tells-you-when-its-safe-to.html RunPee.com tells you when it's safe to duck out of... http://free-belajaronline.blogspot.com/2009/05/kader-partai-demokrat-perjuangkan.html Kader Partai Demokrat: perjuangkan gedung senam !!... http://free-belajaronline.blogspot.com/2009/05/pilpres-lahirkan-preman-politik.html Pilpres Lahirkan 'Preman Politik http://free-belajaronline.blogspot.com/2009/05/benarkah-seperti-ayahnya-prabowo-akan.html Benarkah Seperti Ayahnya, Prabowo Akan Come http://free-belajaronline.blogspot.com/2009/05/lowongan-baru-business-development.html Lowongan Baru Business Development Officer - Admin... http://free-belajaronline.blogspot.com/2009/05/koalisi-mahal-keren.html Koalisi = Mahal + Keren http://free-belajaronline.blogspot.com/2009/05/refresh-kejadian-besar-di-awal.html (refresh) kejadian besar di awal & menjelang akhir... http://free-belajaronline.blogspot.com/2009/05/fenomena-adam-lambert.html Fenomena Adam Lambert http://free-belajaronline.blogspot.com/2009/05/rusia-berpaling-dari-usd-ke-euro.html Rusia Berpaling dari USD ke EURO http://free-belajaronline.blogspot.com/2009/05/acara-dorce-show-di-stop.html Acara Dorce Show di Stop http://free-belajaronline.blogspot.com/2009/05/kemaren-mencontreng-caleg-artis-tertipu.html Kemaren Mencontreng Caleg Artis? ...Tertipu! http://free-belajaronline.blogspot.com/2009/05/internet-download-manager-517-build-4.html Internet Download Manager 5.17 Build 4 Precracked[... http://free-belajaronline.blogspot.com/2009/05/terbang-dengan-hercules-cukup-bayar-rp.html Terbang dengan Hercules Cukup Bayar Rp 100 ribu http://free-belajaronline.blogspot.com/2009/05/lelucon-apa-bukan-ya.html lelucon apa bukan ya ? http://free-belajaronline.blogspot.com/2009/05/iran-sukses-luncurkan-rudal-sajjil-2.html Iran Sukses Luncurkan Rudal Sajjil-2 http://free-belajaronline.blogspot.com/2009/05/wihh-jaim-masuk-koran.html wihh jaim masuk koran!!! http://free-belajaronline.blogspot.com/2009/05/ini-yg-ngomong-penggemarnya-sby-lhooo.html Ini yg ngomong penggemarnya Sby lhooo.. (ttg IQ-IQ... http://free-belajaronline.blogspot.com/2009/05/duit-mengalir-gratis-hanya-browsing-n.html Duit mengalir gratis hanya browsing n chating http://free-belajaronline.blogspot.com/2009/05/istri-pergi-dari-rumah-helmi-yahya.html istri pergi dari rumah. heLmi yahYa gugat cerai http://free-belajaronline.blogspot.com/2009/05/keputusan-presiden-dr-h-sby-nyewa-hutan.html Keputusan Presiden DR H SBY: Nyewa hutan sehektar ... http://free-belajaronline.blogspot.com/2009/05/gratis-wordpress-themes-by-stephenweb.html GRATIS Wordpress Themes by Stephenweb http://free-belajaronline.blogspot.com/2009/05/mega-kesulitan-jawab-pertanyaan-ekonomi.html Mega Kesulitan Jawab Pertanyaan Ekonomi http://free-belajaronline.blogspot.com/2009/05/megawati-yakin-didukung-anggota-kadin.html Megawati yakin didukung anggota kadin karena meras... http://free-belajaronline.blogspot.com/2009/05/yg-lucu2-dari-pemaparan-mega-di-kadin.html Yg lucu2 dari pemaparan Mega di Kadin kemarin lusa... http://free-belajaronline.blogspot.com/2009/05/tidur-dan-menurunkan-berat-badan-dalam.html Tidur dan menurunkan berat badan dalam waktu bersa... http:/
[android-developers] Re: How to redirect audio to bluetooth headset?
Jianwei it should work with android firmware 1.5 and above On May 22, 4:38 am, jianwei wrote: > Sorry for my poor english. May be you didn't understand my purpose. > I'm a application developer for android platform, and i didn't know > much about bluetooth. Our application will play some audioes(audio > format is amr). When bluetooth headset is paired and connected, we > need playing audio by bluetooth headset. Howerver audio is alway > played by phone speaker, not bt headset. My bt headset is HBH-631, > made by SONY ERICSSON, and it's fine when i call phone. Any > suggestions? Very thanks. > > On 5月22日, 上午9时36分, Dave Sparks wrote: > > > > > You asked specifically about Bluetooth SCO before. SCO is an 8KHz mono > > audio channel compressed down to a low bit-rate stream. To get a > > simulation of what it sounds like, try listening to music over a GSM > > circuit. > > > Bluetooth A2DP is a different story. It use a reasonably good > > perceptual stereo codec. With the Cupcake 1.5 release, we support A2DP > > out of the box. If the user pairs and connects an A2DP headset, there > > is nothing the application has to do - it just works. > > > On May 20, 6:46 pm, jianwei wrote: > > > > Thanks for your responese. > > > Does this mean all audio in thirdparty application can't play in > > > bluetooth headset? > > > > Dave Sparks wrote: > > > > We don't support sending app processor audio over SCO. The audio > > > > quality would be very poor. > > > > > On May 20, 6:51 am, jianwei wrote: > > > > > Hi all, > > > > > I met a problem of bluetooth headset. I want to switch audio playing > > > > > to bluetooth headset when bluetooth headset is paired. I found > > > > > BluetoothDevice in android sources which can controll bluetooth. > > > > > However it is not contained in android.jar. So I used > > > > > AudioManager.setBluetoothScoOn(true), but it still can't work. This > > > > > problem has troubled me a long time. I do appreciate your help. 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: Find whether any audio is currently playing
Thanks. And how do I stop the audio from playing if isMusicActive() returns true? Do I have to use the MediaPlayer instance? But the instance won't be in memory any longer as the activity has been exited once and a new instance of the activity created in order to come back. Thanks again. On 22-May-09, at 9:45 PM, Rob Franz wrote: > You can detect whether audio is playing by getting a reference to > AudioManager and calling isMusicActive()... > > -Rob > > On Fri, May 22, 2009 at 11:04 AM, Marco Nelissen > wrote: > On Thu, May 21, 2009 at 9:41 PM, iDeveloper > wrote: > Hi > > I am using a MediaPlayer instance in order to stream audio files > from an Internet location. The audio player is in a separate > activity. The user can select from a list of audio files and come to > this activity which plays the audio. > > Now the user might go back to the previous activity (with the list) > and select another audio file. In this case, I want to stop any > other audio that is playing and start playing the new audio which > was selected. > > Is there any way I can know whether an audio file is playing without > having to hold on to the MediaPlayer object? > > > No, and you *should* hold on to the MediaPlayer object, because if > you don't, it can be garbage collected at any time, at which point > playback would stop. > > > > > > > --~--~-~--~~~---~--~~ 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 run a apk in the app
I want to know ,too. On May 6, 9:11 pm, ainilife wrote: > hi all: > i want to download aapkfile from my server and run this > application in my app. is this possible? if it can , please post some > sample code. thank you all. --~--~-~--~~~---~--~~ 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 should I call an application from another application?
As the subject ,I want to know How should I call an application from another application?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] AsyncTask posting mulitple parameters
This maybe a silly question, but I was wondering how to pass multiple parameters to AsyncTask I have somthing like : private class DownloadTask extends AsyncTask < ArrayList, int [], Cursor, void, void> { protected ArrayList doInBackground(ArrayList lst, int [] _thread_keys, Cursor c) { return selectThreads2(lst, _thread_keys, c); } I would like to pass in the 3 parameters , I am not sure (1) if it is possible and (2) what the syntax would be Thanks in advance --~--~-~--~~~---~--~~ 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 redirect audio to bluetooth headset?
Dave, thanks very much. I've got it. : ) On 5月23日, 上午2时32分, Dave Sparks wrote: > With an A2DPheadset, all app processor audio can be routed to theheadset. > > I thought I gave a pretty good summary of the differences between SCO > and A2DP. If you need more detail, there is a lot of information > available on the web. > > On May 22, 7:02 am, jianwei wrote: > > > What's SCO? What's A2DP? I'm not clear about that. Did that mean if i > > using A2DPbluetoothheadset, all audioes will auto play by > >bluetoothheadset? And not allbluetoothheadsethardware supports > > A2DP. Does that right? > > > On 5月22日, 上午9时36分, Dave Sparks wrote: > > > > You asked specifically aboutBluetoothSCO before. SCO is an 8KHz mono > > > audio channel compressed down to a low bit-rate stream. To get a > > > simulation of what it sounds like, try listening to music over a GSM > > > circuit. > > > > BluetoothA2DP is a different story. It use a reasonably good > > > perceptual stereo codec. With the Cupcake 1.5 release, we support A2DP > > > out of the box. If the user pairs and connects an A2DPheadset, there > > > is nothing the application has to do - it just works. > > > > On May 20, 6:46 pm, jianwei wrote: > > > > > Thanks for your responese. > > > > Does this mean all audio in thirdparty application can't play in > > > >bluetoothheadset? > > > > > Dave Sparks wrote: > > > > > We don't support sending app processor audio over SCO. The audio > > > > > quality would be very poor. > > > > > > On May 20, 6:51 am, jianwei wrote: > > > > > > Hi all, > > > > > > I met a problem ofbluetoothheadset. I want to switch audio playing > > > > > > tobluetoothheadsetwhenbluetoothheadsetis paired. I found > > > > > > BluetoothDevice in android sources which can controllbluetooth. > > > > > > However it is not contained in android.jar. So I used > > > > > > AudioManager.setBluetoothScoOn(true), but it still can't work. This > > > > > > problem has troubled me a long time. I do appreciate your help. > > > > > > 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: How to play video file in android.
i just remembered there was no way to play awmv file on g1? 2009/5/22 Marco Nelissen > On Thu, May 21, 2009 at 8:57 PM, Priya wrote: > >> >> Hi, >> >> here is my code for playing video through url >> >> public class sample extends Activity { >> >> >>private String _videoPath; >>private MediaPlayer _mp; >>private static final String TAG = "Video"; >> >>@Override >>public void onCreate(Bundle savedInstanceState) { >>super.onCreate(savedInstanceState); >> >> >>_videoPath = "http://16.181.151.159/video/funnydog.wmv";; > > > Only local wmv playback is supported, not streaming. > > > > > --~--~-~--~~~---~--~~ 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 can i get the string from edittext?
Thank you very much On May 21, 2:42 am, NyquilDotOrg wrote: > try: > > if (tv1.getText().toString().equals("admin") && tv2.getText().toString > ().equals("admin")) > > jer > > On May 20, 2:21 am, "hencechen...@gmail.com" > wrote: > > > > > here is my code,it seems to return false all the time. > >EditTexttv1=(EditText) findViewById(R.id.name); > > EditTexttv2=(EditText) findViewById(R.id.password); > > > > if(tv1.getText().toString()=="admin"&&tv2.getText().toString() > > =="admin") --~--~-~--~~~---~--~~ 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 cancle a dialog when touch it?
i have my code Dialog dlg=new Dialog(android01.this); dlg.setContentView(R.layout.error); dlg.show(); MotionEvent event = null; if(dlg.onTouchEvent(event)) dlg.cancel(); but it dosnt work? how to fix it? Thank you. Hence --~--~-~--~~~---~--~~ 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] Widget bug, is there a work around?
Dear google guys, the widget framework (or the Home app) has a pretty bad bug: - install ApiDemo - long press screen/widget/ApiDemo - *CHANGE ORIENTATION* - then without changing orientation back, click ok to create the widget the widget will not show up, did some debugging it looks like the widget is added to the widget service but it's just not shown on the Home screen, so if a widget has a config activity and the user happens to change orientation during widget config time (very common if widget has text boxes), the widget will become a garbage that just take up resources until user uninstall the widget app. even worse, if the widget does heavy background service to update, it will be wasting time updating a widget that is not visible Does anyone know a work around? --~--~-~--~~~---~--~~ 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: Installing the USB driver for HTC Magic on Vista
2009/5/21 Cédric Berger > > took me a LOT of trials before it worked ! > > I finally have this rule and it is OK (did not have to edit user groups on my > system): > > SYSFS{idVendor}=="0bb4", SYSFS{idProduct}=="0c02", MODE="0666", > GROUP="plugdev" this was in /etc/udev/rules.d/50-android.rules But it seems to also work like this : (method for Ubuntu 9.04 : http://www.frandroid.com/2371/ubuntu-904-et-android/ ) -> in /etc/udev/rules.d/51-android.rules : SUBSYSTEM==”usb”, SYSFS{idVendor}==”0bb4", MODE=”0666" Also take care if you copy/paste this rule : looks like double quotes (") may be wrongly copied from html page, and then it did not work for me before I retyped them. --~--~-~--~~~---~--~~ 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: Emulator is not coming up if we will do the changes in CUPCAKE version
I'm sure if this is the issue, but if you're using the latest 1.5 code then try to launch the emulator with the -partition-size option emulator -partition-size 100 This will increase the partition size allows by the emulator to 100MB. On May 21, 10:11 am, somu wrote: > Hi, > > If iw ill do any changes in the External folder of Cupcake version i > am unable to get the emulator Up.Emulator stops at Android(Booting > stage) screen page itself. > > Kindly do the needful,if anyone is having the update regarding the > same. > > Thanks and Regards > Somashekar --~--~-~--~~~---~--~~ 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: Creating and showing a view/window from a Service
Applications can't do things like the status bar, sorry. On Fri, May 22, 2009 at 4:15 PM, George wrote: > > I have a usecase similar to the status bar. I looked into the > statusbar service code which creates the drop-down notification list > using the WindowManager service. Being part of the framework, it > accesses the WindowManagerImpl APIs and creates it's own window and > adds views to it. I wonder if google will make this class public. > > On May 22, 4:03 pm, Mark Murphy wrote: > > George wrote: > > > I want to show a view on calling a Service API. > > > > Oh, I hope not. > > > > If the service in question is only used as a local service in support of > > some activity, have the activity update its own UI. > > > > If, on the other hand, the service may be doing something totally in the > > background, use Notifications to alert the user of something. In a > > pinch, use a Toast. > > > > -- > > Mark Murphy (a Commons Guy)http://commonsware.com| > http://twitter.com/commonsguy > > > > Android App Developer Training:http://commonsware.com/training.html > > > -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. --~--~-~--~~~---~--~~ 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: sensor_service breaking change in cupcake? getSystemService(Sensor_Service)
Boy is that a relief. Thanks! On May 22, 4:21 pm, blindfold wrote: > It is only an emulator > issue:http://code.google.com/p/android/issues/detail?id=2566 > > On May 22, 10:47 pm, Bob wrote: > > > Hi, > > I have the following code in my app which seems to pause indefinitely > > when I run it in the cupcake emulator: > > > SensorManager mSensorManager = (SensorManager) getSystemService > > (SENSOR_SERVICE); > > > does anyone know how I should replace this in cupcake or if this is an > > emulator issue? > > > Thanks, > > Bob > > --~--~-~--~~~---~--~~ 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: Creating and showing a view/window from a Service
I have a usecase similar to the status bar. I looked into the statusbar service code which creates the drop-down notification list using the WindowManager service. Being part of the framework, it accesses the WindowManagerImpl APIs and creates it's own window and adds views to it. I wonder if google will make this class public. On May 22, 4:03 pm, Mark Murphy wrote: > George wrote: > > I want to show a view on calling a Service API. > > Oh, I hope not. > > If the service in question is only used as a local service in support of > some activity, have the activity update its own UI. > > If, on the other hand, the service may be doing something totally in the > background, use Notifications to alert the user of something. In a > pinch, use a Toast. > > -- > Mark Murphy (a Commons > Guy)http://commonsware.com|http://twitter.com/commonsguy > > Android App Developer Training:http://commonsware.com/training.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 android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Creating and showing a view/window from a Service
George wrote: > I want to show a view on calling a Service API. Oh, I hope not. If the service in question is only used as a local service in support of some activity, have the activity update its own UI. If, on the other hand, the service may be doing something totally in the background, use Notifications to alert the user of something. In a pinch, use a Toast. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android App Developer Training: http://commonsware.com/training.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 android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Creating and showing a view/window from a Service
I want to show a view on calling a Service API. Currently the only way looks like using the Toast class. I tried the following after getting the WindowManager service, but it crashes at addView. I looked into the Toast class and found that it uses WindowManagerImpl which is not accessible publicly - is there any way to access the WindowManagerImpl functionality? public void myServiceAPI() throws RemoteException { ImageView i = new ImageView(MyService.this); i.setImageResource(R.drawable.sample_icon); WindowManager wm = (WindowManager) MyService.this.getSystemService(Context.WINDOW_SERVICE); WindowManager.LayoutParams lp = new WindowManager.LayoutParams (100, 100, 10, 10, 0, 0, 0 ); wm.addView(i, lp); // crashes here -George --~--~-~--~~~---~--~~ 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: Is there an easy way to make EditText look like TextView but still behave like EditText?
Don't think so.. There is no setStyle() or something like that - don't know why? On May 21, 7:39 pm, damnesia wrote: > Is it possible to implement style="?android:attr/textViewStyle" > dynamically? > > On May 20, 3:10 am,n5r11 wrote: > > > This seems to be working.. > > android:background="@null" removes the background, but the text color > > stays the same. It takes another explicit android:textColor="@null" to > > fix that. I guess those are the values that are set in the > > editTextStyle, but not in textViewStyle, so they stay the same after > > style="?android:attr/textViewStyle" and need to be nulled-out > > explicitly. I'm not sure what's really going on here, but this seems > > to be a clean solution to this problem. > > The documentation should be more explaining, with more complete and > > thought-out examples.. > > > Thanks people - a lot! > > > PS: Don't trust the layout tab in the xml editor too much.. > > > On 20 мај, 02:53, Jeff Sharkey wrote: > > > > This is probably because theEditTextstill inherits an > > > android:background value from the default system Theme, because the > > > textViewStyle doesn't force a @null background. > > > > Try adding an explicit android:background="@null", which should remove > > > theEditText9-patch frame and any padding that comes with it. > > > > j > > > > On Tue, May 19, 2009 at 5:19 PM,n5r11 > > > wrote: > > > > > I've tried all that you suggested, and nothing happens?EditTextstill > > > > looks the same, both in IDE and when compiled on emulator. > > > > > > > > style="?android:attr/textViewStyle" > > > > android:layout_width="fill_parent" > > > > android:layout_height="wrap_content" > > > > android:text="Neque porro quisquam est qui.dolorem.com ipsum" /> > > > > > > > > style="@android:style/Widget.TextView" > > > > android:layout_width="fill_parent" > > > > android:layout_height="wrap_content" > > > > android:text="Neque porro quisquam est qui.dolorem.com ipsum" /> > > > > > I see I'm not the only one with this problem: > > > >http://groups.google.rs/group/android-developers/browse_frm/thread/29... > > > > >n5r11 > > > > > On 19 мај, 02:05, Jeff Sharkey wrote: > > > >> You should actually be using an attribute instead of a direct > > > >> reference: > > > > >> style="?android:attr/textViewStyle" > > > > >> The underlying @style reference isn't public, but the above attr is. > > > > >> j > > > > >> On Mon, May 18, 2009 at 4:30 PM, MrSnowflake > > > >> wrote: > > > > >> > Might be: style="@android:style/Widget.TextView" > > > > >> > Otherwise, make a TextView and anEditTextand change the GONE state > > > >> > of them. > > > > >> > On 18 mei, 19:33, Raphael wrote: > > > >> >> Try this: > > > >> >> android:style="@android:style/Widget.TextView" > > > > >> >> R/ > > > > >> >> On Sun, May 17, 2009 at 3:31 PM, Nikola Radosavljevic > > > > >> >> wrote: > > > >> >> > Note: I had troubles posting to android-beginners group, so I > > > >> >> > came here > > > >> >> > hoping this will work. > > > >> >> > Hello there, > > > > >> >> > I want anEditTextto look like TextView but still behave like > > > >> >> >EditText. I've tried applying TextView style to myEditTextin my > > > >> >> > layout.xml file, like this: > > > > >> >> > > > >> >> > android:id="@+id/lipsum" > > > >> >> > android:text="Lorem ipsum" > > > >> >> > android:style="@android:style/Widget_TextView" > > > >> >> > /> > > > > >> >> > ..but I get an error within xml editor: "Error: No resource found > > > >> >> > that > > > >> >> > matches the given name (at 'style' with value '@android:style/ > > > >> >> > Widget_TextView')." It is strange because @android:style/ > > > >> >> > Widget_TextView definitively exists - I double checked it in code > > > >> >> > via > > > >> >> > android.R.style.Widget_TextView. Another strange thing is that I > > > >> >> > don't > > > >> >> > get android:style offered in the xml editor while typing? There is > > > >> >> > android:id, android:text and everything else.. but not > > > >> >> > android:style?! > > > > >> >> > Note: I consider the hard way (makingEditTextlook like TextView) > > > >> >> > to > > > >> >> > be: extendingEditTextand overriding it's onDraw method. > > > > >> >> >Nikolar > > > > >> >> > PS: Check out > > > >> >> >http://developer.android.com/guide/topics/ui/themes.html#styles. > > > >> >> > Why are id and style written without android: namespace? > > > > >> -- > > > >> Jeff Sharkey > > > >> jshar...@android.com > > > > -- > > > Jeff Sharkey > > > jshar...@android.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 android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--
[android-developers] Re: dexer inner class errors
We get these inner-class errors when using java regex. Suppose other things could cause it as well. We are ignoring them. And of course, you can fix the OOM by cranking up the heap in the dx/dx.bat script. -- Ward At 1:20 PM -0700 5/22/09, Jason Proctor wrote: >i'm getting a *lot* of this kind of error from the dexer when trying >to use 3rd party libraries or even after compiling innocent-looking >source. > >is this a problem with the dexer, or a problem with my JDK? i'm using - > >Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_13-b05-237) > >- on MacOS 10.5.6. > >thanks. > > [apply] warning: Ignoring InnerClasses attribute for an anonymous >inner class that doesn't come with an associated EnclosingMethod >attribute. (This class was probably produced by a broken compiler.) > [apply] > [apply] UNEXPECTED TOP-LEVEL ERROR: > [apply] java.lang.OutOfMemoryError: Java heap space > [apply] at >com.android.dx.rop.code.Rops.opMoveResultPseudo(Rops.java:1348) > [apply] at >com.android.dx.cf.code.RopperMachine.run(RopperMachine.java:495) > [apply] at >com.android.dx.cf.code.Simulator$SimVisitor.visitConstant(Simulator.java:621) > [apply] at >com.android.dx.cf.code.BytecodeArray.parseInstruction(BytecodeArray.java:750) > >-- >jason.software.particle > > --~--~-~--~~~---~--~~ 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: get intent getStringExtra in a View??
thanks... i got it.. quit strange i removed that post from the group.. but looks you still got it. anyhow, thanks for your will to help chris On May 22, 11:58 pm, Alexey Volovoy wrote: > why did you declare you View class static ? > Move it out of actvity. Create public method init in the view. Get an > extra in your activity and pass to View. > > On May 22, 3:45 pm, guruk wrote: > > > > > Hi, > > > i have a: > > > public class basal extends GraphicsActivity { > > > -- > > @Override protected void onCreate(Bundle savedInstanceState) { > > super.onCreate(savedInstanceState);setContentView(new > > SampleView > > (this)); } > > > private static class SampleView extends View implements > > OnGestureListener { > > private > > - > > > and just like to request my: db_table = getIntent().getStringExtra > > ("db_table"); > > as I did in all other Activites before. But i always get: "Can not > > make a static reference to the non-static method getIntent? > > > Anyhow... how can I get my StringExtra in this SampleView?? > > > Thanks > > Chris --~--~-~--~~~---~--~~ 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: no elements available in Eclipse when editing layout
I solved this problem as follows (note: steps #1 and #2 may not be necessary - they were done just to be thourough): 1. completely uninstalled Eclipse and deleted my default workspace directory, because I use a non-standard workspace location. 2. Reinstalled Eclipse 3. Installed ADT version 0.9.1 from http://developer.android.com/sdk/adt_download.html 4. Changed my workspace to my normal working workspace. 5. Everything works now. Richard On May 22, 2:28 pm, Richard Schilling wrote: > I'm finding threads in this forum with somewhat related problems. > Here's a link: > > http://groups.google.com/group/android-developers/browse_thread/threa... > > On May 22, 11:56 am, RichardSchilling > > wrote: > > I'm using the new SDK 1.5, and I'm trying to add some elements to a > > layout in eclipse. When I click the green plus symbol, the dialog > > pops up, but it doesn't populate with anything to choose from. Here's > > the XML of the layout I'm trying to add an element to: > > > > > > xmlns:android="http://schemas.android.com/apk/res/android"; > > android:layout_width="wrap_content" > > android:layout_height="wrap_content"> > > > > > Any clue as to what's going on? > > > Thanks. > > > RichardSchilling > > Mobile Operating Systems Engineer > > Root Wireless, Inc. --~--~-~--~~~---~--~~ 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] Please enable downloading of paid app on ADP
Is there a way to download paid apps on the ADP from the market? Or will this be available in the near future? Also is there a way to download the copy protected apps on the ADP? --~--~-~--~~~---~--~~ 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: SDK 1.5, Unable to load XML wizard
Very strange: I un-installed the Android tools and restarted eclipse. The Android specific menus and tools are still all there, but the tools are not listed in the Software Updates screen. Richard On May 22, 2:29 pm, Richard Schilling wrote: > I'm having similar issues. I'm going to try and un-install then re- > install the ADT plugin and see if it helps. There's definitely > something wrong with the wizard: > > http://groups.google.com/group/android-developers/browse_thread/threa... > > On Apr 22, 12:15 pm, Xavier Ducrohet wrote: > > > we've identified the problem, and it will be fixed for the final release. > > > In the meantime you can use the wizard from: > > - the toolbar has 2 shortcuts to the New Project and New Xml File wizards. > > - right click on a project should have direct links to create a new > > project or a new XML file as well. > > > If you don't see these (especially the last one), reset your java > > perspective (Window > Reset Perspective) > > > thanks > > Xav > > > On Wed, Apr 22, 2009 at 4:17 AM, Paul wrote: > > > > I'm onEclipseVersion: 3.4.2, Build id: M20090211-1700 > > > > I've made sure that I have uninstalled all traces of 0.8 (as far as I > > > can see), and I've re-installed 0.9 using the steps above and yet I > > > still get the error: > > > Plug-in com.android.ide.eclipse.adt was unable to load class > > > com.android.ide.eclipse.editors.wizards.NewXmlFileWizard. > > > com.android.ide.eclipse.editors.wizards.NewXmlFileWizard > > > > I'm running Win XP Pro SP3 (32 bit machine) > > > > As with Diego's reply - if I use the File | New | Android XML File, I > > > get the error, but if I use the button on the toolbar, it works fine. > > > > BTW - Thanks Diego, at least there's a "workaround" to get the file > > > created :) I'm new to Android andEclipse(last did Java programming > > > in 2001, been all C# for the past 6/7 years), so I hadn't even looked > > > at the toolbar. > > > > On Apr 22, 1:07 am, Diego Torres Milano wrote: > > >> I think that the problem is related with the menu > > >> New->Other...->Android->Android XML File which gives the "unable to load > > >> class..." > > > >> message but not with the new Android XML wizard button in the toolbar > > >> which works, at least in my case. > > > >> On Apr 20, 9:48 am, iceberg wrote: > > > >> > I dont know why my previous post didnt appear. I have the same build > > >> > as Raphael, but wizards dont work for me. > > > >> > Maybe good possibility is to release bundledEclipse+ADT version. What > > >> > do you think about this ? > > > >> > On Apr 15, 10:48 am, "stefan.jau...@googlemail.com" > > > >> > wrote: > > >> > > I have it also > > > >> > > On 14 Apr., 15:43, Al wrote: > > > >> > > > I'm trying to make a new XML file and have selected New->Android > > >> > > > XML > > >> > > > File, but each time I get this message: > > > >> > > > The selected wizard could not be started. > > >> > > > Plug-in com.android.ide.eclipse.adtwas unable to load class > > >> > > > com.android.ide.eclipse.editors.wizards.NewXmlFileWizard. > > >> > > > com.android.ide.eclipse.editors.wizards.NewXmlFileWizard > > > >> > > > The problem is only with the XML file creator, I can create a new > > >> > > > Android Project fine. I'm usingADT0.9 Pre release and have > > >> > > > installed > > >> > > > it as per the instructions on the doc page. > > > >> -- > > >> Have you read my blog ?http://dtmilano.blogspot.com > > > -- > > Xavier Ducrohet > > Android Developer Tools Engineer > > Google Inc. --~--~-~--~~~---~--~~ 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: SDK 1.5, Unable to load XML wizard
I'm having similar issues. I'm going to try and un-install then re- install the ADT plugin and see if it helps. There's definitely something wrong with the wizard: http://groups.google.com/group/android-developers/browse_thread/thread/a105deb558fbe593/4f165b94c1d4fca1?lnk=gst&q=schilling#4f165b94c1d4fca1 On Apr 22, 12:15 pm, Xavier Ducrohet wrote: > we've identified the problem, and it will be fixed for the final release. > > In the meantime you can use the wizard from: > - the toolbar has 2 shortcuts to the New Project and New Xml File wizards. > - right click on a project should have direct links to create a new > project or a new XML file as well. > > If you don't see these (especially the last one), reset your java > perspective (Window > Reset Perspective) > > thanks > Xav > > > > On Wed, Apr 22, 2009 at 4:17 AM, Paul wrote: > > > I'm onEclipseVersion: 3.4.2, Build id: M20090211-1700 > > > I've made sure that I have uninstalled all traces of 0.8 (as far as I > > can see), and I've re-installed 0.9 using the steps above and yet I > > still get the error: > > Plug-in com.android.ide.eclipse.adt was unable to load class > > com.android.ide.eclipse.editors.wizards.NewXmlFileWizard. > > com.android.ide.eclipse.editors.wizards.NewXmlFileWizard > > > I'm running Win XP Pro SP3 (32 bit machine) > > > As with Diego's reply - if I use the File | New | Android XML File, I > > get the error, but if I use the button on the toolbar, it works fine. > > > BTW - Thanks Diego, at least there's a "workaround" to get the file > > created :) I'm new to Android andEclipse(last did Java programming > > in 2001, been all C# for the past 6/7 years), so I hadn't even looked > > at the toolbar. > > > On Apr 22, 1:07 am, Diego Torres Milano wrote: > >> I think that the problem is related with the menu > >> New->Other...->Android->Android XML File which gives the "unable to load > >> class..." > > >> message but not with the new Android XML wizard button in the toolbar > >> which works, at least in my case. > > >> On Apr 20, 9:48 am, iceberg wrote: > > >> > I dont know why my previous post didnt appear. I have the same build > >> > as Raphael, but wizards dont work for me. > > >> > Maybe good possibility is to release bundledEclipse+ADT version. What > >> > do you think about this ? > > >> > On Apr 15, 10:48 am, "stefan.jau...@googlemail.com" > > >> > wrote: > >> > > I have it also > > >> > > On 14 Apr., 15:43, Al wrote: > > >> > > > I'm trying to make a new XML file and have selected New->Android XML > >> > > > File, but each time I get this message: > > >> > > > The selected wizard could not be started. > >> > > > Plug-in com.android.ide.eclipse.adtwas unable to load class > >> > > > com.android.ide.eclipse.editors.wizards.NewXmlFileWizard. > >> > > > com.android.ide.eclipse.editors.wizards.NewXmlFileWizard > > >> > > > The problem is only with the XML file creator, I can create a new > >> > > > Android Project fine. I'm usingADT0.9 Pre release and have installed > >> > > > it as per the instructions on the doc page. > > >> -- > >> Have you read my blog ?http://dtmilano.blogspot.com > > -- > Xavier Ducrohet > Android Developer Tools Engineer > Google Inc. --~--~-~--~~~---~--~~ 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: no elements available in Eclipse when editing layout
I'm finding threads in this forum with somewhat related problems. Here's a link: http://groups.google.com/group/android-developers/browse_thread/thread/bcc1f9a0833aa2c3/69d6425924e3bbb3?lnk=gst&q=eclipse#69d6425924e3bbb3 On May 22, 11:56 am, Richard Schilling wrote: > I'm using the new SDK 1.5, and I'm trying to add some elements to a > layout in eclipse. When I click the green plus symbol, the dialog > pops up, but it doesn't populate with anything to choose from. Here's > the XML of the layout I'm trying to add an element to: > > > xmlns:android="http://schemas.android.com/apk/res/android"; > android:layout_width="wrap_content" > android:layout_height="wrap_content"> > > > Any clue as to what's going on? > > Thanks. > > RichardSchilling > Mobile Operating Systems Engineer > Root Wireless, Inc. --~--~-~--~~~---~--~~ 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: sensor_service breaking change in cupcake? getSystemService(Sensor_Service)
It is only an emulator issue: http://code.google.com/p/android/issues/detail?id=2566 On May 22, 10:47 pm, Bob wrote: > Hi, > I have the following code in my app which seems to pause indefinitely > when I run it in the cupcake emulator: > > SensorManager mSensorManager = (SensorManager) getSystemService > (SENSOR_SERVICE); > > does anyone know how I should replace this in cupcake or if this is an > emulator issue? > > Thanks, > Bob --~--~-~--~~~---~--~~ 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 loading images (assets or resources) dynamically?
BitmapFactory.decodeByteArray On May 21, 11:54 am, Kim wrote: > Hi, > > How do I load the image dynamically through the code? If its unclear, > I mean, I want to load image files by name based on the condition in > the code. > > If I use images as resources, the image names have to be hard coded. > This is unacceptable to me. > If I load image in a webview (with image src path dynamically), the > time it takes to load is unacceptable to me. > > Can anyone suggest any other way to load the images dynamically? > > Thanks much for any pointers, > Kim --~--~-~--~~~---~--~~ 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: Color Bug?
EDIT: 'signed' bytes, as you said Cheers On Fri, May 22, 2009 at 10:00 PM, Gavin Aiken wrote: > Thanks for the quick response and sorry for the unneccesary use of the word > bug. > > I was clearly confused wrrt signed ints and 'unsigned' bytes (the values > shown in the eclipse debugger), all cleared up now! > > Cheers, > > Gav > > On Fri, May 22, 2009 at 9:43 PM, Romain Guy wrote: > >> >> Bytes are signed in Java, so 137 is not what you want. Also, >> Color.rgb() take ints, not bytes. So (byte) 137 cast as an int results >> in rg == -119. >> >> On Fri, May 22, 2009 at 1:09 PM, Gavin Aiken >> wrote: >> > Hey all, >> > >> > Before I submit this I just wanted to check it's not a java nuiance. >> > >> > The Color class can be used to extract rgb values from a pixel (32 bit >> int). >> > >> > I implemented a lookup table filter and used a byte to store each >> individual >> > r g & b value to save a bit of space. >> > >> > Long story short; >> > >> > public void testColor(){ >> > >> > int nr = (byte)0; // Simulation of lookup in array of byte >> values >> > representing individual bands >> > int ng = (byte)0; >> > int nb = (byte)0; >> > int nc = Color.rgb(nr, ng, nb); >> > >> > assertEquals(nr,Color.red(nc)); >> > assertEquals(ng,Color.green(nc)); >> > assertEquals(ng,Color.blue(nc)); >> > >> > nr = (byte)0; >> > ng = (byte)137; >> > nb = (byte)0; >> > nc = Color.rgb(nr, ng, nb); >> > >> > assertEquals(nr,Color.red(nc));// FAIL HERE >> > assertEquals(ng,Color.green(nc)); >> > assertEquals(nb,Color.blue(nc)); >> > } >> > >> > Failure in testColor: >> > junit.framework.AssertionFailedError: expected:<0> but was:<255> >> > at >> uk.ac.ic.doc.gea05.miffed.os.ColorTest.testColor(ColorTest.java:44) >> > >> > >> > Any ideas? >> > >> > 137 is the magic number causing the error in my case, there may be more. >> > >> > >> > Cheers! >> > >> > Gav >> > >> > >> > >> > >> > > >> > >> >> >> >> -- >> Romain Guy >> Android framework engineer >> romain...@android.com >> >> Note: please don't send private questions to me, as I don't have time >> to provide private support. All such questions should be posted on >> public forums, where I and others can see and answer them >> >> >> >> > --~--~-~--~~~---~--~~ 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: Color Bug?
Thanks for the quick response and sorry for the unneccesary use of the word bug. I was clearly confused wrrt signed ints and 'unsigned' bytes (the values shown in the eclipse debugger), all cleared up now! Cheers, Gav On Fri, May 22, 2009 at 9:43 PM, Romain Guy wrote: > > Bytes are signed in Java, so 137 is not what you want. Also, > Color.rgb() take ints, not bytes. So (byte) 137 cast as an int results > in rg == -119. > > On Fri, May 22, 2009 at 1:09 PM, Gavin Aiken > wrote: > > Hey all, > > > > Before I submit this I just wanted to check it's not a java nuiance. > > > > The Color class can be used to extract rgb values from a pixel (32 bit > int). > > > > I implemented a lookup table filter and used a byte to store each > individual > > r g & b value to save a bit of space. > > > > Long story short; > > > > public void testColor(){ > > > > int nr = (byte)0; // Simulation of lookup in array of byte values > > representing individual bands > > int ng = (byte)0; > > int nb = (byte)0; > > int nc = Color.rgb(nr, ng, nb); > > > > assertEquals(nr,Color.red(nc)); > > assertEquals(ng,Color.green(nc)); > > assertEquals(ng,Color.blue(nc)); > > > > nr = (byte)0; > > ng = (byte)137; > > nb = (byte)0; > > nc = Color.rgb(nr, ng, nb); > > > > assertEquals(nr,Color.red(nc));// FAIL HERE > > assertEquals(ng,Color.green(nc)); > > assertEquals(nb,Color.blue(nc)); > > } > > > > Failure in testColor: > > junit.framework.AssertionFailedError: expected:<0> but was:<255> > > at > uk.ac.ic.doc.gea05.miffed.os.ColorTest.testColor(ColorTest.java:44) > > > > > > Any ideas? > > > > 137 is the magic number causing the error in my case, there may be more. > > > > > > Cheers! > > > > Gav > > > > > > > > > > > > > > > > > -- > Romain Guy > Android framework engineer > romain...@android.com > > Note: please don't send private questions to me, as I don't have time > to provide private support. All such questions should be posted on > public forums, where I and others can see and answer them > > > > --~--~-~--~~~---~--~~ 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: get intent getStringExtra in a View??
why did you declare you View class static ? Move it out of actvity. Create public method init in the view. Get an extra in your activity and pass to View. On May 22, 3:45 pm, guruk wrote: > Hi, > > i have a: > > public class basal extends GraphicsActivity { > > -- > @Override protected void onCreate(Bundle savedInstanceState) { > super.onCreate(savedInstanceState);setContentView(new > SampleView > (this)); } > > private static class SampleView extends View implements > OnGestureListener { > private > - > > and just like to request my: db_table = getIntent().getStringExtra > ("db_table"); > as I did in all other Activites before. But i always get: "Can not > make a static reference to the non-static method getIntent? > > Anyhow... how can I get my StringExtra in this SampleView?? > > Thanks > Chris --~--~-~--~~~---~--~~ 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] sensor_service breaking change in cupcake? getSystemService(Sensor_Service)
Hi, I have the following code in my app which seems to pause indefinitely when I run it in the cupcake emulator: SensorManager mSensorManager = (SensorManager) getSystemService (SENSOR_SERVICE); does anyone know how I should replace this in cupcake or if this is an emulator issue? Thanks, Bob --~--~-~--~~~---~--~~ 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] get intent getStringExtra in a View??
Hi, i have a: public class basal extends GraphicsActivity { -- @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState);setContentView(new SampleView (this));} private static class SampleView extends View implements OnGestureListener { private - and just like to request my: db_table = getIntent().getStringExtra ("db_table"); as I did in all other Activites before. But i always get: "Can not make a static reference to the non-static method getIntent? Anyhow... how can I get my StringExtra in this SampleView?? Thanks Chris --~--~-~--~~~---~--~~ 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: Daemon errors while debugging
Great, I think I needed to close a cursor On May 20, 3:03 pm, fadden wrote: > On May 19, 9:29 pm, Bob wrote: > > > When I debug I get dozens of these exceptions in a row. They don't > > seem to effect the program flow but make debugging a nightmare. Does > > anyone know what is causing this? > > > Daemon System Thread [<5> HeapWorker] (Suspended (exception > > IllegalStateException)) > > SQLiteCursor.finalize() line: 448 > > NativeStart.run() line: not available [native method] > > The exception is being thrown from a finalizer, which means it will be > discarded. You're breaking in the debugger because it's an uncaught > exception. > > The log file may provide some hints as to the cause. --~--~-~--~~~---~--~~ 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: Color Bug?
Bytes are signed in Java, so 137 is not what you want. Also, Color.rgb() take ints, not bytes. So (byte) 137 cast as an int results in rg == -119. On Fri, May 22, 2009 at 1:09 PM, Gavin Aiken wrote: > Hey all, > > Before I submit this I just wanted to check it's not a java nuiance. > > The Color class can be used to extract rgb values from a pixel (32 bit int). > > I implemented a lookup table filter and used a byte to store each individual > r g & b value to save a bit of space. > > Long story short; > > public void testColor(){ > > int nr = (byte)0; // Simulation of lookup in array of byte values > representing individual bands > int ng = (byte)0; > int nb = (byte)0; > int nc = Color.rgb(nr, ng, nb); > > assertEquals(nr,Color.red(nc)); > assertEquals(ng,Color.green(nc)); > assertEquals(ng,Color.blue(nc)); > > nr = (byte)0; > ng = (byte)137; > nb = (byte)0; > nc = Color.rgb(nr, ng, nb); > > assertEquals(nr,Color.red(nc)); // FAIL HERE > assertEquals(ng,Color.green(nc)); > assertEquals(nb,Color.blue(nc)); > } > > Failure in testColor: > junit.framework.AssertionFailedError: expected:<0> but was:<255> > at uk.ac.ic.doc.gea05.miffed.os.ColorTest.testColor(ColorTest.java:44) > > > Any ideas? > > 137 is the magic number causing the error in my case, there may be more. > > > Cheers! > > Gav > > > > > > > -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them --~--~-~--~~~---~--~~ 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: Color Bug?
On Fri, May 22, 2009 at 1:09 PM, Gavin Aiken wrote: > Hey all, > > Before I submit this I just wanted to check it's not a java nuiance. > > The Color class can be used to extract rgb values from a pixel (32 bit > int). > > I implemented a lookup table filter and used a byte to store each > individual r g & b value to save a bit of space. > > Long story short; > > public void testColor(){ > > int nr = (byte)0; // Simulation of lookup in array of byte values > representing individual bands > int ng = (byte)0; > int nb = (byte)0; > int nc = Color.rgb(nr, ng, nb); > > assertEquals(nr,Color.red(nc)); > assertEquals(ng,Color.green(nc)); > assertEquals(ng,Color.blue(nc)); Typo? nr = (byte)0; > ng = (byte)137; A byte is a signed 8-bit number, and 137 won't fit in that, so you may not get what you want. --~--~-~--~~~---~--~~ 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: Color Bug?
Did this in the end; ... int nr = table[r] & 0xFF; int ng = table[g] & 0xFF; int nb = table[b] & 0xFF; ... Where table is a byte array. Have a good weekend!! On Fri, May 22, 2009 at 9:09 PM, Gavin Aiken wrote: > Hey all, > > Before I submit this I just wanted to check it's not a java nuiance. > > The Color class can be used to extract rgb values from a pixel (32 bit > int). > > I implemented a lookup table filter and used a byte to store each > individual r g & b value to save a bit of space. > > Long story short; > > public void testColor(){ > > int nr = (byte)0; // Simulation of lookup in array of byte values > representing individual bands > int ng = (byte)0; > int nb = (byte)0; > int nc = Color.rgb(nr, ng, nb); > > assertEquals(nr,Color.red(nc)); > assertEquals(ng,Color.green(nc)); > assertEquals(ng,Color.blue(nc)); > > nr = (byte)0; > ng = (byte)137; > nb = (byte)0; > nc = Color.rgb(nr, ng, nb); > > assertEquals(nr,Color.red(nc));// FAIL HERE > assertEquals(ng,Color.green(nc)); > assertEquals(nb,Color.blue(nc)); > } > > Failure in testColor: > junit.framework.AssertionFailedError: expected:<0> but was:<255> > at uk.ac.ic.doc.gea05.miffed.os.ColorTest.testColor(ColorTest.java:44) > > > Any ideas? > > 137 is the magic number causing the error in my case, there may be more. > > > Cheers! > > Gav > > > > --~--~-~--~~~---~--~~ 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] dexer inner class errors
i'm getting a *lot* of this kind of error from the dexer when trying to use 3rd party libraries or even after compiling innocent-looking source. is this a problem with the dexer, or a problem with my JDK? i'm using - Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_13-b05-237) - on MacOS 10.5.6. thanks. [apply] warning: Ignoring InnerClasses attribute for an anonymous inner class that doesn't come with an associated EnclosingMethod attribute. (This class was probably produced by a broken compiler.) [apply] [apply] UNEXPECTED TOP-LEVEL ERROR: [apply] java.lang.OutOfMemoryError: Java heap space [apply]at com.android.dx.rop.code.Rops.opMoveResultPseudo(Rops.java:1348) [apply]at com.android.dx.cf.code.RopperMachine.run(RopperMachine.java:495) [apply]at com.android.dx.cf.code.Simulator$SimVisitor.visitConstant(Simulator.java:621) [apply]at com.android.dx.cf.code.BytecodeArray.parseInstruction(BytecodeArray.java:750) -- jason.software.particle --~--~-~--~~~---~--~~ 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] Color Bug?
Hey all, Before I submit this I just wanted to check it's not a java nuiance. The Color class can be used to extract rgb values from a pixel (32 bit int). I implemented a lookup table filter and used a byte to store each individual r g & b value to save a bit of space. Long story short; public void testColor(){ int nr = (byte)0; // Simulation of lookup in array of byte values representing individual bands int ng = (byte)0; int nb = (byte)0; int nc = Color.rgb(nr, ng, nb); assertEquals(nr,Color.red(nc)); assertEquals(ng,Color.green(nc)); assertEquals(ng,Color.blue(nc)); nr = (byte)0; ng = (byte)137; nb = (byte)0; nc = Color.rgb(nr, ng, nb); assertEquals(nr,Color.red(nc));// FAIL HERE assertEquals(ng,Color.green(nc)); assertEquals(nb,Color.blue(nc)); } Failure in testColor: junit.framework.AssertionFailedError: expected:<0> but was:<255> at uk.ac.ic.doc.gea05.miffed.os.ColorTest.testColor(ColorTest.java:44) Any ideas? 137 is the magic number causing the error in my case, there may be more. Cheers! Gav --~--~-~--~~~---~--~~ 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] Android DOM implementation issues
well, unfortunately it seems that this isn't going to work either. i changed the package names on my fixed-up harmony and configured the DocumentBuilderFactory and SAXParserFactory to reference the new classes. first problem is that although the factory can find my DocumentBuilderFactory, it can't instantiate my SAXParserFactory. this doesn't make any sense because i can instantiate it fine using the exact same code in my activity. second problem is that even if the fixed classes are instantiated directly rather than made by factories, it doesn't work because it turns out there is a *native* component to the Expat parser (wtf?) on which harmony depends and which it can't find because the package name is different. third problem is that even if i fix the imports to use the original Expat classes, the compiler can't find org.apache.harmony. i notice that while it's in the platform, it's not in the SDK, so i can't directly import it. i could include a duplicate harmony version of the class for import purposes, but i found that having two copies available caused the runtime to have problems. getting a working DOM on Android has turned into a massive odyssey. i'm up for fixing it, but the situation won't even let me do that. at this point i'm going to try and call Xerces's factories directly, as a last resort. if that doesn't work, i'm completely sunk. (my application works fine on every other DOM i've used.) >I'm not sure if this is what you're looking for and I never tried it myself. > >Try setting the property 'javax.xml.parsers.DocumentBuilderFactory' to >your own implementation of the DocumentBuilderFactory. > >The DocumentBuilderFactory.getInstance first tries to load a class by >name that's stored in that system property. If either that property is >not set or loading the class set doesn't succeed it will return the >default DocumentBuilderFactory. > >If you tried this already then I don't know how it can be done. >Comments in DocumentBuilderFactory say that other configuration >possibilities are not implemented (yet?). > >For the SaxParserFactory it would be following property: >javax.xml.parsers.SAXParserFactory > >-- Urs > >On Fri, May 22, 2009 at 1:46 AM, Jason Proctor > wrote: >> >>>fix them upstream then ship a forked copy until a new Android >>>release re-merges, or use a different dom implementation. >> >> seems i'm up against it here too. i included a copy of the harmony >> DOM source in my Android project, and it builds fine, but at runtime >> it uses the regular one. is there a way to force the usage of the >> local one? >> >> i'd use another DOM, but Xerces won't let me instantiate its document >> implementation directly, so i'd have to change the parser factories >> in javax.xml.parser. i'd be up for doing that, but Android heads me >> off at the pass there too by not allowing me to include anything off >> java.* or javax.* in my apk. >> >> it would be really nice if the javax.xml.parser.* factories could be >> configured to make Documents from different implementations, but i'm >> not seeing how right now. >> >> thanks in advance, >> -- >> jason.software.particle >> >> > >> > > -- jason.software.particle --~--~-~--~~~---~--~~ 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: Widget(s) and Pending intent
Yeah i'm have this code , but i do need extras. On May 22, 2:07 pm, snctln wrote: > I have been wrestling with this problem too, and not quite figured it > out but I remember reading something that Jeff Sharkey said about > widget pending intents not being able to store extras properly or > something, but they do store uris properly... like you can see in the > sky source > > http://code.google.com/p/android-sky/source/browse/trunk/Sky/src/org/... > // Connect click intent to launch details dialog > Intent detailIntent = new Intent(context, > DetailsActivity.class); > detailIntent.setData(appWidgetUri); > > PendingIntent pending = PendingIntent.getActivity(context, 0, > detailIntent, 0); > > views.setOnClickPendingIntent(R.id.widget, pending); > > the extras are never set, but setData() is called... > > good luck > > On May 22, 1:41 pm, Alexey Volovoy wrote: > > > Then i've tried PendingIntent.FLAG_UPDATE_CURRENT i'm no longer > > crashing, but it always launches the activity with extras were put in > > the widget that was updated the last. It looks like pending intent is > > shared among my widget instances . Anyway to avoid that ? > > > On May 22, 12:36 pm, Alexey wrote: > > > > Hi All , i'm working on news feed widget ( looking at Sky as an > > > example ) > > > Everything seems to be working except when i have more than one Image > > > and click on the widget i'm crashing. > > > One widget is working fine and more than one widget are working fine > > > too as long as i don't try to launch pending intent. > > > some code : > > > in buildUpdate > > > Intent intent = new Intent(context, StoryActivity.class); > > > intent.putExtra("CategoryID", catID); > > > intent.putExtra("StoryID", nItem.Number); > > > Log.d(TAG, "UpdateIntent:" + nItem.Number); > > > > PendingIntent pending = > > > PendingIntent.getActivity(context, 0, > > > intent,PendingIntent.FLAG_CANCEL_CURRENT); > > > views.setOnClickPendingIntent(R.id.widget, pending); > > > > crash : > > > > 05-22 12:31:05.483: ERROR/AndroidRuntime(15473): Uncaught handler: > > > thread main exiting due to uncaught exception > > > 05-22 12:31:05.534: WARN/AudioFlinger(35): write blocked for 94 msecs > > > 05-22 12:31:05.753: ERROR/AndroidRuntime(15473): > > > android.widget.RemoteViews$ActionException: android.app.PendingIntent > > > $CanceledException > > > 05-22 12:31:05.753: ERROR/AndroidRuntime(15473): at > > > android.widget.RemoteViews$SetOnClickPendingIntent$1.onClick > > > (RemoteViews.java:153) > > > 05-22 12:31:05.753: ERROR/AndroidRuntime(15473): at > > > android.view.View.performClick(View.java:2179) > > > 05-22 12:31:05.753: ERROR/AndroidRuntime(15473): at > > > android.view.View.onTouchEvent(View.java:3828) > > > 05-22 12:31:05.753: ERROR/AndroidRuntime(15473): at > > > android.view.View.dispatchTouchEvent(View.java:3368) > > > 05-22 12:31:05.753: ERROR/AndroidRuntime(15473): at > > > android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:831) > > > 05-22 12:31:05.753: ERROR/AndroidRuntime(15473): at > > > android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:863) > > > 05-22 12:31:05.753: ERROR/AndroidRuntime(15473): at > > > android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:863) > > > 05-22 12:31:05.753: ERROR/AndroidRuntime(15473): at > > > android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:863) > > > 05-22 12:31:05.753: ERROR/AndroidRuntime(15473): at > > > android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:863) > > > 05-22 12:31:05.753: ERROR/AndroidRuntime(15473): at > > > android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:863) > > > 05-22 12:31:05.753: ERROR/AndroidRuntime(15473): at > > > android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:863) > > > 05-22 12:31:05.753: ERROR/AndroidRuntime(15473): at > > > com.android.internal.policy.impl.PhoneWindow > > > $DecorView.superDispatchTouchEvent(PhoneWindow.java:1707) > > > 05-22 12:31:05.753: ERROR/AndroidRuntime(15473): at > > > com.android.internal.policy.impl.PhoneWindow.superDispatchTouchEvent > > > (PhoneWindow.java:1197) > > > 05-22 12:31:05.753: ERROR/AndroidRuntime(15473): at > > > android.app.Activity.dispatchTouchEvent(Activity.java:1993) > > > 05-22 12:31:05.753: ERROR/AndroidRuntime(15473): at > > > com.android.internal.policy.impl.PhoneWindow > > > $DecorView.dispatchTouchEvent(PhoneWindow.java:1691) > > > 05-22 12:31:05.753: ERROR/AndroidRuntime(15473): at > > > android.view.ViewRoot.handleMessage(ViewRoot.java:1525) > > > 05-22 12:31:05.753: ERROR/AndroidRuntime(15473): at > > > android.os.Handler.dispatchMessage(Handler.java:99) > > > 05-22 12:31:05.753: ERROR/AndroidRuntime(15473): at > > > android.os.Looper.loop(Looper.java:123) > > > 05-22 12:31:05.753: ERROR/AndroidRuntime(15473): at > > > android.app.ActivityThread.main(A
[android-developers] Re: Widget(s) and Pending intent
I've changed the call to PendingIntent pending = PendingIntent.getActivity(context, appWidgetId, intent, PendingIntent.FLAG_UPDATE_CURRENT); Now everything is cool except based on discussions i'm not sure how reliable it'll be . ( Doc says it's not supported yet ) On May 22, 2:01 pm, EboMike wrote: > There are several discussions about PendingIntents in this group, > they're a bit confusing at first because the system identifies them > only by action and data, not extras, so multiple PendingIntents with > the same action and data are considered the same. > > You need to make them unique, either by having unique actions or > unique data. One of the solutions mentioned in one the threads about > PendingIntents is to create a custom: data with the current system > time in it. > > On May 22, 11:41 am, Alexey Volovoy wrote: > > > Then i've tried PendingIntent.FLAG_UPDATE_CURRENT i'm no longer > > crashing, but it always launches the activity with extras were put in > > the widget that was updated the last. It looks like pending intent is > > shared among my widget instances . Anyway to avoid that ? > > > On May 22, 12:36 pm, Alexey wrote: > > > > Hi All , i'm working on news feed widget ( looking at Sky as an > > > example ) > > > Everything seems to be working except when i have more than one Image > > > and click on the widget i'm crashing. > > > One widget is working fine and more than one widget are working fine > > > too as long as i don't try to launch pending intent. > > > some code : > > > in buildUpdate > > > Intent intent = new Intent(context, StoryActivity.class); > > > intent.putExtra("CategoryID", catID); > > > intent.putExtra("StoryID", nItem.Number); > > > Log.d(TAG, "UpdateIntent:" + nItem.Number); > > > > PendingIntent pending = > > > PendingIntent.getActivity(context, 0, > > > intent,PendingIntent.FLAG_CANCEL_CURRENT); > > > views.setOnClickPendingIntent(R.id.widget, pending); > > > > crash : > > > > 05-22 12:31:05.483: ERROR/AndroidRuntime(15473): Uncaught handler: > > > thread main exiting due to uncaught exception > > > 05-22 12:31:05.534: WARN/AudioFlinger(35): write blocked for 94 msecs > > > 05-22 12:31:05.753: ERROR/AndroidRuntime(15473): > > > android.widget.RemoteViews$ActionException: android.app.PendingIntent > > > $CanceledException > > > 05-22 12:31:05.753: ERROR/AndroidRuntime(15473): at > > > android.widget.RemoteViews$SetOnClickPendingIntent$1.onClick > > > (RemoteViews.java:153) > > > 05-22 12:31:05.753: ERROR/AndroidRuntime(15473): at > > > android.view.View.performClick(View.java:2179) > > > 05-22 12:31:05.753: ERROR/AndroidRuntime(15473): at > > > android.view.View.onTouchEvent(View.java:3828) > > > 05-22 12:31:05.753: ERROR/AndroidRuntime(15473): at > > > android.view.View.dispatchTouchEvent(View.java:3368) > > > 05-22 12:31:05.753: ERROR/AndroidRuntime(15473): at > > > android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:831) > > > 05-22 12:31:05.753: ERROR/AndroidRuntime(15473): at > > > android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:863) > > > 05-22 12:31:05.753: ERROR/AndroidRuntime(15473): at > > > android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:863) > > > 05-22 12:31:05.753: ERROR/AndroidRuntime(15473): at > > > android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:863) > > > 05-22 12:31:05.753: ERROR/AndroidRuntime(15473): at > > > android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:863) > > > 05-22 12:31:05.753: ERROR/AndroidRuntime(15473): at > > > android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:863) > > > 05-22 12:31:05.753: ERROR/AndroidRuntime(15473): at > > > android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:863) > > > 05-22 12:31:05.753: ERROR/AndroidRuntime(15473): at > > > com.android.internal.policy.impl.PhoneWindow > > > $DecorView.superDispatchTouchEvent(PhoneWindow.java:1707) > > > 05-22 12:31:05.753: ERROR/AndroidRuntime(15473): at > > > com.android.internal.policy.impl.PhoneWindow.superDispatchTouchEvent > > > (PhoneWindow.java:1197) > > > 05-22 12:31:05.753: ERROR/AndroidRuntime(15473): at > > > android.app.Activity.dispatchTouchEvent(Activity.java:1993) > > > 05-22 12:31:05.753: ERROR/AndroidRuntime(15473): at > > > com.android.internal.policy.impl.PhoneWindow > > > $DecorView.dispatchTouchEvent(PhoneWindow.java:1691) > > > 05-22 12:31:05.753: ERROR/AndroidRuntime(15473): at > > > android.view.ViewRoot.handleMessage(ViewRoot.java:1525) > > > 05-22 12:31:05.753: ERROR/AndroidRuntime(15473): at > > > android.os.Handler.dispatchMessage(Handler.java:99) > > > 05-22 12:31:05.753: ERROR/AndroidRuntime(15473): at > > > android.os.Looper.loop(Looper.java:123) > > > 05-22 12:31:05.753: ERROR/AndroidRuntime(15473): at > > > android.app.ActivityThread.main(ActivityThread.java:3948) > > > 05-22 12:31:05.753: ERROR/AndroidRuntime(15473):
[android-developers] Re: Widget(s) and Pending intent
I have been wrestling with this problem too, and not quite figured it out but I remember reading something that Jeff Sharkey said about widget pending intents not being able to store extras properly or something, but they do store uris properly... like you can see in the sky source http://code.google.com/p/android-sky/source/browse/trunk/Sky/src/org/jsharkey/sky/MedAppWidget.java // Connect click intent to launch details dialog Intent detailIntent = new Intent(context, DetailsActivity.class); detailIntent.setData(appWidgetUri); PendingIntent pending = PendingIntent.getActivity(context, 0, detailIntent, 0); views.setOnClickPendingIntent(R.id.widget, pending); the extras are never set, but setData() is called... good luck On May 22, 1:41 pm, Alexey Volovoy wrote: > Then i've tried PendingIntent.FLAG_UPDATE_CURRENT i'm no longer > crashing, but it always launches the activity with extras were put in > the widget that was updated the last. It looks like pending intent is > shared among my widget instances . Anyway to avoid that ? > > On May 22, 12:36 pm, Alexey wrote: > > > Hi All , i'm working on news feed widget ( looking at Sky as an > > example ) > > Everything seems to be working except when i have more than one Image > > and click on the widget i'm crashing. > > One widget is working fine and more than one widget are working fine > > too as long as i don't try to launch pending intent. > > some code : > > in buildUpdate > > Intent intent = new Intent(context, StoryActivity.class); > > intent.putExtra("CategoryID", catID); > > intent.putExtra("StoryID", nItem.Number); > > Log.d(TAG, "UpdateIntent:" + nItem.Number); > > > PendingIntent pending = PendingIntent.getActivity(context, > > 0, > > intent,PendingIntent.FLAG_CANCEL_CURRENT); > > views.setOnClickPendingIntent(R.id.widget, pending); > > > crash : > > > 05-22 12:31:05.483: ERROR/AndroidRuntime(15473): Uncaught handler: > > thread main exiting due to uncaught exception > > 05-22 12:31:05.534: WARN/AudioFlinger(35): write blocked for 94 msecs > > 05-22 12:31:05.753: ERROR/AndroidRuntime(15473): > > android.widget.RemoteViews$ActionException: android.app.PendingIntent > > $CanceledException > > 05-22 12:31:05.753: ERROR/AndroidRuntime(15473): at > > android.widget.RemoteViews$SetOnClickPendingIntent$1.onClick > > (RemoteViews.java:153) > > 05-22 12:31:05.753: ERROR/AndroidRuntime(15473): at > > android.view.View.performClick(View.java:2179) > > 05-22 12:31:05.753: ERROR/AndroidRuntime(15473): at > > android.view.View.onTouchEvent(View.java:3828) > > 05-22 12:31:05.753: ERROR/AndroidRuntime(15473): at > > android.view.View.dispatchTouchEvent(View.java:3368) > > 05-22 12:31:05.753: ERROR/AndroidRuntime(15473): at > > android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:831) > > 05-22 12:31:05.753: ERROR/AndroidRuntime(15473): at > > android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:863) > > 05-22 12:31:05.753: ERROR/AndroidRuntime(15473): at > > android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:863) > > 05-22 12:31:05.753: ERROR/AndroidRuntime(15473): at > > android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:863) > > 05-22 12:31:05.753: ERROR/AndroidRuntime(15473): at > > android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:863) > > 05-22 12:31:05.753: ERROR/AndroidRuntime(15473): at > > android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:863) > > 05-22 12:31:05.753: ERROR/AndroidRuntime(15473): at > > android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:863) > > 05-22 12:31:05.753: ERROR/AndroidRuntime(15473): at > > com.android.internal.policy.impl.PhoneWindow > > $DecorView.superDispatchTouchEvent(PhoneWindow.java:1707) > > 05-22 12:31:05.753: ERROR/AndroidRuntime(15473): at > > com.android.internal.policy.impl.PhoneWindow.superDispatchTouchEvent > > (PhoneWindow.java:1197) > > 05-22 12:31:05.753: ERROR/AndroidRuntime(15473): at > > android.app.Activity.dispatchTouchEvent(Activity.java:1993) > > 05-22 12:31:05.753: ERROR/AndroidRuntime(15473): at > > com.android.internal.policy.impl.PhoneWindow > > $DecorView.dispatchTouchEvent(PhoneWindow.java:1691) > > 05-22 12:31:05.753: ERROR/AndroidRuntime(15473): at > > android.view.ViewRoot.handleMessage(ViewRoot.java:1525) > > 05-22 12:31:05.753: ERROR/AndroidRuntime(15473): at > > android.os.Handler.dispatchMessage(Handler.java:99) > > 05-22 12:31:05.753: ERROR/AndroidRuntime(15473): at > > android.os.Looper.loop(Looper.java:123) > > 05-22 12:31:05.753: ERROR/AndroidRuntime(15473): at > > android.app.ActivityThread.main(ActivityThread.java:3948) > > 05-22 12:31:05.753: ERROR/AndroidRuntime(15473): at > > java.lang.reflect.Method.invokeNative(Native Method) > > 05-22 12:31:05.753: ERROR/AndroidRuntime(15473): at > > java.lang.reflect.Method.invoke(
[android-developers] Re: Why can't I see this on my G1?
I suppose the developer chose to enable copy protection for it. That means that rooted phones cannot download it. On May 22, 11:00 am, Bill Zimmerly wrote: > I have the developer's G1 with "Cupcake 1.5" and am trying to download > this application... > > http://www.cyrket.com/package/com.rerware.android.MyBackupPro > > ...but the Android Market application on it can't find this > application! Does anybody have any ideas why this is so. > > I see all sorts of free and for sale applications on it, so I don't > see why MyBackup Pro doesn't display on it. (?) --~--~-~--~~~---~--~~ 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: Widget(s) and Pending intent
There are several discussions about PendingIntents in this group, they're a bit confusing at first because the system identifies them only by action and data, not extras, so multiple PendingIntents with the same action and data are considered the same. You need to make them unique, either by having unique actions or unique data. One of the solutions mentioned in one the threads about PendingIntents is to create a custom: data with the current system time in it. On May 22, 11:41 am, Alexey Volovoy wrote: > Then i've tried PendingIntent.FLAG_UPDATE_CURRENT i'm no longer > crashing, but it always launches the activity with extras were put in > the widget that was updated the last. It looks like pending intent is > shared among my widget instances . Anyway to avoid that ? > > On May 22, 12:36 pm, Alexey wrote: > > > Hi All , i'm working on news feed widget ( looking at Sky as an > > example ) > > Everything seems to be working except when i have more than one Image > > and click on the widget i'm crashing. > > One widget is working fine and more than one widget are working fine > > too as long as i don't try to launch pending intent. > > some code : > > in buildUpdate > > Intent intent = new Intent(context, StoryActivity.class); > > intent.putExtra("CategoryID", catID); > > intent.putExtra("StoryID", nItem.Number); > > Log.d(TAG, "UpdateIntent:" + nItem.Number); > > > PendingIntent pending = PendingIntent.getActivity(context, > > 0, > > intent,PendingIntent.FLAG_CANCEL_CURRENT); > > views.setOnClickPendingIntent(R.id.widget, pending); > > > crash : > > > 05-22 12:31:05.483: ERROR/AndroidRuntime(15473): Uncaught handler: > > thread main exiting due to uncaught exception > > 05-22 12:31:05.534: WARN/AudioFlinger(35): write blocked for 94 msecs > > 05-22 12:31:05.753: ERROR/AndroidRuntime(15473): > > android.widget.RemoteViews$ActionException: android.app.PendingIntent > > $CanceledException > > 05-22 12:31:05.753: ERROR/AndroidRuntime(15473): at > > android.widget.RemoteViews$SetOnClickPendingIntent$1.onClick > > (RemoteViews.java:153) > > 05-22 12:31:05.753: ERROR/AndroidRuntime(15473): at > > android.view.View.performClick(View.java:2179) > > 05-22 12:31:05.753: ERROR/AndroidRuntime(15473): at > > android.view.View.onTouchEvent(View.java:3828) > > 05-22 12:31:05.753: ERROR/AndroidRuntime(15473): at > > android.view.View.dispatchTouchEvent(View.java:3368) > > 05-22 12:31:05.753: ERROR/AndroidRuntime(15473): at > > android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:831) > > 05-22 12:31:05.753: ERROR/AndroidRuntime(15473): at > > android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:863) > > 05-22 12:31:05.753: ERROR/AndroidRuntime(15473): at > > android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:863) > > 05-22 12:31:05.753: ERROR/AndroidRuntime(15473): at > > android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:863) > > 05-22 12:31:05.753: ERROR/AndroidRuntime(15473): at > > android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:863) > > 05-22 12:31:05.753: ERROR/AndroidRuntime(15473): at > > android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:863) > > 05-22 12:31:05.753: ERROR/AndroidRuntime(15473): at > > android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:863) > > 05-22 12:31:05.753: ERROR/AndroidRuntime(15473): at > > com.android.internal.policy.impl.PhoneWindow > > $DecorView.superDispatchTouchEvent(PhoneWindow.java:1707) > > 05-22 12:31:05.753: ERROR/AndroidRuntime(15473): at > > com.android.internal.policy.impl.PhoneWindow.superDispatchTouchEvent > > (PhoneWindow.java:1197) > > 05-22 12:31:05.753: ERROR/AndroidRuntime(15473): at > > android.app.Activity.dispatchTouchEvent(Activity.java:1993) > > 05-22 12:31:05.753: ERROR/AndroidRuntime(15473): at > > com.android.internal.policy.impl.PhoneWindow > > $DecorView.dispatchTouchEvent(PhoneWindow.java:1691) > > 05-22 12:31:05.753: ERROR/AndroidRuntime(15473): at > > android.view.ViewRoot.handleMessage(ViewRoot.java:1525) > > 05-22 12:31:05.753: ERROR/AndroidRuntime(15473): at > > android.os.Handler.dispatchMessage(Handler.java:99) > > 05-22 12:31:05.753: ERROR/AndroidRuntime(15473): at > > android.os.Looper.loop(Looper.java:123) > > 05-22 12:31:05.753: ERROR/AndroidRuntime(15473): at > > android.app.ActivityThread.main(ActivityThread.java:3948) > > 05-22 12:31:05.753: ERROR/AndroidRuntime(15473): at > > java.lang.reflect.Method.invokeNative(Native Method) > > 05-22 12:31:05.753: ERROR/AndroidRuntime(15473): at > > java.lang.reflect.Method.invoke(Method.java:521) > > 05-22 12:31:05.753: ERROR/AndroidRuntime(15473): at > > com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run > > (ZygoteInit.java:782) > > 05-22 12:31:05.753: ERROR/AndroidRuntime(15473): at > > com.android.internal.os.ZygoteInit.main(ZygoteInit.java:540) > > 05-22 12:31:
[android-developers] no elements available in Eclipse when editing layout
I'm using the new SDK 1.5, and I'm trying to add some elements to a layout in eclipse. When I click the green plus symbol, the dialog pops up, but it doesn't populate with anything to choose from. Here's the XML of the layout I'm trying to add an element to: http://schemas.android.com/apk/res/android"; android:layout_width="wrap_content" android:layout_height="wrap_content"> Any clue as to what's going on? Thanks. Richard Schilling Mobile Operating Systems Engineer Root Wireless, Inc. --~--~-~--~~~---~--~~ 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: Widget(s) and Pending intent
Then i've tried PendingIntent.FLAG_UPDATE_CURRENT i'm no longer crashing, but it always launches the activity with extras were put in the widget that was updated the last. It looks like pending intent is shared among my widget instances . Anyway to avoid that ? On May 22, 12:36 pm, Alexey wrote: > Hi All , i'm working on news feed widget ( looking at Sky as an > example ) > Everything seems to be working except when i have more than one Image > and click on the widget i'm crashing. > One widget is working fine and more than one widget are working fine > too as long as i don't try to launch pending intent. > some code : > in buildUpdate > Intent intent = new Intent(context, StoryActivity.class); > intent.putExtra("CategoryID", catID); > intent.putExtra("StoryID", nItem.Number); > Log.d(TAG, "UpdateIntent:" + nItem.Number); > > PendingIntent pending = PendingIntent.getActivity(context, 0, > intent,PendingIntent.FLAG_CANCEL_CURRENT); > views.setOnClickPendingIntent(R.id.widget, pending); > > crash : > > 05-22 12:31:05.483: ERROR/AndroidRuntime(15473): Uncaught handler: > thread main exiting due to uncaught exception > 05-22 12:31:05.534: WARN/AudioFlinger(35): write blocked for 94 msecs > 05-22 12:31:05.753: ERROR/AndroidRuntime(15473): > android.widget.RemoteViews$ActionException: android.app.PendingIntent > $CanceledException > 05-22 12:31:05.753: ERROR/AndroidRuntime(15473): at > android.widget.RemoteViews$SetOnClickPendingIntent$1.onClick > (RemoteViews.java:153) > 05-22 12:31:05.753: ERROR/AndroidRuntime(15473): at > android.view.View.performClick(View.java:2179) > 05-22 12:31:05.753: ERROR/AndroidRuntime(15473): at > android.view.View.onTouchEvent(View.java:3828) > 05-22 12:31:05.753: ERROR/AndroidRuntime(15473): at > android.view.View.dispatchTouchEvent(View.java:3368) > 05-22 12:31:05.753: ERROR/AndroidRuntime(15473): at > android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:831) > 05-22 12:31:05.753: ERROR/AndroidRuntime(15473): at > android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:863) > 05-22 12:31:05.753: ERROR/AndroidRuntime(15473): at > android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:863) > 05-22 12:31:05.753: ERROR/AndroidRuntime(15473): at > android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:863) > 05-22 12:31:05.753: ERROR/AndroidRuntime(15473): at > android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:863) > 05-22 12:31:05.753: ERROR/AndroidRuntime(15473): at > android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:863) > 05-22 12:31:05.753: ERROR/AndroidRuntime(15473): at > android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:863) > 05-22 12:31:05.753: ERROR/AndroidRuntime(15473): at > com.android.internal.policy.impl.PhoneWindow > $DecorView.superDispatchTouchEvent(PhoneWindow.java:1707) > 05-22 12:31:05.753: ERROR/AndroidRuntime(15473): at > com.android.internal.policy.impl.PhoneWindow.superDispatchTouchEvent > (PhoneWindow.java:1197) > 05-22 12:31:05.753: ERROR/AndroidRuntime(15473): at > android.app.Activity.dispatchTouchEvent(Activity.java:1993) > 05-22 12:31:05.753: ERROR/AndroidRuntime(15473): at > com.android.internal.policy.impl.PhoneWindow > $DecorView.dispatchTouchEvent(PhoneWindow.java:1691) > 05-22 12:31:05.753: ERROR/AndroidRuntime(15473): at > android.view.ViewRoot.handleMessage(ViewRoot.java:1525) > 05-22 12:31:05.753: ERROR/AndroidRuntime(15473): at > android.os.Handler.dispatchMessage(Handler.java:99) > 05-22 12:31:05.753: ERROR/AndroidRuntime(15473): at > android.os.Looper.loop(Looper.java:123) > 05-22 12:31:05.753: ERROR/AndroidRuntime(15473): at > android.app.ActivityThread.main(ActivityThread.java:3948) > 05-22 12:31:05.753: ERROR/AndroidRuntime(15473): at > java.lang.reflect.Method.invokeNative(Native Method) > 05-22 12:31:05.753: ERROR/AndroidRuntime(15473): at > java.lang.reflect.Method.invoke(Method.java:521) > 05-22 12:31:05.753: ERROR/AndroidRuntime(15473): at > com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run > (ZygoteInit.java:782) > 05-22 12:31:05.753: ERROR/AndroidRuntime(15473): at > com.android.internal.os.ZygoteInit.main(ZygoteInit.java:540) > 05-22 12:31:05.753: ERROR/AndroidRuntime(15473): at > dalvik.system.NativeStart.main(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 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 redirect audio to bluetooth headset?
With an A2DP headset, all app processor audio can be routed to the headset. I thought I gave a pretty good summary of the differences between SCO and A2DP. If you need more detail, there is a lot of information available on the web. On May 22, 7:02 am, jianwei wrote: > What's SCO? What's A2DP? I'm not clear about that. Did that mean if i > using A2DP bluetooth headset, all audioes will auto play by > bluetooth headset? And not all bluetooth headset hardware supports > A2DP. Does that right? > > On 5月22日, 上午9时36分, Dave Sparks wrote: > > > You asked specifically aboutBluetoothSCO before. SCO is an 8KHz mono > > audio channel compressed down to a low bit-rate stream. To get a > > simulation of what it sounds like, try listening to music over a GSM > > circuit. > > > BluetoothA2DP is a different story. It use a reasonably good > > perceptual stereo codec. With the Cupcake 1.5 release, we support A2DP > > out of the box. If the user pairs and connects an A2DPheadset, there > > is nothing the application has to do - it just works. > > > On May 20, 6:46 pm, jianwei wrote: > > > > Thanks for your responese. > > > Does this mean all audio in thirdparty application can't play in > > >bluetoothheadset? > > > > Dave Sparks wrote: > > > > We don't support sending app processor audio over SCO. The audio > > > > quality would be very poor. > > > > > On May 20, 6:51 am, jianwei wrote: > > > > > Hi all, > > > > > I met a problem ofbluetoothheadset. I want to switch audio playing > > > > > tobluetoothheadsetwhenbluetoothheadsetis paired. I found > > > > > BluetoothDevice in android sources which can controllbluetooth. > > > > > However it is not contained in android.jar. So I used > > > > > AudioManager.setBluetoothScoOn(true), but it still can't work. This > > > > > problem has troubled me a long time. I do appreciate your help. 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: How to redirect audio to bluetooth headset?
I'm pretty sure that headset is SCO only. We don't support routing app processor audio to SCO. On May 22, 2:38 am, jianwei wrote: > Sorry for my poor english. May be you didn't understand my purpose. > I'm a application developer for android platform, and i didn't know > much about bluetooth. Our application will play some audioes(audio > format is amr). When bluetooth headset is paired and connected, we > need playing audio by bluetooth headset. Howerver audio is alway > played by phone speaker, not bt headset. My bt headset is HBH-631, > made by SONY ERICSSON, and it's fine when i call phone. Any > suggestions? Very thanks. > > On 5月22日, 上午9时36分, Dave Sparks wrote: > > > You asked specifically about Bluetooth SCO before. SCO is an 8KHz mono > > audio channel compressed down to a low bit-rate stream. To get a > > simulation of what it sounds like, try listening to music over a GSM > > circuit. > > > Bluetooth A2DP is a different story. It use a reasonably good > > perceptual stereo codec. With the Cupcake 1.5 release, we support A2DP > > out of the box. If the user pairs and connects an A2DP headset, there > > is nothing the application has to do - it just works. > > > On May 20, 6:46 pm, jianwei wrote: > > > > Thanks for your responese. > > > Does this mean all audio in thirdparty application can't play in > > > bluetooth headset? > > > > Dave Sparks wrote: > > > > We don't support sending app processor audio over SCO. The audio > > > > quality would be very poor. > > > > > On May 20, 6:51 am, jianwei wrote: > > > > > Hi all, > > > > > I met a problem of bluetooth headset. I want to switch audio playing > > > > > to bluetooth headset when bluetooth headset is paired. I found > > > > > BluetoothDevice in android sources which can controll bluetooth. > > > > > However it is not contained in android.jar. So I used > > > > > AudioManager.setBluetoothScoOn(true), but it still can't work. This > > > > > problem has troubled me a long time. I do appreciate your help. 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: rtsp/http Streaming
This is supported, it definitely should not crash even if there's a problem. Where's the stack trace for the crash? On Apr 29, 8:30 am, Zhubham wrote: > Hi People, > > I need your help regarding streaming in android. I read some of the > previous discussions but I have a few doubts which i thought of > clarifying from you . Please help me with the following aspects: > > (i) Does android supports RTSP and HTTP streaming ?? > > (ii) One discussion read -> "Streaming does not work in the emulator > environment due to some firewall issues in the emulator network > layer". Is this issue not resolved till now?? > > (iii) I used the api demo code available @ \ApiDemos\src\com\example > \android\apis\media\MediaPlayerDemo_Video.java > > Here I set the path as-> path = "Rtsp://10.2.5.220/sample_50kbit. > 3gp"; > OR as -> "path = "rtsp://10.2.5.220/sample_100kbit.mp4" > > THIS IS CRASHING @ mMediaPlayer.prepare(); (I am using darwin > streaming server) > > This is playing fine in local playback. But, I am not able to > understand why it is crashing here. Please suggest. > > (iv) The supported codecs are MPEG4 Video, AVC, MPEG4 Audio, AMR, and > H263. Am I correct?? > > I await your response. Kindly assist. > > 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: Android G1 - Streaming WMV
HTTP progressive and RTSP for 3GPP/MPEG-4 streams. On May 22, 10:57 am, Emil wrote: > Thanks for the answer. > > So which video streaming formats the Android G1 does support? > > Emil > > On May 22, 4:39 am, Dave Sparks wrote: > > > The G1 does not support Windows Media streaming formats, only local > > file playback. > > > On May 21, 1:23 am, semil103 wrote: > > > > Hello, > > > > I would like to know if I can view streamed WMV video format using G1 > > > device (not the developer phone). > > > I understand that WMV format is not included in basic Android > > > Supported Media Formats. But I'm interested in developing application > > > specific for G1 device. My hope is taken > > > from:http://developer.android.com/guide/appendix/media-formats.html > > > Here It's written that > > > "In addition to the core media formats supported in the Android > > > platform, the T-Mobile G1 also supports the formats listed below: > > > . > > > WMV Versions 7, 8 and 9. Simple profile only Windows Media Video > > > (.wmv)" > > > > I just can't find the answer for that question. can anyone help me > > > clearing this issue so I would know if it is worthwhile to purchase G1 > > > device? > > > > Thanks, > > > Emil --~--~-~--~~~---~--~~ 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: Not getting more than one GPS fix on Android 1.5 emulator
I've seen this problem before however no clues about the cause. As a workaround, you may load a KML file in DDMS and play it. If you need to convert a KMZ to KML suitable for DDMS check http://dtmilano.blogspot.com/2008/12/in-this-previous-post-we-reviewed.html. I haven't had luck loading GPX either. Hope that helps. On May 21, 11:32 pm, Anshul wrote: > I have a GPS app that gets the GPS fixes and prints it in the ADB > logs. The app was working fine with 1.1 SDK. WIth 1.5 SDK emulator I > see that the app does not receive any location updates after > receiveing the 1st location. I have LocationListener as well as > GPSStatusListener aded to my code and none of the listeners gets > called. SO my app kind of waits forever for the next location or an > error. > > 05-21 23:27:35.554: ERROR/fta_gps(740): gpsTest.java: > 438:onGpsStatusChanged, event 3 > 05-21 23:27:36.564: INFO/fta_gps(740): gpsTest.java: > 294:onLocationChanged > 05-21 23:27:36.583: INFO/fta_gps(740): gpsTest.java:581:TimeStamp is: > Dec 31, Wed > 05-21 23:27:36.593: INFO/fta_gps(740): gpsTest.java:551:DateStamp is: > 11:59:59pm 1969 > 05-21 23:27:36.724: INFO/fta_gps(740): gpsTest.java:359:Location > changed : Latitude: 38.99941 Longitude: -77.08595 Altitude: 0.0 Speed: > 0.0 > > And then no more message related to the GPS. > > Thanks, > -Anshul --~--~-~--~~~---~--~~ 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] Why can't I see this on my G1?
I have the developer's G1 with "Cupcake 1.5" and am trying to download this application... http://www.cyrket.com/package/com.rerware.android.MyBackupPro ...but the Android Market application on it can't find this application! Does anybody have any ideas why this is so. I see all sorts of free and for sale applications on it, so I don't see why MyBackup Pro doesn't display on it. (?) --~--~-~--~~~---~--~~ 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 G1 - Streaming WMV
Thanks for the answer. So which video streaming formats the Android G1 does support? Emil On May 22, 4:39 am, Dave Sparks wrote: > The G1 does not support Windows Media streaming formats, only local > file playback. > > On May 21, 1:23 am, semil103 wrote: > > > Hello, > > > I would like to know if I can view streamed WMV video format using G1 > > device (not the developer phone). > > I understand that WMV format is not included in basic Android > > Supported Media Formats. But I'm interested in developing application > > specific for G1 device. My hope is taken > > from:http://developer.android.com/guide/appendix/media-formats.html > > Here It's written that > > "In addition to the core media formats supported in the Android > > platform, the T-Mobile G1 also supports the formats listed below: > > . > > WMV Versions 7, 8 and 9. Simple profile only Windows Media Video > > (.wmv)" > > > I just can't find the answer for that question. can anyone help me > > clearing this issue so I would know if it is worthwhile to purchase G1 > > device? > > > Thanks, > > Emil --~--~-~--~~~---~--~~ 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 with MapActivity on the 1.5 release
hi, Did you generate your emulator image with AVD and using target 3? This type of emulator contains maps.jar in native and all is ok. Regards On May 22, 4:17 pm, "mobilek...@googlemail.com" wrote: > Hi, > > I have a problem with firing an activity that extends MapActivity. > When it gets called, it throws a java.lang.NoClassDefFoundError... > not sure what this is supposed to mean. I think something goes wrong > with the external implementation of the maps API (maps.jar). Has > anyone come across that problem? Here's the srack trace: > > 05-22 15:13:36.723: ERROR/AndroidRuntime(445): > java.lang.NoClassDefFoundError: main.ViewContactActivity > 05-22 15:13:36.723: ERROR/AndroidRuntime(445): at > main.ContactsActivity.onOptionsItemSelected(ContactsActivity.java:311) > 05-22 15:13:36.723: ERROR/AndroidRuntime(445): at > android.app.Activity.onMenuItemSelected(Activity.java:2085) > 05-22 15:13:36.723: ERROR/AndroidRuntime(445): at > com.android.internal.policy.impl.PhoneWindow.onMenuItemSelected > (PhoneWindow.java:820) > 05-22 15:13:36.723: ERROR/AndroidRuntime(445): at > com.android.internal.view.menu.MenuItemImpl.invoke(MenuItemImpl.java: > 139) > 05-22 15:13:36.723: ERROR/AndroidRuntime(445): at > com.android.internal.view.menu.MenuBuilder.performItemAction > (MenuBuilder.java:813) > 05-22 15:13:36.723: ERROR/AndroidRuntime(445): at > com.android.internal.view.menu.IconMenuView.invokeItem > (IconMenuView.java:519) > 05-22 15:13:36.723: ERROR/AndroidRuntime(445): at > com.android.internal.view.menu.IconMenuItemView.performClick > (IconMenuItemView.java:122) > 05-22 15:13:36.723: ERROR/AndroidRuntime(445): at > android.view.View.onTouchEvent(View.java:3828) > 05-22 15:13:36.723: ERROR/AndroidRuntime(445): at > android.widget.TextView.onTouchEvent(TextView.java:6291) > 05-22 15:13:36.723: ERROR/AndroidRuntime(445): at > android.view.View.dispatchTouchEvent(View.java:3368) > 05-22 15:13:36.723: ERROR/AndroidRuntime(445): at > android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:863) > 05-22 15:13:36.723: ERROR/AndroidRuntime(445): at > android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:863) > 05-22 15:13:36.723: ERROR/AndroidRuntime(445): at > com.android.internal.policy.impl.PhoneWindow > $DecorView.dispatchTouchEvent(PhoneWindow.java:1691) > 05-22 15:13:36.723: ERROR/AndroidRuntime(445): at > android.view.ViewRoot.handleMessage(ViewRoot.java:1525) > 05-22 15:13:36.723: ERROR/AndroidRuntime(445): at > android.os.Handler.dispatchMessage(Handler.java:99) > 05-22 15:13:36.723: ERROR/AndroidRuntime(445): at > android.os.Looper.loop(Looper.java:123) > 05-22 15:13:36.723: ERROR/AndroidRuntime(445): at > android.app.ActivityThread.main(ActivityThread.java:3948) > 05-22 15:13:36.723: ERROR/AndroidRuntime(445): at > java.lang.reflect.Method.invokeNative(Native Method) > 05-22 15:13:36.723: ERROR/AndroidRuntime(445): at > java.lang.reflect.Method.invoke(Method.java:521) > 05-22 15:13:36.723: ERROR/AndroidRuntime(445): at > com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run > (ZygoteInit.java:782) > 05-22 15:13:36.723: ERROR/AndroidRuntime(445): at > com.android.internal.os.ZygoteInit.main(ZygoteInit.java:540) > 05-22 15:13:36.723: ERROR/AndroidRuntime(445): at > dalvik.system.NativeStart.main(Native Method) > 05-22 15:13:36.723: ERROR/AndroidRuntime(445): Caused by: > java.lang.IllegalAccessError: cross-loader access from pre-verified > class > 05-22 15:13:36.723: ERROR/AndroidRuntime(445): at > dalvik.system.DexFile.defineClass(Native Method) > 05-22 15:13:36.723: ERROR/AndroidRuntime(445): at > dalvik.system.DexFile.loadClass(DexFile.java:193) > 05-22 15:13:36.723: ERROR/AndroidRuntime(445): at > dalvik.system.PathClassLoader.findClass(PathClassLoader.java:203) > 05-22 15:13:36.723: ERROR/AndroidRuntime(445): at > java.lang.ClassLoader.loadClass(ClassLoader.java:573) > 05-22 15:13:36.723: ERROR/AndroidRuntime(445): at > java.lang.ClassLoader.loadClass(ClassLoader.java:532) > 05-22 15:13:36.723: ERROR/AndroidRuntime(445): ... 22 more > > 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] Widget(s) and Pending intent
Hi All , i'm working on news feed widget ( looking at Sky as an example ) Everything seems to be working except when i have more than one Image and click on the widget i'm crashing. One widget is working fine and more than one widget are working fine too as long as i don't try to launch pending intent. some code : in buildUpdate Intent intent = new Intent(context, StoryActivity.class); intent.putExtra("CategoryID", catID); intent.putExtra("StoryID", nItem.Number); Log.d(TAG, "UpdateIntent:" + nItem.Number); PendingIntent pending = PendingIntent.getActivity(context, 0, intent,PendingIntent.FLAG_CANCEL_CURRENT); views.setOnClickPendingIntent(R.id.widget, pending); crash : 05-22 12:31:05.483: ERROR/AndroidRuntime(15473): Uncaught handler: thread main exiting due to uncaught exception 05-22 12:31:05.534: WARN/AudioFlinger(35): write blocked for 94 msecs 05-22 12:31:05.753: ERROR/AndroidRuntime(15473): android.widget.RemoteViews$ActionException: android.app.PendingIntent $CanceledException 05-22 12:31:05.753: ERROR/AndroidRuntime(15473): at android.widget.RemoteViews$SetOnClickPendingIntent$1.onClick (RemoteViews.java:153) 05-22 12:31:05.753: ERROR/AndroidRuntime(15473): at android.view.View.performClick(View.java:2179) 05-22 12:31:05.753: ERROR/AndroidRuntime(15473): at android.view.View.onTouchEvent(View.java:3828) 05-22 12:31:05.753: ERROR/AndroidRuntime(15473): at android.view.View.dispatchTouchEvent(View.java:3368) 05-22 12:31:05.753: ERROR/AndroidRuntime(15473): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:831) 05-22 12:31:05.753: ERROR/AndroidRuntime(15473): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:863) 05-22 12:31:05.753: ERROR/AndroidRuntime(15473): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:863) 05-22 12:31:05.753: ERROR/AndroidRuntime(15473): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:863) 05-22 12:31:05.753: ERROR/AndroidRuntime(15473): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:863) 05-22 12:31:05.753: ERROR/AndroidRuntime(15473): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:863) 05-22 12:31:05.753: ERROR/AndroidRuntime(15473): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:863) 05-22 12:31:05.753: ERROR/AndroidRuntime(15473): at com.android.internal.policy.impl.PhoneWindow $DecorView.superDispatchTouchEvent(PhoneWindow.java:1707) 05-22 12:31:05.753: ERROR/AndroidRuntime(15473): at com.android.internal.policy.impl.PhoneWindow.superDispatchTouchEvent (PhoneWindow.java:1197) 05-22 12:31:05.753: ERROR/AndroidRuntime(15473): at android.app.Activity.dispatchTouchEvent(Activity.java:1993) 05-22 12:31:05.753: ERROR/AndroidRuntime(15473): at com.android.internal.policy.impl.PhoneWindow $DecorView.dispatchTouchEvent(PhoneWindow.java:1691) 05-22 12:31:05.753: ERROR/AndroidRuntime(15473): at android.view.ViewRoot.handleMessage(ViewRoot.java:1525) 05-22 12:31:05.753: ERROR/AndroidRuntime(15473): at android.os.Handler.dispatchMessage(Handler.java:99) 05-22 12:31:05.753: ERROR/AndroidRuntime(15473): at android.os.Looper.loop(Looper.java:123) 05-22 12:31:05.753: ERROR/AndroidRuntime(15473): at android.app.ActivityThread.main(ActivityThread.java:3948) 05-22 12:31:05.753: ERROR/AndroidRuntime(15473): at java.lang.reflect.Method.invokeNative(Native Method) 05-22 12:31:05.753: ERROR/AndroidRuntime(15473): at java.lang.reflect.Method.invoke(Method.java:521) 05-22 12:31:05.753: ERROR/AndroidRuntime(15473): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:782) 05-22 12:31:05.753: ERROR/AndroidRuntime(15473): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:540) 05-22 12:31:05.753: ERROR/AndroidRuntime(15473): at dalvik.system.NativeStart.main(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 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 force to update a view?
I'm having a similar issue with an ImageView based class that uses Matrix transformations. I update the Matrix with setImageMatrix, but the view does not update. how can I get the view to update? On May 22, 5:31 am, Gavin wrote: > Hello, > I have a List activity which use cursor adapter. When an item of > database is changed, I hope the corresponding view of this list can > update and get new data from database. > > I know the time when database is changed, but how to update view? > > 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: How to force to update a view?
This should normally happen automatically: when the database changes, the cursor adapter is notified, which causes the cursor to be requeried and the the listview to be updated. On Fri, May 22, 2009 at 2:31 AM, Gavin wrote: > > Hello, > I have a List activity which use cursor adapter. When an item of > database is changed, I hope the corresponding view of this list can > update and get new data from database. > > I know the time when database is changed, but how to update view? > > 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: startActivityForResult in onResume
Hi again, It looks like the problem is in translucent style :/ When I remove it in manifets everything is ok. I've noticed that problem occurs when Android is rendering screen i off-screen memory (when it shows the layout everything is ok but it tooks very long). Is there any way to speedup this process. Activity which is begind this translucent Activity doesn't change at a time of displaying it (translucent one), so I think it could be as fast as displaying AlertDialog. Do you have any idea? Skyman --~--~-~--~~~---~--~~ 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: aidl remote service call namespace question
The file name doesn't matter, is completely irrelevant, and ignored. The identity of your app is the package name you declare in the manifest. As I said, you need to give them different package names for them to actually be different apps. On Fri, May 22, 2009 at 1:25 AM, dev_rob wrote: > > I am still hanging on this issue, > > maybe there is someone, who has played around with service and can > provide me some example code, where it works that a service, lying in > one eclipse project is successfully bound to and called maybe by an > activity, which resides lying in another eclipse project?? > > I hope that I can figure out, what I'm doing wrong by comparison then. > > You can contact me directly, if you don't want to post any example > code here.. > > I'd really appreciate any help, cause I am really stuck, thank you so > much in advance! > > regards > > On 18 Mai, 09:00, dev_rob wrote: > > Hey Dianne, > > > > thanks a lot for your answer. > > > > The package names are the same, but not the app-names. > > > > The .apks are called > > > > New_RPC_Client.apk > > > > and > > > > New_RPC_Server.apk > > > > inside both apks thenamespace/package name is > > > > de.roberlin.new_rpc > > > > This is the same in both apps, because the package has to be declared > > in TestInterface.aidl, which resides in both projects. > > > > I wondered, if those namespaces can be the reason for the fact, that > > the system cannot find theserviceanymore, when I execute the > > client?? > > > > When I execute theservicefirst it gets correctly installed as > > > > "ServiceResolver Table: > > Non-Data Actions: > > ... > > de.roberlin.new_rpc.TestStringService: > > 43731670 de.roberlin.new_rpc/.TestStringService" > > > > To be clear on that, here are both manifest-files: > > > > > > http://schemas.android.com/apk/res/android"; > > package="de.roberlin.new_rpc" > > android:versionCode="1" > > android:versionName="1.0"> > > > > > android:label="@string/app_name"> > > > > > > > android:name="android.intent.category.LAUNCHER" /> > > > > > > > > > > > > > > > > http://schemas.android.com/apk/res/android"; > > package="de.roberlin.new_rpc" > > android:versionCode="1" > > android:versionName="1.0"> > > > > > android:exported="true" > > android:process=":remote"> > > > > > android:name="de.roberlin.new_rpc.TestStringService"/> > > > > > > > > > > > > > > Then I execute the Client app, in which I try to bind to theService > > with > > > > "String intentAction = "de.roberlin.new_rpc.TestStringService"; > > Intent iService = new Intent(intentAction); > > bindService(iService, myService, > > Context.BIND_AUTO_CREATE);" > > > > but it only leads to DDSM telling me > > > > "05-18 06:46:00.623: WARN/ActivityManager(567): Unable to > startserviceIntent { action=de.roberlin.new_rpc.TestStringService }: not > > found" > > > > But as it was registered correctly, it should be found here?! > > > > And if I do "adb shell dumpsys package" now again, it does not list > > theserviceanymore as described... > > > > Is there any hint for this behaviour and how to solve this?! > > > > Can thenamespace"de.roberlin.new_rpc" in both apps (even if the app- > > names are different) be an issue? as theservicecallcomes from > > inside the client app, maybe it just looks there under > > "de.roberlin.new_rpc" for theservice? if so, how can I put > > TestInterface.aidlin both projects without having the same > > "de.roberlin.new_rpc" in both projects? > > > > Thanks again for any pointers! > > > > On 18 Mai, 04:19, Dianne Hackborn wrote: > > > > > If you have give the .apks the same name, you can't have them both > installed > > > at the same time, because they are both effectively the same app. > > > > > You can have classes in whatevernamespaceyou want inside of the .apk > (and > > > even publish these in the manifest via fully qualified class names). > > > > > On Sun, May 17, 2009 at 8:37 AM, dev_rob > wrote: > > > > > > I think it's rather a problem with namespaces. And the package names > > > > in both projects are indeed identical! > > > > > > But as (one of my original questions) both projects have to contain > > > > the TestInterface.aidlthe package names must be the same, because > > > > otherwise there is a different package name in TestInterface.aidland > > > > then it's not the same interface anymore and enforceInterface() > > > > complains about that... > > > > > > If you have a suggestion for this issue, it would be great (I guess > > > > there is a simple solution for this)! I could see then, if that has > > > > something to do with the fact, that theserviceseems not to be > > > > registered after executing the calling activity (project 1). > > >
[android-developers] Re: add my Launcher.apk into emulator
You need to give it a different package name. If you don't, you are trying to replace the current Launcher .apk, and since you aren't signed with the same cert, you can't. On Fri, May 22, 2009 at 4:38 AM, allstars wrote: > > hi > > i try to modify the Launcher in mydroid/package/apps/Launcher > and i try to use it as an APK so i dont have to mess up the original > system image > > so i copy it to another project , say mydroid/package/apps/MyLauncher > > i have changed the package name in case it will conflict with the > original Launcher > > and because some files use android.internal.R > using 'android' to install/update is not feasible > hence i build my MyLauncher inside mydroid , and i modify the > LOCAL_PACKAGE_NAME in Android.mk > > when i build out the MyLauncher.apk > > i try to install it with adb install > but it complains > > Failure [INSTALL_FAILED_ALREADY_EXISTS] > > but i am sure i havent installed this APK before > > and if i use $>adb install -r , it will complain > > Failure [INSTALL_PARSE_FAILED_INCONSISTENT_CERTIFICATES] > > so i would like to ask what's the correct way to install my > MyLauncher.apk into emulator > > thanks > > > -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. --~--~-~--~~~---~--~~ 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: why 480*320 png doesn't fit on landscape full screen
What are you trying to do? You can't assume your content area is going to be an exact pixel sizes, the status bar may have slightly different heights on some devices, in the future there will be different screen sizes, etc. If you want to have a background that doesn't stretch and don't mind it getting cropped, you can set it to be the background of the window, where it will be placed behind the status bar / ime / etc. Longer term that is still problematic, though, since there will be a variety of physical screen sizes. On Fri, May 22, 2009 at 2:01 AM, zeeshan wrote: > > well, i removed the title bar and this make my image a bit large but > it still smaller in width. > > i suppose this is because of status bar now :) > > what resolution i need to have to fit my image on full screen if i > keep my status bar? > > > On May 21, 4:56 pm, "bwilliam...@gmail.com" > wrote: > > Do you have a title bar? That takes up space. So does the status bar > > (the one that shows time, signal, battery life, notifications, etc). > > > > On May 21, 6:20 am, zeeshan wrote: > > > > > Hi Experts, > > > > > i am trying to display 480*320 image in fill_parent width and height > > > but it doesn't fit on full screen. > > > image seems a bit smaller in width. > > > > > do i need to change resolution or something else, please advise > > > > > thanks > > > -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. --~--~-~--~~~---~--~~ 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: SDK Navigating from PackageManager to Activity to IntentFilters
I don't think I ever implemented the code to return intent filters. On Fri, May 22, 2009 at 9:32 AM, clemsongrad wrote: > > > I want to use the SDK (PackageManager API) and dump all packages, > their activities and the intent filters the activities use. So far > navigating from the Context -> PackageManager -> ActivityInfo is > easy. I am stuck trying to figure out how to retrieve the mappings > from Activity -> Intent-Filter. > > Looks like from what i could tell from the SDK documentation, i can > obtain the ResolveInfo (if i know the Intent). But how do i retrieve > Activity to Intent-Filter mapping? > > Is this even supported? > > Thanks! > > > > -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. --~--~-~--~~~---~--~~ 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: Getting the height of the Virtual Keyboard
You don't get the height; you set your window in to resize mode and deal with your content being resized to accommodate the IME. On Fri, May 22, 2009 at 8:33 AM, stephen.lloyd.h...@googlemail.com < stephen.lloyd.h...@googlemail.com> wrote: > > Hi, > > We have got all our own edit boxes etc. so we call the virtual > keyboard from SDK 1.5 in the followng way (when the use selects one of > our edit/text boxes): > > Context c = getApplicationContext(); > InputMethodManager inputManager = (InputMethodManager) > c.getSystemService( Context.INPUT_METHOD_SERVICE ); > inputManager.showSoftInput(ourCanvasInstance, 0); > > This works fine and even populates our edit boxes automatically upon > key entry, we can dismiss it by calling: > > inputManager.toggleSoftInput(0, 0); > > > The problem we have now is that we need to know the size of the > virtual keyboard so that we can resize all our popups etc to fit > within the area of the screen that is not covered by the virtual > keyboard. Is there anyway of getting the height of the default virtual > keyboard? I have noticed that android.inputmethodservice.Keyboard has > access to the height but I can't seem to find anyway to access this, > does anyone happen to know any useful pointers to be able to access > the height of the VK? > > Thanks, > Stephen > > > > > -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. --~--~-~--~~~---~--~~ 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: Framework support for detecting starting and stopping of activities
Mike, I am proceeding along the same lines. Seeing if there is an elegant soln to this. Thanks for your feedback. On May 21, 3:41 pm, Mike Hearn wrote: > You can write an app which dumps "adb logcat" and greps for the output > from the activity manager. It's ugly and non-supported, but for your > usability study it will 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 android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] SDK Navigating from PackageManager to Activity to IntentFilters
I want to use the SDK (PackageManager API) and dump all packages, their activities and the intent filters the activities use. So far navigating from the Context -> PackageManager -> ActivityInfo is easy. I am stuck trying to figure out how to retrieve the mappings from Activity -> Intent-Filter. Looks like from what i could tell from the SDK documentation, i can obtain the ResolveInfo (if i know the Intent). But how do i retrieve Activity to Intent-Filter mapping? Is this even supported? 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: DRM Issue
On Fri, May 22, 2009 at 3:40 AM, Prashant M wrote: > > Developed one sample APP to insert the FL (forward Lock content) into > DRM provider. > While insertion throwing security exception. > I added android.permission.ACCESS_DRM in the > androidmanifest.xmlBut still facing the issue. > android.permission.ACCESS_DRM How did you add it to the manifest, i.e. what does your manifest look like? --~--~-~--~~~---~--~~ 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: Find whether any audio is currently playing
You can detect whether audio is playing by getting a reference to AudioManager and calling isMusicActive()... -Rob On Fri, May 22, 2009 at 11:04 AM, Marco Nelissen wrote: > On Thu, May 21, 2009 at 9:41 PM, iDeveloper wrote: > >> Hi >> >> I am using a MediaPlayer instance in order to stream audio files from an >> Internet location. The audio player is in a separate activity. The user can >> select from a list of audio files and come to this activity which plays the >> audio. >> >> Now the user might go back to the previous activity (with the list) and >> select another audio file. In this case, I want to stop any other audio that >> is playing and start playing the new audio which was selected. >> >> Is there any way I can know whether an audio file is playing without >> having to hold on to the MediaPlayer object? >> > > No, and you *should* hold on to the MediaPlayer object, because if you > don't, it can be garbage collected at any time, at which point playback > would stop. > > > > > --~--~-~--~~~---~--~~ 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] Authentication Method - Rest Server and Android
Hi, I'm developping a Rest server using RestLet. I communicate with JSon objects between Android and the Server. In order to securise server-side datas, I would like to use authentication and autorisation methods. I googled a little bit, I found different authentication schems : Basic, Digest, NTLM, Amazon. Wich one is the usefulest (or best)? Best regards Tom --~--~-~--~~~---~--~~ 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: Find whether any audio is currently playing
On Thu, May 21, 2009 at 9:41 PM, iDeveloper wrote: > Hi > > I am using a MediaPlayer instance in order to stream audio files from an > Internet location. The audio player is in a separate activity. The user can > select from a list of audio files and come to this activity which plays the > audio. > > Now the user might go back to the previous activity (with the list) and > select another audio file. In this case, I want to stop any other audio that > is playing and start playing the new audio which was selected. > > Is there any way I can know whether an audio file is playing without having > to hold on to the MediaPlayer object? > No, and you *should* hold on to the MediaPlayer object, because if you don't, it can be garbage collected at any time, at which point playback would stop. --~--~-~--~~~---~--~~ 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] Getting the height of the Virtual Keyboard
Hi, We have got all our own edit boxes etc. so we call the virtual keyboard from SDK 1.5 in the followng way (when the use selects one of our edit/text boxes): Context c = getApplicationContext(); InputMethodManager inputManager = (InputMethodManager) c.getSystemService( Context.INPUT_METHOD_SERVICE ); inputManager.showSoftInput(ourCanvasInstance, 0); This works fine and even populates our edit boxes automatically upon key entry, we can dismiss it by calling: inputManager.toggleSoftInput(0, 0); The problem we have now is that we need to know the size of the virtual keyboard so that we can resize all our popups etc to fit within the area of the screen that is not covered by the virtual keyboard. Is there anyway of getting the height of the default virtual keyboard? I have noticed that android.inputmethodservice.Keyboard has access to the height but I can't seem to find anyway to access this, does anyone happen to know any useful pointers to be able to access the height of the VK? Thanks, Stephen --~--~-~--~~~---~--~~ 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: showDialog and dismissDialog behave strangely when changing orientation
Do you call dialog.show() or activity.showDialog(dialogid)? On May 22, 11:15 am, idev wrote: > Anyone know about this? I've seen many posts and blogs about this > problem but no one seems to have a solution for it. > Can someone please help! > > Thanks. > > On May 21, 8:12 pm, iDeveloper wrote: > > > > > Not in the onCreate implementation. I am calling it on a button's > > click event. And the button is sort of a refresh button. So it might > > be pressed multiple times. > > > On 21-May-09, at 7:57 PM, Streets Of Boston wrote: > > > > Where do you call the showDialog()? In the onCreate? > > > > (Note that there is a known issue with the onPrepareDialog that is not > > > called properly when a configuration change has occurred in your app.) > > > > On May 21, 4:53 am, idev wrote: > > >> Hi > > >> I am using the showDialog anddismissDialogmethods to show progress > > >> dialogs in my app. Moved from creating the dialog and calling show() > > >> on it to using this in order to save state when changing orientation. > > >> But when I change the orientation from portrait->landscape->portrait, > > >> thedismissDialogmethod call no longer dismisses the dialog. The > > >> dialog stay there all the time and I need to press the back button > > >> for > > >> it to disappear. > > >> To overcome this issue, I tried adding a removeDialog in onDestroy so > > >> that the dialog is not created/displayed twice and before orientation > > >> change, the dialog is removed. Tried adding log statements and this > > >> is > > >> what happens > > >> 05-21 12:35:14.064: DEBUG/MyClass(193): > > >> *callingShowDialog > > >> 05-21 12:35:14.064: DEBUG/MyClass(193): *onCreareDialog > > > >> 05-21 12:35:15.385: DEBUG/MyClass(193): > > >> *onSaveInstanceState > > >> 05-21 12:35:15.415: DEBUG/MyClass(193): *onDestroy > > > >> 05-21 12:35:15.585: DEBUG/MyClass(193): > > >> *callingShowDialog > > >> 05-21 12:35:15.585: DEBUG/MyClass(193): *onCreareDialog > > >> 05-21 12:35:15.715: DEBUG/MyClass(193): *onCreareDialog > > >> 05-21 12:35:17.214: DEBUG/MyClass(193): > > >> *onSaveInstanceState > > >> 05-21 12:35:17.214: DEBUG/MyClass(193): *onDestroy > > > >> 05-21 12:35:17.275: ERROR/WindowManager(193): > > >> android.view.WindowLeaked: Activity com.android.MyClass has leaked > > >> window com.android.internal.policy.impl.PhoneWindow > > >> $decorv...@43362088 > > >> that was originally added here > > >> Some error statements > > >> 05-21 12:35:17.395: DEBUG/MyClass(193): > > >> *callingShowDialog > > >> 05-21 12:35:17.395: DEBUG/MyClass(193): *onCreareDialog > > >> 05-21 12:35:17.475: DEBUG/MyClass(193): *onCreareDialog > > > >> Initially when the activity is displayed, the onCreateDialog is > > >> called > > >> once and on changing the orientation, onSaveInstanceState and > > >> onDestroy are called. > > >> But after that, onCreateDialog is called twice (once by a call to > > >> showDialog which I make, but why the 2nd time?) and this happens > > >> every > > >> time I change the orientation hence forth. > > >> Any idea why that happens? > > >> Thanks- 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 android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Video with MediaRecorder
can you log the exception and post it? thanks. >I am trying to capture video with the same code above but it crash at >- recorder.prepare(); >cant track what is the problem, does anybody come across similar >problem ; any hint? > >On May 7, 11:50 pm, Jason Proctor wrote: >> btw, since streaming movies via HTTP requires the moov atom to be >> ahead of the mdat atom in the file, it would therefore be handy if >> MediaRecorder wrote the file like that :-) >> >> will this be fixed do you think? wondering whether i should just >> write that piece of code anyway. >> >> -- >> jason.software.particle > -- jason.software.particle --~--~-~--~~~---~--~~ 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: showDialog and dismissDialog behave strangely when changing orientation
Anyone know about this? I've seen many posts and blogs about this problem but no one seems to have a solution for it. Can someone please help! Thanks. On May 21, 8:12 pm, iDeveloper wrote: > Not in the onCreate implementation. I am calling it on a button's > click event. And the button is sort of a refresh button. So it might > be pressed multiple times. > > On 21-May-09, at 7:57 PM, Streets Of Boston wrote: > > > > > Where do you call the showDialog()? In the onCreate? > > > (Note that there is a known issue with the onPrepareDialog that is not > > called properly when a configuration change has occurred in your app.) > > > On May 21, 4:53 am, idev wrote: > >> Hi > >> I am using the showDialog anddismissDialogmethods to show progress > >> dialogs in my app. Moved from creating the dialog and calling show() > >> on it to using this in order to save state when changing orientation. > >> But when I change the orientation from portrait->landscape->portrait, > >> thedismissDialogmethod call no longer dismisses the dialog. The > >> dialog stay there all the time and I need to press the back button > >> for > >> it to disappear. > >> To overcome this issue, I tried adding a removeDialog in onDestroy so > >> that the dialog is not created/displayed twice and before orientation > >> change, the dialog is removed. Tried adding log statements and this > >> is > >> what happens > >> 05-21 12:35:14.064: DEBUG/MyClass(193): > >> *callingShowDialog > >> 05-21 12:35:14.064: DEBUG/MyClass(193): *onCreareDialog > > >> 05-21 12:35:15.385: DEBUG/MyClass(193): > >> *onSaveInstanceState > >> 05-21 12:35:15.415: DEBUG/MyClass(193): *onDestroy > > >> 05-21 12:35:15.585: DEBUG/MyClass(193): > >> *callingShowDialog > >> 05-21 12:35:15.585: DEBUG/MyClass(193): *onCreareDialog > >> 05-21 12:35:15.715: DEBUG/MyClass(193): *onCreareDialog > >> 05-21 12:35:17.214: DEBUG/MyClass(193): > >> *onSaveInstanceState > >> 05-21 12:35:17.214: DEBUG/MyClass(193): *onDestroy > > >> 05-21 12:35:17.275: ERROR/WindowManager(193): > >> android.view.WindowLeaked: Activity com.android.MyClass has leaked > >> window com.android.internal.policy.impl.PhoneWindow > >> $decorv...@43362088 > >> that was originally added here > >> Some error statements > >> 05-21 12:35:17.395: DEBUG/MyClass(193): > >> *callingShowDialog > >> 05-21 12:35:17.395: DEBUG/MyClass(193): *onCreareDialog > >> 05-21 12:35:17.475: DEBUG/MyClass(193): *onCreareDialog > > >> Initially when the activity is displayed, the onCreateDialog is > >> called > >> once and on changing the orientation, onSaveInstanceState and > >> onDestroy are called. > >> But after that, onCreateDialog is called twice (once by a call to > >> showDialog which I make, but why the 2nd time?) and this happens > >> every > >> time I change the orientation hence forth. > >> Any idea why that happens? > >> 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: rtsp/http Streaming
Hi All, I am also having the same doubt. Can you please suggest what can be done? Thanks in advance, Yogi On Apr 30, 3:33 pm, Zhubham wrote: > Hi Experts, > > Can you please give a quick reply to my queries. > > Thanks for ur time. > > Regards, > Zhubham > > On Apr 29, 8:30 pm, Zhubham wrote: > > > Hi People, > > > I need your help regarding streaming in android. I read some of the > > previous discussions but I have a few doubts which i thought of > > clarifying from you . Please help me with the following aspects: > > > (i) Does android supports RTSP and HTTP streaming ?? > > > (ii) One discussion read -> "Streaming does not work in the emulator > > environment due to some firewall issues in the emulator network > > layer". Is this issue not resolved till now?? > > > (iii) I used the api demo code available @ \ApiDemos\src\com\example > > \android\apis\media\MediaPlayerDemo_Video.java > > > Here I set the path as-> path = "Rtsp://10.2.5.220/sample_50kbit. > > 3gp"; > > OR as -> "path = "rtsp://10.2.5.220/sample_100kbit.mp4" > > > THIS IS CRASHING @ mMediaPlayer.prepare(); (I am using darwin > > streaming server) > > > This is playing fine in local playback. But, I am not able to > > understand why it is crashing here. Please suggest. > > > (iv) The supported codecs are MPEG4 Video, AVC, MPEG4 Audio, AMR, and > > H263. Am I correct?? > > > I await your response. Kindly assist. > > > 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: How to play video file in android.
On Thu, May 21, 2009 at 8:57 PM, Priya wrote: > > Hi, > > here is my code for playing video through url > > public class sample extends Activity { > > >private String _videoPath; >private MediaPlayer _mp; >private static final String TAG = "Video"; > >@Override >public void onCreate(Bundle savedInstanceState) { >super.onCreate(savedInstanceState); > > >_videoPath = "http://16.181.151.159/video/funnydog.wmv";; Only local wmv playback is supported, not streaming. --~--~-~--~~~---~--~~ 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: GPS Access Question
Ah, thanks for the information! I did manage to get it working, but the only way I could get it to compile properly was by initializing the manager variable outside of the onCreate program with a simple "LocationManager manager;" making the later call simply "manager = (LocationManager) ... "prior to the function start. It does work fine now, though, as long as that line is in the code. On May 21, 4:11 pm, Mike Hearn wrote: > Activity inherits from Context, so you don't need to specify a context > specifically anywhere. Eclipse will tell you the exact error if you > hover over the line, or use the window at the bottom. > > Does that not work? > > LocationManager manager = (LocationManager) getSystemService > (LOCATION_SERVICE); > String provider = manager.getBestProvider(new Criteria(), true); > Location location = manager.getLastKnownLocation(provider); > return location; > > On May 21, 5:55 pm, Phil wrote: > > > Sorry if this is a stupid question- I'm still pretty new to Android > > and have been completely unable to figure this out after much google > > searching and hunting around in the documentation. *Note: I've been > > coding in Eclipse with the Android SDK plugins, using the Google APIs > > 1.5 version. > > > I'm working on a project involving accessing the GPS, so I'm writing a > > simple program that will do nothing more than access the current > > location in order to familiarize myself with the GPS code. > > > Based on the examples I have found, I came up with the following code. > > > package com.example.gps; > > > import android.app.Activity; > > import android.content.Context; > > import android.os.Bundle; > > import android.widget.Toast; > > import android.location.Location; > > import android.location.LocationManager; > > import android.location.Criteria; > > > public class HelloGps extends Activity { > > /** Called when the activity is first created. */ > > @Override > > public void onCreate(Bundle savedInstanceState) { > > super.onCreate(savedInstanceState); > > setContentView(R.layout.main); > > Context context = getContext(); > > > Location location = getLocation(context); > > > Toast.makeText(this, "Location = " + location.getLatitude() > > + " , " > > + location.getLongitude(), 0); > > } > > > public static Location getLocation(Context context) > > { > > LocationManager manager = (LocationManager) > > context.getSystemService(Context.LOCATION_SERVICE); > > String provider = manager.getBestProvider(new Criteria(), > > true); > > Location location = manager.getLastKnownLocation(provider); > > return location; > > } > > > } > > > The issue I am having deals with the "Context context = getContext()" > > line. Eclipse tells me that this is an error (but not why). It simply > > tells me I should change it to getBaseContext(). If I try this, then > > the program hangs. If I try removing it and running the getLocation() > > function without the context thrown in there at all, as I have seen in > > some other examples, then I get a similar error on the getSystemService > > () function call. Eclipse tells me I should rename it, but does not > > tell me why or what to. > > > Any help at all would be incredible, and sorry again if this is a > > stupid question. Thanks! > > > -Phil --~--~-~--~~~---~--~~ 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] Problem with MapActivity on the 1.5 release
Hi, I have a problem with firing an activity that extends MapActivity. When it gets called, it throws a java.lang.NoClassDefFoundError... not sure what this is supposed to mean. I think something goes wrong with the external implementation of the maps API (maps.jar). Has anyone come across that problem? Here's the srack trace: 05-22 15:13:36.723: ERROR/AndroidRuntime(445): java.lang.NoClassDefFoundError: main.ViewContactActivity 05-22 15:13:36.723: ERROR/AndroidRuntime(445): at main.ContactsActivity.onOptionsItemSelected(ContactsActivity.java:311) 05-22 15:13:36.723: ERROR/AndroidRuntime(445): at android.app.Activity.onMenuItemSelected(Activity.java:2085) 05-22 15:13:36.723: ERROR/AndroidRuntime(445): at com.android.internal.policy.impl.PhoneWindow.onMenuItemSelected (PhoneWindow.java:820) 05-22 15:13:36.723: ERROR/AndroidRuntime(445): at com.android.internal.view.menu.MenuItemImpl.invoke(MenuItemImpl.java: 139) 05-22 15:13:36.723: ERROR/AndroidRuntime(445): at com.android.internal.view.menu.MenuBuilder.performItemAction (MenuBuilder.java:813) 05-22 15:13:36.723: ERROR/AndroidRuntime(445): at com.android.internal.view.menu.IconMenuView.invokeItem (IconMenuView.java:519) 05-22 15:13:36.723: ERROR/AndroidRuntime(445): at com.android.internal.view.menu.IconMenuItemView.performClick (IconMenuItemView.java:122) 05-22 15:13:36.723: ERROR/AndroidRuntime(445): at android.view.View.onTouchEvent(View.java:3828) 05-22 15:13:36.723: ERROR/AndroidRuntime(445): at android.widget.TextView.onTouchEvent(TextView.java:6291) 05-22 15:13:36.723: ERROR/AndroidRuntime(445): at android.view.View.dispatchTouchEvent(View.java:3368) 05-22 15:13:36.723: ERROR/AndroidRuntime(445): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:863) 05-22 15:13:36.723: ERROR/AndroidRuntime(445): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:863) 05-22 15:13:36.723: ERROR/AndroidRuntime(445): at com.android.internal.policy.impl.PhoneWindow $DecorView.dispatchTouchEvent(PhoneWindow.java:1691) 05-22 15:13:36.723: ERROR/AndroidRuntime(445): at android.view.ViewRoot.handleMessage(ViewRoot.java:1525) 05-22 15:13:36.723: ERROR/AndroidRuntime(445): at android.os.Handler.dispatchMessage(Handler.java:99) 05-22 15:13:36.723: ERROR/AndroidRuntime(445): at android.os.Looper.loop(Looper.java:123) 05-22 15:13:36.723: ERROR/AndroidRuntime(445): at android.app.ActivityThread.main(ActivityThread.java:3948) 05-22 15:13:36.723: ERROR/AndroidRuntime(445): at java.lang.reflect.Method.invokeNative(Native Method) 05-22 15:13:36.723: ERROR/AndroidRuntime(445): at java.lang.reflect.Method.invoke(Method.java:521) 05-22 15:13:36.723: ERROR/AndroidRuntime(445): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:782) 05-22 15:13:36.723: ERROR/AndroidRuntime(445): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:540) 05-22 15:13:36.723: ERROR/AndroidRuntime(445): at dalvik.system.NativeStart.main(Native Method) 05-22 15:13:36.723: ERROR/AndroidRuntime(445): Caused by: java.lang.IllegalAccessError: cross-loader access from pre-verified class 05-22 15:13:36.723: ERROR/AndroidRuntime(445): at dalvik.system.DexFile.defineClass(Native Method) 05-22 15:13:36.723: ERROR/AndroidRuntime(445): at dalvik.system.DexFile.loadClass(DexFile.java:193) 05-22 15:13:36.723: ERROR/AndroidRuntime(445): at dalvik.system.PathClassLoader.findClass(PathClassLoader.java:203) 05-22 15:13:36.723: ERROR/AndroidRuntime(445): at java.lang.ClassLoader.loadClass(ClassLoader.java:573) 05-22 15:13:36.723: ERROR/AndroidRuntime(445): at java.lang.ClassLoader.loadClass(ClassLoader.java:532) 05-22 15:13:36.723: ERROR/AndroidRuntime(445): ... 22 more 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: Camera application 1.5 on emulator does nothing
Ok so you did the test that I would like to do. For your information, if you make an AVD file with target 1.1, emulator is working correctly... On May 22, 1:03 pm, arjan broer wrote: > same problem here. > Running Ubuntu Linux, eclipse 3.4.1 > ADT 0.9.1.v200805011822-1621 > Android SDK 1.5_r1 --~--~-~--~~~---~--~~ 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 redirect audio to bluetooth headset?
What's SCO? What's A2DP? I'm not clear about that. Did that mean if i using A2DP bluetooth headset, all audioes will auto play by bluetooth headset? And not all bluetooth headset hardware supports A2DP. Does that right? On 5月22日, 上午9时36分, Dave Sparks wrote: > You asked specifically aboutBluetoothSCO before. SCO is an 8KHz mono > audio channel compressed down to a low bit-rate stream. To get a > simulation of what it sounds like, try listening to music over a GSM > circuit. > > BluetoothA2DP is a different story. It use a reasonably good > perceptual stereo codec. With the Cupcake 1.5 release, we support A2DP > out of the box. If the user pairs and connects an A2DPheadset, there > is nothing the application has to do - it just works. > > On May 20, 6:46 pm, jianwei wrote: > > > Thanks for your responese. > > Does this mean all audio in thirdparty application can't play in > >bluetoothheadset? > > > Dave Sparks wrote: > > > We don't support sending app processor audio over SCO. The audio > > > quality would be very poor. > > > > On May 20, 6:51 am, jianwei wrote: > > > > Hi all, > > > > I met a problem ofbluetoothheadset. I want to switch audio playing > > > > tobluetoothheadsetwhenbluetoothheadsetis paired. I found > > > > BluetoothDevice in android sources which can controllbluetooth. > > > > However it is not contained in android.jar. So I used > > > > AudioManager.setBluetoothScoOn(true), but it still can't work. This > > > > problem has troubled me a long time. I do appreciate your help. 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: Out of Memory Error in BitmapFactory.decodeFile
:) ok.. thats quit a lot of new ideas i can play with keep your good vibes and thanks again chris --~--~-~--~~~---~--~~ 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: Out of Memory Error in BitmapFactory.decodeFile
I don't know the answer to all your questions in your previous post, but this is a trick i used to get a 'circular' list-view (not a gallery, but i think they are comparable). I needed a list-view that is circular, i.e. after the last element the first element appears again. I attached a ListAdapter (BaseAdapter) to my list-view and overrode the methods of BaseAdapter. - No scrollbar - I overrode getCount() to return a large value (e.g. 100) - I override getItem(int pos) to return the correct element from my array (use modulo operator, because pos can have a value of 99, getCount()-1). - Override any method in Adapter that takes a position as input. Use the module operator to figure the actual index into your array of data (bitmaps). On May 22, 9:33 am, guruk wrote: > thanks for your help, i will give it a try. > > ... also when I have a bphotoList (an array of bitmaps) > and I reload this Array with new Bitmaps, what do I have to do that > they gallery > use them. I thought it come automaticly, because I just change the > content, but > it looks the gallery cache the old content somewhere? > > And to make it round. lets say i have a gallery with 10pics, while at > pic 10 > (simple version) i change the content of the PhotoArray.. how can i > let > jump the gallery to position 1? (and for sure show the new content and > not something cached:) > > thanks chris --~--~-~--~~~---~--~~ 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: Out of Memory Error in BitmapFactory.decodeFile
thanks for your help, i will give it a try. ... also when I have a bphotoList (an array of bitmaps) and I reload this Array with new Bitmaps, what do I have to do that they gallery use them. I thought it come automaticly, because I just change the content, but it looks the gallery cache the old content somewhere? And to make it round. lets say i have a gallery with 10pics, while at pic 10 (simple version) i change the content of the PhotoArray.. how can i let jump the gallery to position 1? (and for sure show the new content and not something cached:) thanks chris --~--~-~--~~~---~--~~ 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: Out of Memory Error in BitmapFactory.decodeFile
... // determine the width/height or a gallery item's view Rect rectOfGalleryItemView = ...; ... ... // Then determine the best sampleSize (1, 2, 4, 8) int sampleSize = calculateSampleSize(rectOfGalleryItemView, 2048, 1536); BitmapFactory.Options opts = new BitmapFactory.Options(); opts.inDither = true; // we're using RGB_565, dithering improves this a bit. opts.inPreferredConfig = Bitmap.Config.RGB_565; opts.inSampleSize = sampleSize; bm = BitmapFactory.decodeStream("/sdcard/dcim/Camera/" + photoList[i], opts); And yes, it takes a bit longer to decode here. In my app, i put decoding the bitmap in a background thread (much like AsyncTask). But you can cache the decoded bitmaps and be a bit smart about pre-loading bitmaps before they become visible in the Gallery. If you use a cache, you need to manage the cache. Clear it when memory may run low, etc. On another note; i noticed that using an inSampleSize value of larger than 1 produces better quality images than using createScaledBitmap. On May 22, 9:12 am, guruk wrote: > :) I got it now already up to 15 :) > > bm = BitmapFactory.decodeFile("/sdcard/dcim/Camera/" + photoList[i]); > bphotos.add(Bitmap.createScaledBitmap(bm, 480, 320, true)); > bm.recycle(); > > when I always use bm.recycle() > > ok, but lets look on your insamplesize... i will also try. > but how to use in samplzesiez with decodeFile? > finaly i need 480x320... > > but i am not sure if that helps at all. because life decoding needs > quit long time. so i have 2 options. a thread with background decoding > or creating thumbs and loading them direct into a gallery > > but please tell me how to use insamplesize with .decodeFile or > creatscalebitmap > > greets > chris --~--~-~--~~~---~--~~ 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 draw a double underline in radioButton text
I need to draw a double underline in the text inside a RadioButton. I can draw a "single underline" / "strikethrough" / etc using the flags from the TextPaint class but I can't find how to draw a double underline. --~--~-~--~~~---~--~~ 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: Out of Memory Error in BitmapFactory.decodeFile
:) I got it now already up to 15 :) bm = BitmapFactory.decodeFile("/sdcard/dcim/Camera/" + photoList[i]); bphotos.add(Bitmap.createScaledBitmap(bm, 480, 320, true)); bm.recycle(); when I always use bm.recycle() ok, but lets look on your insamplesize... i will also try. but how to use in samplzesiez with decodeFile? finaly i need 480x320... but i am not sure if that helps at all. because life decoding needs quit long time. so i have 2 options. a thread with background decoding or creating thumbs and loading them direct into a gallery but please tell me how to use insamplesize with .decodeFile or creatscalebitmap greets chris --~--~-~--~~~---~--~~ 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: Out of Memory Error in BitmapFactory.decodeFile
I'm amazed yout get it working 2 times. :=) You can not load so many (3 or more) big (over 3Mpixels) in one process. You'll run out of memory. A full size pic of 3Mpixels in RGB_565(16bit color) is 6MBytes of memory. You have to decode the file with the Option's 'inSampleSize' set to something larger than 1. 1 --> decode full size; 2 --> decode quarter size; 4 --> decode 1/16th size. E.g. when set to 2, you'll get a 1024x786 sized pic, a quarter of the original size. You should choose a inSampleSize that will produce a bitmap that is closest to your view's size, so that you don't waste pixels that will never be displayed anyway and that you don't 'waste' memory. On May 22, 7:17 am, guruk wrote: > Hi, > I was reading in some other posts that some developers have the same > Problem, but till now, no solution. > its about the gallery: I have a string array with photos, but when the > gallery does show the 2nd Picture it > crash with: > > --- > D/votw (18078): --- DebugMark 1 E/dalvikvm-heap(18078): > 6291456-byte external allocation too large for this process. > E/ (18078): VM won't let us allocate 6291456 bytes /skia > > > bm= BitmapFactory.decodeFile("/sdcard/dcim/Camera/" + photoList[0]); > > -- It works fine 2 Times, starting with the 3rd Time it crash. > - In other Threads they adviced to use another pic, but as you see I > try now > with (photoList[0]) so its a FIXED same Picture. > > So I guess I have to release somehow the Memory, but how? > > Thanks > Chris --~--~-~--~~~---~--~~ 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 can I get Browser's sharedpreference.?
> I'm making a application which wants to get the homepage url of > Browser. I suspect that is not possible. > But I can't open the SharedPreference of Browser and read desired > value. That would be a security violation. Applications cannot read other applications' files, shared preferences, databases, etc. > Is there another way that can open and read the Browser's > SharedPreferences.? Not without modifying the Browser application itself. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 2.0 Available! --~--~-~--~~~---~--~~ 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 can I get Browser's sharedpreference.?
Hi all, I'm making a application which wants to get the homepage url of Browser. And I'd figured out that the homepage url is stored as a SharedPreferences and the name of it is 'android.com.browser_preferences.xml'. But I can't open the SharedPreference of Browser and read desired value. Isn't it possible to access the Browser's SharedPreferences.? Is there another way that can open and read the Browser's SharedPreferences.? Please let me know how I can. Have a good day. --~--~-~--~~~---~--~~ 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] add my Launcher.apk into emulator
hi i try to modify the Launcher in mydroid/package/apps/Launcher and i try to use it as an APK so i dont have to mess up the original system image so i copy it to another project , say mydroid/package/apps/MyLauncher i have changed the package name in case it will conflict with the original Launcher and because some files use android.internal.R using 'android' to install/update is not feasible hence i build my MyLauncher inside mydroid , and i modify the LOCAL_PACKAGE_NAME in Android.mk when i build out the MyLauncher.apk i try to install it with adb install but it complains Failure [INSTALL_FAILED_ALREADY_EXISTS] but i am sure i havent installed this APK before and if i use $>adb install -r , it will complain Failure [INSTALL_PARSE_FAILED_INCONSISTENT_CERTIFICATES] so i would like to ask what's the correct way to install my MyLauncher.apk into emulator 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] is there video record intent in 1.5 like we got for Audio MediaStore.Audio.Media.RECORD_SOUND_ACTION
Hi Mate, i am looking for the video capture intent similar to the one for Audio. please anybody let me know if this intent is available in 1.5? --~--~-~--~~~---~--~~ 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: Video with MediaRecorder
I am trying to capture video with the same code above but it crash at - recorder.prepare(); cant track what is the problem, does anybody come across similar problem ; any hint? On May 7, 11:50 pm, Jason Proctor wrote: > btw, since streaming movies via HTTP requires the moov atom to be > ahead of the mdat atom in the file, it would therefore be handy if > MediaRecorder wrote the file like that :-) > > will this be fixed do you think? wondering whether i should just > write that piece of code anyway. > > -- > jason.software.particle --~--~-~--~~~---~--~~ 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] Out of Memory Error in BitmapFactory.decodeFile
Hi, I was reading in some other posts that some developers have the same Problem, but till now, no solution. its about the gallery: I have a string array with photos, but when the gallery does show the 2nd Picture it crash with: --- D/votw(18078): --- DebugMark 1 E/dalvikvm-heap(18078): 6291456-byte external allocation too large for this process. E/(18078): VM won't let us allocate 6291456 bytes /skia bm= BitmapFactory.decodeFile("/sdcard/dcim/Camera/" + photoList[0]); -- It works fine 2 Times, starting with the 3rd Time it crash. - In other Threads they adviced to use another pic, but as you see I try now with (photoList[0]) so its a FIXED same Picture. So I guess I have to release somehow the Memory, but how? Thanks Chris --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---