android

Parsing problem in android

I got an exception "Unable to parse 53.6 as an integer". What is the proper format? double dbval; double temp_val=12; double p = 1.8; double fvalue =p; temp_val = temp_val * fvalue; temp_val = (temp_val + 32); String dbcal1=Double.toString(temp_val); dbval = Integer.parseInt(dbcal1); System.out.println("dbval"+dbval); ...

Error: View not attached to window manager

I am getting the following remotely from clients so I don't know what hardware etc they are using. java.lang.IllegalArgumentException: View not attached to window manager at android.view.WindowManagerImpl.findViewLocked(WindowManagerImpl.java:355) at android.view.WindowManagerImpl.removeView(WindowManagerImpl.java:200) ...

Android: How to avoid that clicking on a Notification calls onCreate()

In my application I notify the user with notifications, if something special happens: public void triggerNotification(String msg) { notificationManager = (NotificationManager) getSystemService(NOTIFICATION_SERVICE); Intent contentIntent = new Intent(this, ABC.class); Notification notification = new Notification(R...

Stream video From iPhone Or Android to RTMP

is there any way to Stream video From iPhone Or Android to RTMP Server using Red5?? i searched over internet and there is only 2 application that mange to do this successfully (UStream , Qik) the problem they closed source So if anyone could help me find some code snippets that make this possible ?? ...

HttpRespond always throws IOException

I want to send Parameters to PHP page and wait for receive String Respond but it always throws IOException when i pass this HttpResponse response = httpclient.execute(httppost); it try to execute both android device and emulator this is my fuction public String HTTPPostData(String url,String... params) throws IllegalStateException, ...

Android TableLayout: preserve column widths between different tables

I have two TableLayouts, one above the other, in my View. I want them to act as a single table for the purpose of calculating column widths, but appear separately with a gap between them (and the main View background showing through) for aesthetic reasons. Each table has 3 columns, and I want the column widths sized automatically depend...

Adding tabbar to application in Android

Respected All I know about how to add tab bar in android.when i click on particular tab widgets it opens that activity in frame layout up to this it is OK. But when i am redirecting to another page form that activity tab bar is not showing with that activity. I want to show tab bar on hole application. 1.can we open next a...

troubleshoot Android Application

After I launch my app, I see my startup activity with the title bar and a blank screen. After a long delay (about 8 seconds), I finally see my splash screen. This behavior is inconsistent....it can be a delay from 2 seconds (the time I specified in the code) to 8 seconds. Can someone suggest a plan to diagnose the issue? What tools ...

How to browse localhost on device, Android Networking

hi, I try to browse localhost on my htc magic. I have connected my device with eclipse via usb. browsing http://10.0.2.2 I get a "Page not avialable. I remember, some days ago it worked-.- but on the emulator I am able to browse localhost any ideas? regards ...

Bytearray of large size over AIDL interface

Is it recommended to send large amounts of data as parameter in AIDL interface.?I have a remote service that fetches the data using REST network calls and sends data over AIDL callback to caller. Sometimes the data fetched from network can be a image data which is several kilobytes. What is the best way to send the data to the caller.? ...

Android crash reporting library (pre Froyo)

Do you know any crash reporting library for Android? I don't want to spend a lot of time to write my own reporting system. The output can be send to the email or some kind of server. I know that Google introduced crash reporting in Froyo, but I want something for older versions of the system. -- Let's sum up the answers: android-r...

IO Error in Android

I am connecting to a php page via httppost in Android. I am getting an IOException. I am running in localhost. What is the reason for this? Please help. The code is like this. htClient = new DefaultHttpClient(); httpPost = new HttpPost("http://localhost/form/android_test.php"); response = new BasicResponseHandler(); try ...

Issue in Image scrolling vertically.

I have to load the view in webview by executing its url,and the two relative layouts there in Linearlayout i hide one at the time showing url in webview,it have scroll on both vertical and horizontal,the problem i'm facing here is it only scrolls horizontally only but i need to view it also in vertical also, here the xml code for layou...

Show animated image on Android

How do I show an animated image in Android? ...

Android Notification NullPointer

I want to create a notification and I have this bit of code that worked before but now gives me a null pointer at the last line. Any ideas as to what may cause this? I know it may be hard with this bit of code that I have provided, I just need a hint as to what could possibly cause this. private void showNotification() { CharS...

Launch activity when notification is clicked?

How can I resume my activity when a notification in the statusbar is clicked? This is the code I have, it shows the notification but when you click it nothing happens: public void showNotification(){ myNotificationManager = (NotificationManager)getSystemService(Context.NOTIFICATION_SERVICE); CharSequence Notificat...

How to get a list of favorite contacts with android sdk?

Hi everyone. The question is "How to get a list of favorite contacts with android sdk?". Now I am using android v1.5. Thanks. ...

Simultaneous record and playback

Hi,I'm writing an app for Android that uses the microphone while playing back audio, however as soon as the microphone starts recording the audio is routed through the earpiece instead of the speaker and becomes very quiet (You can test this by playing music, then opening an app that records from the microphone). I've tried using setSpe...

Load XML slowly

Can we load an XML file by slowly hiding the previous XML? I want a splash screen effect. ...

hdpi assets no longer loading

Hey. all, I'm in the process of up-scaling the graphics for my game for better display on higher density devices. I created the higher dpi artwork, added it to the correct place (res/layout/drawable-hdpi). I added the following to my manifest: <supports-screens android:smallScreens="false" android:normalScreens="true" ...