[android-beginners] Money Transaction

2010-07-12 Thread mayank bisht
How can we do money transaction in android apps ? i.e How can we integrate PayPal and other online payment system in Android applications ? -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack

[android-beginners] findViewById returns null

2010-07-12 Thread Conny
Crazy behavior in my code. I have super.xml and a subset.xml. LinearLayout android:id=@+id/superSet android:layout_width=fill_parent android:layout_height=wrap_content android:layout_below=@id/titleBarLayout android:orientation=vertical

Re: [android-beginners] findViewById returns null

2010-07-12 Thread Yousuf Faheem
Hi Conny, Are you placing the text fields in a layout or just declaring them as provided below. If you are not using a layout enclose these TextViews with in a Layout and try. I guess it should work. Also try refreshing R.java build you subset.xml Check if the price variable is reflected in

Re: [android-beginners] setting age

2010-07-12 Thread TreKing
On Fri, Jul 9, 2010 at 8:19 PM, Emmen Farooq farooq.em...@gmail.com wrote: Im making an app which would have to get users age , now what would be the appropriate control ? One which allows number input? I have to make something like a scroll with numbers in it , but the user shouldnt

Re: [android-beginners]

2010-07-12 Thread Justin Anderson
Have you read through the entire Dev Guide? Before I wrote a thing I read every page of the Dev Guide... After that I followed the Hello World Tutorial. After reading and coding (not just copy/paste) the tutorial, I started adding things to it, one at a time. I believe that is the best way to

Re: [android-beginners] Money Transaction

2010-07-12 Thread Justin Anderson
* How can we do money transaction in android apps?* By writing an app that does that... * How can we integrate PayPal and other online payment system in Android applications? *Ask PayPal... They most likely have a web API that you can use. Sorry for the snide comments... but your question

Re: [android-beginners] Emulator

2010-07-12 Thread Mark Murphy
On Mon, Jul 12, 2010 at 2:59 PM, kypriakos demet...@ece.neu.edu wrote: I am assuming that you cannot perform software reloading on the emulator without restarting it (i.e. OSGi containers). AFAIK, Android does not support OSGi containers. You can reload software on the emulator without

[android-beginners] Re: HELP: A Verizon Droid puzzle.

2010-07-12 Thread whitemice
Hi Chris Was that a Motorola Droid running on Verizon in the US? ...and did the UI say something like 1 minute ago a minute after making a call (zero second call will do) without you clicking on the Widget? If so, it looks like I have a smaller cluster than I thought. Thanks for the test. Mark

[android-beginners] Using SQLite to get information

