android

Call forwarding

Hello, I would like to forward all calls to my number on to the new predefined number automatically. Is it possible to forward incoming call ? Probably it is possible for Froyo at least. I found application called Easy Call Forwarding. http://www.appstorehq.com/easycallforwarding-android-189596/app But many people reckon it dosen't wo...

when android sync completed, how can i cathc it's response

I am working in android sync , when I execute this method : ContentResolver.requestSync(accounts[0], ContactsContract.AUTHORITY, extras); I want to know that how can i catch the response when sync finisned. ...

Ways to notify activities of download completion

My application has an IntentService which runs periodically to download data from a remote server. The download task is run inside an AsyncTask which has reference to Application context only. The data downloaded is for entire application and is displayed across four different activities. When the download completes(AsyncTask completes)...

Android Broadcast vs Binder

Hi, i have an app with 9 services and one service which manages them and it is kind of hard to manage them all with binders. I only need to call a funtion with the alarmmanager and i'm thinking of just using broadcasts. So the alarmmanager sends a broadcast and a service receives it and calls its funtion. I don't need to pass data betwe...

How to change visibility of layout programaticly

There is the way to change visibility of View, but how can I change programaticly visibility of layout defined in XML? How to get layout object? <LinearLayout android:id="@+id/contacts_type" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="wrap_content" android:visibility="go...

Cannot display Toast from an Activity other than my main activity.

I have a Activity called main. If I call Toast.makeText(this, "Hello World from main", Toast.LENGTH_SHORT); this works fine. However, for every other activity in my application, I cannot display a Toast. No exception, nothing in the Log but I don't see the Toast. My main activity starts another one with an options menu: @Override pu...

How to identify Memory Leaks in Android?

I have developed a simple application before testing it i want to check whether any memory leaks are there in the application. I don't know how to identify the leaks in Android. I am using Eclipse IDE for development. Is there a good introduction into finding memory leaks in Android apps somewhere? ...

need help on setting gallery view corners have curved face.

friend's, I have a task to make an scrolled menu tab below header,i did it with the help of gallery where i get the menus from array and set it on gallery,where gallery have placed in RelativeLayout,is there any way to make the gallery corner's or ends to be have curved face. Thanks in advance. ...

Android: translate Animation works for the first time and not second time

Hi Friends, I want to animate a layout on touching the screen. If you touch the screen the layout containg buttons on it should translate down out of the screen and again on touching the screen the layout should come up into the screen at its original position. I am getting the problem,when I do it through programming. and It works whe...

Custom DatePicker

Hello everyone! I ve been stuck on a DatePicker problem for several and i can't seem to find any solution. I currently have a DatePickerDialog which fits quite well to my needs YET I also need to be able to hide / disable Both Day and Month field (in order to select a Month or a Year), I can't find any solution except implementing my o...

How to display a part of an image?

I have a large image. But i have to display just some portion of it. How is this possible using Android ImageView? ...

WebView with other View Components

Hi I want to display WebView with the other view TextView in Android application. The text view will be visible like an header. Thanks Deepak ...

Android: Cannot see video on HTC Hero 1.5

I am trying to play a video through my application. public class VideoScreen extends Activity { public MediaPlayer videoMediaPlayer = new MediaPlayer(); public void onCreate(final Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.videoscreen); SurfaceView demoVideo = (SurfaceView) fi...

Resource ID question

Hi, may I know is it possible I use the resource id but I didnt set the Content View in the activity? for example: abc.xml have one TextView id = "R.id.Text". Can I use the use TextView name = (TextView)findViewById(R.id.Text); method in the activity which was setContentView(R.layout.def);? P/S: sorry about my bad english, hope you guy...

how to handle bluetooth_RfcommSocket.cpp exception in android programme?

Hi, How to handle below any one of the exceptions in my program 08-12 15:34:27.943: ERROR/bluetooth_RfcommSocket.cpp(10940): connect error: Connection timed out (110) 08-12 15:34:27.966: ERROR/BluetoothEventLoop.cpp(7593): onGetRemoteServiceChannelResult: D-Bus error: org.bluez.Error.ConnectionAttemptFailed (Connection timed out) Reg...

when I sync contacts in android 2.1, how can i know a contactor is saved in db.

When contact sync is running that a contactor is saved, at this time , how I can catch this chance. I need help. ContentResolver.requestSync(account, ContactsContract.AUTHORITY, extras); ...

static gif not shown in webview for android >1.6

Hi, I'm just using a webview to show an static image with zoom controls and I realised that zooming works better with .gif images. Now that I'm testing my program in all api-levels I have discovered that it works properly in Android 1.5 and 1.6 but in newer versions I only can see a blank page with zoom controls. Anybody knows how to sol...

CountingInputStream,s method getCount() not giving any values.

hello guys, i am reading the bytes from binary file and now i have to get the index position of the stream and i am using CountingInputStream class and method getByteCount but this method returning me 0. Here is my Code. public void readIndex(InputStream iStream) { SwappedDataInputStream input; input = new SwappedDataInputStre...

How to add two map tangs in single xml file in Android

Hello All, I am creating tab bar in my application. For one tab i set map activity as tab spec content and add overlay on it. now i have to move on next map as user clicks on overlay. In short I have to create two layouts each on has map and at run time i have to set visibility and one after other. For that i create one XML la...

Android - Key Dispatching Timed Out

In my Android application I am getting a very strange crash, when I press a button (Image) on my UI the entire application freezes and after a couple of seconds I getthe dreaded force close dialog appearing. Here is what gets printed in the log: WARN/WindowManager(88): Key dispatching timed out sending to package name/Activity WARN/W...