Looked at other posts but, haven't seen the answer I'm looking for...
I have two layouts: layout-port and layout-land.
If I run the app with emulator or device, either vertically or horizontally, the app runs fine with the correct layouts.
However, if I rotate either the emulator or device, the app exits. There's no crashing, perse',...
The Google doc's cover every one of the sensors except the temperature sensor, but continue to say that you can access that data...........it's aggrevating as heck, the doc's are very good in some parts and very bad in others.
I have no problem getting the data from the other sensors so I'm quite sure my code is good. Would love some i...
ok i have a list activity in my application
i have tried to make it so that when a list item is selected to show the selection the background of the view should change. but now when i select one item, the item does get selected but the back ground of random listitems changes at the same time, but the selection is still correct
please te...
Hi,
I am creating an Android application for a customer which will be pre-installed and distributed together with the handsets. Now the customer asked me to lock down the ROM to prevent the future users from using anything else apart from this one app. I.e. no browsing, no email, nothing which could create any costs etc.
Now after some...
hey guys i am developing a final year location-based project(gps) in android.I have to create a server using php and mysql which contains name and location(in latitude and longitude) of important hospitals in Mumbai.The android client should be able to retrieve the the latitude and longitude of locations in mysql(external) database and t...
Hi, I am little bit ashamed to ask, but nevertheless...
I am a complete novice to Android, just installed the SDK and ADT Eclipse plugin.
What I was trying to do is a simple "Hello, World" program. I am using the 2.2 (8) API.
Here's my code:
package com.example.hello;
import android.app.Activity;
import android.widget.TextView;
impo...
i need to make a timer service and bind it to an activity... i cant do it...
can someone share an example of such a thing or a tutorial...
ive already gone through
http://developer.android.com/resources/samples/BluetoothChat/src/com/example/android/BluetoothChat/BluetoothChatService.html
and the adnroid developer documention guide
please...
I would like to get height too if possible.
...
Hello,
I'm trying to place a set of Checkboxes within the same RadioGroup in a tabular fashion.
Something like this:
[Check1] [Check2]
[Check3] [Check4]
I tried to have a couple of TableRow objects within the RadioGroup, but that removes the "group behaviour" and allows more than one Checkbox can be selected at the same time.
I...
I'm building a test version of an app for a client. Part of this app uses a WebView that calls out to a SSL-based site. In turn, the client has provided a test domain where the certificate name does not match the FQDN. Alas, they are not in a position to provision a cert that matches. :(
I'm working around this issue on the companion iO...
Hello there, from what I can incur out of the SharedPreferences documentation, I can update a preference, add one or clear all preference values in a shared preference file.
But I want to completely clear everything inside a shared preference file, not just the values, but the preferences they refer to as well.
...
Hi,
I'm just beginning Android development, and I'm working to get a Custom listview with a checkbox working. I've created a base class that extends Activity, Created an Adapter and overrode the getView() method to add the checkbox to the listview. I'm assuming I need to do this because I need something equivalent to didSelectRowIndexAt...
I have made an app that sets notifications in the drop-down status bar of Android phones. However, there is a bug in my code (sometimes the notifications are set, sometimes they are not). I want to be able TO CHECK (in the code) IF THE NOTIFICATION IS VISIBLE TO THE USER. (i.e. can the user see the notification in the status bar?).
How...
Is there any way that I can link a keyword in a TextView to a file or directory on the user's SD card? My app produces stack trace files when it crashes and I want the user to able to click a link in my About dialog to view either the latest one or the folder containing all of them. (Something like "If this app crashes, please send [link...
This happened to two programs of mine now and makes absolutely no sense. It usually comes about when I'm adding a resource file (in this case, a menu). In the package explorer:
-the project name has a small red x, indicating that there is an error in one of its files
-none of the sub-folders or files have an x or show any red highlights
...
This app has multiple activities: eg: Activity1 -> Activity2 -> Activity3. If the app is opened after the Home button is used while in Activity2, the app returns to Activity2, but the desired functionality is for the app to always start with Activity1 from the launcher. Adding a finish() to the onStop() for Activity2 does cause app to st...
hi,
I want to develop an android application that will be able to launch tcpdump. Can any one give me any suggestion regarding this issue?
thanks
kaisar
...
I have a similar problem to this question, but slightly different. I have compiled a .so library to use with JNI. Because it is large (15 MB), I am putting it on the SDCard instead of in the standard application place.
The file is called libSample.so and it's located at /data/library/libSample.so
I load it in a static initialization ...
Is there a way to animate drawables on a canvas using the android built-in animation classes?
I’ve been modeling my test application, a game, after the example apps lunarlander and jetboy. They contain a lot of reusable code, but they manually update the drawable objects in real time. It seems like using the android animation built in...
When I run this code from Java project it works fine.
InetAddress ia=null;
try {
ia = InetAddress.getByName("www.google.com");
} catch (UnknownHostException e) {
e.printStackTrace();
}
System.out.println(ia.getHostAddress());
When i try the same code from emulator (already tried few versions) I'm gettin...