[android-beginners] Re: What's the RIGHT way to detect multi-select ListView item selections?

2008-10-17 Thread Romain Guy
ListView.getCheckedItemPositions() will give you the list of all checked items, identified by their adapter's position. On Fri, Oct 17, 2008 at 10:05 PM, kelly <[EMAIL PROTECTED]> wrote: > > Hi, > > I have a multi-select ListActivity, and I'd like to programmatically > detect which of the items a

[android-beginners] What's the RIGHT way to detect multi-select ListView item selections?

2008-10-17 Thread kelly
Hi, I have a multi-select ListActivity, and I'd like to programmatically detect which of the items are selected. I tried implementing OnListItemClick(), and doing this: if(v instanceof CheckedTextView) { boolean selected = ((CheckedTextView

[android-beginners] Re: Notepad Tutorial

2008-10-17 Thread jtaylor
You can use a sub-activity. Here is WikiNotes which does interesting things to Notes. http://code.google.com/p/apps-for-android/source/browse/trunk/#trunk/WikiNotes - Juan T. On Oct 17, 8:33 pm, EASimon <[EMAIL PROTECTED]> wrote: > I found the notepad tutorial very helpful, however I'm looking

[android-beginners] Notepad Tutorial

2008-10-17 Thread EASimon
I found the notepad tutorial very helpful, however I'm looking to stretch beyond that and was wondering if anyone had any ideas to help. I'm trying to implement a "Delete" menu button from within a note, and can use the functionality, the note deletes itself, I just can't get it to return to the

[android-beginners] Android Web Browser: Detecting orientation changes

2008-10-17 Thread mattmook
Hi, I was wondering if there is anyway in either JavaScript or CSS to detect which way round the screen is on Android and if there's any way of detecting orientation changes. On the iPhone it's as simple as listening to an event - does a similar one exist on Android? Not sure this is the right g

[android-beginners] Re: Socketing Error: UnknownHostException

2008-10-17 Thread Pirate Blanc
Oh yes i was going to try that next. Thx. On Oct 17, 7:02 pm, "Sunit Katkar" <[EMAIL PROTECTED]> wrote: > Being a newbie to Anroid, this  might sound dumb and maybe you have tried > it, but have you added permissions to your android manifest xml file? > You might have to add the following line ju

[android-beginners] Re: Socketing Error: UnknownHostException

2008-10-17 Thread Sunit Katkar
Being a newbie to Anroid, this might sound dumb and maybe you have tried it, but have you added permissions to your android manifest xml file? You might have to add the following line just after the closing tag - Sunit On Fri, Oct 17, 2008 at 2:15 PM, Pirate Blanc <[EMAIL PROTECTED]> wrote: >

[android-beginners] Re: Using RMI in Android

2008-10-17 Thread Mark Murphy
Eric Kolotyluk wrote: > I know Android 1.0 does not come with RMI, but as a developer is there > a way to add RMI to an Activity/Application? If so, how would one go > about doing it? Details would be greatly appreciated. As far as I'm concerned, you'll be better served switching to something mo

[android-beginners] Using RMI in Android

2008-10-17 Thread Eric Kolotyluk
Ok, I've seen a few threads on this subject, but everyone just dances around the issue. I know Android 1.0 does not come with RMI, but as a developer is there a way to add RMI to an Activity/Application? If so, how would one go about doing it? Details would be greatly appreciated. Is there any p

[android-beginners] Using an intent to search for a hospital

2008-10-17 Thread MojoChris
I have this code which starts the maps application and zooms in on D.C Intent myIntent = new Intent("android.intent.action.VIEW", Uri.parse("geo:38.899533,-77.036476?z=16")); startActivity(myIntent); What do I use to search for hosp

[android-beginners] Socketing Error: UnknownHostException

2008-10-17 Thread Pirate Blanc
Hi all, I tested out networking on Android SDK. I get IOError UnknowHostException. I am pretty sure my Servlet and Client codes are set up correctly, wondering if there is Android setting i need to change to enable networking. Thx Everyone. --~--~-~--~~~---~--~~ Y

[android-beginners] Re: Networking Capabilities, Nooby's Wonderings

2008-10-17 Thread Pirate Blanc
Thanks, ya i tried out Networking yesterday. Pretty cool. On Oct 16, 8:11 pm, Ricardo <[EMAIL PROTECTED]> wrote: > Yes, you can use the same java.net.Socket available in the Java jdk.. > > you just have to connnect in the socket server, get the outputstrean/ > inputstream and do some cool stuff >

[android-beginners] Re: "geo fix" yields incorrect values