2010-07-12 Thread Curran
Hi everyone, I'm still quite new Android development and need a way to read information from a database, which I'm not really sure how to do. Essentially my app is a reference for chemistry students, which will read and display information about topics. The database needs to be pre-prepared (with

[android-beginners] Re: Calling localhost web service from emulator

2010-07-12 Thread NIK
Thank you for your reply richard. I was thinking that because the emulator and the application server are working on different ports i could use the localhost in the emulator in order to call the web service. So, the only way of calling a localhost web service from the emulator is by using the

Re: [android-beginners] Re: Calling localhost web service from emulator

2010-07-12 Thread Mark Murphy
On Sat, Jul 10, 2010 at 6:17 AM, NIK nikolaos.katsa...@gmail.com wrote: So, the only way of calling a localhost web service from the emulator is by using the actual network IP address? http://developer.android.com/guide/developing/tools/emulator.html#networkaddresses -- Mark Murphy (a Commons

[android-beginners] Coordinating Activity life cycle with Service life cycle

2010-07-12 Thread Bret Foreman
I have an activity that contains a CompoundButton. I want that button to reflect the started/destroyed state of a Service. If the button is toggled off-to-on, then the service should be created-started. Once the service is running, I don't want an exit from the activity to destroy it.

[android-beginners] Cannot access SIM phonebook

2010-07-12 Thread Fabrizio Gennari
Hello. I am trying to read and write contacts on the SIM phonebook. First I tried writing a contact, with GetContentResolver.insert(), passing RawContacts.CONTENT_URI as URI and ensuring the column RawContacts.ACCOUNT_NAME had the value SIM, and adding 2 lines (1 for name and 1 for phone) to

Re: [android-beginners] Restricting the input in an edit text

2010-07-12 Thread TreKing
On Sat, Jul 10, 2010 at 9:54 PM, Emmen Farooq farooq.em...@gmail.comwrote: Restrict special characters from being entered into an edit text ? Look at the docs for EditText. There should be one or more listeners you can attach to determine when text is entered into the control. From there, just

[android-beginners] Re: Using SQLite to get information

2010-07-12 Thread DanH
I guess the first question would be: Do you have questions specific to Android, or are you asking, in general, how to do an SQL query (and, prior to that, how to populate the database)? On Jul 12, 10:35 am, Curran thecur...@hotmail.co.uk wrote: Hi everyone, I'm still quite new Android

[android-beginners] Re: Creating a populated sqlite database

2010-07-12 Thread DanH
Certainly in Java code you can create it, or in C++, or with a stand- alone PC tool such as SQLite Expert. SMOP. Dunno about /res. On Jul 8, 4:30 pm, Rodney Lendore rodney.lend...@gmail.com wrote: Hi, I am trying to create a pre-populated sqlite database to be shipped with my application.

Re: [android-beginners] Re: HELP: A Verizon Droid puzzle.

2010-07-12 Thread ca44
Hi Mark, My youngest son did the test for you. Following is his response:    Yes it was in the us and running on verizon. Yes it said 1 minute ago without me clicking on the app. Let us know if we can provide additional help in the form of testing for you. Regards, Chris

[android-beginners] addContentView obscures events

2010-07-12 Thread Chris
I'm trying to overlay one view on top of another using addContentView. The bottom view has an ImageButton on it linked to a ClickListener. This all worked fine until I add the overlay view using: addContentView(overlayView, new LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT));

Re: [android-beginners] Coordinating Activity life cycle with Service life cycle

2010-07-12 Thread Justin Anderson
http://developer.android.com/reference/android/app/ActivityManager.RunningServiceInfo.html Word of warning though... The Android 2.2 SDK dramatically changed the way in which you can stop 3rd party applications and your app may not work properly. Just something to take into consideration. It

Re: [android-beginners] Re: Using SQLite to get information

2010-07-12 Thread Justin Anderson
Sounds to me like you first need to read up on SQLite and how it works so you can create and manage your database. Then, after that, read up on how Android allows you to interact with your database. Here is a link to an SQLite tutorial that I found just by googling SQLite Tutorial. I can't

Re: [android-beginners] Re: Creating a populated sqlite database

2010-07-12 Thread Justin Anderson
Unless the database is going to be quite large, I would just create it in code the first time you start up the app... How large are you anticipating this database is going to be? -- There are only 10 types of people in the

Re: [android-beginners] addContentView obscures events

2010-07-12 Thread Justin Anderson
I've never tried to do an overlay view, but it seems to me to make sense that once the overlay view is on top that it would capture all events... If you want it to propogate to the base view I think you are going to have to handle it in the overlay and then pass it on to the base view somehow.

[android-beginners] Re: HELP: A Verizon Droid puzzle.

2010-07-12 Thread whitemice
Hi Chris It's working for me also, so I'll have to find people with inferior phones than yours. Many thanks (and to your son) for doing the test. Mark On Jul 12, 10:05 pm, c...@comcast.net wrote: Hi Mark, My youngest son did the test for you. Following is his response:    Yes it was in

[android-beginners] Re: Jet authoring problem: SONiVOX synth DLL in SDK won't load in Cubase or Sonar.

2010-07-12 Thread JMT
Hi Mark, It looks like the actual plugin is missing from the SDK. We are working on fixing that shortly. On Jul 1, 5:22 pm, Mark m...@sublimeslime.com wrote: The EASDLL.dll is not recognized by Cubase SX 3.0.2, nor according to a poster on the developer's group, Sonar. Seriously broken or

[android-beginners] add view programmatically - crash

2010-07-12 Thread theresia freska
Hello, I am using Android API 8, AVD 2.2. I'm trying to add simple view programmatically -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at

[android-beginners] Error Building Android NDK sample bitmap-plasma

2010-07-12 Thread Hans L
I am trying to build the sample project bitmap-plasma which is included in the NDK. When I run ndk-build from the sample project directory, I get an error where the build is trying to include a file android/bitmap.h and not able to locate it. What do I need to do to point this build towards the

[android-beginners] add view programmatically - crash

2010-07-12 Thread theresia freska
Hello, I'm using Android API 8, AVD 2.2. I'm trying to add simple view programmatically, but everytime I try to run it in the simulator, the app crashes. It gives me error msg the app xxx has stopped unexpectedly with the force close button. When I comment this code, the app works fine. Can

Re: [android-beginners] add view programmatically - crash

2010-07-12 Thread Mark Murphy
On Mon, Jul 12, 2010 at 5:13 PM, theresia freska theresia.fre...@gmail.com wrote: I'm using Android API 8, AVD 2.2. I'm trying to add simple view programmatically, but everytime I try to run it in the simulator, the app crashes. It gives me error msg the app xxx has stopped unexpectedly with

Re: [android-beginners] onClick in ListView erratic ?

2010-07-12 Thread TreKing
On Sun, Jul 11, 2010 at 4:56 PM, Stu.Axon stu.a...@gmail.com wrote: Any idea what I'm going wrong ? Nope, but I would start by figuring out which specific ones are not behaving properly and seeing if there's a pattern.

[android-beginners] is doable with android 2.1 and upper ?

2010-07-12 Thread jean francois pion
hello, I would like to know if it is possible technically to make a very spcific application. the context: medical call center (SOS Mdecin) we have to send the adress of the visit to the doctor's pda we use the push mail with different subject (message, visite emergency 0, emergency 1,

Re: [android-beginners] Money Transaction

2010-07-12 Thread TreKing
On Mon, Jul 12, 2010 at 3:57 AM, mayank bisht mayank.and...@gmail.comwrote: How can we do money transaction in android apps ? i.e How can we integrate PayPal and other online payment system in Android applications ? Search the Android groups for this topic. This has been asked, and

Re: [android-beginners] is doable with android 2.1 and upper ?

2010-07-12 Thread Mark Murphy
On Mon, Jul 12, 2010 at 5:49 PM, jean francois pion jean.francois.p...@free.fr wrote: is it possible to make a software to read the incoming mail, read the subject and play a sound fonction of the characters string the sound must be different and customisable. Only if the developer is writing

Re: [android-beginners] add view programmatically - crash

2010-07-12 Thread YuviDroid
Before using course_main you should initialize it: course_main = (LinearLayout) findViewById(R.id.course_main); On Mon, Jul 12, 2010 at 11:13 PM, theresia freska theresia.fre...@gmail.com wrote: Hello, I'm using Android API 8, AVD 2.2. I'm trying to add simple view programmatically, but

[android-beginners] Re: Coordinating Activity life cycle with Service life cycle

2010-07-12 Thread Bret Foreman
In fact, I believe I've found a bug. After calling unbindService on an active service connection, ServiceConnection.onServiceDisconnected is never called. This means I can't tell when the service has been destroyed. That makes for rather convoluted logic in trying to manage the state of the

[android-beginners] Re: Coordinating Activity life cycle with Service life cycle

2010-07-12 Thread Bret Foreman
An interesting related problem is that rotating the screen causes my Activity to be destroyed and (re)created in quick succession. This means that the service unbind, bind, and unbind are called rapidly too. And that seems to cause a null pointer exception inside the bind/ unbind logic somewhere.

Re: [android-beginners] Re: Coordinating Activity life cycle with Service life cycle

2010-07-12 Thread Justin Anderson
* An interesting related problem is that rotating the screen causes my Activity to be destroyed and (re)created in quick succession.* This is done by design. You can find a few tips about how to program with this in mind here:

[android-beginners] Re: Coordinating Activity life cycle with Service life cycle

2010-07-12 Thread Bret Foreman
Yeah, I've read this article before. But note this quote: If the object you pass is for some reason tied to the Activity/ Context, you will leak all the views and resources of the activity. This means you should never pass a View, a Drawable, an Adapter, etc. I believe a ServiceConnection object

Re: [android-beginners] Re: HELP: A Verizon Droid puzzle.

2010-07-12 Thread ca44
No problem Mark. Glad we could be of assistance. -Chris - Original Message - From: whitemice markbr...@zedray.co.uk To: Android Beginners android-beginners@googlegroups.com Sent: Monday, July 12, 2010 1:32:57 PM Subject: [android-beginners] Re: HELP: A Verizon Droid puzzle.

[android-beginners] Re: add view programmatically - crash

2010-07-12 Thread theresia freska
Thanks for pointing that out! But the same problem is still there. The app crashes, even closes itself before I click the force close button. Logcat doesn't give error msg. Any idea? On Jul 13, 12:12 am, YuviDroid yuvidr...@gmail.com wrote: Before using course_main you should initialize it:

Re: [android-beginners] Re: add view programmatically - crash

2010-07-12 Thread Mark Murphy
On Mon, Jul 12, 2010 at 7:48 PM, theresia freska theresia.fre...@gmail.com wrote: Thanks for pointing that out! But the same problem is still there. The app crashes, even closes itself before I click the force close button. Logcat doesn't give error msg. Any idea? If you get a force close

[android-beginners] Gallery

2010-07-12 Thread Emmen Farooq
Hi , Can I make an image gallery appear vertical ? The android:orientation=vertical thing doesn't work. It still appears horizontal . Thanks a lot in advance -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging

Re: [android-beginners] Gallery

2010-07-12 Thread Mark Murphy
On Mon, Jul 12, 2010 at 8:01 PM, Emmen Farooq farooq.em...@gmail.com wrote: Hi , Can I make an image gallery appear vertical ? The     android:orientation=vertical thing doesn't work. It still appears horizontal . Thanks a lot in advance If you look at the documentation for Gallery:

[android-beginners] Emulating the mobiles camera

2010-07-12 Thread Emmen Farooq
Hi again , I am using android emulator for developing , and do not have an android based phone , but my app requires the following things it allows the user to take a picture from the phones camera Now my questions is that how do I handle that in an emulator , or in other words , how do i know

Re: [android-beginners] is doable with android 2.1 and upper ?

2010-07-12 Thread Brian Cowan
On 7/12/2010 5:58 PM, jean francois pion wrote: Le 12/07/2010 23:54, Mark Murphy a écrit : On Mon, Jul 12, 2010 at 5:49 PM, jean francois pion jean.francois.p...@free.fr wrote: is it possible to make a software to read the incoming mail, read the subject and play a sound fonction of the

[android-beginners] Error when adding gdata jar library to Android

2010-07-12 Thread Jennifer Francois
I am building an app that lets me upload a .doc document and display it so that the user can interact with the document, zooming etc. I searched online and there is no easy way to do this. I was hoping to do this with gdoc but when i tried to add the gdata jar library and I get this message:

Re: [android-beginners] Error when adding gdata jar library to Android

2010-07-12 Thread Mark Murphy
On Mon, Jul 12, 2010 at 9:03 PM, Jennifer Francois jennalexfranc...@gmail.com wrote: I am building an app that lets me upload a .doc document Upload it...where? I was hoping to do this with gdoc but when i tried to add the gdata jar library and I get this message: Warning: Ignoring

Re: [android-beginners] Error when adding gdata jar library to Android

2010-07-12 Thread Jennifer Francois
Upload it in the app that I am creating. I am trying to display word documents in the app. Maybe upload is not a good word. create an app that reproduces a Word document and help me interact with the pages, reading the word document, zooming and all. The word document is on my computer and I need

[android-beginners] Re: Error Building Android NDK sample bitmap-plasma

2010-07-12 Thread Hans L
Nevermind, it works fine for me in android-ndk-r4*b* which was released just today. Hans On Mon, Jul 12, 2010 at 4:11 PM, Hans L theh...@gmail.com wrote: I am trying to build the sample project bitmap-plasma which is included in the NDK. When I run ndk-build from the sample project directory,

[android-beginners] Java Keyword This and Button Listeners.

2010-07-12 Thread Keith Roberts
Hey all, I know that the keyword this refers to an instance variable or can invoke a constructor, but I don't understand how passing this as the arg for setOnClickListener () works?Could someone explain? Thanks, keith -- You received this message because you are subscribed to the Google

Re: [android-beginners] Java Keyword This and Button Listeners.

2010-07-12 Thread Justin Anderson
* I know that the keyword this refers to an instance variable or can invoke a constructor* That is not what the keyword this references. It references the instance of the class you are currently in... * but I don't understand how passing this as the arg for setOnClickListener () works?Could