android

android apps that alter normal phone operations

hi, so i was wondering if its possible to for an application that i would write to be constantly running in the background and alter regular phone operations. For example this could be something like as soon as you receive a text from anyone you forward it automatically to another number. Is something like this at all possible? Just t...

how to hide image after a second in android

Is there any way to hide a image after a second or given time in android application? thank you ...

custom layout manager

Im planning to build my own custom layout manager. What i wanted to know was if there is any other way to build one apart from extending the View class, coz this is the only approach i know for now and would like to know if there is any other way to do it?? ...

notifyDataSetChanged(); source not found exception?

friends, i have problem in calling notifydatasetchanged(); it is giving me exception source not found can any one guide me what mistake am i doing? if i assign data on create it works fine. but in case of updating list it wont. any help would be appriciated. private static EfficientAdapter adap; //global variable @Override pub...

Intent action for network events in android sdk

Hi.. I am need to receive broadcast for network actions like network connected, disconnected etc. I am using a broadcast receiver for the purpose. Can any please tell me which intent action I need to capture for network events, right now as per my search on internet I am using android.net.ConnectivityManager.CONNECTIVITY_ACTION. Here ...

Android : Why BroadcastReceiver crashing ?

I have this Broadcast receiver registered public class NotifyAlarmBroadcast extends BroadcastReceiver{ public Context context; public static final String NOTI = "android.intent.action.MAIN"; // actually i want NOTI = "com.sumit.timekeeper.NotifyAlarm" // this too is not working // help me here please @Override public void onRec...

Simulating vibration as when receiving a call

So I am trying to simulate that the phone is receiving a call. I have successfully extracted the phones ring tone and played it. Now I want to simulate the vibration. While I can make the phone vibrate, I want to emulate the exact pattern that the phone vibrates with as when it receives a call. Is there some setting or class that I can u...

Issue with displaying TabHost Layout in new Intent

Dear Android folks, I am having an issue with using TabHost in a new Intent of type TabActivity which I hope you can point me in the right direction. Funnily it works fine when I try to view it in the original Intent : setContentView(R.layout.main) I get a "forced closed" and within logcat, I get the following error even though my Ta...

How to replace PhoneWindowManager

Is it possible to replace com.android.internal.policy.impl.PhoneWindowManager with my own implementation (actually I would like to make a small modification on the current one)? ...

How to determine the View size right after Activity has been started

Hello there :) I want to do some data processing (in a thread) right after my main Activity starts. For that data processing to be started I also need to know a visible size of my main View (which is a LinearLayout currently, but whatever). I wonder how to do that. I.e. I wonder what is the entry point (callback?) I should use to be su...

How to align toast in android

Is there any method to align toast message in application.By default it always appears at the bottom of application. i did it like this... Toast.makeText(this, "hello !", Toast.LENGTH_LONG).show(); Thank you ...

How can I extend Calendar on Android?

I mean, is there any way to add more functionality add/remove events synchronize with other then Google calendars/formats (authorized) ...

requestRouteToHost IP argument

For checking internet access on device I use requestRouteToHost function, but it's second argument has integer type - what i has to put in it? Is it int-view of IP like [1] function makes? I think there is more simple way by using default android functions. Can somebody tell me? [1] --> public static Long ipToInt(String addr) { ...

Showing animation to call function in android

Hi, is it possible to show any animation when i call a function in same class in android? In my application, i called a function "doAddition" so many times.And i want whenever i call this function, it shows some animation. Thank you ...

how to get city name from latitude and longitude values in google map android?

dear friends, i want to obtain city name in google maps if i have lat,long values of town or area? i tired using lat,long i get country but dont know how to get city name. any help would be appriciated. ...

lat long varies frequently

i am developing an application which find current latitude and longitude.but this latitude and longitude is varying frequently while my device is static.how i can remove this issue? ...

serializing to file on fly effectivly

Hi all, i`am asking a new question, since the previouse one was in another purpose(the one on serializing) I have a list of items which r binded to database, and i want to serialize the database rows to file (on runtime!!), and in the future to deserialize them. now as we know, i have to go through all the rows in my database and crea...

Which activity handles Intent.ACTION_CALL_PRIVILEGED?

I've been digging for awhile into the source of the Contacts app on Android to find out which Activity handles Intent.ACTION_CALL_PRIVILEGED. Unfortunately, I couldn't find its source code. Does anyone know how it's called, or even better where I can find it's source? Thank you! ...

Getting the available languages of the application dynamically

Is it possible to find dynamically what are the languages supported by the application? For example, I have strings for the following languages: English, French, Dutch and German. They are defined in their corresponding res directories: values, values-fr, values-nl and values-de. I want to give the user the possibility to choose between ...

How to disable onItemSelectedListener to be invoked when setting selected item by code

Hi there! Just wondering how you handle the following problem: a result is calculated depending on two spinners' selected items. To handle the UI things, i.e. a user picks a new item in one of the spinners, I install a listener using setOnItemSelectedListener for the spinner in my onCreate() method of the activity. Now: that works, of ...