Hi all,
I just tried to update to Android 2.2 on my Nexus one and it immediately switched to a screen with an exclamation mark within a triangle. I've tried holding down the home and the back buttons at the same time as I read elsewhere that this helps with rebooting the phone, but no dice. The phone was previously rooted before I tried...
package hello.android;
import android.app.ListActivity;
import android.content.Intent;
import android.database.Cursor;
import android.os.Bundle;
//import android.provider.Contacts.People;
//import android.provider.Contacts.Phones;
import android.provider.ContactsContract.CommonDataKinds;
import android.provider.ContactsContract.Contacts...
When the mobile screen locks, its shown a time and date widget.
I'm trying to how it using DigitalClock, but I can show only time.
Any idea how to show date either (with this or other built-in widget)?
--update
I found some pages talking about alternatives to Android Calendar, but I don't find Android Calendar widget nowhere..
...
My friend and I have a wireless robot dog connected to a wifi network
which our computer is plugged into. The computer is running an
Android emulator and we are trying to send a UDP packet to the
wireless robot dog. If the dog receives it, it should start sending
UDP packets back. The program we wrote works outside of the emulator,
and u...
Is there another equivalent of Timer for android which is thread safe?
Using the timer causes problems in my application while updating the gui, most of the time it complains that gui is being updated from another thread, i tried using handlers but that didn't fix the problem.
...
How to block outgoing and incoming text messages in Android. any help closer to this question will be appreciated. thank you.
...
I want a TextView which adjusts the font size so that the text in the view will automatically expand (or shrink) to fill the full width of the view. I thought I might be able to do this by creating a customised TextView which overrides onDraw() as follows:
public class MaximisedTextView extends TextView {
// (calls to super construc...
I have a TextView that is part of a ListView row item. In that TextView, i have some HTML rendered using Html.fromHtml(). I'm wondering if there is a way to do what is effectively an <hr> tag within the html so that it'll render a horizontal line in between 2 items within the TextView. is this even possible?
thx
Ben
...
I am trying to use this query to read the contacts on the SIM.
cur = managedQuery(Uri.parse("content://icc/adn")
,null
,null
,null
,null
);
The application has READ_CONTACTS and WRITE_CONTACTS permissions. Yet, the query returns an exception.
...
When implementing download function it work but during file saving to sdcard i get the following
Default buffer size used in BufferedInputStream constructor. It would be better to be explicit if an 8k buffer is required.
Also IO Exception occure
W(14495:0x389f) java.io.FileNotFoundException: /sdcard
W(14495:0x389f) at org.apa...
I want to more easily be able to create an application and test it. Is it possible to build it right on the HTC Evo phone?
...
Is there an easy method to send the app to my phone or do I have to do it using debugging from the development computer while being connected to the phone?
Also, do I really have to sign, version, prepare and publish the application before I can actually use it on the phone? Or, can I use it on just my phone without publishing it to th...
I am working on an Android app that has multiple screens the user will need to navigate between and I am curious what the best practices are when switching between those screens. I am torn between creating a new Activity for each screen and simply changing the view (setContentView(R.layout.whatever)). The screens all share at least som...
How would one go about setting the homescreen wallpaper from an image on the SDcard?
i.e.:
try {
wallpaperManager.setResource("/sdcard/wallpaper/olive.jpg");
finish();
} catch (IOException e) {
e.printStackTrace();
}
hasn't worked, returned an error: 'The method setResource(int) in...
I just wrote a little game for droid. I was thinking I would put some put some adds in it and release it for free and maybe I'd make a buck or two.
I'm wondering what I need to do before I sign up for this.
First, I live in Canada. I assume there might be some sort of problem getting paid from the US?
I do not have a company. Can I ...
i'm sending an http request to the google reader api and getting an unusual response code. following the documentation, i've requested an auth code and included it in the header of every request. after performing the login, and getting an auth code, i tried accessing this url, which is part of the documentation:
http://www.google.com/...
I have a ListView with a custom list adapter. In the getView() method, am using the ViewHolder 'pattern' as shown in the API Demos for ListView14.java. When i first render the list it seems to load correctly. However, the issue i'm running into is that when i scroll the list, i'm seeing the data for the list show up in the wrong rows ...
Hello, I'm looking for some input on how to go about a problem I have. We have a device that has binary data that it needs to send out (they are mainly just symbols, but in a custom binary format) over ethernet. I need to intercept this data on the phone and display the symbols over google maps. I'm just wondering the best way to go abou...
I have the following code in an Android application for receiving the information sent by a bluetooth device:
BluetoothAdapter mAdapter = BluetoothAdapter.getDefaultAdapter();
BluetoothServerSocket bssock = mAdapter.listenUsingRfcommWithServiceRecord("Dummy", UUID.fromString("00001101-0000-1000-8000-00805F9B34FB"));
BluetoothSocket bs =...
Hi All,
I am developing a Twitter client application. As with other twitter clients, I would like to display the relative time of tweet with respect to the current time. I am using a list view and a Simple adapter that binds to an arraylist which stores the tweet information. If I calculate the relative time and store a string, I will b...