Hi everyone, My context menus are not registering when called. In
addition setOnItemClickListener is also not working. Any ideas why
this is happening?
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
I have a tab activity with three tabs and I want to display a listview
in each tab. The list populates correctly, but for some reason I can
not get the context menu or itemclicklistener to recognize gestures on
the listviews. Anyone have any ideas why this might be? Below is my
onCreate
Android source and specifically Activity.java:
3604
Just a guess :)
On Jan 5, 4:02 pm, JasonMP hyperje...@gmail.com wrote:
Ok, I tried gino's idea with initializing my arrays differently. I
also changed there names so that they did not share a name with any
other arrays in my app: Did
is null when it should be instantiated. Perhaps
the intent is started quicker or without the bundle somehow so you get
a nullpointer exception?
On 31 dec 2009, 15:57, JasonMP hyperje...@gmail.com wrote:
yes, Select.class is another one of my files. throughout my app there
are a few
the part of the program you're interested in.
*
On Wed, Dec 30, 2009 at 11:32 AM, JasonMP hyperje...@gmail.com wrote:
Ok, I'm suddenly very curious by your previous statement stephen about
the possibility of creating an infinite loop. Upon a little more
investigation I'm now getting errors
This is bizarre.
It works fine from the OnItemClick() of my OnItemClickListener
attached to my ListView. Just not inside the onContextItemSelected.
*scratches head*
On Dec 31, 9:57 am, JasonMP hyperje...@gmail.com wrote:
yes, Select.class is another one of my files. throughout my app
Anyone know what would cause this error?
12-30 10:26:50.858: ERROR/AndroidRuntime(921): Uncaught handler:
thread main exiting due to uncaught exception
12-30 10:26:50.928: ERROR/AndroidRuntime(921):
java.lang.RuntimeException: Unable to stop activity {com.mallet.dtool/
com.mallet.dtool.Sheet}:
Eclipse)
On Dec 30, 8:39 am, JasonMP hyperje...@gmail.com wrote:
Anyone know what would cause this error?
12-30 10:26:50.858: ERROR/AndroidRuntime(921): Uncaught handler:
thread main exiting due to uncaught exception
12-30 10:26:50.928: ERROR/AndroidRuntime(921
don't want to
share... just make what you post generic enough so we can see the construct
of your whole activity.
all the best, steve.
On Wed, Dec 30, 2009 at 10:10 AM, JasonMP hyperje...@gmail.com wrote:
Yes I'm using eclipse. I use the debugger and when I hit that point
in my app i get
String[]{//DB columns};
int[] to = new int[]{//Layout Elements};
SimpleCursorAdapter items = new SimpleCursorAdapter(this,
R.layout.item_row, c, from, to);
aList.setAdapter(items);
}
}
On Dec 30, 1:41 pm, JasonMP hyperje...@gmail.com wrote
as the new activity receives focus is
crashes.
On Dec 30, 1:58 pm, JasonMP hyperje...@gmail.com wrote:
package com.mallet.dtool;
import android.app.AlertDialog;
import android.app.TabActivity;
import android.app.AlertDialog.Builder;
import android.content.DialogInterface;
import
Hello,
I'm getting some odd side effects when I set a header to my
ListActivities. The ListActivity actually allows you to scroll up
behind the header and click...which sends my app into a fit of
errors b/c my Lists are connected to a Cursor and selecting behind the
header returns a value of -1.
Hello,
I'm attempting to create and display Spinner view and an EditText view
when the user hits a button. I can create these with .addView, and
assign Ids with .setId() but then how would I call .getSelectedItem
() or .getText() on them?
Heres some of my code:
attrLayout = (LinearLayout)
Hi,
Essentially I want to achieve ' android:numeric=signed '
programmatically. I've looked at the setKeyListener method but feel
that I'm missing something and shouldn't have to recreate the wheel
here. Is there a simple way to do this?
--
You received this message because you are subscribed
): ... 11 more
On Nov 23, 8:46 pm, Mark Murphy mmur...@commonsware.com wrote:
JasonMP wrote:
Well the console view in eclipse spits this out when I start the
emulator:
ActivityManager: DDM dispatch reg wait timeout
ActivityManager: Can't dispatch DDM chunk 52454151: no handler defined
...@commonsware.com wrote:
JasonMP wrote:
Well the console view in eclipse spits this out when I start the
emulator:
ActivityManager: DDM dispatch reg wait timeout
ActivityManager: Can't dispatch DDM chunk 52454151: no handler defined
That is not DDMS. That is the console, roughly equivalent
on it?
Mihai Fonoage
On Nov 22, 1:38 pm, JasonMP hyperje...@gmail.com wrote:
Hello, I'm testing some code from a demo found in a forum and I'm
getting some strange results. My goal is to be able to allow users
to
access the pictures on their device to choose an avatar
Hello,
I was poking around in the documentation for the simpleCursorAdapter
and I read that if the simpleCursorAdapter doesn't identify your
images as resources it will assume they are URIs. My question is how
do i retrieve the URI for an image placed into the asset folder of my
application?
--
Well then I am probably doing this the wrong way. Essentially what i
want to accomplish is for a user to be able to select a picture from
the sdcard as an avatar/logo/profile pic/etc and have that image
reference stored in my database. Is there an easy way to do this?
On Nov 23, 3:05 pm, Mark
Hi,
I'm a mess.
I'm using the blow code to open the gallery and grab an image for an
incon im gong to store in a database and access later to populate a
listview attached to a simpleCursorAdapter.
//inside contextmenu
Intent intent = new Intent();
it there. I knew about using the logcat to
view errors in the emulator, is there a way to do that when I'm
testing on the phone? Its an HTC G1 btw.
On Nov 23, 8:13 pm, Mark Murphy mmur...@commonsware.com wrote:
JasonMP wrote:
Hi,
I'm a mess.
I'm using the blow code to open the gallery and grab
Hello, I'm testing some code from a demo found in a forum and I'm
getting some strange results. My goal is to be able to allow users to
access the pictures on their device to choose an avatar/logo. This
code run flawlessly except that I only get a handful of images on the
phone. And its not
Hi,
I'm having trouble retrieving image references from my database and
then setting them to an ImageView. When I pass R.drawable.icon into
my database its compiled and stored as an Integer. how would I then
pull this Integer out and use ImageView.setImageDrawable(); ???
--
You received this
Nevermind, got it.
On Nov 21, 9:56 pm, JasonMP hyperje...@gmail.com wrote:
Hi,
I'm having trouble retrieving image references from my database and
then setting them to an ImageView. When I pass R.drawable.icon into
my database its compiled and stored as an Integer. how would I then
pull
Its ImageView.setImageResource();
On Nov 21, 10:01 pm, JasonMP hyperje...@gmail.com wrote:
Nevermind, got it.
On Nov 21, 9:56 pm, JasonMP hyperje...@gmail.com wrote:
Hi,
I'm having trouble retrieving image references from my database and
then setting them to an ImageView. When I
Hello, I have a database that will be editable inside my android app.
I'm having an issue where when a row is deleted, its spot in the
autoincrement array is still taken, and subsequent entries into that
table pick up after that number. This leaves me with a list of rows
whos autoincrement id
, null);
i++;
}
while(i = rowCount);
if my autoincrements skips numbers then I can get an error trying to
update a row that doesn't exist.
On Nov 20, 8:47 am, Mark Murphy mmur...@commonsware.com wrote:
JasonMP wrote:
I need my rows in my
database to stay ascending and in increments of 1
if there wasn't a work around. I had read that deleting
the table row from the sqlite_sequence table would reset it, however,
this didn't seem to work for me.
On Nov 20, 10:11 am, Mark Murphy mmur...@commonsware.com wrote:
JasonMP wrote:
I use a do/while that runs through one of my tables based
Hi,
I'm running into some issues here with my app. I have 4 tabs run
through a tabActivity. One tab sends an intent and run my
ListActivity that populates the screen from a simpleCursorAdapter. My
problem is that when I change back to this tab, after the first time
its run, the list never
that happens often?
On Nov 20, 1:46 pm, jotobjects jotobje...@gmail.com wrote:
On Nov 20, 6:04 am, JasonMP hyperje...@gmail.com wrote:
if my autoincrements skips numbers then I can get an error trying to
update a row that doesn't exist.
What if you delete a row later? That will cause a gap
Hi,
Can someone explain to me, or point me to a reference document
describing a TabActivities Lifecycle? I have a tab that runs an
activity. When does that activities onCreate, onResume, onPause take
place?
--
You received this message because you are subscribed to the Google
Groups Android
Does that go in he onCreate? onResume?
On Nov 20, 12:15 pm, Mark Murphy mmur...@commonsware.com wrote:
JasonMP wrote:
Hi,
I'm running into some issues here with my app. I have 4 tabs run
through a tabActivity. One tab sends an intent and run my
ListActivity that populates the screen
().
What am I missing?
On Nov 20, 2:02 pm, JasonMP hyperje...@gmail.com wrote:
Hi,
Can someone explain to me, or point me to a reference document
describing a TabActivities Lifecycle? I have a tab that runs an
activity. When does that activities onCreate, onResume, onPause take
place?
--
You
Heres another concern. I previously had 2 separate contextmenus and 2
separate options menus for my first tab and my second tab. Now that
they are in the same activity do they have to share the same menus?
I'm guessing I can always run a switch statement or something when I
open the menu based
Hi,
I can add a header to my listview within another activity with:
list = (ListView) findViewById(R.layout.list_view);
View v = View.inflate(this, R.layout.skill_list_header, null);
TextView t = (TextView) v.findViewById(R.id.skillHeader);
list.addHeaderView(v);
this doesnt
Mark...I'm offically you're biggest fan haha, j/k. But thanks,
seriously.
On Nov 20, 7:27 pm, Mark Murphy mmur...@commonsware.com wrote:
I can add a header to my listview within another activity with:
list = (ListView) findViewById(R.layout.list_view);
View v = View.inflate(this,
Hi all,
I,m trying to build a custom Listview and Adapter to populate the
screen with items from a database. I need to have a checkbox in each
view that when clicked will display a number in a textview from the
database within that particular Listview item, and then also update
the checked
Im trying to fill a spinner with data from a table. That part works
fine. What i cant figure out is how to use the selection made
through
the spinner. if i use :
String someString = (String) classSpin.getSelectedItem().toString();
i get some sort of SQL reference. Am i missing a step? Im
Im having an issue with Eclipse where it will suddenly not be able to
read my R.java file and all of my resource references get errors. Ive
tried doing a fresh install of Eclipse and that did not help.
Rebuilding apps does not help. Fixing project properties does not
help. Here's an example of
Is it possible to edit a string in my strings.xml from within my java
code? I'd like my app_name to be changed dynamically based off of
user input.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers
40 matches
Mail list logo