[android-beginners] Re: forms

2009-11-12 Thread jbrohan
This is how I connect to a php script that I wrote. To fill in a form on any website surely it's just a matter of loading it in the browser? hope this helps John s = callWebPage(Constants.WebCall, ? do=startgroupphone=+getMy10DigitPhoneNumber()); exampel of a webcall the url is in

[android-beginners] Re: R cannot be resolved

2009-11-11 Thread jbrohan
Look at the other files in src/ There may be an R theredelete it! On Nov 8, 8:00 am, benjamin goth ben.fighting.h...@googlemail.com wrote: Hi I was doing fine going through the tutorials but suddenly whatever SDK I use to build against I get that R cannot be resolved I have the R.JAVA file

[android-beginners] Android-Montreal User Group

2009-11-11 Thread jbrohan
Hello I'm starting to organize a User Group for Android Programming here in Montreal. It will be in a downtown location (hopefully SAT on St Laurent) in early December. I propose to talk about making androids interact with the Internet, and uploading files. You can join a Google Group and let me

[android-beginners] changing a package name

2009-11-10 Thread jbrohan
Hello This is more a Java question than Android I have a graphing routine AChartEngine (very very good by the way). Now I want to link this with another routine say a sound recording activity. They are in different packages and different projects. AChartEngine has lots of Lib's and Referenced

[android-beginners] Re: Image buttons changing position based on orientation of phone.

2009-11-07 Thread jbrohan
I don't think it's necessary to check yourself, just provide the landscape layout in the folder res/layout-land and leave the other one in res/layout and the magic of Android will manage this for you. The problem with your pictures is probably that they have the wrong aspect ration...they are

[android-beginners] Paypal Integration

2009-11-04 Thread jbrohan
Hello Is there an example of an Android App knowing who to pay and how much, calling the paypal Activity with the fields pre-loaded for the user to click Pay it Now! -- You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send

[android-beginners] Re: ListView with multiple TextView

2009-10-28 Thread jbrohan
The Notepad example does this. On Oct 27, 6:37 pm, Ash ashly@gmail.com wrote: Hi, I need to create a ListView with two TextView items. Please help with some example code for implementing this. Thanks, ash. --~--~-~--~~~---~--~~ You received this

[android-beginners] What does the Home button do?

2009-10-28 Thread jbrohan
I'm running into a problem that when I press Home in say the settings page of my app, it finishes OK but the next time I start it's back in settings. I'd really prefer it to start at the beginning! It looks from the trace that the calling activity is not itself returned to and stopped Thanks John

[android-beginners] Re: What does the Home button do?

2009-10-28 Thread jbrohan
Thanks RicharDC This explains a lot. Why the MyTracks is always there using up my battery, and more to the point why my application that uses a Camera fails sometimes. I think I'm sure I want to go right back to OFF when the user presses Home or Back. Do regular users understand this or am I

[android-beginners] Re: Confused with the very beginning

2009-10-26 Thread jbrohan
The tutorial examples starting at http://developer.android.com/guide/basics/what-is-android.html will help you on your way. On Oct 25, 5:41 pm, Mars cloudol...@gmail.com wrote: I just downloaded the Android SDK for my Mac, I'm confused what I'm supposed to do from the very beginning. Where

[android-beginners] Re: Call URL

