[android-beginners] Re: Problem transitioning to TabActivity
I wish I had an answer for you. I have seen coding with tabs using Intents to be very flakey. It will work, then not work. I'll restart the emulator and then it will work again. Very frustrating. I think there is a bug somewhere in Android, but I can't prove it. Did you ever get you issue worked out? On Nov 4, 8:54 am, Mike mrmikeree...@gmail.com wrote: Hi all, I am trying to start activity to a TabActivity intent and I keep getting the same error. I have tried to make this as simplistic as possible code wise...but no luck. My code is below the error message. java.lang.RuntimeException: Unable to start activity ComponentInfo {com.valpak.android/com.valpak.android.TabLayout}: java.lang.RuntimeException: Unable to start activity ComponentInfo {com.valpak.android/com.valpak.android.Categories}: java.lang.RuntimeException: Your content must have a TabHost whose id attribute is 'android.R.id.tabhost' 11-03 12:57:52.114: ERROR/AndroidRuntime(10255): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java: 2401) 11-03 12:57:52.114: ERROR/AndroidRuntime(10255): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java: 2417) 11-03 12:57:52.114: ERROR/AndroidRuntime(10255): at android.app.ActivityThread.access$2100(ActivityThread.java:116) 11-03 12:57:52.114: ERROR/AndroidRuntime(10255): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1794) 11-03 12:57:52.114: ERROR/AndroidRuntime(10255): at android.os.Handler.dispatchMessage(Handler.java:99) 11-03 12:57:52.114: ERROR/AndroidRuntime(10255): at android.os.Looper.loop(Looper.java:123) 11-03 12:57:52.114: ERROR/AndroidRuntime(10255): at android.app.ActivityThread.main(ActivityThread.java:4203) 11-03 12:57:52.114: ERROR/AndroidRuntime(10255): at java.lang.reflect.Method.invokeNative(Native Method) 11-03 12:57:52.114: ERROR/AndroidRuntime(10255): at java.lang.reflect.Method.invoke(Method.java:521) 11-03 12:57:52.114: ERROR/AndroidRuntime(10255): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:791) 11-03 12:57:52.114: ERROR/AndroidRuntime(10255): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:549) 11-03 12:57:52.114: ERROR/AndroidRuntime(10255): at dalvik.system.NativeStart.main(Native Method) 11-03 12:57:52.114: ERROR/AndroidRuntime(10255): Caused by: java.lang.RuntimeException: Unable to start activity ComponentInfo {com.valpak.android/com.valpak.android.Categories}: java.lang.RuntimeException: Your content must have a TabHost whose id attribute is 'android.R.id.tabhost' 11-03 12:57:52.114: ERROR/AndroidRuntime(10255): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java: 2401) 11-03 12:57:52.114: ERROR/AndroidRuntime(10255): at android.app.ActivityThread.startActivityNow(ActivityThread.java:2242) 11-03 12:57:52.114: ERROR/AndroidRuntime(10255): at android.app.LocalActivityManager.moveToState(LocalActivityManager.java: 127) 11-03 12:57:52.114: ERROR/AndroidRuntime(10255): at android.app.LocalActivityManager.startActivity (LocalActivityManager.java:339) 11-03 12:57:52.114: ERROR/AndroidRuntime(10255): at android.widget.TabHost$IntentContentStrategy.getContentView (TabHost.java:631) 11-03 12:57:52.114: ERROR/AndroidRuntime(10255): at android.widget.TabHost.setCurrentTab(TabHost.java:317) 11-03 12:57:52.114: ERROR/AndroidRuntime(10255): at android.widget.TabHost.addTab(TabHost.java:210) 11-03 12:57:52.114: ERROR/AndroidRuntime(10255): at com.valpak.android.TabLayout.onCreate(TabLayout.java:26) 11-03 12:57:52.114: ERROR/AndroidRuntime(10255): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java: 1123) 11-03 12:57:52.114: ERROR/AndroidRuntime(10255): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java: 2364) 11-03 12:57:52.114: ERROR/AndroidRuntime(10255): ... 11 more This is called in MyApp.java startActivity(new Intent(getApplicationContext(), TabLayout.class)); public class TabLayout extends TabActivity{ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); TabHost tabHost = getTabHost(); LayoutInflater.from(this).inflate(R.layout.tabs, tabHost.getTabContentView(), true); tabHost.addTab(tabHost.newTabSpec(tab1) .setIndicator(Grid).setContent(new Intent(this, Categories.class))); } } Here is tabs.xml ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/ android android:id=@+id/tabLayout android:orientation=vertical android:layout_width=fill_parent android:layout_height=fill_parent /LinearLayout Any help would be greatly appreciated. -- You received this message because you are subscribed to the Google Groups Android Beginners group. To post to
[android-beginners] Re: Updating Google Ion from 1.5 to 1.6
Hi, I'm hoping this page will help you. http://developer.htc.com/google-io-device.html Let us know if you have problems. I haven't followed these steps, but am going to be trying to upgrade my Google Ion in the next few days. On Oct 7, 9:29 pm, gyy gene.y...@gmail.com wrote: I have a Google Ion (the version of the HTC Magic that was handed out at the Google IO Developers Conference) that was given to me as a gift. Unfortunately, I have no idea how to update the OS on the phone to 1.6. I looked up the HTC support website and I have all the necessary files, but I have no idea how to execute any of the instructions. HTC tech support directed me to this community. Just to highlight my level of ignorance: I don't know how to use a command line, I have no idea what a bootloader is, I don't know how to use the SDK (although I have it on my computer and I installed Eclipse as well), etc. If anybody has time to run through a true Android for Dummies guide to upgrade my phone to 1.6, I would be forever grateful. Thanks! Gene --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Encoding for G1 using ffmpeg
WOW. Thanks Mark for the links and explanation. Was wondering why the same movie that I have on the SD card plays fine, but when I put it on a website and accessed over http:// I get This video can not be played. I'm sorry Android Devs, but this is very disappointing. Playing a video via http:// should be brain dead simple, and alas with Android, as compared to other platforms, it is not. Sounds like any video I (or my clients) create, needs to have -hint associated with it and must be run through MP4Box or some other program to it can be played when served over http? Bummer, as other platforms (iPhone) just play these video right out of the box. What gives on Android? that the iPhone SDK is able to do, or is there some other work around that I'm missing? On Jul 30, 9:16 pm, Rob Campbell r...@rob-campbell.com wrote: I will look int what you said. I just realized that its streaming that is causing the problem because I downloaded the file instead of playing it then played it and it worked so it seems that the file is configured correctly. On Jul 30, 2009 9:02 PM, Mark Murphy mmur...@commonsware.com wrote: Rob Campbell wrote: I have tried: ffmpeg -i Eminem\ -\ We\ Made\ You\ \(Official\ Full\ Music\ ...https://help.ubuntu.com/community/AndroidVideoEncodinghttp://android-unleashed.com/tag/convert-video-to-android-g1http://www.harelmalka.com/?p=120http://www.scribd.com/doc/16917356/Mastering-the-Android-Media-Framework For streaming, you need the moov atom before the mdat atom: http://groups.google.com/group/android-developers/browse_thread/threa...http://groups.google.com/group/android-developers/browse_thread/threa... -- Mark Murphy (a Commons Guy)http://commonsware.com|http://twitter.com/commonsguy Need Android talent? Ask on HADO!http://wiki.andmob.org/hado --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Emulator Segmentation fault on startup if you have USB Headset Plugged in
If you are on a Mac OSX and are getting a segmentation fault when starting the emulator, look to see if your headset is plugged in. I have a KOSS headset and when launching the emulator it would crash almost immediately. I then tried running: ./emulator -wipe-data and got this. 2009-02-19 14:25:19.222 emulator[1670:10b] Warning once: This application, or a library it uses, is using NSQuickDrawView, which has been deprecated. Apps should cease use of QuickDraw and move to Quartz. Segmentation fault I then unplugged my USB headset and everything worked fine. Just want to save people the agony of wondering what is going on. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: send gps location through Eclipse and be nofified through LocationListener.onLocationChanged
I don't have a solution, but I can say that I had this same problem, and changing the provider from NETWORK to GPS fixed my problem. I'm not on Windows, but MacOSX. You'll want to make sure you set the provider to be GPS_PROVIDER. An example like: mgr.requestLocationUpdates(LocationManager.GPS_PROVIDER, 0, 0, locationListener); works! But: mgr.requestLocationUpdates(LocationManager.NETWORK_PROVIDER, 0, 0, locationListener); does not. It looks like from th eoriginal post that you have set gps, so I'm not sure specifically why you are having the problem, but just wanted to make others aware that the provider does seem to be important. On Jan 10, 9:03 am, Immy immanueln2...@gmail.com wrote: All i do is to send the location to the emulator as a gps tracked location in one of the following ways: Open DDMS from the Android SDK Tools directory. Go to emulator control 1) Manually set your location 2) Save the location you want in google earth (Save point/location as) as a kml file. Upload to the prompted browse dialog and send. Hope this helps some1. -Immanuel On Jan 9, 8:06 pm, Miroslav Slobodnik miroslav.slobod...@gmail.com wrote: Somebody know how to get it working? On Jan 7, 3:15 pm, Miroslav Slobodnik miroslav.slobod...@gmail.com wrote: Hi, yes I use Win XP SP3. Telnet way to seng goe command through geo fix is working. So the problem is in language to get it work inEclipse? On Jan 7, 11:19 am, Spinjev Giginsky arcusal...@googlemail.com wrote: Hi... I believe the problem is the DDMS ineclipse. Do you use windows XP? Than it is often written that your language settings there must be english. I got a result with telnet. C:\telnet localhost 5554 Android Console: type 'help' for a list of commands OK geo fix -82.411629 28.054553 OK On 5 Jan., 13:54, Miroslav Slobodnik miroslav.slobod...@gmail.com wrote: Hi, I have problem withgpsrelated task. I registered location updates, and then useEclipseview Emulator Control to sendGPSlocation, but method onLocationChanged is never called. Method onStatusChanged is called when I first click button Send inEclipseEmulator Control. I do not know why? Is there problem with some permission or something like that? My permissions: uses-permission android:name=android.permission.ACCESS_MOCK_LOCATION/uses- permission uses-permission android:name=android.permission.ACCESS_LOCATION_EXTRA_COMMANDS/ uses-permission uses-permission android:name=android.permission.ACCESS_FINE_LOCATION/uses- permission uses-permission android:name=android.permission.ACCESS_COARSE_LOCATION/uses- permission Code: LocationManager locationManager = (LocationManager)getSystemService (Context.LOCATION_SERVICE); locationManager.requestLocationUpdates(gps, 0, 0, new StartJourneyListener(journeyId)); inner class: private class StartJourneyListener implements LocationListener{ ... public void onLocationChanged(Location location){ } ... } Thank you in advance for replies. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---