android,android-fragmentsView the original page-Collection of common programming errors

UnKnown Error


  • Tramway11
    android exception stream mp3 stop 2013-12-3 18:22:30
    I have MP3 stream Service in Android which connects to a server. It uses MediaPlayer. Also it connects to a server to get XML or ID3 tags from stream. During the work some errors happen. For example (host address is replaced with “host”):07-16 17:40:22.535: I/System.out(2669): [socket][116] connection host(0) 07-16 17:40:26.871: W/MediaPlayer(2669): info/warning (701, 0) 07-16 17:40:26.872: I/MediaPlayer(2669): Info (701,0) 07-16 17:40:27.535: I/System.out(2669): [socket][117] connection host(0)

  • Jeffrey Martinez
    android adt android-support-library google-cast 2013-12-3 18:14:08
    Short versionI’m getting an unhandled exception when instantiating an android.support.v7.app.MediaRouteButton object. I get:NoClassDefFoundError: android.support.v7.mediarouter.R$attrWhere is this class? Or if it’s auto-generated, how do I get it to auto-generate?Longer versionI am following along with the tutorial for Android app development for chromecast found here: https://developers.google.com/cast/cast_2nd-screen_app_tutorialI am developing using the ADT bundled eclipse, on ubuntu 13.04.I

  • onemach
    java android 2013-12-3 17:27:34
    I create app for working with facebook. I download Android Facebook SDK from GitHub, than I create a new Android project for sdk in Eclipse (when I’m creating a new project for sdk, i selected “create from existing source”). Than I added to my project this facebook project (“build path”, etc). But when I want to create a new Facebook object, I got unhandled error. It is code: Facebook fb=new Facebook(APP_ID);Where have I do mistake? Error log: – 09-29 05:23:21.295: ERROR/AndroidRuntime(1256):ja

  • Hyunwoo Nam
    android eclipse jmdns 2013-12-3 16:20:06
    My code worked but it does not work suddenly. The code is as follows.public class AndroidDnssdDiscoveryTestActivity extends Activity { /** Called when the activity is first created. */android.net.wifi.WifiManager.MulticastLock lock; android.os.Handler handler = new android.os.Handler(); final Context context = this; AlertDialog alert=null;public void onCreate(Bundle savedInstanceState) {/** StrictMode.ThreadPolicy was introduced since API Level 9 and the default thread policy had been changed si

  • marienke
    android buffer android-mediaplayer audio-streaming http-live-streaming 2013-12-3 16:18:03
    We are experiencing almost the exact opposite of what is mentioned here: Why does it take so long for Androids MediaPlayer to prepare some live streams for playback?I’ve tested multiple streams but two in particular1 – http://usa8-vn.mixstream.net:8138 – SampleRate: 32000Hz and Bitrate: 96 kb/s2 – http://source01.platform02.true.nl:800 – SampleRate: 44100Hz and Bitrate: 128 kb/sThe lower bitrate stream starts playing instantly (as soon as the media player is prepared), while the higher bitrate s

  • gnat
    android android-camera videoview audioflinger 2013-12-3 15:13:36
    I’m trying to play mp4 video in loop and i have a problem with two device (on all other devices my code works fine) Motorola Defy 2.2.1 and Motorola Atrix 4G 2.3.The problem is after one run the media got stuck and I get this error :08-12 17:04:15.031: W/MediaPlayer(4710): info/warning (1, 44) 08-12 17:04:15.031: I/MediaPlayer(4710): Info (1,44) 08-12 17:04:15.031: D/MediaPlayer(4710): getMetadata 08-12 17:04:30.742: W/AudioSystem(4710): AudioFlinger server died! 08-12 17:04:30.742: W/IMediaDeat

  • user2254979
    android google-maps compiler-errors 2013-12-3 14:55:14
    i am trying to install 2 packages for the using of the google map on the emulator but i get a problem in the log cat and i do not know how to fix this error on the emulator it display this app wont run unless you update the google play services can anyone help me ??? these are the files and the code that i used to build the simple mainActivity.javapackage com.example.googlemapv2;import android.os.Bundle; import android.app.Activity; import android.support.v4.app.FragmentActivity; import a

  • DaManWitDaPlan
    android admob xamarin monogame 2013-12-3 14:06:12
    I’ve been developing a game with MonoGame for a few months, and I just released it a few days ago. Now, I’m trying to get AdMob to work correctly so I can release a free lite version of the app. I’m a newbie to Android layouts, so I have no idea what I’m doing.I was able to get an ad to display within my app after scouring the web for some info on implementing AdMob with MonoGame, but the app always displays on the top of the screen. I’ve had very little luck finding any info about re-positionin

  • Darren Kopp
    c# android visual-studio exception monodroid 2013-12-3 13:56:19
    I’m attempting to extend the generic ArrayAdapter in order to customize a ListView and am getting an NoSuchMethodError being thrown when I hit the TpAdapter (my extended Adapter) constructorHere is the exteded ArrayAdapter TpAdapterprivate class TpAdapter : ArrayAdapter<MobileTalkingPoint>{private MobileTalkingPoint[] items;private Context outer_context;public TpAdapter(Context context, int textViewResourceId, MobileTalkingPoint[] items): base(context, textViewResourceId, items){this.items

  • Irgendw Pointer
    android eclipse sqlite jdbc heap 2013-12-3 12:59:46
    I tried to add the library sqlite-jdbc-4.7.2.jar to my android project. The compiler runs normal, also after clean. But if I execute the apk in debug mode, then I will receive two errors. Unable to execute dex: Java heap spaceJava heap spaceand the second Unhandled event loop exceptionJava heap spaceDo I import a wrong library? In other projects I used the SQLite integration in android. But this is a java project, which is now used in an android project too and for maintenance reasons and furthe

  • Stephen
    android android-fragments dialog 2013-12-1 10:25:54
    I have an app where multiple emergency messages can be received. When each message is received it needs to open a dialog with the emergency details. If more than one emergency is received it will stack the dialogs so that when the most recent emergency message is dealt with and that particular dialog closes, the previous most recent and un-handled emergency should appear, as if they are stacked.Also, the details for each emergency are updated every x seconds from a service and these changes need

  • Idolon
    android android-fragments android-activity 2013-11-24 4:23:35
    EDITThe activity hosting this fragment has its onActivityResult called when the camera activity returnsMy fragment starts an activity for result with the intent sent for the camera to take a picture. The picture application loads fine, takes a picture, and returns. The onActivityResult however is never hit. I’ve set break points but nothing is triggered. Can a fragment have onActivityResult? I’d think so since its a provided function. Thoughts on why this isn’t being triggered?ImageView myImage

  • AmirHossein Mehrvarzi
    android android-fragments 2013-11-17 0:19:19
    I’m using fragments to build an android app for API15.Layouts are:activity_page_detail.xml activity_page_list.xml activity_page_twopane.xml fragment_page_detail.xmlJava Files are:pageDetailActivity.java pageDetailFragment.java pageListActivity.java pageListFragment.java DummyContent.javaIn activity_page_detail.xml :<FrameLayout xmlns:android=”http://schemas.android.com/apk/res/android” xmlns:tools=”http://schemas.android.com/tools” android:id=”@+id/page_detail_container” android:layout_width=

  • Sherwood Lee
    java android google-maps android-fragments 2013-11-16 20:10:04
    I tried to merge two android demo programs, but I couldn’t get it right.I have tried and searched for several ways, but I couldn’t figure it out. Could you please help me?Here’s my error message:09-20 03:28:25.617: E/AndroidRuntime(20108): FATAL EXCEPTION: main 09-20 03:28:25.617: E/AndroidRuntime(20108): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.android.navigation/com.example.android.navigation.MainActivity}: android.view.InflateException: Binary XML file li

  • Josiane Ferice
    android android-fragments android-listfragment 2013-11-16 20:04:15
    I am working on a project where I have to display a list of available Professors for a department. Instead of displaying all professors, I want to allow a student to search professors by Department. As a result, the student will logs in, search for a professor based on name, department, course ID, or all. I am using a custom list adapter. I noticed that Adapter object is not null, but the list is still showing “No records available to display. I think the issue has to do with the way that I am s

  • DJDarkViper
    java android android-layout android-fragments 2013-11-16 19:22:45
    EDIT2: Updated the sources to the current snapshot. Issue is still persisting! (also changed by censor names as it was causing a little confusion, thats my bad i should have chosen the words better)EDIT: the package name has been modified to protect an NDA. Its not actually com.private.fragment. Please assume along with me that all package names are intact and working correctly! ThanksI’m building for Gingerbread primarily, and I’m trying to figure out this Fragment thing (I’m using the v13 Com

  • NirPes
    android android-fragments android-fragmentactivity layout-inflater 2013-11-16 17:56:19
    Im trying to make a menu that will control the fragments – the screens. (just like in instagram),But it crashes:The code of the main activity:public class All extends Activity {Button map;Button add;View MapFragment;View AddFragment;@Overrideprotected void onCreate(Bundle savedInstanceState) {super.onCreate(savedInstanceState);setContentView(R.layout.activity_all);map=(Button)findViewById(R.id.map);add=(Button)findViewById(R.id.add);MapFragment=(View)findViewById(R.id.MapFragment);AddFragment=(V

  • hopeTo
    java android sqlite android-fragments 2013-11-16 17:39:30
    I’m new in Android. I’m trying to get data from a database by getDataMain() method. when i run my application it gives a java.lang.NullPointerException. I couldn’t find where the problem is? Could you help me, please?@TargetApi(Build.VERSION_CODES.HONEYCOMB) public class MainFragment extends Fragment {TextView bakici; TextView arabaKredisi; TextView ogrenimKredisi; TextView tatilKredisi; TextView elektrik; TextView su; TextView internet; TextView aidat; TextView kasko; TextView digerTaksitler;

  • 7agooz
    android android-fragments android-asynctask actionbarsherlock android-gridview 2013-11-16 17:32:14
    The fragment should download json in the asynctask with the name and image and diaplay them in the gridview this is the exception I got06-17 16:34:30.207: W/dalvikvm(689): threadid=1: thread exiting with uncaught exception (group=0x40a13300) 06-17 16:34:30.297: E/AndroidRuntime(689): FATAL EXCEPTION: main 06-17 16:34:30.297: E/AndroidRuntime(689): android.view.WindowManager$BadTokenException: Unable to add window — token null is not for an application 06-17 16:34:30.297: E/AndroidRuntime(689):

  • user2890050
    android google-maps android-fragments 2013-11-16 14:18:57
    I followed the steps to create a Google Map with API V2 according to this example:http://wptrafficanalyzer.in/blog/showing-current-location-in-google-maps-using-api-v2-with-supportmapfragment/I obtained de API key and tested on a Samsung Galaxy S3 (real device) This is the Android Manifest file:<?xml version=”1.0″ encoding=”utf-8″?> <manifest xmlns:android=”http://schemas.android.com/apk/res/android”package=”android.localizaciongooglemapv2″ android:versionCode=”1″ android:versionName=”1