android

how to highlight selected item in expandable list as a header top of screen in android?

public class SimpleExpandableListAdapterwithwebitem extends BaseExpandableListAdapter { private List> mGroupData; private int mExpandedGroupLayout; private int mCollapsedGroupLayout; private String[] mGroupFrom; private int[] mGroupTo; private List<? extends List<? extends Map<String, ?>>> mChildData; private int mChi...

[Android] Is it necessary to give each Widget (TextView, LinearLayout...) an Id?

I mean widgets that are not going to be touched through program code. ...

Android Timer within a service

I am having problems running a timer in a service I have created. The task that the timer calls simply isn't called. I know that the service starts as I have put toasts within it and they are called, but not when they are within the timer. Help appreciated. service class: public class LocalService extends Service { private static T...

How can I prevent my TextView from overlapping?

How can I prevent this overlapping from occurring without reducing the font size? Here is my XML: <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent"> <TextView android:id="@+id/na...

Android: Permission denial on BroadCast SMS intent

Hello All can my activity broadcast this intent from itself Intent i = new Intent("android.provider.Telephony.SMS_RECEIVED"); sendBroadcast(i); I am able to send this broadcast and receive it back (from a broadcast receiver setup in the application) , but this is not a global broadcast , i.e. it is not received by the defaul...

Android apk genration

Is it possible to genrate .apk file from our application? If yes Then pls give me some guidance ,Thanx in advance. ...

Android Keyboard Layout

I have read softkeyboard application, and ihave one application in which the user can dynamically change the layout of keyboard and save it and it contains multiple languages so it is possible with softkeyboard application . iS U HAVE SOME IDEA THEN GIVE ME GUIDANCE ,THANX IN ADVANCE ...

ANDROID: If...Else as Switch on String

I'm writing an Android app for work that shows the status of our phone lines, but thats neither here nor there. I make a call to one of our servers and get returned JSON text of the status. I then parse this putting each line into a SortedMap (TreeMap) with the Key being the name of the line and my own class as the value (which holds st...

Stop Dialing Programatically In Android

Hi, I am using the following code in android for dailing programatically. try { Intenet callIntent = new Intent(Intent.ACTION_CALL); callIntent.setData(Uri.parse("tel:123456789")); startActivity(callIntent); } catch (Exception exception) { log.e("dialing-example", "Call failed", Exception); } But how can i stop Dailing...

Blackberry development

I'm currently working on a consumer mobile application project and have read that 40% of smart phones in use are Blackberry's. This seems very high and surely shouldn't be ignored for development. I understand that the type of application is relevant here, but has anyone found themselves considering adding Blackberry development to a pro...

Pinch Zoom in webview [Android]

Hello On my website, which is loaded in the webview, there is a map. There are also java scripts that detects double tap for zoom, dragging etc. But is it possible to have a javascript that detects the use of pinch zoom ? there are several examples of it working on an iphone, and on my website there is a script for the pinch zoom but it...

Android 2.2 GetThumbnail returns incorrect Bitmap

I'm using the MediaStore.Video.Thumbnails.getThumbnail() method to fetch thumbnails for files that I am displaying in a list. This works well to begin with, but after a while the thumbnails that I get back are not the ones that match the file. Once GetThumbnail() starts failing it seems to return only the same Bitmap over and over agai...

How to load an XML inside a View in android?

I am having a class that extends View. I have another class that extends activity and I want to add the first class to be loaded inside the activity class. I tried the following code package Test2.pack; import android.app.Activity; import android.content.Context; import android.os.Bundle; import android.view.View; public class Test2 e...

syncing facebook friends with Contacts - Android

Facebook and Twitter made a sync option to sync my contacts list with my friends, so when I click on one of my synced contacts from the regular phone app, I get to see their last status, pictures, etc. I would like to use this data from fb and twitter instead of building the sync process on my own, for both fb and twitter. because they ...

How to pass String argument?

I am having problem while passing string argument using javascript injection in my android application.. I am using the webview.loadUrl("javascript:(function() { " + " document.getElementById() , but m not getting the exact output.. I want to connect my login form (locally created) with website, so that whe...

Android layout help

Hi there. I have a list view and I have to design a row layout to be used in adapter. The layout is like this. First column we have an icon on left most side. Second column we have a string of about 4-30 characters Last column, the date with time. I tried to design in relative layout but it gave issues like the last two columns' st...

Clean in Eclipse temporarily destroys Android project with error message: missing required source folder: 'gen'

I am experiencing an annoying problem with an Android project in Eclipse. All my other Android projects are okey (at the moment). Whenever I perform a clean (Menu:Project->Clean...) the project gives an error and I can't compile/run the app. The error is: Project 'Project Name' is missing required source folder: 'gen' As soon as I edit...

Need advice on .NET webservice method from Android application

Hi, I am accessing .NET webservice methods from my Android application using Java SOAP jar. I am getting response for a specific webservice method as an array . Do we have an API within the Java SOAP library to convert the response from array to XML(String) ? Also , since using the external SOAP jar is around 90 KB in size , would lik...

How to assign a method to the button?

The question seems quite stupid, but I spent quite a lot of time trying to solve it successfully. The problem is that Eclipse IDE throws me a various number of different errors if I try any solutions that I used in normal Java. Another thing is that just after implementing an interface I receive an error, and Eclipse change my class to a...

adb push command failing permission denied, Read only

Hello for Android developers, I am working on a project to extract the pictures taken from the Android camera and display. Let me be little descriptive: I have 2 points to be clarified: 1> whether the concept I am following is correct? and 2> If yes, the problem in the subtask related to adb needs to be solved. Let me write the steps...