In my app I am displaying a table where the individual cells are editable text fields (i.e. EditText objects). I am currently struggling calculating appropriate widths for these.
If I set the width to be as many "Ems" as the displayed text has characters, my fields are much to wide by about a factor of 2 and the table looks ugly and wa...
I am an android developer I have a problem..
I want to be get notified when the phone screen goes to sleep
PLease Help wiith a sample code.
...
Long story short: I'm trying to post comments and create issues onto Google Code via an Android App called Abugadro.
I followed a very similar piece of code here:
http://stackoverflow.com/questions/3254330/google-spreadsheet-api-update-edit-with-protocol
When trying to post a comment onto the API, I've gotten various errors like 403 ...
Being an Android newbie experimenting with GPS stuff I managed to put together this code and it works just like I expect it to except for one thing, the GPS icon never goes away. How can get the GPS icon to disappear when the activity is destroyed? I have
locationManager.removeUpdates(GPSMapTest.this);
locationManager = null;
i...
Hi,
I'm trying to display a message to the user some time after an event is received by a BroadcastReceiver.
public class MyReceiver extends BroadcastReceiver {
private Timer timer = new Timer();
@Override
public void onReceive(Context context, Intent intent) {
// Display message in 10 sec.
timer.schedule(new Messag...
main.xml<TabHost xmlns:android="http://schemas.android.com/apk/res/android" android:id="@android:id/tabhost" android:layout_width="fill_parent" android:layout_height="fill_parent">
<TabWidget android:id="@android:id/tabs" android:layout_width="fill_parent" android:layout_height="wrap_content">
<FrameLayout android:id="@android:id/t...
What is the final behavior of starting an already existed Activity?
If I set the activity's launchmode to singletop while does not set the activity's flag,
or I set the activity's launchmode to standard while set the activity's flag to Intent.FLAG_ACTIVITY_REORDER_TO_FRONT.
Thanks.
...
I'm trying to layer graphics one top of each other, like an icon over a background, with the second layer (icon) at a certain pixel offset from the top left corner of first layer (background). Since each layer will eventually have its own animation, I'm placing each in its own View.
For my implementation I have two ImageViews, one for ...
Hi all,
I want to change the network signal strength programmatic-ally in android..Even though signal is full i want to make it 50% or even 0%. Friends is it possible..?If possible please me how to do it..Thanks in advance..
...
How to know Android Phone is going to sleep? Please Help me with a sample code
I tried with the sample code but nothing is happening
Please Help me.
Thanks
My code is...
//ScreenON_OFF_ACTIVITY.java
package com.pack;
import android.app.Activity;
import android.content.BroadcastReceiver;
import android.content.Intent;
import android.c...
hi,
I want to develop an application that will periodically check whether Wi-Fi is enabled in android and depending on on the result it will take an action. Can anyone give me some suggestions regarding this?
Thanks
kaisar
...
What is the easiest way to - for instance when the search button is pressed in a ListViewActivity" - to open a keyboard and pass the input to the ListViewActivitiy when setTextFilterEnabled(true); is set?
@Override
public boolean onKeyDown(int keyCode, KeyEvent event) {
if (keyCode == KeyEvent.KEYCODE_SEARCH) {
...
I am using viewflipper for fling gesture recognition everything works fine for 2.0 and prior but in 2.2 and 2.1 it throws exception as "java.lang.IllegalArgumentException: Receiver not registered: android.widget.ViewFlipper" below is full debug trace.
java.lang.IllegalArgumentException: Receiver not registered: android.widget.ViewFlipp...
Hi all,
I want to enable and disable bluetooth in android programmatically..Please help me how to do this..Thanks in advance.
...
I have an imageView and want it to work like this:
ImageViewer visible
5 second pause
image view invisible
5 second pause
ImageViewer visible
and so on ...
How do I do that? I have tried sleep but it freezes the whole program in 5 seconds. I just want to affect my imageView.
...
Hi,
I'm about to create a lazy image loader for images both from device and from the web for a ListView.
I'm thinking of what to use and how, on one hand i can use a thread that pools my request (always running, and i can attach a view and an adapter and it will handle the image loading for me), cache my allready loaded images and checks...
Hi all,
I'm going to build an application that allows an Android to connect to other phone's DUN (dial-up) bluetooth service, to use this other phone as an internet modem.
It seems like dund is included into Android (i'm targetting at 2.1 -- not sure if it is actually included there?), so I wonder if it supports "dund --connect" comman...
Hi,
I have a simple ListView in my application. What I want to do on a row select is to expand it and show additional details in there and then if some other is selected then collapse the previous one and expand the new one.
I can modify the contents list item row in "onListItemClick" method. However how do I animate the change in heig...
Is there open code available for implementing a time selector like the one used in HTC Sense?
It's a wheel and the user can push it up or down to select higher or lower number.
If there isn't code available, how do I go about implementing it?
At best I would like to have a 59 beneath the 00 to be more like a real wheel.
...
I am changing the language in MainActivity.onCreate() like this:
Locale locale = new Locale("cs");
Configuration config = getResources().getConfiguration();
config.locale = locale;
getResources().updateConfiguration(config, getResources().getDisplayMetrics());
It works OK at first look, the layout is in he correct language. But when I...