[android-beginners] Re: NullPoinerException in XML

2010-02-03 Thread Mike M
Can you provide the LogCat output? Then we can see where the NullPointerException is coming from... As far as scroll bars, you can wrap the root element in the tab (which would be the TableLayout in the above example) with a ScrollView. On Feb 3, 10:39 am, Chirayu Dalwadi wrote: > Guys please

[android-beginners] How to add a toggle list to a view

2010-01-13 Thread Mike M
Hey all, I've seen some of the demos to create a list that you can add items to (toggle list). There's an example in the API Demos (http:// tinyurl.com/yfscgl9). This creates an activity that is nothing but a toggle list (it extends the ListActivity) I want to add a list that I can add items to

[android-beginners] Re: how to open another application with Intent

2009-12-10 Thread Mike M
Samuh, thanks for the link. I was able to get what I wanted with the following code: Intent i = new Intent(); i.setAction(Intent.ACTION_VIEW); i.setComponent(new ComponentName("com.android.gallery", "com.android.camera.ImageGallery"));

[android-beginners] how to open another application with Intent

2009-12-10 Thread Mike M
I am wondering if there is a way to open another Application (not Activity) with intents. I want users to be able to look at the pictures on their device, so when they push a button, it will open the GalleryPicker that comes on Android devices. I've debugged my Droid when I am on the Home screen

[android-beginners] Re: MD5 Hash is wrong

2009-12-10 Thread Mike M
esn't match? Unless you > > > > are comparing MD5's to ones generated elsewhere, you are still getting > > > > a unique hash. And as long as you compare to only hashes generated by > > > > android it will always match > > > > > -niko > &g

[android-beginners] MD5 Hash is wrong

2009-12-06 Thread Mike M
Hey guys, I'm trying to get an MD5 Hash in my Android app, but it's not giving the correct hash. For example, in my app I have this: MD5_Hash hash = new MD5_Hash(); myHash = hash.Hash("What I want to Hash"); I get this from the above code: 306a801b82d299c8e965c2bf1d7fc18 I go to a website

[android-beginners] Dynamically added ImageView pacement

2009-12-02 Thread Mike M
Hey all, I'm trying to add ImageView's dynamically, and I want them to be placed next to each other. Everything I try just puts them on top of each other: for (int i=0; i < num_photos; i++) { ImageView iv = new ImageView(this); iv.setLayoutParams(new LayoutParams(4