android

Can't read ID3 tags after Froyo update?

I have a music player app on the Market and my users starting reporting problems with music showing up as "Unknown Artist" and "Unknown Title" after the Froyo update. I have noticed the same behavior on my Motorola Droid 2 running Froyo. Doing some googling, I find other users (and even Last.fm confirmed the issue) that "Android" is no...

Reasons why my Android App would crash on my phone consistently, but not on my emulator

I have an app that uses quite a few graphics in it. When I open and close my app repeatedly on my emulator (1.5 - 2.2) it runs fine and by checking the heap I can see everything is being cleaned and gc'd properly. However, when I run my app on an HTC Aria phone (2.1) the app crashes every time I try to re-open it. When I look at the h...

Android Hardware Interrupts?

Suppose i'm working on an android application . Suddenly i connect my Android phone with my computr. Does Android OS has a mechanism to detect such hardware interrupts? ...

onPostExecute not called after completion AsyncTask

For some reason my onPostExecute() is not called after my AsyncTask finishes. My class decleration: public class setWallpaperForeground extends AsyncTask<String, Integer, Boolean> My onPostExecute(): protected void onPostExecute(Boolean result) Everything works fine, my doInBackground() completes successfully and returns a Boolean b...

Listview Scroll to the end of the list after updating the list

Hi, I would like to after I have updated by listAdapter I want to make sure that the list is scrolled all the way to the bottom so that it displays the last element entered in the list How can I do this ? I tried this but no luck lv.setTranscriptMode(ListView.TRANSCRIPT_MODE_ALWAYS_SCROLL); thank you ...

android start activity from service

Android: public class LocationService extends Service { @Override public void onStart(Intent intent, int startId) { super.onStart(intent, startId); startActivity(new Intent(this, activity.class)); } } I launched this service from activity In activity if condition satisfies start startService(...

How to Retrieve Text from Textbox in Android

I'm at the very early stage of learning Android. Can anyone tell me how I can use the text written in a Text box by user? I'm trying to use getText() method but finding it confusing. Thanks in advance. ...

Grid 3*3 with tableLayout

I want a 3*3 grid with an ImageButton centered in each cell I've done the code below TableLayout tl=new TableLayout(this); int intNbRows=3; int intNbCols=3; for (int i = 0 ; i < intNbRows;i++) { TableRow tr=new TableRow(this); tr.setMinimumHeight(hauteur/intNbRows);//TODO : a voir tr.setMinimumWidth(largeur/intNbCols); //TODO ...

Android library vs. external jar

I have an external jar that I can use in my Android application, I just reference it as an external jar from my application. Is there any benefit in creating an Android library project with this external jar for Android applications to use, or is this pretty much the same as referencing the external jar? ...

Get details of currect media file playing in android media player

Hello, Is there any way to get the details of media files that is executed in android(default) media player? Thanks, Nithin ...

How to make List view for items in Android?

Please help me out here. I need to make a list view as shown in the sample pic for my android app. How to do it? Also I need to add image along it as seen in the sample pic. and link it to another view to show some more details.please check links shown below. pic1 ...

how to set height of textview according to its content -[android]

hi! all <TextView android:id="@+id/msg" android:layout_width="fill_parent" android:layout_height="wrap_content" android:textSize="16sp" android:textColor="#000000" android:layout_weight="2" android:ellipsize="end" android:layout_marginLeft="8...

twitter4j on android performance tuning

I am creating an android app, part of which utilises the twitter4j library to retrieve information from twitter, however, the app runs very slowly on the twitter activities. I have not implemented caching yet, and am hoping that should improve the performance, does anyone have any advice for caching twitter4j calls on android? alternat...

android videoview - managing bad urls error ?

Hello, Im using some time expiring url to watch a video from internet and so, when the expiration time come out, the video is not working anymore. In this case, im getting an error dialog box from the videoplayer saying the video is unreadable. that is quite fine, but i would like to display my own dialog box text. how can i do ? is the...

Tutorial from google android "HelloTabWidget" has a null pointer error.

When I view the following xml file in the layout view (eclispse), I got NullPointerException:null message, but when I run the code, it works, can anyone explain this to me why? <TabHost xmlns:android="http://schemas.android.com/apk/res/android" android:id="@android:id/tabhost" android:layout_width="fill_parent" ...

Access next,previous,play and pause of mediaplayer in android

Hello In my android application,i want to apply OnPause,OnPlay,Next and previous,volume increase and decrease events on mediaplayer. In the above image i just want to know how can i perform next,previous,play,pause events. Could anyone please let me know where i can find these? Please send me your valuable suggestions. Thanks in advan...

OBD2/CAN BUS problems with send commands

Hello I'm developing application (Android). This aplication is connected to OBD2 compliant vehicle /CAN BUS and read data from it. I've done succesfully connection using OBDKey and read data using OBD message format. This message format is mode + pin But now I have problems with CAN BUS How should I send command called message_id? W...

Periodically fetching data (polling) from the server in Android.

Hello All, I working on the app where I get the data from the server using rest call and add it to the view. I get all the initial data correctly. I use AsyncTask for doing it. Now I want to periodically (say 2 mins) fetch the new data from the server and add it to view.Periodically fetching data (polling) from the server in Android. ...

How to create Custom Broadcast Reciever

hi, I need to create custom broadcast reciever which will show me about any PHONE_STATE event occured. Thanks ...

How to branch a SAX parser depending on the first known tag.

I'm having hard times parsing multiple different XML files on Android using the built-in SAX parser. Nate and Aron Saunders have helped me with the right approach to this problem but I struggle in implementing it. You can read about it here. http://stackoverflow.com/questions/3583876/how-to-parse-different-xml-files-using-sax-on-androi...