[android-developers] Re: Could not fine HelloAndroid.apk when lauching the HelloAndroid example
I try it but my problom is not solvved , always print [2008-09-12 21:05:10 - HelloActivity] -- [2008-09-12 21:05:10 - HelloActivity] Android Launch! [2008-09-12 21:05:10 - HelloActivity] adb is running normally. [2008-09-12 21:05:10 - HelloActivity] Could not find HelloActivity.apk! how can I compile apk file ? how get it ? please tall me , thank you first --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: WebView display nothing with TabHost
Hi, Megha, It works!!!... Thanks so much. --elephantbug On Sep 12, 3:07 pm, Megha Joshi [EMAIL PROTECTED] wrote: It seems like you won't get the proper hook into the WebView for changing its contents on load, if you load tab's content by id. I was able to make this work using TabContentFactory. For sample code see the ApiDemos/Views/Tabs sample. On subsequent tab clicks you could change the content dynamically using OnTabChangeListener. 2008/9/12 elephantbug [EMAIL PROTECTED] Hi, The LoadAllLegalText is not a blocking call or different thread. The TOC has been initialized when it is loaded. I tried following code even: legalText = (WebView)findViewById(R.id.legal_view); legalText.loadData(htmlbodyboo/body/html, mimeType, encoding); Still nothing displayed.. On Sep 11, 8:56 pm, Megha Joshi [EMAIL PROTECTED] wrote: 2008/9/11 elephantbug [EMAIL PROTECTED] Hi, The WebView shows nothing the very first time, however, if you switch to other TAB and return back, everything is displayed. Here is my XML file: ++ ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/ android android:layout_width=fill_parent android:layout_height=fill_parent android:orientation=vertical android:gravity=center TabHost android:id=@android:id/tabhost android:layout_width=fill_parent android:layout_height=wrap_content TabWidget android:id=@android:id/tabs android:layout_width=wrap_content android:layout_height=wrap_content/ FrameLayout android:id=@android:id/tabcontent android:layout_width=fill_parent android:layout_height=450px android:paddingTop=60px LinearLayout android:id=@+id/legal_layout android:orientation=vertical android:layout_width=fill_parent android:layout_height=400px ScrollView android:id=@+id/scroll android:layout_width=fill_parent android:layout_height=350px android:background=@drawable/silver WebView android:id=@+id/legal_view android:layout_width=fill_parent android:layout_height=350px android:minHeight=350dp android:textColor=@drawable/dark android:padding = 3dip android:paddingLeft = 3dip android:paddingRight = 3dip android:paddingTop = 3dip android:paddingBottom = 3dip android:text=test/ /ScrollView LinearLayout android:orientation=horizontal android:layout_width=fill_parent android:layout_height=wrap_content android:paddingTop = 3dip android:gravity=center Button android:id = @+id/button_accept android:layout_width=wrap_content android:layout_height=wrap_content android:text=@string/button_accept_text/ Button android:id = @+id/button_cancel android:layout_width=wrap_content android:layout_height=wrap_content android:text=@string/button_cancel_text/ /LinearLayout /LinearLayout /FrameLayout /TabHost /LinearLayout here is part of my code for onCreate: //load gloabl asset loadAllLegalText(); If loadAllLegalText() is something that puts data into TOC below, is it a blocking call? You may want to check if TOC actually contains data when you call loadData().. //init the view setContentView(R.layout.legal); tabHost = (TabHost) findViewById(android.R.id.tabhost); tabHost.setup(); legalText = (WebView)findViewById(R.id.legal_view); legalText.getSettings().setJavaScriptEnabled(true);
[android-developers] Speech Library Confirmation (Urgent)
Hi there, I am a final year, under-graduate student from India, i intend to develop my Final Year Project on the Android platform but, i am in a fix right now. I wish to develop a *Personal Interpreter*, where in, i will have to do Speech Recognition and Text-to-Speech on the mobile device. With 0.9 SDK released, it shows the speech libraries but these are not enabled. I seriously request the Google`s Android Team to confirm, when will the functionality be enabled as, if not the case in some near future, my FYP will be dumped !! I am desperately waiting for Google`s reply. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Does Android support the linux 2.6.13 kernel?
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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: *** SOS *** emulator keeps crashing
Since this morning, my emulator seldom boot up successfully. When it did, it shows the following message. Is it normal??? 09-12 19:54:38.337: ERROR/mountd(20): could not read initial mass storage state 09-12 19:55:47.428: ERROR/MemoryHeapBase(51): error opening /dev/pmem: No such file or directory 09-12 19:55:47.457: ERROR/SurfaceFlinger(51): Couldn't open /sys/ android_power/wait_for_fb_sleep or /sys/android_power/wait_for_fb_wake 09-12 19:55:47.667: ERROR/GLLogger(51): couldn't load libhgl.so library (Cannot find library) 09-12 19:55:48.228: ERROR/GLLogger(51): couldn't load libhgl.so library (Cannot find library) 09-12 19:56:24.257: ERROR/BatteryService(51): Could not open '/sys/ class/power_supply/usb/online' 09-12 19:56:24.287: ERROR/BatteryService(51): Could not open '/sys/ class/power_supply/battery/batt_vol' 09-12 19:56:24.287: ERROR/BatteryService(51): Could not open '/sys/ class/power_supply/battery/batt_temp' 09-12 19:56:26.862: ERROR/EventHub(51): could not get driver version for /dev/input/mouse0, Not a typewriter 09-12 19:56:26.888: ERROR/EventHub(51): could not get driver version for /dev/input/mice, Not a typewriter 09-12 19:56:28.107: ERROR/System(51): Failure starting core service 09-12 19:56:28.107: ERROR/System(51): java.lang.SecurityException 09-12 19:56:28.107: ERROR/System(51): at android.os.BinderProxy.transact(Native Method) 09-12 19:56:28.107: ERROR/System(51): at android.os.ServiceManagerProxy.addService(ServiceManagerNative.java: 146) 09-12 19:56:28.107: ERROR/System(51): at android.os.ServiceManager.addService(ServiceManager.java:72) 09-12 19:56:28.107: ERROR/System(51): at com.android.server.ServerThread.run(SystemServer.java:151) 09-12 19:56:28.177: ERROR/AndroidRuntime(51): Crash logging skipped, no checkin service 09-12 19:56:43.557: ERROR/GpsLocationProvider(51): Could not open GPS configuration file /etc/gps.conf 09-12 19:56:43.557: ERROR/GpsLocationProvider(51): java.io.FileNotFoundException: /etc/gps.conf 09-12 19:56:43.557: ERROR/GpsLocationProvider(51): at org.apache.harmony.luni.platform.OSFileSystem.open(OSFileSystem.java: 227) 09-12 19:56:43.557: ERROR/GpsLocationProvider(51): at java.io.FileInputStream.init(FileInputStream.java:76) 09-12 19:56:43.557: ERROR/GpsLocationProvider(51): at com.android.internal.location.GpsLocationProvider.init(GpsLocationProvider.java: 179) 09-12 19:56:43.557: ERROR/GpsLocationProvider(51): at com.android.server.LocationManagerService._loadProvidersNoSync(LocationManagerService.java: 312) 09-12 19:56:43.557: ERROR/GpsLocationProvider(51): at com.android.server.LocationManagerService.loadProvidersNoSync(LocationManagerService.java: 296) 09-12 19:56:43.557: ERROR/GpsLocationProvider(51): at com.android.server.LocationManagerService.loadProviders(LocationManagerService.java: 289) 09-12 19:56:43.557: ERROR/GpsLocationProvider(51): at com.android.server.LocationManagerService.init(LocationManagerService.java: 403) 09-12 19:56:43.557: ERROR/GpsLocationProvider(51): at com.android.server.ServerThread.run(SystemServer.java:225) 09-12 19:56:43.597: ERROR/AndroidRuntime(51): Crash logging skipped, no checkin service Nickname wrote: I shutdown my XP normally last night. Before the shutdown, Android emulator was sitting idle peacefully. This morning when i start the emualtor, it just keep crashing Attached is the fatal message it prints once in a while. Sometimes it crashes without any message but pop up a window with Microsoft saying sorry. I deleted userdata-qemu.img several times but it won't help. Pleas help!! C:\android-sdk-windows\toolsemulator emulator: emulator window was out of view and was recentred qemu: fatal: exponent 255 too big R00=0002 R01=0002 R02=fe005000 R03=fe005000 R04=c5dc91c0 R05=c5c57e94 R06=c5dc91c0 R07=0003 R08=e118 R09=c5da1800 R10=c5c57e5c R11=c5c57df4 R12=2209 R13=c5c57de0 R14=0007 R15=c016fad0 PSR=6013 -ZC- A svc32 2d41e78 s00=(0.00) s01=(0.00) d00=(0.00) s02=(0.00) s03=(0.00) d01=(0.00) s04=(0.00) s05=(0.00) d02=(0.00) s06=(0.00) s07=(0.00) d03=(0.00) s08=(0.00) s09=(0.00) d04=(0.00) s10=(0.00) s11=(0.00) d05=(0.00) s12=(0.00) s13=(0.00) d06=(0.00) s14=(0.00) s15=(0.00) d07=(0.00) s16=(0.00) s17=(0.00) d08=(0.00) s18=(0.00) s19=(0.00) d09=(0.00) s20=(0.00) s21=(0.00) d10=(0.00) s22=(0.00) s23=(0.00) d11=(0.00) s24=(0.00) s25=(0.00)
[android-developers] EditText box of emulator cannot type in these characters
I just found that it is not possible to type in angle brackets ('' and ''). Can you? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] How to exit the application completely from any screen
Hi, Is there a way to exit the application completely at any place? call finish() will only exit the current activity. I tried to getApplication() from activity and call its onTerminate() directly... but it seems not working at all... Anyone can give any clue how to do it? Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How to exit the application completely from any screen
There is no need to do this. The user can just press the Home key to exit the app. On Fri, Sep 12, 2008 at 6:27 PM, elephantbug [EMAIL PROTECTED] wrote: Hi, Is there a way to exit the application completely at any place? call finish() will only exit the current activity. I tried to getApplication() from activity and call its onTerminate() directly... but it seems not working at all... Anyone can give any clue how to do it? Thanks -- Romain Guy www.curious-creature.org --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Arc : LinearLayout
HI, do you know how to set arc on the edge of LinerLayout? Is it possible to do it? Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: SoundRecordingAPISample to save audio in Internal Storage
Thanks Megha, I'll check it out once I have the opportunity, or maybe turn it into a user option. On Sep 13, 1:31 am, Megha Joshi [EMAIL PROTECTED] wrote: The sdcard access might be faster, but it depends on the particular sdcard. Only way to know for sure is to measure 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: *** SOS *** emulator keeps crashing
You tried the wipe data command? Might help Cheers Eric Portable Electronics Ltd www.hdmp4.com On Sep 13, 12:11 pm, Nickname [EMAIL PROTECTED] wrote: Since this morning, my emulator seldom boot up successfully. When it did, it shows the following message. Is it normal??? 09-12 19:54:38.337: ERROR/mountd(20): could not read initial mass storage state 09-12 19:55:47.428: ERROR/MemoryHeapBase(51): error opening /dev/pmem: No such file or directory 09-12 19:55:47.457: ERROR/SurfaceFlinger(51): Couldn't open /sys/ android_power/wait_for_fb_sleep or /sys/android_power/wait_for_fb_wake 09-12 19:55:47.667: ERROR/GLLogger(51): couldn't load libhgl.so library (Cannot find library) 09-12 19:55:48.228: ERROR/GLLogger(51): couldn't load libhgl.so library (Cannot find library) 09-12 19:56:24.257: ERROR/BatteryService(51): Could not open '/sys/ class/power_supply/usb/online' 09-12 19:56:24.287: ERROR/BatteryService(51): Could not open '/sys/ class/power_supply/battery/batt_vol' 09-12 19:56:24.287: ERROR/BatteryService(51): Could not open '/sys/ class/power_supply/battery/batt_temp' 09-12 19:56:26.862: ERROR/EventHub(51): could not get driver version for /dev/input/mouse0, Not a typewriter 09-12 19:56:26.888: ERROR/EventHub(51): could not get driver version for /dev/input/mice, Not a typewriter 09-12 19:56:28.107: ERROR/System(51): Failure starting core service 09-12 19:56:28.107: ERROR/System(51): java.lang.SecurityException 09-12 19:56:28.107: ERROR/System(51): at android.os.BinderProxy.transact(Native Method) 09-12 19:56:28.107: ERROR/System(51): at android.os.ServiceManagerProxy.addService(ServiceManagerNative.java: 146) 09-12 19:56:28.107: ERROR/System(51): at android.os.ServiceManager.addService(ServiceManager.java:72) 09-12 19:56:28.107: ERROR/System(51): at com.android.server.ServerThread.run(SystemServer.java:151) 09-12 19:56:28.177: ERROR/AndroidRuntime(51): Crash logging skipped, no checkin service 09-12 19:56:43.557: ERROR/GpsLocationProvider(51): Could not open GPS configuration file /etc/gps.conf 09-12 19:56:43.557: ERROR/GpsLocationProvider(51): java.io.FileNotFoundException: /etc/gps.conf 09-12 19:56:43.557: ERROR/GpsLocationProvider(51): at org.apache.harmony.luni.platform.OSFileSystem.open(OSFileSystem.java: 227) 09-12 19:56:43.557: ERROR/GpsLocationProvider(51): at java.io.FileInputStream.init(FileInputStream.java:76) 09-12 19:56:43.557: ERROR/GpsLocationProvider(51): at com.android.internal.location.GpsLocationProvider.init(GpsLocationProvider.java: 179) 09-12 19:56:43.557: ERROR/GpsLocationProvider(51): at com.android.server.LocationManagerService._loadProvidersNoSync(LocationManagerService.java: 312) 09-12 19:56:43.557: ERROR/GpsLocationProvider(51): at com.android.server.LocationManagerService.loadProvidersNoSync(LocationManagerService.java: 296) 09-12 19:56:43.557: ERROR/GpsLocationProvider(51): at com.android.server.LocationManagerService.loadProviders(LocationManagerService.java: 289) 09-12 19:56:43.557: ERROR/GpsLocationProvider(51): at com.android.server.LocationManagerService.init(LocationManagerService.java: 403) 09-12 19:56:43.557: ERROR/GpsLocationProvider(51): at com.android.server.ServerThread.run(SystemServer.java:225) 09-12 19:56:43.597: ERROR/AndroidRuntime(51): Crash logging skipped, no checkin service Nickname wrote: I shutdown my XP normally last night. Before the shutdown, Android emulator was sitting idle peacefully. This morning when i start the emualtor, it just keep crashing Attached is the fatal message it prints once in a while. Sometimes it crashes without any message but pop up a window with Microsoft saying sorry. I deleted userdata-qemu.img several times but it won't help. Pleas help!! C:\android-sdk-windows\toolsemulator emulator: emulator window was out of view and was recentred qemu: fatal: exponent 255 too big R00=0002 R01=0002 R02=fe005000 R03=fe005000 R04=c5dc91c0 R05=c5c57e94 R06=c5dc91c0 R07=0003 R08=e118 R09=c5da1800 R10=c5c57e5c R11=c5c57df4 R12=2209 R13=c5c57de0 R14=0007 R15=c016fad0 PSR=6013 -ZC- A svc32 2d41e78 s00=(0.00) s01=(0.00) d00=(0.00) s02=(0.00) s03=(0.00) d01=(0.00) s04=(0.00) s05=(0.00) d02=(0.00) s06=(0.00) s07=(0.00) d03=(0.00) s08=(0.00) s09=(0.00) d04=(0.00) s10=(0.00) s11=(0.00) d05=(0.00) s12=(0.00) s13=(0.00) d06=(0.00) s14=(0.00) s15=(0.00) d07=(0.00) s16=(0.00) s17=(0.00) d08=(0.00) s18=(0.00)
[android-developers] Re: EditText box of emulator cannot type in these characters
A also have not been able to enter those angle brackets through the keyboard. I can enter them using the mouse and the virtual keyboard next the emulator, by pressing ALT - b for and ALT - n for I have no idea what the logic behind this is, as many keys in combination with ALT do not fit to what is shown on the virtual display. Peli www.openintents.org On 13 Sep., 04:27, Nickname [EMAIL PROTECTED] wrote: I just found that it is not possible to type in angle brackets ('' and ''). Can you? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How to exit the application completely from any screen
otherwise, just grab a flag in onActivityResult(...) of the parent-activity and call .finish() also. Works really smooth with me. Regards, plusminus http://anddev.org # Worlds largest Android Development Community / Tutorials On Sep 13, 3:58 am, Romain Guy [EMAIL PROTECTED] wrote: There is no need to do this. The user can just press the Home key to exit the app. On Fri, Sep 12, 2008 at 6:27 PM, elephantbug [EMAIL PROTECTED] wrote: Hi, Is there a way to exit the application completely at any place? call finish() will only exit the current activity. I tried to getApplication() from activity and call its onTerminate() directly... but it seems not working at all... Anyone can give any clue how to do it? Thanks -- Romain Guywww.curious-creature.org --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How to exit the application completely from any screen
Hi, if you kill the application completely: int pid = android.os.Process.myPid(); android.os.Process.killProcess(pid); On 13 sep, 09:58, Romain Guy [EMAIL PROTECTED] wrote: There is no need to do this. The user can just press the Home key to exit the app. On Fri, Sep 12, 2008 at 6:27 PM, elephantbug [EMAIL PROTECTED] wrote: Hi, Is there a way to exit the application completely at any place? call finish() will only exit the current activity. I tried to getApplication() from activity and call its onTerminate() directly... but it seems not working at all... Anyone can give any clue how to do it? Thanks -- Romain Guywww.curious-creature.org- Ocultar texto de la cita - - Mostrar texto de la cita - --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How to exit the application completely from any screen
but our app wants to prevent user from continuing use the app. Maybe freeze the app can also do the trick, which forces user to use home dutton. There should be a way to auto exit , just do not know how. Anyone? On Sep 13, 12:58 am, Romain Guy [EMAIL PROTECTED] wrote: There is no need to do this. The user can just press the Home key to exit the app. On Fri, Sep 12, 2008 at 6:27 PM, elephantbug [EMAIL PROTECTED] wrote: Hi, Is there a way to exit the application completely at any place? call finish() will only exit the current activity. I tried to getApplication() from activity and call its onTerminate() directly... but it seems not working at all... Anyone can give any clue how to do it? Thanks -- Romain Guywww.curious-creature.org --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Developing Wi-Fi applications in the emulator
On 11/09/2008, Bradley Kite [EMAIL PROTECTED] wrote: Hi all, I would like to develop an application that makes use of the wifi API (android.net.wifi.*). Is there any way that I can test my application within the emulator? At the moment I am getting this error: E/WifiService( 46): Failed to load Wi-Fi driver. Which I kind of expected, as the emulator doesn't actually contain any wifi hardware. Are there any hacks/tweaks I can make to QEMU that can make it present an emulated piece of wifi hardware to the android device driver? Is any body else also trying to use the wifi API's and has solved this problem? Many thanks in advance -- Brad Hi all, I've come to the assumption that I wont be able to get wifi working within the emulator, so I'm trying to come up with some dummy data to pretend that its come from the wpa_supplicant. With this in mind, I'm trying to spoof some ScanResult structures, as returned by the WifiManager.getScanResult(). However, it would seem like this API is still in a state of flux - for example ScanResult.capabilities is documented as returning a String, but with a TODO note saying that it should be parsed into a WifiConfiguration object. Does this mean that the API will change so that it returns the WifiConfiguration object, or is it expected of the user to parse the string? Would any body be able to clarify the situation with regards to how I should be able to detect the parameters of a wifi network? If somebody has access to a real device, could they please send me some example strings as returned by ScanResult.capabilities? In particular, what would a free/open-access wifi network capabilities string look like? I'd really appreciate the help/guidance that any one has to offer. Kind Regards -- Brad. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: EditText box of emulator cannot type in these characters
After reboot emulator, I confirm the inability to type in characters '' and '' in EditText. Is it a bug or intented disallowance??? On Sep 12, 6:27 pm, Nickname [EMAIL PROTECTED] wrote: I just found that it is not possible to type in angle brackets ('' and ''). Can you? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How to re-use the photo picker activity in my application
Hi, Megha. It's weird. I did include error log but it is not in my post. (does google filter off Android error log:-) Right now, it looks fine after i reboot the emulator. There is no more error log. My photo is shown in photo picker now. Thanku for the help. Have a nice weekend!! On Sep 12, 3:42 pm, Joshi [EMAIL PROTECTED] wrote: 2008/9/12 Nickname [EMAIL PROTECTED] More thanks, Megha. One more problem: when i try to push a photo file from my XP directory to /sdcard directory where taken photos seem have been stored, the following errors show up. Could you please take time to elaborate them and instruct me how to fix it, because i need to add a few non- factory photos there so that i can take some screen shots of my application to convice potential investors ^_^ Please include the steps /commands you used and the errorlog. On Sep 12, 12:05 pm, Megha Joshi [EMAIL PROTECTED] wrote: 2008/9/12 Nickname [EMAIL PROTECTED] Thanku, Megha! One more question: does that mean camera cannot work without sdcard installed? Yes, you cannot use camera to capture pictures without installing sdcard. On Sep 11, 10:23 am, Megha Joshi [EMAIL PROTECTED] wrote: 2008/9/11 Nickname [EMAIL PROTECTED] *** HELP *** I followed Cheryl Sedota's sample code to reuse photo picker activity. The activity showed up, but... there is no photos to verify it. Can anyone please teach me WHERE and HOW to MAUNUALLY add photos to Android repository so that Android photo pick activity can pick?? One of the ways to test this manually..is to launch the emulator with sdcard. Then launch the camera app, hit the center dpad button to take a picture. Then you will see this picture in the photo picker. Thanks! Thanks!!! On Sep 10, 2:41 pm, Nickname [EMAIL PROTECTED] wrote: It seems I have missed this stuff, which is what i desperately need! Where can I find the documentation on this photo picker activity? Thanks for any information!! On Aug 29, 12:49 pm, Cheryl Sedota [EMAIL PROTECTED] wrote: Hi, I have some code that attempts to invoke thephotopickeractivity for result. I can successfully launch thephotopickeractivity, but my activity does not receive a result at all (onActivityResult() is never called). Can anyone help? Thanks!!! - Cheryl @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); Button button = (Button) findViewById(R.id.pick_button); button.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { Log.i(TAG, Trying to start thephotopicker activity); Intent photoPickerIntent = new Intent(Intent.ACTION_PICK); // Intent photoPickerIntent = new // Intent(Intent.ACTION_GET_CONTENT); photoPickerIntent.setType(image/*); startActivityForResult(photoPickerIntent, 1); } }); } @Override protected void onActivityResult(int i, int j, Intent intent) { super.onActivityResult(i, j, intent); // TODO: figure out why this method never gets invoked Log.i(TAG, Got the result: + intent.getDataString()); } --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] what the hell is these errors to my emulator bootup every time??
And, what is /etc/gps.conf stuff? is it critical? how to fix the problem? Looks scary (attached error log) --- 09-13 17:28:03.009: ERROR/mountd(20): could not read initial mass storage state 09-13 17:29:47.819: ERROR/MemoryHeapBase(52): error opening /dev/pmem: No such file or directory 09-13 17:29:48.050: ERROR/SurfaceFlinger(52): Couldn't open /sys/ android_power/wait_for_fb_sleep or /sys/android_power/wait_for_fb_wake 09-13 17:29:48.369: ERROR/GLLogger(52): couldn't load libhgl.so library (Cannot find library) 09-13 17:29:49.910: ERROR/GLLogger(52): couldn't load libhgl.so library (Cannot find library) 09-13 17:30:51.270: ERROR/BatteryService(52): Could not open '/sys/ class/power_supply/usb/online' 09-13 17:30:51.339: ERROR/BatteryService(52): Could not open '/sys/ class/power_supply/battery/batt_vol' 09-13 17:30:51.358: ERROR/BatteryService(52): Could not open '/sys/ class/power_supply/battery/batt_temp' 09-13 17:30:54.029: ERROR/EventHub(52): could not get driver version for /dev/input/mouse0, Not a typewriter 09-13 17:30:54.099: ERROR/EventHub(52): could not get driver version for /dev/input/mice, Not a typewriter 09-13 17:30:55.030: ERROR/System(52): Failure starting core service 09-13 17:30:55.030: ERROR/System(52): java.lang.SecurityException 09-13 17:30:55.030: ERROR/System(52): at android.os.BinderProxy.transact(Native Method) 09-13 17:30:55.030: ERROR/System(52): at android.os.ServiceManagerProxy.addService(ServiceManagerNative.java: 146) 09-13 17:30:55.030: ERROR/System(52): at android.os.ServiceManager.addService(ServiceManager.java:72) 09-13 17:30:55.030: ERROR/System(52): at com.android.server.ServerThread.run(SystemServer.java:151) 09-13 17:30:55.219: ERROR/AndroidRuntime(52): Crash logging skipped, no checkin service 09-13 17:31:01.809: ERROR/GpsLocationProvider(52): Could not open GPS configuration file /etc/gps.conf 09-13 17:31:01.809: ERROR/GpsLocationProvider(52): java.io.FileNotFoundException: /etc/gps.conf 09-13 17:31:01.809: ERROR/GpsLocationProvider(52): at org.apache.harmony.luni.platform.OSFileSystem.open(OSFileSystem.java: 227) 09-13 17:31:01.809: ERROR/GpsLocationProvider(52): at java.io.FileInputStream.init(FileInputStream.java:76) 09-13 17:31:01.809: ERROR/GpsLocationProvider(52): at com.android.internal.location.GpsLocationProvider.init(GpsLocationProvider.java: 179) 09-13 17:31:01.809: ERROR/GpsLocationProvider(52): at com.android.server.LocationManagerService._loadProvidersNoSync(LocationManagerService.java: 312) 09-13 17:31:01.809: ERROR/GpsLocationProvider(52): at com.android.server.LocationManagerService.loadProvidersNoSync(LocationManagerService.java: 296) 09-13 17:31:01.809: ERROR/GpsLocationProvider(52): at com.android.server.LocationManagerService.loadProviders(LocationManagerService.java: 289) 09-13 17:31:01.809: ERROR/GpsLocationProvider(52): at com.android.server.LocationManagerService.init(LocationManagerService.java: 403) 09-13 17:31:01.809: ERROR/GpsLocationProvider(52): at com.android.server.ServerThread.run(SystemServer.java:225) 09-13 17:31:01.919: ERROR/AndroidRuntime(52): Crash logging skipped, no checkin service 09-13 17:31:31.380: ERROR/jdwp(94): Failed sending reply to debugger: Broken pipe 09-13 17:31:32.089: ERROR/jdwp(94): ERROR: bad handshake '' --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: what the hell is these errors to my emulator bootup every time??
2008/9/13 Nickname [EMAIL PROTECTED] And, what is /etc/gps.conf stuff? is it critical? how to fix the problem? Looks scary gps.conf error is not critical...this file is not needed for the mock gps feature on emulator. So you can ignore this error. (attached error log) --- 09-13 17:28:03.009: ERROR/mountd(20): could not read initial mass storage state 09-13 17:29:47.819: ERROR/MemoryHeapBase(52): error opening /dev/pmem: No such file or directory 09-13 17:29:48.050: ERROR/SurfaceFlinger(52): Couldn't open /sys/ android_power/wait_for_fb_sleep or /sys/android_power/wait_for_fb_wake 09-13 17:29:48.369: ERROR/GLLogger(52): couldn't load libhgl.so library (Cannot find library) 09-13 17:29:49.910: ERROR/GLLogger(52): couldn't load libhgl.so library (Cannot find library) 09-13 17:30:51.270: ERROR/BatteryService(52): Could not open '/sys/ class/power_supply/usb/online' 09-13 17:30:51.339: ERROR/BatteryService(52): Could not open '/sys/ class/power_supply/battery/batt_vol' 09-13 17:30:51.358: ERROR/BatteryService(52): Could not open '/sys/ class/power_supply/battery/batt_temp' 09-13 17:30:54.029: ERROR/EventHub(52): could not get driver version for /dev/input/mouse0, Not a typewriter 09-13 17:30:54.099: ERROR/EventHub(52): could not get driver version for /dev/input/mice, Not a typewriter 09-13 17:30:55.030: ERROR/System(52): Failure starting core service 09-13 17:30:55.030: ERROR/System(52): java.lang.SecurityException 09-13 17:30:55.030: ERROR/System(52): at android.os.BinderProxy.transact(Native Method) 09-13 17:30:55.030: ERROR/System(52): at android.os.ServiceManagerProxy.addService(ServiceManagerNative.java: 146) 09-13 17:30:55.030: ERROR/System(52): at android.os.ServiceManager.addService(ServiceManager.java:72) 09-13 17:30:55.030: ERROR/System(52): at com.android.server.ServerThread.run(SystemServer.java:151) 09-13 17:30:55.219: ERROR/AndroidRuntime(52): Crash logging skipped, no checkin service 09-13 17:31:01.809: ERROR/GpsLocationProvider(52): Could not open GPS configuration file /etc/gps.conf 09-13 17:31:01.809: ERROR/GpsLocationProvider(52): java.io.FileNotFoundException: /etc/gps.conf 09-13 17:31:01.809: ERROR/GpsLocationProvider(52): at org.apache.harmony.luni.platform.OSFileSystem.open(OSFileSystem.java: 227) 09-13 17:31:01.809: ERROR/GpsLocationProvider(52): at java.io.FileInputStream.init(FileInputStream.java:76) 09-13 17:31:01.809: ERROR/GpsLocationProvider(52): at com.android.internal.location.GpsLocationProvider.init(GpsLocationProvider.java: 179) 09-13 17:31:01.809: ERROR/GpsLocationProvider(52): at com.android.server.LocationManagerService._loadProvidersNoSync(LocationManagerService.java: 312) 09-13 17:31:01.809: ERROR/GpsLocationProvider(52): at com.android.server.LocationManagerService.loadProvidersNoSync(LocationManagerService.java: 296) 09-13 17:31:01.809: ERROR/GpsLocationProvider(52): at com.android.server.LocationManagerService.loadProviders(LocationManagerService.java: 289) 09-13 17:31:01.809: ERROR/GpsLocationProvider(52): at com.android.server.LocationManagerService.init(LocationManagerService.java: 403) 09-13 17:31:01.809: ERROR/GpsLocationProvider(52): at com.android.server.ServerThread.run(SystemServer.java:225) 09-13 17:31:01.919: ERROR/AndroidRuntime(52): Crash logging skipped, no checkin service 09-13 17:31:31.380: ERROR/jdwp(94): Failed sending reply to debugger: Broken pipe 09-13 17:31:32.089: ERROR/jdwp(94): ERROR: bad handshake '' --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---