I'm not sure what's wrong here, all i want to do is randomly grab an item from my array. Which is just like a random sentence. Then generate another once the button is pressed. All my code looks good to me but it's causing a crash when i hit the button. any ideas?
package com.my.package;
import java.util.Random;
import android.app.Ac...
I have a listview that's using a custom adapter. I want to dynamically show/remove items from the listview. I've tried everything inside the getView() method in my view adapter. I've tried doing setVisiblity(View.GONE) on the view I'm returning. And it infact doesn't draw the view, but it allocates space for the view and it's just a blan...
Does this exist? I need to make a TextView which is always uppercase.
...
is anyone have an idea how to make tabs like the nexus one tabs from the weather/news app, and i mean the functionality which by flick the screen you could go to the next tab, Thanks
Video: http://www.youtube.com/watch?v=hIu6kCnZVF0
...
I would like to define the following layout (which is currently an xml file) dynamically in my code.
The end goal is to have the ability to conditionally include certain pages in my viewflipper.
Thanks!
<?xml version="1.0" encoding="utf-8"?>
<com.gtosoft.dash.MyViewFlipper
xmlns:android="http://schemas.android.com/apk/res/andro...
can we use JWNI API to develop dictionary for android platform using java?
...
Geocoder getFromLocationName is not returning anything if I'm searching for business places. Here are my finding so far:
grocery places, commercial buildings -> no result
schools -> finding results, but only returning Latitude and Longitude. I have to do reverse geocoding in order to get the address based on the coordinates, but the ad...
Hello, I am trying to do what I think is a fairly simple task to authenticate a user on my server. I am using AsyncTask as a private subclass of my Activity, however when I try to populate the user object after authenticating it keeps setting it to null. Is there something strange in how the onPostExecute() method is called that is causi...
Android 2 buttons are defined in xml
AbsoluteLayout.LayoutParams
Using the two buttons was placed overlapping each other.
param1 = new AbsoluteLayout.LayoutParams (LayoutParams.WRAP_CONTENT,
LayoutParams.WRAP_CONTENT, 10, 20);
param2 = new AbsoluteLayout.LayoutParams (LayoutParams.WRAP_CONTENT,
LayoutParams.WRAP_CONTENT, 10, 30);
bt...
So I cant figure out how to perform an onClick on my ListAdapter. Here is my code:
private void fillData(){
Cursor constantsCursor = db.fetchAllGames();
ListAdapter adapter =
new SimpleCursorAdapter(this, R.layout.row,
constantsCursor, new String[] { "title", "console" }, new int[] {
R.i...
This seems like a basic question, but after searching for a while and playing with it, I've come to the point where some help would be appreciated. I would like to have a SensorEventListener run in a separate thread from the UI, so that computations that need to occur when events come in won't slow down the UI.
My latest attempt look...
I am having a lot of problem getting Eclipse with Android plug-in to work on Windows 7 64K. I am getting eclipse not responding a lot. It seem to happen pretty randomly. I know that Windows 7 is currently not support for Android SDK.
However has anyone got this to work ?
I am using the following:
- Windows 7 64K
- eclipse galile...
Hello everyone,
I can draw overlay items onto google maps just fine, an image that looks like:
______
| |
______
\/
Where the "\/" part is the "pin" that marks the lat/lon on the map and a picture in the middle of it. My question is, is there any way to expand this when the user clicks on it? I'll of course have to change this...
Android 2 buttons are defined in xml
AbsoluteLayout.LayoutParams
Using the two buttons was placed overlapping each other.
param1 = new AbsoluteLayout.LayoutParams (LayoutParams.WRAP_CONTENT,
LayoutParams.WRAP_CONTENT, 10, 20);
param2 = new AbsoluteLayout.LayoutParams (LayoutParams.WRAP_CONTENT,
LayoutParams.WRAP_CONTENT, 10, 30);
bt...
Please help me with finding sufficient documentation/explaination of Android WindowManagerService class?
or in general Android Windowing System.
...
i want to add some options when a user presses the menu button, i have tried the following but nothing seems to happen when i run the app and press the menu button:
the menu xml file
<?xml version="1.0" encoding="utf-8"?>
<menu xmlns:android="http://schemas.android.com/apk/res/android">
<item android:id="@+id/Map_vi...
I am in my fourth activity and I want to come back to the first activity directly (without closing the second and third activity).
How to change to the activity directly?
...
Hi,
I want to have a class "Utils", that will have several methods used all over my code. For example, I have a top bar with a textview and two ImageButtons that must display different texts and icons on different activities.
I find myself writing stuff like this on every activity
(TextView) topBarText = (TextView) findViewById(R.id....
Does anyone know of a simple example that uses the CursorAdapter? Here's what I'm doing now and it's crashing with a RuntimeException. I'm sure it something simple I'm missing given that I'm a newbie and can't find any simple examples of a ListView that uses a Cursor.
Thanks,
...
public final class MyListActivity extends ListAct...
Hello all.
I've an app already in the market that I'm proud of. It's called the hytech game of life. The core of the game is set up on an activity and a view, and the logic is run through the view.
I'm mostly happy with how it works but there's a few things that just are starting to get in the way of what I'm doing. I'm seeing slow...