Am using Android 2.2 source code's following file- android_net_wimax_WimaxCommonAPI.cpp.
This file has a function -
void fun_IndDeviceStatusUpdate(WIMAX_API_DEVICE_ID_P pDeviceId, WIMAX_API_DEVICE_STATUS deviceStatus, WIMAX_API_STATUS_REASON statusReason, WIMAX_API_CONNECTION_PROGRESS_INFO connectionProgressInfo)
that has a particular...
Hi!
Is there a way to get ListViewItem height in code, when there is no actual items in list?
My ListViewItem layout:
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="?android:attr/listPreferredItemHeight">
...
</LinearLayout>
I have tr...
hey guyz,
How to grag an image around with touch screen in android....
...
Kindly help me to transfer incoming call to voice mail in android.
Thanks
...
Hello
I've connected to OBDKey and obtained data. I want immediately close my program when the vehicle is powered down(ignition turned off) How can I check that ignition is turned off?
...
Hi! I have some xml files, and I keep them in raw folder. Now, the problem is that I have to use them with variable name according to my application condition. But I don't know how to fetch them. The main thing is that I am not getting that how to give the path of my xml file in application.
For example:
My file application.xml is sto...
I can see the sd card in the file explorer with d--rwxr-x permission. When i tried adding any file to it it shows Failed to push the items. It is not adding even very small files.
Can you guys suggest how to fix this?
...
I have a simple HelloWorld Activity that I try to test with an Android JUnit test. The application itself runs like it should but the test fails with an
"java.lang.RuntimeException: Unable to resolve activity for: Intent { action=android.intent.action.MAIN flags=0x10000000 comp={no.helloworld.HelloWorld/no.helloworld.HelloWorld} }
at n...
I am implementing Localytics.com useage statistics in my Android app.
I am still just testing.
I note that just starting my app and then immediately exiting will register two sessions (as they are called by Localytics) in the live statistics.
I have followed the guidelines in Android Integration.
My app consists of a main Class of the...
I have an Android activity running with a custom view in it. When something happens within that custom view, I want to tell the currently running activity by changing one of the Activity member variables. Is there a way to access the current running activity member variables from within a custom view class besides passing the activity ...
I am beginner to Android programming and following the tutorails which is given in android developpeers site and while building my project using ant i am getting below error or build is failing.
C:\Documents and Settings\Administrator\Desktop\Android.K\samples\MyAppProject>ant debug
Buildfile: C:\Documents and Settings\Administrator\Des...
Has anybody meet such a problem? when using the bluetooth chat sample , it
says could not connected! i have tested the sample with two android2.1 mobile phone!
anyone who meet such a problem can share the solution?
the code just go to the socket.accept then it block,could not go !
...
I am confused about where Android services run. I know services marked 'remote' run in their own processes, but what about ordinary local services?
The reason I ask is I want two local services to cooperate but not be blocked by each other. So for example, Service1 manages a network connection and receives packets. On receipt of a pack...
Can I use progress bar in android, without the thread?
HERE IS CODE OF MY CURRENT WAY OF IMPLEMENTING PROGRESS DIALOG
// Adding Progress bar
String[][] data; //Global variable
//called on onCreate() or onItemSelected
final ProgressDialog myProgressDialog;
myProgressDi...
Hi there,
when I add a ViewFlipper, the UI thread seems to wait for the onCreate() method in the activity to be finished. Then it shows the second view. Why does it happen?
My current code is:
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main_menu); ...
Right now I'm trying to restart android wifi service after stopping it. I stop the service with the following code:
WifiManager wifiManager = ...;
wifiManager.setWifiEnabled(false);
This disables wifi when there's no lock on the wifi connection. But how do I restart the wifi service? My first approach was the following:
wifiManager.s...
HI all, do we hv page flip/turn animation in android?
i hv several images, and i want to flip iimages on button click. with page turn/ flip animation.
plz guide me to achieve it
regards
...
I have written a simple android application for auto-replying to SMS messages. It starts a service for monitoring incoming messages, then replies to them.
It works fine using the Elipse AVD as well as the 3 Motorola phones I have installed it on. I have been having problems with it causing problems with "com.android" processes on the 2 ...
i have an object that is used for calling callback functions ----- static jobject o;
i have assigned the callback function to that object through a pointer, env -----
o=env->NewGlobalRef(callback);
The same pointer, env, points towards the function CallVoidMethod( ) that uses JNI to reach to the java code.
env->CallVoidMethod(o, meth...
Why is this button changing color to orange when clicked:
<Button android:background="@android:drawable/btn_plus" ...>
but this one is not?
<Button android:background="@drawable/ic_btn_round_plus" ...>
Edit:
Found another type of button (text and image) that changes color to orange when clicked
without having to create a se...