[android-developers] MediaRecorder start failed: - 38
Hello, I have this error : MediaRecorder start failed: -38. *Source code activity :* package com.example.testcamera3; import java.io.IOException; import android.hardware.Camera; import android.hardware.Camera.Parameters; import android.media.CamcorderProfile; import android.media.MediaRecorder; import android.os.Bundle; import android.os.Environment; import android.app.Activity; import android.view.Menu; import android.view.MenuItem; import android.view.SurfaceHolder; import android.view.SurfaceView; import android.view.View; import android.view.View.OnClickListener; import android.widget.Button; public class VideoStackActivity extends Activity implements SurfaceHolder.Callback { private SurfaceHolder surfaceHolder; private SurfaceView surfaceView; public MediaRecorder mrec = new MediaRecorder(); private Button startRecording = null; private Camera mCamera; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_video_stack); startRecording = (Button)findViewById(R.id.buttonstart); startRecording.setOnClickListener(new OnClickListener() { @Override public void onClick(View arg0) { startRecording(); } }); mCamera = Camera.open(); surfaceView = (SurfaceView)findViewById(R.id.surface_camera); surfaceHolder = surfaceView.getHolder(); surfaceHolder.addCallback(this); surfaceHolder.setType(SurfaceHolder.SURFACE_TYPE_PUSH_BUFFERS); } @Override public boolean onCreateOptionsMenu(Menu menu) { menu.add(0, 0, 0, StartRecording); menu.add(0, 1, 0, StopRecording); return super.onCreateOptionsMenu(menu); } @Override public boolean onOptionsItemSelected(MenuItem item) { switch(item.getItemId()) { case 0: try { startRecording(); } catch (Exception e) { mrec.release(); } break; case 1: mrec.stop(); mrec.release(); mrec = null; break; default: break; } return super.onOptionsItemSelected(item); } protected void startRecording() { mrec = new MediaRecorder(); mCamera.unlock(); mrec.setCamera(mCamera); mrec.setPreviewDisplay(surfaceHolder.getSurface()); mrec.setVideoSource(MediaRecorder.VideoSource.CAMERA); mrec.setAudioSource(MediaRecorder.AudioSource.MIC); mrec.setProfile(CamcorderProfile.get(CamcorderProfile.QUALITY_LOW)); mrec.setVideoFrameRate(1); // A tester //mrec.setOutputFormat(MediaRecorder.OutputFormat.MPEG_4); mrec.setPreviewDisplay(surfaceHolder.getSurface()); //ok mrec.setOutputFile(Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_MOVIES)+/test.mp4); //Ok ! try { mrec.prepare(); } catch (IllegalStateException e) { // TODO Auto-generated catch block e.printStackTrace(); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } mrec.start(); } protected void stopRecording() { mrec.stop(); mrec.reset(); mCamera.release(); } private void releaseMediaRecorder() { if(mrec != null) { mrec.reset(); mrec.release(); mrec = null; mCamera.lock(); } } private void releaseCamera() { if(mCamera != null) { mCamera.release(); mCamera = null; } } @Override public void surfaceChanged(SurfaceHolder holder, int format, int width, int height) { } @Override public void surfaceCreated(SurfaceHolder holder) { if(mCamera!=null) { Parameters params = mCamera.getParameters(); mCamera.setParameters(params); } } @Override public void surfaceDestroyed(SurfaceHolder holder) { if(mCamera != null) { mCamera.stopPreview(); mCamera.release(); } } } *Source code layout : *RelativeLayout xmlns:android=http://schemas.android.com/apk/res/android; xmlns:tools=http://schemas.android.com/tools; android:layout_width=match_parent android:layout_height=match_parent android:paddingBottom=@dimen/activity_vertical_margin android:paddingLeft=@dimen/activity_horizontal_margin android:paddingRight=@dimen/activity_horizontal_margin android:paddingTop=@dimen/activity_vertical_margin tools:context=.VideoStackActivity android:orientation=vertical
[android-developers] iPhone-style 3-button remote control headset support
Is there any way to enable support for iPhone-style 3-button remote control headsets on Android devices? These are the ones that have a button for play/mute, and a pair of volume control buttons. Out-of- the box, this doesn't seem to work, but I wonder if there's a way for applications to obtain low-level enough information from the microphone line or if it's possible to write some sort of driver to do 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: Comments lost in the developer console and market app
Same issue for me for my application OnTrack Diabetes. On Jan 6, 9:37 am, TreKing treking...@gmail.com wrote: On Thu, Jan 6, 2011 at 8:35 AM, Alex Xin xinxi...@gmail.com wrote: I don't know why, but some of my app comments lost in the developer console. I cannot find themAll comments after 2010/12/20 is lost. But it seems that comments total number is right. http://www.google.com/support/androidmarket/bin/request.py?contact_ty... http://www.google.com/support/androidmarket/bin/request.py?contact_ty...Good luck getting an answer. --- -- TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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] Can Bitmap native resources be recycled by Garbage Collector?
Hi, folks For Java objects, GC can free those objects that are not used any more. For native resources, such as Bitmap image data (not Java Bitmap objects), which are allocated using native code (C/C++, etc), can they be recycled as well? Or I MUST call Bitmap.recycle() to free the resource? Thanks! Gerald -- 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: Device Seeding Program for Top Android Market Developers
In light of the Nexus One availability in Canada starting today and as a Canadian developer, one thing I'm interested in is if the Nexus One we will receive is the T-Mobile or the Rogers version. I sent an e- mail to the android seeding e-mail address about this, keeping my fingers crossed it is the Rogers one but at the end of the day it is a free phone and no complaints if it ends up being the T-Mobile/AWS variant. -- 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: NumberFormat and comma as decimal separator
Thanks for the comments, I check with my user in Germany and he confirmed that he cannot type the comma into a decimal field in Android. The issue is arising for me because when I copy the text into the edit field I convert it into a localized String which has the comma in it. Once this gets into the edit field it makes my current usage of Double.valueOf fail for the reasons discussed above. I'll probably just change my code to enforce using the period everywhere for consistency until this issue gets fixed in a later version of Android. On Sep 30, 1:30 pm, Streets Of Boston flyingdutc...@gmail.com wrote: I meant 'valueOf' method of the various Number subclasses... :-) You're right. I just took a look at the code that is executed by Double.valueOf(...). It is hard-coded for using periods asdecimalseperators. On Sep 30, 12:55 pm, Gerald gerald.b.n...@gmail.com wrote: There is no valueOf method in the Number class. If I use the Double.valueOf method it fails to work according to my users. The Android docs on Double.valueOf are pretty thin, however the JDK docs are pretty clear that this accepts a string with a number formatted according to the Java Language Specifications and thus does not accept a localized number string. Gerald --~--~-~--~~~---~--~~ 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: NumberFormat and comma as decimal separator
There is no valueOf method in the Number class. If I use the Double.valueOf method it fails to work according to my users. The Android docs on Double.valueOf are pretty thin, however the JDK docs are pretty clear that this accepts a string with a number formatted according to the Java Language Specifications and thus does not accept a localized number string. Gerald --~--~-~--~~~---~--~~ 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] NumberFormat and comma as decimal separator
I have a program that allows users to enter decimal numbers. One user noted that my program requires that he use a period as the decimal separator even though in his country (Germany) they use the comma instead. No problem, I looked at my code and realized I was constructing a DecimalFormat directly instead of using NumberFormat.getInstance() and changed my code as follows: formatter = NumberFormat.getNumberInstance(); if (formatter instanceof DecimalFormat) { DecimalFormat format = (DecimalFormat)formatter; format.applyPattern(PATTERN); } I then was going to test it in the emulator and changed my locale to German. While the language changed there was no change to the number format and it still used the period as the decimal separator. Iterating over NumberFormat.getAvailableLocales() I can see that only English and Japan based countries are returned in the emulator and all those countries use the period not the comma. Any ideas on how can I test my changes to make sure they work? I can override the decimal separator which works fine for testing the display of numbers, unfortunately the keyboard won't allow me to enter a comma in a numeric field to test the parsing. My personal Android phone only supports English and French. I tried changing it to French but still get the period as the separator, feeling kind of stumped here. --~--~-~--~~~---~--~~ 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 Internet connection through emulator
I guess working behind a (bureaucracy corporate) proxy raises the difficulty in working with the emulator. I tried running it from home (with an internet provider assigned IP within a designated DNS address) and it worked properly. On Mon, May 18, 2009 at 5:42 PM, Chronos g358279012044...@gmail.com wrote: Unfortunately, this problem isn't solved :( In addition to the steps Gerald has taken already, we also: - provided the -http-proxy option at emulator start; still no success neither for the browser application, nor for our own application (which works perfectly without proxy) - tried IP addresses instead of domain names in order to circumvent possible DNS problems = still no success - tried -debug-proxy with the following unsuccessful output: #emulator -avd standard_1_5 -http-proxy browser:3128 -debug-proxy proxy_http_setup: creating http proxy service connecting to browser: 3128 server name 'browser' resolved to 192.168.1.122:3128 proxy_http_setup: creating HTTP Proxy Service Footer is (len=2): ' ' http_service_connect: trying to connect to 209.85.135.99:8028 http_service_connect: using HTTP rewriter tcp:209.85.135.99:8028(1576): cannot connect to proxy: unknown error http_service_connect: trying to connect to w.x.y.z:808028 http_service_connect: using HTTP rewriter tcp:w.x.y.z:808028(1576): cannot connect to proxy: unknown error http_service_free I have obfuscated the second IP - but I strongly wonder about those obviously wrong port numbers... I hope this is just a string formating bug. Anyway we're stuck here... Can't anybody help ? On May 9, 9:16 am, sujoydas1...@gmail.com sujoydas1...@gmail.com wrote: Worked for me. Go to Tools directory and type emulator-http-proxyproxy-address:proxy-port On May 8, 2:50 am, Gerald Logor gerald.lo...@gmail.com wrote: Well if that's the case, if the -http-proxyproxy command-line option is not supplied, thenemulatorshould by default looks up the http_proxyenvironment variable (which I did set it using sqlite3 in the settingsdb file) and automatically uses any value matching the proxy format. However, it still cannot go online. Thanks for the reference to the releasenotes though. Gerald Logor On Fri, May 8, 2009 at 11:22 AM, Android Users androidmai...@gmail.comwrote: SDK 1.5 release notes mention this, In some cases, you may encounter problems when using the browser on an emulatorstarted with the command-line option -http-proxy. Ref :http://developer.android.com/sdk/RELEASENOTES.html On Fri, May 8, 2009 at 8:50 AM, Gerald Logor gerald.lo...@gmail.com wrote: After spending hours of research and different ways to connect myemulator to the internet (i.e just accessing any ordinary webpages), I'm still hitting a brick wall. My current internet setting is that I'm behind a corporate internet connection thus connecting via a proxy (154.23.x.yy:80zz) Ways I tried: 1. Connect to theemulatorusing the adb shell command (From tools folder of SDK) *adb shell* enter this.. *# sqlite3 /data/data/com.android.providers.settings/databases/settings.db sqlite INSERT INTO system VALUES(99,'http_proxy','PROXY_IP:PROXY_Port');* Restarting theemulator, it's still showing WebPage unavailable 2. Using Eclipse as my IDE, I Go to Run - Run Configurations -Target in eclipse and enter *-http-proxyPROXY_IP:PROXY_Port * in Additionalemulatorcommand line options. Still, no happiness. 3. I also tried (in Eclipse), Windows-Preferences-Android-Default Emulatoroption, and insertinghttp-proxy*PROXY_IP:PROXY_Port *4. I'm not creating any of my own view or activity, thus did not need to setup INTERNET permissions in my manifest file. Any helps would be appreciated. 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] What kind of views are supported by the AppWidget framework?
Hi, I'm developing widgets for the home screen. By referencing several articles about this topic, it seems that not all views are supported by the widget framework, is that right? For example, AutoCompleteTextView and EditText cannot be used in the framework. I also tried my view with a GLSurfaceView inside, and it shows error inflating the view. What kind of views are supported now by the AppWidget framework? Can android framework team help to list it? Thanks a lot Gerald --~--~-~--~~~---~--~~ 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: What kind of views are supported by the AppWidget framework?
oops, I found the list here. http://groups.google.com/group/android-developers/msg/a5247467151f5e3a On 5月18日, 下午5時32分, Gerald myq...@gmail.com wrote: Hi, I'm developing widgets for the home screen. By referencing several articles about this topic, it seems that not all views are supported by the widget framework, is that right? For example, AutoCompleteTextView and EditText cannot be used in the framework. I also tried my view with a GLSurfaceView inside, and it shows error inflating the view. What kind of views are supported now by the AppWidget framework? Can android framework team help to list it? Thanks a lot Gerald --~--~-~--~~~---~--~~ 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: What kind of views are supported by the AppWidget framework?
I have to use the GLSurfaceView to create a customized widget. Is there any workaround I can achieve it? Thank you Gerald On 5月18日, 下午6時01分, Gerald myq...@gmail.com wrote: oops, I found the list here.http://groups.google.com/group/android-developers/msg/a5247467151f5e3a On 5月18日, 下午5時32分, Gerald myq...@gmail.com wrote: Hi, I'm developing widgets for the home screen. By referencing several articles about this topic, it seems that not all views are supported by the widget framework, is that right? For example, AutoCompleteTextView and EditText cannot be used in the framework. I also tried my view with a GLSurfaceView inside, and it shows error inflating the view. What kind of views are supported now by the AppWidget framework? Can android framework team help to list it? Thanks a lot Gerald --~--~-~--~~~---~--~~ 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 select open GL objects from motion event?
Hi, I need to use GLSurfaceView to render some objects, and move or select the objects by finger touch. By overriding the onTouchEvent, I can receive incomming motion events. The motion event contains x and y position in the view, but can't map to open GL 3D world. Is there any way to know which object should be selected from received motion event? Thank you Gerald --~--~-~--~~~---~--~~ 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 Internet connection through emulator
Well if that's the case, if the -http-proxy proxy command-line option is not supplied, then emulator should by default looks up the http_proxyenvironment variable (which I did set it using sqlite3 in the settingsdb file) and automatically uses any value matching the proxy format. However, it still cannot go online. Thanks for the reference to the releasenotes though. Gerald Logor On Fri, May 8, 2009 at 11:22 AM, Android Users androidmai...@gmail.comwrote: SDK 1.5 release notes mention this, In some cases, you may encounter problems when using the browser on an emulator started with the command-line option -http-proxy. Ref : http://developer.android.com/sdk/RELEASENOTES.html On Fri, May 8, 2009 at 8:50 AM, Gerald Logor gerald.lo...@gmail.comwrote: After spending hours of research and different ways to connect my emulator to the internet (i.e just accessing any ordinary webpages), I'm still hitting a brick wall. My current internet setting is that I'm behind a corporate internet connection thus connecting via a proxy (154.23.x.yy:80zz) Ways I tried: 1. Connect to the emulator using the adb shell command (From tools folder of SDK) *adb shell* enter this.. *# sqlite3 /data/data/com.android.providers.settings/databases/settings.db sqlite INSERT INTO system VALUES(99,'http_proxy','PROXY_IP:PROXY_Port');* Restarting the emulator, it's still showing WebPage unavailable 2. Using Eclipse as my IDE, I Go to Run - Run Configurations -Target in eclipse and enter *-http-proxy PROXY_IP:PROXY_Port * in Additional emulator command line options. Still, no happiness. 3. I also tried (in Eclipse), Windows-Preferences-Android-Default Emulator option, and inserting http-proxy *PROXY_IP:PROXY_Port *4. I'm not creating any of my own view or activity, thus did not need to setup INTERNET permissions in my manifest file. Any helps would be appreciated. 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] Problem with Internet connection through emulator
After spending hours of research and different ways to connect my emulator to the internet (i.e just accessing any ordinary webpages), I'm still hitting a brick wall. My current internet setting is that I'm behind a corporate internet connection thus connecting via a proxy (154.23.x.yy:80zz) Ways I tried: 1. Connect to the emulator using the adb shell command (From tools folder of SDK) *adb shell* enter this.. *# sqlite3 /data/data/com.android.providers.settings/databases/settings.db sqlite INSERT INTO system VALUES(99,'http_proxy','PROXY_IP:PROXY_Port');* Restarting the emulator, it's still showing WebPage unavailable 2. Using Eclipse as my IDE, I Go to Run - Run Configurations -Target in eclipse and enter *-http-proxy PROXY_IP:PROXY_Port * in Additional emulator command line options. Still, no happiness. 3. I also tried (in Eclipse), Windows-Preferences-Android-Default Emulator option, and inserting http-proxy *PROXY_IP:PROXY_Port *4. I'm not creating any of my own view or activity, thus did not need to setup INTERNET permissions in my manifest file. Any helps would be appreciated. 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 it possible to share one 'Canvas' in multiple custom-views within a single Activity?
Hello. I'm trying to develop an app which mimic the MicrosoftPaint application. My current setup is that I have a single activity which contains multiple custom-view. These views correlate to the different tool that program can do. Example: 'pencilView' to simulate the pencilStrokes, 'rectangleView' to simulate the rectangle drawing, etc. Based on onOptionsItemSelected, I setContentView to the selected view, and then requestFocus. But I'm not sure of how to show the different strokes made to be on-top of each other. I tried to pass the canvas object around and call save (at the end) and restore (in the beginning) but that didn't work. Any suggestions? --~--~-~--~~~---~--~~ 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 simulate HW key events?
Hi, I want to create a virtual key panel just like the status bar but at the screen bottom. And I want to put several keys on the panel (Home, Call, Menu, Back, End Call, etc). How can I send key events to android system? Any side effect to the system? (effect KeyGuard?) Thank you Gerald --~--~-~--~~~---~--~~ 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: Failed to execute the Launcher built by myself
Yes, copy the code (private API and reources) can help to compile the Launcher application. I build the SDK from android source (git://android.git.kernel.org/ platform/manifest.git, it is not the cupcake branch because the cupcake SDK always can't find resources and class R), and compile the cupcake launcher. Now it works fine. On Mar 7, 2:06 am, Dianne Hackborn hack...@android.com wrote: Copy the code in to your app. On Mon, Feb 9, 2009 at 10:03 PM, Gerald myq...@gmail.com wrote: I noticed a discussion about the SlidingDrawer here: http://groups.google.com/group/android-developers/browse_thread/threa... What can I do if the SlidingDrawer is a private API? Thanks Gerald On Feb 10, 11:03 am, Gerald myq...@gmail.com wrote: Attach exception message: Unable to start activity ComponentInfo{com.android.mylauncher/ com.android.mylauncher.Launcher}: android.view.InflateException: Binary XML file line #40: Error inflating class java.lang.reflect.Constructor The 40 line of my launcher.xml is the start tag of com.android.internal.widget.SlidingDrawer On Feb 10, 10:53 am, Gerald myq...@gmail.com wrote: Attach log from logcat: - pid 403 at 2009-02-10 02:40:11 - Cmd line: com.android.mylauncher DALVIK THREADS: main prio=5 tid=3 NATIVE | group=main sCount=1 dsCount=0 s=0 obj=0x40018dd8 | sysTid=403 nice=0 sched=0/0 handle=-1096160100 at android.os.BinderProxy.transact(Native Method) at android.app.ActivityManagerProxy.handleApplicationError (ActivityManagerNative.java:2044) at com.android.internal.os.RuntimeInit.crash(RuntimeInit.java:302) at com.android.internal.os.RuntimeInit $UncaughtHandler.uncaughtException(RuntimeInit.java:75) at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:887) at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:884) at dalvik.system.NativeStart.main(Native Method) Binder Thread #2 prio=5 tid=13 NATIVE | group=main sCount=1 dsCount=0 s=0 obj=0x4346c490 | sysTid=408 nice=0 sched=0/0 handle=809568 at dalvik.system.NativeStart.run(Native Method) Binder Thread #1 prio=5 tid=11 NATIVE | group=main sCount=1 dsCount=0 s=0 obj=0x4346be60 | sysTid=407 nice=0 sched=0/0 handle=812328 at dalvik.system.NativeStart.run(Native Method) JDWP daemon prio=5 tid=9 VMWAIT | group=system sCount=1 dsCount=0 s=0 obj=0x4346b2a0 | sysTid=406 nice=0 sched=0/0 handle=804536 at dalvik.system.NativeStart.run(Native Method) Signal Catcher daemon prio=5 tid=7 RUNNABLE | group=system sCount=0 dsCount=0 s=0 obj=0x4346b1e8 | sysTid=405 nice=0 sched=0/0 handle=806024 at dalvik.system.NativeStart.run(Native Method) HeapWorker daemon prio=5 tid=5 VMWAIT | group=system sCount=1 dsCount=0 s=0 obj=0x425bf020 | sysTid=404 nice=0 sched=0/0 handle=823080 at dalvik.system.NativeStart.run(Native Method) - end 403 - This exception is thrown after setContentView(R.layout.launcher) in onCreate function in Launcher.java Thanks Gerald On Feb 10, 12:29 am, Romain Guy romain...@google.com wrote: Without showing us the exact exception we won't be able to help you much... On Mon, Feb 9, 2009 at 4:44 AM, Gerald myq...@gmail.com wrote: Hi, I need to customize the launcher application. I built it from the android source, and installed it to the emulator successfully(By renaming its package name to solve signing conflicts). When I tried to run my build, an exception occurred, and I can't find where it actually from because it seems to be from an internal thread. After an whole day trying, I found that the exception is thrown by the line in Launcher.java possibly: setContentView(R.layout.launcher); Does anyone have any suggestion? Thank you very much. Gerald -- 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 -- 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. 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] Failed to execute the Launcher built by myself
Hi, I need to customize the launcher application. I built it from the android source, and installed it to the emulator successfully(By renaming its package name to solve signing conflicts). When I tried to run my build, an exception occurred, and I can't find where it actually from because it seems to be from an internal thread. After an whole day trying, I found that the exception is thrown by the line in Launcher.java possibly: setContentView(R.layout.launcher); Does anyone have any suggestion? Thank you very much. Gerald --~--~-~--~~~---~--~~ 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: Failed to execute the Launcher built by myself
Attach log from logcat: - pid 403 at 2009-02-10 02:40:11 - Cmd line: com.android.mylauncher DALVIK THREADS: main prio=5 tid=3 NATIVE | group=main sCount=1 dsCount=0 s=0 obj=0x40018dd8 | sysTid=403 nice=0 sched=0/0 handle=-1096160100 at android.os.BinderProxy.transact(Native Method) at android.app.ActivityManagerProxy.handleApplicationError (ActivityManagerNative.java:2044) at com.android.internal.os.RuntimeInit.crash(RuntimeInit.java:302) at com.android.internal.os.RuntimeInit $UncaughtHandler.uncaughtException(RuntimeInit.java:75) at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:887) at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:884) at dalvik.system.NativeStart.main(Native Method) Binder Thread #2 prio=5 tid=13 NATIVE | group=main sCount=1 dsCount=0 s=0 obj=0x4346c490 | sysTid=408 nice=0 sched=0/0 handle=809568 at dalvik.system.NativeStart.run(Native Method) Binder Thread #1 prio=5 tid=11 NATIVE | group=main sCount=1 dsCount=0 s=0 obj=0x4346be60 | sysTid=407 nice=0 sched=0/0 handle=812328 at dalvik.system.NativeStart.run(Native Method) JDWP daemon prio=5 tid=9 VMWAIT | group=system sCount=1 dsCount=0 s=0 obj=0x4346b2a0 | sysTid=406 nice=0 sched=0/0 handle=804536 at dalvik.system.NativeStart.run(Native Method) Signal Catcher daemon prio=5 tid=7 RUNNABLE | group=system sCount=0 dsCount=0 s=0 obj=0x4346b1e8 | sysTid=405 nice=0 sched=0/0 handle=806024 at dalvik.system.NativeStart.run(Native Method) HeapWorker daemon prio=5 tid=5 VMWAIT | group=system sCount=1 dsCount=0 s=0 obj=0x425bf020 | sysTid=404 nice=0 sched=0/0 handle=823080 at dalvik.system.NativeStart.run(Native Method) - end 403 - This exception is thrown after setContentView(R.layout.launcher) in onCreate function in Launcher.java Thanks Gerald On Feb 10, 12:29 am, Romain Guy romain...@google.com wrote: Without showing us the exact exception we won't be able to help you much... On Mon, Feb 9, 2009 at 4:44 AM, Gerald myq...@gmail.com wrote: Hi, I need to customize the launcher application. I built it from the android source, and installed it to the emulator successfully(By renaming its package name to solve signing conflicts). When I tried to run my build, an exception occurred, and I can't find where it actually from because it seems to be from an internal thread. After an whole day trying, I found that the exception is thrown by the line in Launcher.java possibly: setContentView(R.layout.launcher); Does anyone have any suggestion? Thank you very much. Gerald -- 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: Failed to execute the Launcher built by myself
Attach exception message: Unable to start activity ComponentInfo{com.android.mylauncher/ com.android.mylauncher.Launcher}: android.view.InflateException: Binary XML file line #40: Error inflating class java.lang.reflect.Constructor The 40 line of my launcher.xml is the start tag of com.android.internal.widget.SlidingDrawer On Feb 10, 10:53 am, Gerald myq...@gmail.com wrote: Attach log from logcat: - pid 403 at 2009-02-10 02:40:11 - Cmd line: com.android.mylauncher DALVIK THREADS: main prio=5 tid=3 NATIVE | group=main sCount=1 dsCount=0 s=0 obj=0x40018dd8 | sysTid=403 nice=0 sched=0/0 handle=-1096160100 at android.os.BinderProxy.transact(Native Method) at android.app.ActivityManagerProxy.handleApplicationError (ActivityManagerNative.java:2044) at com.android.internal.os.RuntimeInit.crash(RuntimeInit.java:302) at com.android.internal.os.RuntimeInit $UncaughtHandler.uncaughtException(RuntimeInit.java:75) at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:887) at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:884) at dalvik.system.NativeStart.main(Native Method) Binder Thread #2 prio=5 tid=13 NATIVE | group=main sCount=1 dsCount=0 s=0 obj=0x4346c490 | sysTid=408 nice=0 sched=0/0 handle=809568 at dalvik.system.NativeStart.run(Native Method) Binder Thread #1 prio=5 tid=11 NATIVE | group=main sCount=1 dsCount=0 s=0 obj=0x4346be60 | sysTid=407 nice=0 sched=0/0 handle=812328 at dalvik.system.NativeStart.run(Native Method) JDWP daemon prio=5 tid=9 VMWAIT | group=system sCount=1 dsCount=0 s=0 obj=0x4346b2a0 | sysTid=406 nice=0 sched=0/0 handle=804536 at dalvik.system.NativeStart.run(Native Method) Signal Catcher daemon prio=5 tid=7 RUNNABLE | group=system sCount=0 dsCount=0 s=0 obj=0x4346b1e8 | sysTid=405 nice=0 sched=0/0 handle=806024 at dalvik.system.NativeStart.run(Native Method) HeapWorker daemon prio=5 tid=5 VMWAIT | group=system sCount=1 dsCount=0 s=0 obj=0x425bf020 | sysTid=404 nice=0 sched=0/0 handle=823080 at dalvik.system.NativeStart.run(Native Method) - end 403 - This exception is thrown after setContentView(R.layout.launcher) in onCreate function in Launcher.java Thanks Gerald On Feb 10, 12:29 am, Romain Guy romain...@google.com wrote: Without showing us the exact exception we won't be able to help you much... On Mon, Feb 9, 2009 at 4:44 AM, Gerald myq...@gmail.com wrote: Hi, I need to customize the launcher application. I built it from the android source, and installed it to the emulator successfully(By renaming its package name to solve signing conflicts). When I tried to run my build, an exception occurred, and I can't find where it actually from because it seems to be from an internal thread. After an whole day trying, I found that the exception is thrown by the line in Launcher.java possibly: setContentView(R.layout.launcher); Does anyone have any suggestion? Thank you very much. Gerald -- 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] How to re-install sign android built-in applications
Hi, I want to customize some built-in applications on android, for example Launcher or Contacts, etc. I've downloaded the source code and compile it by eclipse successfully. But when I tried to run it, a signing error comes: [2009-01-20 16:17:27 - Launcher] Installing Launcher.apk... [2009-01-20 16:17:35 - Launcher] Application already exists. Attempting to re-install instead... [2009-01-20 16:17:43 - Launcher] Re-installation failed due to different application signatures. [2009-01-20 16:17:43 - Launcher] You must perform a full uninstall of the application. WARNING: This will remove the application data! [2009-01-20 16:17:43 - Launcher] Please execute 'adb uninstall com.android.launcher' in a shell. I followed above instruction: adb uninstall com.android.launcher, but it failed (Can't remove the application). The official document only provides How to sign a new application, but it's not usable in my case. Does anyone know how to do it? Thank you very much Gerald --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---