2009-10-26 Thread jbrohan
this is what I use... public String callWebPage(String URLstring, String parameters){ String s; try { URL updateURL = new URL(URLstring+parameters); URLConnection conn = updateURL.openConnection(); InputStream is = conn.getInputStream();

[android-beginners] Re: connecting to a remote database tutorial/example?

2009-10-25 Thread jbrohan
Hello I need to look up a database in my app. I'll be doing it next week I expect. For the moment the php just returns a constant. ?php $do = $_REQUEST['do']; if ($do == groupphone){ $phone=trim($_REQUEST['phone']); $phone=str_replace(array('.','(',')','-',' ','+'),'',$phone);

[android-beginners] Re: how to set the hyperlink text with textview.

2009-10-24 Thread jbrohan
The Notepad tutorial deals with specifically this point. You click on the list of notes and get into an edit dialog. John On Oct 23, 2:14 am, pp clinw.w...@gmail.com wrote: I'm working on java for android and I need your help. my question is set the text with textview, its style is look like

[android-beginners] Re: Taking a picture

2009-10-20 Thread jbrohan
http://www.anddev.org/ Has a big discussion of camera operations. I got my app started using their code! On Oct 19, 4:46 pm, Anders Feder anders.feder...@gmail.com wrote: Hello, I need to take a photo on command (from my app) such that it is stored as 'normal' photo in the Gallery, just like

[android-beginners] Re: Controlling who and when can access for a Service and Waiting for Android Threads to finish

2009-10-19 Thread jbrohan
startActivityForResult(...) and then you receive the return through onActivitResult(). It's hard at first but you quickly get used to it and it works fine.. John On Oct 18, 9:00 am, jax jackma...@gmail.com wrote: A couple of questions 1.  I have a service that needs to restrict access to it's

[android-beginners] Re: hi

2009-10-17 Thread jbrohan
The gps does not need internet connection to work. You can use MyTracks app for example without being charged for the bandwidth. Often GPS based apps use a map to represent the place you are at, and of course this will require a connection to download this data. On Oct 16, 12:07 pm, tinyang

[android-beginners] Re: Intent is not properly returned through onActivityResult

2009-10-17 Thread jbrohan
Hello I have been having this difficulty too. An intent started with startActivityForResult() exiting through this code...does not return its load of Extra data. String s = persistWidgetData(); Intent i = new Intent(); i.putExtra(returnValue, s); i.putExtra(TestIntReturn,3142);

[android-beginners] Re: Android Charts

2009-10-17 Thread jbrohan
try http://rapidandroid.org/wiki/Graphing Please report on how you get on with it. I'll need it soon! John On Oct 16, 5:09 am, Vinicius Carvalho viniciusccarva...@gmail.com wrote: Hello there! I'm starting with android, and the app I'm developing is gonna need some charts. I've looked and did

[android-beginners] Re: how to call a function after taking snap from camera?? plz help

2009-10-15 Thread jbrohan
try http://code.google.com/p/android-playground-erdao/wiki/SnapFace This is how I got my project like yours going. Basically there is a callback after the picture is taken. John On Oct 14, 8:58 pm, wahib wahib.t...@gmail.com wrote: Hi!! I am stuck with this issue. When i press a button in my

[android-beginners] Re: Creating my own helper classes

2009-10-12 Thread jbrohan
Resolve them to a View, and pass the View to the method. On Oct 12, 3:02 am, jax jackma...@gmail.com wrote: But what if I want to include various xml values with my helper classes.  For example, if I create a new View control, how will I include the resource files that the view relies on?

[android-beginners] Re: HTTP Connect Problem

2009-10-10 Thread jbrohan
Here is an example of this http://www.androidsnippets.org/snippets/36/ On Oct 10, 2:22 am, Samuh samuh.va...@gmail.com wrote: If I am interpreting you correctly, you can do something like(pseudo code): //create an instance of HttpClient class HttpClient httpclient = new DefaultHttpClient();

[android-beginners] Re: Project Idea....Not sure if its possible!

2009-10-10 Thread jbrohan
Could you have a conference phone call going and output the gps location to this? Maybe interpret the sound stream as morse code? The app MyTracks will give you some ideas about UI. On Oct 10, 12:57 am, jax jackma...@gmail.com wrote: Sorry Servlet not Applet :p On Oct 10, 10:17 am, jax

[android-beginners] proposed Android rogramming course

2009-10-10 Thread jbrohan
Hello I am proposing a 1 term course at our local university in Andriod programming. This is the outline. I'd be grateful of any suggestions. In a period of 10 weeks at 2 * 1.5 h/week and 2h homework per week I would expect students to be able to learn the basics of programming this device and

[android-beginners] Re: How to find permissions required

2009-10-08 Thread jbrohan
I've found that there is an error reported in the logcat which is quite clear about a missing permission. Just keep going and look at the logcat output. John On Oct 8, 5:13 am, Chris themaninthesuitc...@googlemail.com wrote: I am trying to see if some of the classes I am using require any

[android-beginners] Re: Doubt

2009-10-07 Thread jbrohan
This is a really interesting app. How do you know if a parking spot is taken? I guess you could work with a photo from a high building and check from that, or the security cameras. In this case the photo itself, or a transformation of it would show the location of free spaces. Be sure to record

[android-beginners] Re: plz help with sdcard image file and push command not working!!

2009-10-07 Thread jbrohan
I'm a beginner too. I use ddms. Run the command window in Windows, then type ddms here. If you have the paths set up properly it will work, else you need to go to android sdk folder/tools and enter ddms. This program links with the debugger and provides real time readings of logcat and also

[android-beginners] Re: Open Source Android Apps

2009-10-02 Thread jbrohan
-beginn...@googlegroups.com] On Behalf Of jbrohan Sent: Tuesday, September 29, 2009 5:49 AM To: Android Beginners Subject: [android-beginners] Open Source Android Apps Hello It seems to me that along with many people on this list we are often struggling to do the same things, maybe with just

[android-beginners] Open Source Android Apps

2009-09-29 Thread jbrohan
Hello It seems to me that along with many people on this list we are often struggling to do the same things, maybe with just a different twist here and there. In my case taking pictures, recording comments and uploading these to a web site. I have found several examples of each of these and they

[android-beginners] Simulate KeyEvent (raise Options Menu programmatically)

2009-09-26 Thread jbrohan
Hello I want my activity to start with the menu in place. There seems to be a some discussion about simulating KeyEvents, but these are from an earlier release and the import android.view.IWindowManager; is used. This does not seem to be available nowadays. John

[android-beginners] Re: Simulate KeyEvent (raise Options Menu programmatically)

2009-09-26 Thread jbrohan
To answer my own question... http://groups.google.com/group/android-developers/browse_thread/thread/564fd6d454463bdf?fwc=1 openOptMenu() but it needs to be a runnable...see posting above On Sep 26, 7:45 am, jbrohan jbro...@gmail.com wrote

[android-beginners] Re: Connect to website

2009-09-22 Thread jbrohan
http://www.anddev.org/upload_files_to_web_server-t443-s60.html This deals with uploading a file to a website and reading the response. Hope it helps John On Sep 18, 12:04 am, Droid Heaven Inc. droidhea...@gmail.com wrote: Please help me i been desperately searching for a tutorial to send info

[android-beginners] Re: Application closes when I try to convert String to Integer

2009-09-18 Thread jbrohan
I tried it this way and it worked fine static int i; public void onClick(View view) { i++; String s; if (i4){ updateTime(); }else{ s=String.format(iteration number %d around,i); btn.setText(s); } } On

[android-beginners] build path error (solved)

2009-09-16 Thread jbrohan
Hello I'm working with a new install of Eclipse and the 1.6 Android software. When I was trying out the Hello, Android example I got a Build Path error. After much thrutching around the error went away when I Select the HelloAndroid project choose Java Build Path Click the Android 1.5 checkbox

[android-beginners] Backup your phone ?

2009-09-04 Thread jbrohan
A reuters report this morning says...SINGAPORE (Reuters Life!) - Cellphone feels like a part of your body? A global survey has found that most people can't live without their mobiles, never leave home without them and, if given a choice, would rather lose their wallet. Calling mobile phones the

[android-beginners] Progress bar for upload / doenload

2009-09-01 Thread jbrohan
Hello I've been having some difficulties with the progress bar. I built a separate test harness and now I start to see things more clearly. The code below seems to work correctly, but updates the progress bar only when it finishes. I want it to update as the progress is made! package

[android-beginners] Upload picture to my php website

2009-08-27 Thread jbrohan
Hello I can now use the camera to take and store a picture with the Android. The next step is to upload it to a website. Is there an implementation of cURL or an example of how to do this? --~--~-~--~~~---~--~~ You received this message because you are subscribed

[android-beginners] Re: Upload picture to my php website

2009-08-27 Thread jbrohan
Than for your reply. But... My goal is to make a system that is extremely easy to use and limited in functionality.. Snap a picture and choose between Save and Cancel. The target population is old, ignorant of computers and websites, and probably has poor vision. The others can use the Camera and

[android-beginners] Re: help! adding an activity of my application to another application

2009-08-26 Thread jbrohan
Hello This is very interesting. Do I need to have the source code of the Camera app in order to do this? Or is there some way to make it use my menu rather than the one already in Camera? On Aug 10, 7:56 pm, Roman roman.baumgaert...@t-mobile.com wrote: You are already giving the answer ... In

[android-beginners] Small Change to Camera app (get source code)

2009-08-20 Thread jbrohan
I want users to take pictures and send them to my website with the phone number of the cell phone to identify them. My website can deal with the pictures from here. I have a small demo program working but the focus of the pictures is poor. I downloaded the Camera package and had a look at it.

[android-beginners] getting the pictures taken with my program to appear in gallery

2009-08-19 Thread jbrohan
Hello I'm working through Mark Murphy's excellent books at commonsware.com. The camera application takes pictures nicely but they don't appear in the Gallery , nor can I attach them to emails. I've put photo.jpg in the right folder sdcard/DCIM/100MEDIA and they are visible in the Eclipse File

[android-beginners] Re: using pre-coded functionality

2009-08-19 Thread jbrohan
It seems that the whole Android source code is available. It would appear to be possible to download the phone Activity source code and do your best with that. Personally I'd like to look at the Camera project to see how all the bits work. If anyone has a few more words to explain how to get

[android-beginners] Does the camera app work on the emulator?

2009-08-15 Thread jbrohan
Hello I'm writing an app that needs a camera. On the emulator I've added a camera. The camera app that comes already installed on the emulator does not work, it just shows a blank screen, without a title. Is this normal or am I doing something wrong. I'm using R2. If this is normal, can MY app

[android-beginners] Re: Orientation for Dialog

2009-08-12 Thread jbrohan
Hello I've been working through Hello, Android and Ed Burnette dealt with this issue in a screen. I had a file (in this case) main.xml in the res/layout folder. I made a new folder in res called layout-land and made a new main.xml there. What happens when you alter the orientation (Ctrl F11 in

[android-beginners] Automatic Import causes crash ?

2009-08-11 Thread jbrohan
org.example.sudoko/android.provider.Settings I'm not sure how it got there, but I had an Import for android.provider.Settings which was causing problems in the Sudoko program in Hello Android (excellent so far) book. It was giving a crash when the settings menu was chosen. The clue came in the

[android-beginners] Payment for service

2009-08-07 Thread jbrohan
Hello Could someone please point me to a discussion of payment for service in the Android environment. The application is medical, where the user sends a picture to the service (a real human nurse) and gets an opinion in return. The nurse needs to get some money out of the deal. The whole thing

[android-beginners] Payment for service

2009-08-07 Thread jbrohan
Hello Could someone please point me to a discussion of payment for service in the Android environment. The application is medical, where the user sends a picture to the service (a real human nurse) and gets an opinion in return. The nurse needs to get some money out of the deal. The whole thing

[android-beginners] Re: Problem when trying to run the emulator

2009-06-25 Thread jbrohan
The error you are getting is because the command processor cannot recognize the java command inside the android.bat file. If you type xxxhzzz or similar you will get the same result. You have a problem with a path somewhere. good luck John On Jun 24, 7:36 am, ники тончев ton...@gmail.com wrote:

[android-beginners] Re: Issues with Hello World

2009-06-09 Thread jbrohan
[2009-06-09 07:32:04 - HelloAndroid-test] -- [2009-06-09 07:32:04 - HelloAndroid-test] Android Launch! [2009-06-09 07:32:04 - HelloAndroid-test] adb is running normally. [2009-06-09 07:32:04 - HelloAndroid-test] Performing com.example.helloandroid.HelloAndroid activity