Problem 1.
I have this class:
public class ContactGroups {
// Form an array specifying which columns to return.
String[] projection = new String[] { Contacts.Groups._ID,
Contacts.Groups._COUNT, Contacts.Groups.NAME, Contacts.Groups.NOTES };
public Cursor getList(Activity act) {
Uri contacts = Contacts...
I am working on a fairly basic screen layout for my first Android application and running into some issues. My goal is to have a TextView in the top left and top right corner, a large "hello world" TextView in the exact middle of the screen, and then a button at the bottom of the screen. My issue is, to center the "hello world" TextVie...
We're building an Android app with target SDK 1.6, so it will run on 1.6 devices and higher. We'd like to support Live Wallpapers, which we know is 2.1+ only. Is there a way to build one app with 1.6 SDK as the target, but detect if the device it's running on is 2.1, and only in that scenario call the live wallpaper API.
We're trying ...
Hi,
I have a content observer that polls content://sms/ in android 1.5 so that I get notified of changes in the sms database and can react to them accordingly.
However in 1.6 this doesn't work, has the uri been changed from content://sms/ to something else?
I have seen content://mms-sms/ popping up in the logcat on my 1.6 device but ...
Here's what I'm trying to run on Android 1.6:
package com.healthlogger.test;
public class AllTests extends TestSuite
{
public static Test suite()
{
return new TestSuiteBuilder(AllTests.class).includeAllPackagesUnderHere().build();
}
}
and:
package com.healthlogger.test;
public class RecordTest extends AndroidTes...
I'm writing an application which connects to a back office site. The backoffice site contains a whole slew of JavaScript functions, at least 100 times the average site. Unfortunately it does not load them, and causes much of the functionality to not work properly. So I am running a test. I put a page out on my server which loads the Fire...
hello all.
i want to acquire Android Device VRAM size.
Is there a method for acquisition from the program?
thank you.
...
I am trying to implement a code that uses the camera LED (Flash). It is similar to the torch applications that are available on the market.
I guess in android 2.1 and above this can be achieved by using FLASH_MODE_TORCH. Is there a generic way to do the same on android 1.6.
...
Hi
I want to make VCard manager in android for 1.5 and above . This application will be able to perform following functions:
1 Send and receive contact . I want that when i send a contact to any mobile it should get the save option to save the contact and if some send me a business card then i should be able to save it in my contacts. ...
I've narrowed down the problem to WebView; my application force closes every time. If I take out the WebView and put in a color change button or something, the case switching works and the application loads. I'm fairly new to the plaform, but I'm (mostly) copying directly from examples here for WebViews.
Application.java
package com....
Hello,
according to the official site, Android supports forward declarations from version 1.6 onwards.
Having adjusted the min SDK and target SDK requirements both to '4' in manifest.xml, the layout editor from eclipse is still complaining about unknown declarations in a relative layout:
<xml>
<CheckBox
android:layout_width="wrap...
Sorry that I'm asking such a question, but I'm tryin to make this one run for hours, and I'm not finding the mistake...
public class Main extends ListActivity {
/** Called when the activity is first created. */
ProgressDialog dialog;
@Override
public synchronized void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInsta...