Hello,
I'm a bit stuck as to the best strategy to achieve the following:
I've got an array of images, which I want to display in a Gallery.
I want each image to have a small icon overlayed inside it, on the bottom right hand corner (e.g. a light bulb).
When the user clicks on the image or the icon, the icon will change from the 'lighb...
I currently pop up a custom dialog with an EditText in it.
Currently the keyboard will only pop up when the user clicks "into" the EditText.
Is it possible to get the keyboard to pop up for the EditText as soon as the Dialog loads?
I have tried:
editText = (EditText) findViewById(R.id.EditTextd);
editText.setFocusable(true);
editText....
Hi,
Simple question - if I am developing and Android application that wants to access Amazon cloud (AWS services) - can you suggest me options?
More detailed for what I have done till now: I am trying to include existing AWS libraries for Java - but Dalvik does not support them all - finally the issue I am still not able to resolve is w...
What are the steps to create a keystore for android (in an eclipse environment)?
I need to use google maps in my app and I dont know what steps I missed.
Please provide me with the specific details steps (I didnt understand it from the guides).
Thank in advance.
...
HI all,
Client given me a particular area map image. Here i need to get the longitude and latitude of the location at the Touch point on the image.
Is there any way i can work on this issue. To get the location of touch point on the image programatically.
Thank you In advance
...
I am struggling with a memory leak associated with a ListView. I have created the following small program which exhibits this behavior.
What I do is create 2 LinearLayouts. The first has a Button and a GListView control. The code for GListView is below, but it just sub-classes ListView, and implements the ListAdapter interface. When...
So, I'm working inside the android framework classes (AOSP). Since I'm technically working on Cyanogenmod, I'm supposed to set the settings for my patch in an app called CMParts, which just throws the strings and ints into the system settings via Settings.System.
Unfortunately, down in the framework (non application) code, I don't have...
Hello,
I have the problem that my service which has the LocationListener implemented, receives a GPSupdate every 500ms it seems. No matter what minTime i put in the requestLocationUpdates function.
Piece of my code:
public class LocationService extends Service implements LocationListener {
LocationManager locMan;
@Override
...
I have a service on Android that listens and responds to packets it receives via multicast.
This works most of the time, but unfortunately, I'm finding that every now and again it'll just stop receiving packets. The thread remains blocked on the call to MulticastSocket.receive(), but nothing comes out. I've been slowly trying to track d...
I have a service which is listening to the phone. When the phone goes IDLE, I want to send a message to my Activity. It looks like I have two options to accomplish this. BroadcastReceiver and binding to the Service. BroadcastReceiver looked like an easier mechanism, so I tried the following test.
In my Activity:
@Override
protected...
I can get total available memory by:
ActivityManager activityManager = (ActivityManager) getSystemService(ACTIVITY_SERVICE);
MemoryInfo memoryInfo = new ActivityManager.MemoryInfo();
activityManager.getMemoryInfo(memoryInfo);
memoryInfo.availMem;
However, how do you get Total memory (RAM) of the device?
I did read:
http://stackoverfl...
Hello all, i have come into quite a funny hole here. i can't seem to be able to create a 2nd database table to my existing one. i basically want them to be of the same structure and the same of columns, in other words a copy of my existing table. my goal is to copy the values from my first table to the second table. The first table i cre...
Here's the setup:
I have an activity with a list of items (updated from server, represented by a plain java class). The items are rendered via a custom BaseAdapter and custom View for each row.
The items implement Parcelable, so that when the screen is rotated, the items are saved in the bundle as a ParcelableArrayList, then restored w...
In my WebView, I have some block elements that have a background color (different than white). However, the background color does not go all the way across the sky.. um, screen. Instead, it leaves a small white strip to the right, for where the scrollbar would go. Now, I want the scrollbars to appear only when scrolling (and fade away on...
Is there a decent mechanism for doing asynchronous I/O using sockets on Android?
I'm aware of the existence of nio channels, but they don't work for me because I need to be able to use MulticastSockets and BluetoothSockets, neither of which support channels.
I'm aware the answer is probably that there isn't one, but as this is a fairly...
Hi,
Under DDMS, there is a HEAP tab, and then I click my android application under 'Devices'.
But it said 'Heap updates are NOT ENABLED for this client'.
How can I enable Heap update for my android application?
Thank you.
...
Hi, i made my own application in Android that use compass and accelerometer sensors to display the degrees of rotation and inclination of my device. I initialized all the listener and objects i needed (i followed some tutorials), and now i can catch the degrees as i wished. The problem is that the measures that sensors return aren't accu...
I am attempting to make a ListView inside a table consume all of the available vertical space minus the space needed for an EditText control.
I have set every attribute I can think of here to make it work:
<?xml version="1.0" encoding="utf-8"?>
<TableRow android:layout_width="fill_parent"
android:layout_height="fill_parent"
...
Hi, i have used the following code to create table row
TableRow TRow = new TableRow(a);
TextView TxtViewProvider = new TextView(a);
TxtViewProvider.setText(gradeText);
// TxtViewProvider.setBackgroundColor(Color.RED);
if (bold == 1)
TxtViewProvider.setTypeface(Typeface.DEFAULT_BOLD);
TxtViewProvider.setTextColor(Color.BLACK);
...
Friend's
I'm using searching in my map search from database content using MatrixCursor,here i'm NumberFormat Exception in Android sdk version 2.2,
Here my code looks like
In my declaration i did
private static final String[] COLUMNS = {
_ID, // must include this column
SearchManager.SUGGEST_COLUMN_TEXT_1,
SearchManager.SUG...