2008-10-17 Thread Anm
One last thought (untested): Which permission is your app requesting: ACCESS_COARSE_LOCATION or ACCESS_FINE_LOCATION? Anm On Oct 16, 9:56 pm, bryan <[EMAIL PROTECTED]> wrote: > That was my guess. The "geo" command must be messing up the numbers. > Certainly it has to work on the device itse

[android-beginners] Re: Activity onKeyDown does NOT capture events; what am I missing?

2008-10-17 Thread michael
Resolution: Eclipse stuck in import java.awt.event.KeyEvent rather than import android.view.KeyEvent So, it was failing to override the proper method. Sigh. Thanks all for your attempts, no way you could have seen that one coming... Michael --~--~-~--~~~---~-

[android-beginners] Re: Activity onKeyDown does NOT capture events; what am I missing?

2008-10-17 Thread michael
On Oct 17, 11:12 am, "Romain Guy" <[EMAIL PROTECTED]> wrote: > Try overriding dispatchKeyEvent() instead. Thanks. I did try that (and just retried it). The method is not being called (verified via Log.v not being called and breakpoints in the debugger. OK; let me pose the question a different w

[android-beginners] Re: Activity onKeyDown does NOT capture events; what am I missing?

2008-10-17 Thread Romain Guy
Try overriding dispatchKeyEvent() instead. On Fri, Oct 17, 2008 at 11:10 AM, michael <[EMAIL PROTECTED]> wrote: > > > On Oct 17, 3:42 am, Mark Murphy <[EMAIL PROTECTED]> wrote: >> michael wrote: >> > I've got an activity subclass. To this, I added: >> >> > public boolean onKeyDown(int keyCode, K

[android-beginners] Re: Activity onKeyDown does NOT capture events; what am I missing?

2008-10-17 Thread Mark Murphy
michael wrote: > To answer your question: no i have not changed any logging settings, > but I've used Log.v() to debug stuff in the past and have no trouble > viewing its output. It isn't outputting. Therefore, onKeyDown is NOT > being invoked when I hit the hardware back button. I can tell yo

[android-beginners] Re: Activity onKeyDown does NOT capture events; what am I missing?

2008-10-17 Thread michael
On Oct 17, 3:42 am, Mark Murphy <[EMAIL PROTECTED]> wrote: > michael wrote: > > I've got an activity subclass.  To this, I added: > > > public boolean onKeyDown(int keyCode, KeyEvent event) { > >  Log.v("KEYDOWN2", "BACK???"); > >  return false; > > } > > Did you enable verbose logging? To answe

[android-beginners] Re: : how to store a image in database

2008-10-17 Thread Hugo Veiga
Thanks for replying, I have a few more questions: > InputStream is = ImageUploadManager.getImageFromServer(imageName); In what format does the image comes from the "ImageUploadManager"? > [] bb = (is.toString()).getBytes(); Second, it doesn't seems right to me to use for it seems that you're

[android-beginners] Re: Error Message when setting SDK location in Eclipse

2008-10-17 Thread Ceez
thanks for the heads up lemms - it was beginning to get a bit annoying wondering why that was happening. I guess they did state something about using eclipse 3.3 and 3.4 but in my frenzy... On Sep 23, 4:49 pm, lemms <[EMAIL PROTECTED]> wrote: > On Sep 22, 8:18 pm, lemms <[EMAIL PROTECTED]> wrote

[android-beginners] ImageView not displaying at all

2008-10-17 Thread Alvin Yates
I'm not entirely sure what my issue is here. Basically, I have a set of PNGs I'm simply trying to display on a page as follows, so see how they would fit on the page: Image - Image Image Image Image Image All of the images are in the res/drawable with similar android:src tags. What's s

[android-beginners] ImageView not displaying at all

2008-10-17 Thread Alvin Yates
'm not entirely sure what my issue is here. Basically, I have a set of PNGs I'm simply trying to display on a page as follows, so see how they would fit on the page: Image - Image Image Image Image Image All of the images are in the res/drawable with similar android:src tags. What's st

[android-beginners] Announcements: Android GUI Prototyping Stencils New Version just released!

2008-10-17 Thread AlexK
Hi Everyone, Today ArtfulBits announce a release of a second version of Android GUI Prototyping Stencils... More details can be found here http://www.artfulbits.com/android/stencil.aspx Version 1.1: more controls and samples added; Added new stencil - Android GUI Icons. Now you can use for proto

[android-beginners] reg porting android on target pxa270 arm based board

2008-10-17 Thread krithika gurumurthy
Dear all im new to android...i ve downloaded the android kernel-2.6.25 and ported successfully on a pxa 270 arm based platform. Now got the android file system images (system.tar.gz and data.tar.gz) from a link..can some body help me out to port this file system in my arm based board..a

[android-beginners] getHostByName failing

2008-10-17 Thread RichardS
My application tries to open a socket to a remote (ie. out on the internet) server but fails with an "Unknown host" exception. I've simplified the code and plugged it into HelloAndroid as follows: public class HelloAndroid extends Activity { /** Called when the activity is first created. */

[android-beginners] Re: i am so beginner

2008-10-17 Thread susanner
i think the problem is because you haven't set your usr virable PATH to a proper jdk directory. 在2008-10-16,Easan <[EMAIL PROTECTED]> 写道: i get the error when attempting to open the eclipse application. So, the machine can't run eclipse. Vista. On Wed, Oct 15, 2008 at 10:24 PM,

[android-beginners] Re: : how to store a image in database

2008-10-17 Thread Sudharani K
My code is like InputStream is = ImageUploadManager.*getImageFromServer*(imageName); * byte*[] bb = (is.toString()).getBytes(); Long returnval = sqlTable.insert(imageName,bb); in the insert method() { ContentValues initialValues = *new* ContentValues(); initialValues.put(*FIELDID*, val); ini

[android-beginners] Re: Activity onKeyDown does NOT capture events; what am I missing?

2008-10-17 Thread Mark Murphy
michael wrote: > I've got an activity subclass. To this, I added: > > public boolean onKeyDown(int keyCode, KeyEvent event) { > Log.v("KEYDOWN2", "BACK???"); > return false; > } Did you enable verbose logging? > But when I hit the BACK button on my emulator, the only thing that > shows up in

[android-beginners] Re: : how to store a image in database

2008-10-17 Thread Ena
see it http://www.anddev.org/save_image_in_database-t2984.html may it will help u. On Fri, Oct 17, 2008 at 1:28 PM, Hugo Veiga <[EMAIL PROTECTED]> wrote: > > Hi there, can you be more specific about the way you read the image > and then store it into the database? > > Also it would prove quite h

[android-beginners] Re: : how to store a image in database

2008-10-17 Thread Hugo Veiga
Hi there, can you be more specific about the way you read the image and then store it into the database? Also it would prove quite helpfull to have the specific exception you're experiencing. Regards, Hugo Veiga [EMAIL PROTECTED] On Oct 17, 2008, at 5:08 AM, Sudha <[EMAIL PROTECTED]> wrote

[android-beginners] BUILD FAILING FOR UNKNOWN REASONS

2008-10-17 Thread Bunsenator
I am just trying to get a simple Hello World app out the door and I cant seem to do so. I ran the activity creator for TestAppTwo: "sudo /android-sdk-mac_x86-1.0_r1/tools/activitycreator --out NewApp com.example.android.NewApp" works fine. I go in and change res/layout/main.xml - the inside of

[android-beginners] Re: Emulator starts but HelloAndroid doesn't run

2008-10-17 Thread [EMAIL PROTECTED]
Hi,bsnelson,I've met the same problem as yours,and I am sure that i am using 1.0 SDK. This problem is driving me crazy. here is some information about my enviroment. 1.0 SDK 3.4 eclipse java ee Eclipse plugin version 0.8.0 On 9月24日, 上午10时17分, bsnelson <[EMAIL PROTECTED]> wrote: > On Sep 23, 8:39

[android-beginners] Re: My first attempt at writing an Android tutorial

2008-10-17 Thread Siva
Me being a beginner, this is a very good example, exactly what I was looking for as a sample. Thanks! On Oct 15, 5:46 pm, sunitkatkar <[EMAIL PROTECTED]> wrote: > I too was a newbie just a month ago, and I am still learning. I just > wanted to share what I learnt with the developer community. I h

[android-beginners] APIDemo icon gone

2008-10-17 Thread muddog
Hi all I run Android 1.0-r1 on freescale mx31 3stack board. Sometimes the APIDemo icon will gone, can not bring it back anymore, only after flashing the system.img and data.img into the NAND flash again. What happens? Lost some datas in the /data? BTW: The kernel is ported by us based on 2.6.25

[android-beginners] Activity onKeyDown does NOT capture events; what am I missing?

2008-10-17 Thread michael
I've got an activity subclass. To this, I added: public boolean onKeyDown(int keyCode, KeyEvent event) { Log.v("KEYDOWN2", "BACK???"); return false; } But when I hit the BACK button on my emulator, the only thing that shows up in my logs is: 10-17 01:19:00.078: WARN/KeyCharacterMap(302): No

[android-beginners] Re: Emulator starts but HelloAndroid doesn't run

2008-10-17 Thread [EMAIL PROTECTED]
Hi,bsnelson: I've met the same problem as you did. but the different and wired thing is that my SDK is 1.0. Any suggestions? This problem seems to drive me crazy. On 9月24日, 上午6时11分, bsnelson <[EMAIL PROTECTED]> wrote: > I resolved (?) the build error I had in my previous post, and my > HelloAndroi