My app runs in fullscreen fine, but when a alert dialog pops up the status bar flickers from under the fullscreen. Also when I try typing in the dialog popup it also makes the status bar flicker.
The funny thing is it worked before, but I must have changed something and I don't remember what.
To get fullscreen I am using this in the ma...
Hi, i have two projects in Eclipse: service and UI client.
In onCreate in UI client I have:
startService(new Intent(this, ExampleService.class));
but this fragment:
ExampleService.class
throws NoClassDefFoundError exception at runtime. I have installed ExampleService.apk, and ExampleUiClient.apk. Project compiles, and everything l...
I am writing an app for android phones and after my splash screen it shows an activity which has several spinners and edittext views.
On an android device without a keyboard it shows the virtual keyboard which then blocks the rest of the app and looks unprofessional to me. I have tried to hide the virtual keyboard in the activity.onC...
LinearLayout just works fine in an AppWidget. However, when I change the layout's xml to a TableLayout, I am unable to get the widget working :(.
Can anyone point me to a sample? [could not find anything on the web]
-Sri
...
My situation is the following: I have written one MapActivity class that is able to display a set of places as well as single places. On startup, the application creates an instance of this MapActivity and displays multiple places. If the user clicks on a certain place, then a new Activity is launched that shows the details of the select...
Hi,
I have an abstract Activity in an Android library (AbstractActivity) that is supposed to be used in other applications as the base Activity.
Since this Activity isn't supposed to be used directly, it isn't declared in the library AndroidManifest.xml file (the real reason is because the Activity is declared as abstract) and so I can...
I am looking for example for Google Search like home page widget from where user can type-in keywords to search within my app. Youtube video here.
I followed the tutorial at the dev guide. However, it lists the available RemoteViews, and there is no EditView. In such case how can I provide a editable text-box. I want to build a widget s...
I have an activity that extends MapActivty that renders out a marker. I would like the map to handle long clicks the same way the native Maps app does in finding the physical address of the geo point, displaying the address, then allow me to press the caption containing the address to view more details ie driving directions, what's near...
I'm dynamically generating a grid of EditText views in code based on a specified number of rows and columns. I want each of the EditText views to be the same width (e.g., 100dp).
Although I can set the size of the views with either setWidth or by creating a LayoutParam object, I only seem able to specify the value in pixels. I instead...
The only AsyncTask that I have that is working properly is one that handles a progressdialog for a search. None of my other AsyncTasks are getting to onPostExecute() even though the doInBackground() is completing! I am pulling my hair out because it used to work in earlier commits and doing a compare, I see no difference! A lot of the As...
How do you determine which input method is currently active - A user can change the input method (soft keyboard) by long pressing on a text edit field - From code, how does one determine which input method the user has chosen
...
I have a Service with a MediaPlayer which streams audio from the Internet but when I press the Home button and it goes back to the home screen it Force Closes. It's strange though because it works perfectly in the emulator and sometimes it doesn't Force Close on my phone (G1), when I've just turned it on.
This is my code:
public cl...
I have a layout that creates a ListActivity. Before displaying the ListActivity, I perform a database query, and then hook that data up to the List using a SimpleCursorAdapter.
All of this works fine on 1.6 and higher. On 1.5, the my function that performs the query successfully executes, but then a few seconds later a StackOverflowErro...
Is there a way to know which Intent Filter is responsible for launching an Activity which has two Intent Filters defined in AndroidManifest.xml? I want a slightly different set of logic, but not enough that should require a whole new Activity.
Thanks!
...
I've got a quite interesting issue when I try to display a ProgressDialog (the simple, spinner type) within a onPreferenceChange listener.
public class SettingsActivity extends PreferenceActivity {
private ProgressDialog dialog;
public void onCreate(Bundle savedInstanceState) {
ListPreference pref= (ListPreference) findPreferen...
This is my layout for an image capture program in android
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent" android:layout_height="fill_parent">
<SurfaceView android:id="@+id/surface_camera"
android:layout_width="...
Hi, I'm using this code to find my current location. But if I'm at home it can't locate me. But google maps and another similar applications can locate me although I'm at home. What is difference?
...
I am using the Android SDK icon-button for refresh (ic_menu_refresh) in a widget and I need to change the selection state when it is pressed. How is this done? Do I define an XML for the button?
...
G'day,
I'm trying to update part of a VBO with a call to glBufferSubData(). When I update from the start (0) of my existing shadow buffer, there is no problem, as the buffer starts reading from 0. The following will read 0 to y from the buffer and place it at 0 to y in the VBO:
gl.glBufferSubData(GL11.GL_ARRAY_BUFFER, 0, y, mPositionBu...
I want to show automatic checklist in android. For example I can have 4 list of item with unchecked check box adjutant to that.
After 5 sec. delay I want to check the first item then move on to second. At the end of 20 sec. I should have all 4 check box checked one by one.
Any idea how should I go on doing this ? I can use list view ...