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

2009-10-26 Thread gmseed

Hi Again

I came across the following link:

http://forums.devshed.com/java-help-9/jdbc-connecting-to-web-database-647416.html

which discusses connecting to a remote database using JDBC, with the
author noting that remote access had to be enabled with his web
hoster.

Cheers

Graham

On 26 Oct, 13:43, gmseed  wrote:
> Hi
>
> Thanks for explaining how you connect. I too use PHP, so I'll give it
> a go.
>
> I was wondering if anyone had seen an example of using the URI
> connection string in connecting to a database such as MySQL an using
> Java's JDBC. That way, connecting direct to the database.
>
> Cheers
>
> Graham
>
> On 25 Oct, 11:29, jbrohan  wrote:
>
> > 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.
> >  > $do = $_REQUEST['do'];
> > if ($do == "groupphone"){
> >         $phone=trim($_REQUEST['phone']);
> >         $phone=str_replace(array('.','(',')','-',' ','+'),'',$phone);
> >         if (substr($phone,0,1) == '1') $phone = substr($phone,1); // remove
> > '1'
> >         echo "error"; // initial testing}elseif($do == "startgroup"){
>
> >         echo "xyz";
> > ...
>
> > the java that does the call to the php program on the server is...
>
> >     public String callWebPage(String URLstring, String parameters){
> >         String s;
> >         try {
> >             URL updateURL = new URL(URLstring+parameters);
> >             URLConnection conn = updateURL.openConnection();
> >             InputStream is = conn.getInputStream();
> >             BufferedInputStream bis = new BufferedInputStream(is);
> >             ByteArrayBuffer baf = new ByteArrayBuffer(50);
> >             Log.e("SettingsDialog", "after the call to web");
> >             int current = 0;
> >             while((current = bis.read()) != -1){
> >                 baf.append((byte)current);
> >             }
> >             Log.e("SettingsDialog", "back from web page"+parameters);
> >             /* Convert the Bytes read to a String. */
> >              s = new String(baf.toByteArray());
> >              Log.e("SettingsDialog", String.format("in callWebPage =
> > %s ",s));
> >              return s;
> >         } catch (Exception e) {
> >                 Log.e("SettingsDialog", "exception in callWebPage");
> >         }
> >         return "error";
> >     }
>
> > And the setup of the URLstring is...s = callWebPage(Constants.WebCall,
> > "?do=groupphone&phone="+s);  what the php script echoed is in s.
>
> > It seems to be very reliable.
> > It's worthwhile running your script from a browser first to make sure
> > that it works.
>
> > Good Luck
> > John
>
> > On Oct 24, 11:21 am, gmseed  wrote:
>
> > > Hi
>
> > > I'm developing an application to connect to a database on my website.
>
> > > Does anyone know of a link to an example/tutorial in which this kind
> > > of operation is performed?
>
> > > Thanks
>
> > > Graham
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: including jar user libraries

2009-10-26 Thread gmseed

Hi

I got it to work by selecting "Add jar..." in "User Library".

I was originally building a Jar library to add not only the jar file
but also the javadoc. However, this doesn't appear to link in the jar
file, and looks ike it requires further work to add the jar file.

Cheers

Graham

On 25 Oct, 11:09, gmseed  wrote:
> Hi
>
> I created an Android project that works fine.
>
> I then created a jar library in Eclipse using the "User Library"
> dialog box and added it to my Android project.
>
> When I now rebuild and rerun my application it crashes in both
> emulator and device modes.
>
> If I step through the debugger it's not much use as the application is
> crashing immediately at startup.
>
> Has anyone else experienced this problem?
>
> Does the jar user library need to be explicitly specified in the
> manifest file?
>
> Cheers
>
> Graham
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



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

2009-10-26 Thread gmseed

Hi

Thanks for explaining how you connect. I too use PHP, so I'll give it
a go.

I was wondering if anyone had seen an example of using the URI
connection string in connecting to a database such as MySQL an using
Java's JDBC. That way, connecting direct to the database.

Cheers

Graham

On 25 Oct, 11:29, jbrohan  wrote:
> 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.
>  $do = $_REQUEST['do'];
> if ($do == "groupphone"){
>         $phone=trim($_REQUEST['phone']);
>         $phone=str_replace(array('.','(',')','-',' ','+'),'',$phone);
>         if (substr($phone,0,1) == '1') $phone = substr($phone,1); // remove
> '1'
>         echo "error"; // initial testing}elseif($do == "startgroup"){
>
>         echo "xyz";
> ...
>
> the java that does the call to the php program on the server is...
>
>     public String callWebPage(String URLstring, String parameters){
>         String s;
>         try {
>             URL updateURL = new URL(URLstring+parameters);
>             URLConnection conn = updateURL.openConnection();
>             InputStream is = conn.getInputStream();
>             BufferedInputStream bis = new BufferedInputStream(is);
>             ByteArrayBuffer baf = new ByteArrayBuffer(50);
>             Log.e("SettingsDialog", "after the call to web");
>             int current = 0;
>             while((current = bis.read()) != -1){
>                 baf.append((byte)current);
>             }
>             Log.e("SettingsDialog", "back from web page"+parameters);
>             /* Convert the Bytes read to a String. */
>              s = new String(baf.toByteArray());
>              Log.e("SettingsDialog", String.format("in callWebPage =
> %s ",s));
>              return s;
>         } catch (Exception e) {
>                 Log.e("SettingsDialog", "exception in callWebPage");
>         }
>         return "error";
>     }
>
> And the setup of the URLstring is...s = callWebPage(Constants.WebCall,
> "?do=groupphone&phone="+s);  what the php script echoed is in s.
>
> It seems to be very reliable.
> It's worthwhile running your script from a browser first to make sure
> that it works.
>
> Good Luck
> John
>
> On Oct 24, 11:21 am, gmseed  wrote:
>
> > Hi
>
> > I'm developing an application to connect to a database on my website.
>
> > Does anyone know of a link to an example/tutorial in which this kind
> > of operation is performed?
>
> > Thanks
>
> > Graham
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] including jar user libraries

2009-10-25 Thread gmseed

Hi

I created an Android project that works fine.

I then created a jar library in Eclipse using the "User Library"
dialog box and added it to my Android project.

When I now rebuild and rerun my application it crashes in both
emulator and device modes.

If I step through the debugger it's not much use as the application is
crashing immediately at startup.

Has anyone else experienced this problem?

Does the jar user library need to be explicitly specified in the
manifest file?

Cheers

Graham
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



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

2009-10-24 Thread gmseed

Hi

I'm developing an application to connect to a database on my website.

Does anyone know of a link to an example/tutorial in which this kind
of operation is performed?

Thanks

Graham
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Poor Documentation

2009-10-24 Thread gmseed

Hi

Thanks for your reply.

I took the Sensor developer page as a typical example:

http://developer.android.com/reference/android/hardware/Sensor.html

and in the "summary" section the methods have no comments.

If I take another random section as an example; DialerFilter:

http://developer.android.com/reference/android/widget/DialerFilter.html

and select getDigits() you'll now see that there are no comments in
either the summary or main section.

I know the Android is a free system but I stand by my point that the
documentation could be a lot better. The better the developer
documentation, the better the take up.

Cheers

Graham

On 22 Oct, 10:00, gmseed  wrote:
> Is it me or is the Android Developer Reference documentation an
> absolute sham?
>
> Take the Sensor page, which lists the public methods:
>
> float   getMaximumRange()
> String  getName()
> float   getPower()
> float   getResolution()
> int     getType()
> String  getVendor()
> int     getVersion()
>
> Not a single comment as to what these do. Readers must be expected to
> be mind readers.
>
> Then take SensorListener, which provides a few comments on the
> accelermoeter, magnetic and orientation sensors but no mention of the
> other sensors.
>
> When I run an application with onSensorChanged  (int sensor, float[]
> values) it outputs 6 values and not 3 as the documentation would
> suggest.
>
> Etc, etc,
>
> Developers are expected to fish around and use guess work to try and
> figure out what's actually going on.
>
> Working with 4x4 rotation axis matrices is tricky stuff and needs
> detailed explanations.
>
> With all of Google's backing you'd think the documentation would be
> excellent.
>
> Consider the alternative system of Qt by Trolltech. The "Assitant"
> documentation is excellent and has led to a big take up of Qt. If
> Google wants developers to get up to speed fast on Android then they
> should phone the Trollech documenting team asap.
>
> I gather from reading previous posts that this documentation issue is
> not new and has been around since the start of Android. Clearly then
> somebody at Google has a strange idea as to what documenting an API
> means.
>
> The Android system is amazing but really let down by its developer
> documentation.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Poor Documentation

2009-10-22 Thread gmseed

Is it me or is the Android Developer Reference documentation an
absolute sham?

Take the Sensor page, which lists the public methods:

float   getMaximumRange()
String  getName()
float   getPower()
float   getResolution()
int getType()
String  getVendor()
int getVersion()

Not a single comment as to what these do. Readers must be expected to
be mind readers.

Then take SensorListener, which provides a few comments on the
accelermoeter, magnetic and orientation sensors but no mention of the
other sensors.

When I run an application with onSensorChanged  (int sensor, float[]
values) it outputs 6 values and not 3 as the documentation would
suggest.

Etc, etc,

Developers are expected to fish around and use guess work to try and
figure out what's actually going on.

Working with 4x4 rotation axis matrices is tricky stuff and needs
detailed explanations.

With all of Google's backing you'd think the documentation would be
excellent.

Consider the alternative system of Qt by Trolltech. The "Assitant"
documentation is excellent and has led to a big take up of Qt. If
Google wants developers to get up to speed fast on Android then they
should phone the Trollech documenting team asap.

I gather from reading previous posts that this documentation issue is
not new and has been around since the start of Android. Clearly then
somebody at Google has a strange idea as to what documenting an API
means.

The Android system is amazing but really let down by its developer
documentation.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] broken link in icons template download

2009-10-16 Thread gmseed

The README.txt file shipped with icon-templates-v1.0 and downloaded
from [http://developer.android.com/guide/practices/ui_guidelines/
icon_design.html] includes the following invalid link:

http://developer.android.com/guide/practices/ui_guidelines/icon_guidelines-v1.pdf


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: speech / voice recognition problem (HTC Hero / Emulator)

2009-10-07 Thread gmseed

Hi

I'm having the same problem with my HTC Hero phone.

Did you manage to solve the problem?

It would help if there was actually some documentation on the voice
recognition demo! Just a few comments in the .java file and that's it.

Thanks

Graham

On Aug 13, 2:41 pm, Ivan Viola  wrote:
> Hello,
> I have tried to get the voice recognition demo to work. When I tried
> it on the emulator for the first time, I experienced the "Recognizer
> not found" message. From some posts I was directed to change the image
> to the latest Android Developer Phone which is downloadable from the
> HTC website. When I did that, there was an issue with the "Audio
> problem" dialog. Simply, the microphone on a Dell laptop is not
> configured properly to make emulator hear what I am speaking (although
> it works without any troubles on Skype for example). Is there some way
> to overcome the "Audio problem"?
>
> Then I have now tried to run the voice recognition on a brand new HTC
> Hero bought unlocked at amazon.de. I have received the message
> "Recognizer not found." when I tried to run the voice recognition
> demo. Can I flash the Android Dev Phone 1 image to the HTC Hero phone
> to see whether this brings the voice recognition demo to work? How
> can I afterwards recover my previous (original) image?
>
> Thanks,
> Ivan
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Notepad Tutorial and sqlite3

2009-10-04 Thread gmseed

Hi Emre

Eventually found the database!!

I opened the Eclipse DDMS perspective and clicked on the "File
Explorer" tab and tracked the database down under:

/data/data/com.android.demo.notepad1/database/data

which is not I would expect :-)

If I now rerun sqlite via the adb shell I get:

./adb -s emulator-5554 shell
# sqlite3 /data/data/com.android.demo.notepad1/databases/data
SQLite version 3.5.9
Enter ".help" for instructions
sqlite> .tables
android_metadata  notes
sqlite> select * from notes;
1|Note 1|
2|Note 2|
3|Note 1|
4|Note 2|
5|Note 3|
6|Note 1|
7|Note 2|
8|Note 1|

At last!!

Cheers

Graham

On 4 Oct, 15:45, gmseed  wrote:
> Hi Emre
>
> Tried accessing the Notepad tutorial db and still get nothing?:
>
> ./adb -s emulator-5554 shell
> # sqlite3 /data/data/com.android.demo.notepad1.Notepadv1/databases/
> notes
> SQLite version 3.5.9
> Enter ".help" for instructions
> sqlite> .tables
> sqlite> .databases
> sqlite>
>
> Graham
>
> On 3 Oct, 21:47, "Emre A. Yavuz"  wrote:
>
> > Hi Graham,
>
> > By executing the following command
>
> > "# sqlite3 
> > /data/data/com.android.demo.notepad1.Notepadv1/databases/notes.db"
>
> > you've probably created a new database called "notes" and therefore it's 
> > not surprising that it doesn't contain any of the tables you look for.
>
> > Try
>
> > "# sqlite3 /data/data/com.android.demo.notepad1.Notepadv1/databases/notes"
>
> > instead and you'll probably be able see the output you're looking for.
>
> > Emre
>
> > > Date: Sat, 3 Oct 2009 12:16:06 -0700
> > > Subject: [android-beginners] Notepad Tutorial and sqlite3
> > > From: gms...@gmail.com
> > > To: android-beginners@googlegroups.com
>
> > > Hi
>
> > > Just worked my way through the Android Notepad v1 tutorial and when
> > > the emulator is running I thought I query the database:
>
> > > ./adb -s emulator-5554 shell
> > > # sqlite3 /data/data/com.android.demo.notepad1.Notepadv1/databases/
> > > notes.db
> > > SQLite version 3.5.9
> > > Enter ".help" for instructions
> > > sqlite> .tables
> > > sqlite> .databases
> > > sqlite>
>
> > > As you can see I get no output???
>
> > > Has anyone else experienced this problem?
>
> > > Thanks
>
> > > Graham
>
> > > PS. Conder and Darcey's Android book on p540 states the adb shell
> > > interface should work on both the emulator and device.
>
> > _
> > New! Get to Messenger faster: Sign-in here 
> > now!http://go.microsoft.com/?linkid=9677407
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Notepad Tutorial and sqlite3

2009-10-04 Thread gmseed

Hi Emre

Tried accessing the Notepad tutorial db and still get nothing?:

./adb -s emulator-5554 shell
# sqlite3 /data/data/com.android.demo.notepad1.Notepadv1/databases/
notes
SQLite version 3.5.9
Enter ".help" for instructions
sqlite> .tables
sqlite> .databases
sqlite>

Graham

On 3 Oct, 21:47, "Emre A. Yavuz"  wrote:
> Hi Graham,
>
> By executing the following command
>
> "# sqlite3 /data/data/com.android.demo.notepad1.Notepadv1/databases/notes.db"
>
> you've probably created a new database called "notes" and therefore it's not 
> surprising that it doesn't contain any of the tables you look for.
>
> Try
>
> "# sqlite3 /data/data/com.android.demo.notepad1.Notepadv1/databases/notes"
>
> instead and you'll probably be able see the output you're looking for.
>
> Emre
>
>
>
> > Date: Sat, 3 Oct 2009 12:16:06 -0700
> > Subject: [android-beginners] Notepad Tutorial and sqlite3
> > From: gms...@gmail.com
> > To: android-beginners@googlegroups.com
>
> > Hi
>
> > Just worked my way through the Android Notepad v1 tutorial and when
> > the emulator is running I thought I query the database:
>
> > ./adb -s emulator-5554 shell
> > # sqlite3 /data/data/com.android.demo.notepad1.Notepadv1/databases/
> > notes.db
> > SQLite version 3.5.9
> > Enter ".help" for instructions
> > sqlite> .tables
> > sqlite> .databases
> > sqlite>
>
> > As you can see I get no output???
>
> > Has anyone else experienced this problem?
>
> > Thanks
>
> > Graham
>
> > PS. Conder and Darcey's Android book on p540 states the adb shell
> > interface should work on both the emulator and device.
>
> _
> New! Get to Messenger faster: Sign-in here 
> now!http://go.microsoft.com/?linkid=9677407
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Notepad Tutorial and sqlite3

2009-10-04 Thread gmseed

Hi Emre

Thanks for your reply.

I'll try your suggestion.

Strange because on p540 of Conder & Darcey's "Android" book they
state:

# sqlite3 /data/data/com.androidbook.PetTracker/databases/
pet_tracker.db

with text "...to connect to the database we created ...".

so I just followed the same style.

I am slightly confused as the sqlite site states "If the file does not
exist, a new one is created automatically." on page 
http://www.sqlite.org/sqlite.html.

Thus, after running the notepad app and creating a new note [which in
turn creates a new database if not already present] then I'd expect
the sqlite command to connect to already present notes.db database.

Furthermore, the only difference between what I did and your
suggestion is the ".db" extension. I note that the sqlite
documentation does not explicitly use the ".db" extension when
creating a new database and by default creates a new file with the
".db" extension.

Graham


On 3 Oct, 21:47, "Emre A. Yavuz"  wrote:
> Hi Graham,
>
> By executing the following command
>
> "# sqlite3 /data/data/com.android.demo.notepad1.Notepadv1/databases/notes.db"
>
> you've probably created a new database called "notes" and therefore it's not 
> surprising that it doesn't contain any of the tables you look for.
>
> Try
>
> "# sqlite3 /data/data/com.android.demo.notepad1.Notepadv1/databases/notes"
>
> instead and you'll probably be able see the output you're looking for.
>
> Emre
>
>
>
> > Date: Sat, 3 Oct 2009 12:16:06 -0700
> > Subject: [android-beginners] Notepad Tutorial and sqlite3
> > From: gms...@gmail.com
> > To: android-beginners@googlegroups.com
>
> > Hi
>
> > Just worked my way through the Android Notepad v1 tutorial and when
> > the emulator is running I thought I query the database:
>
> > ./adb -s emulator-5554 shell
> > # sqlite3 /data/data/com.android.demo.notepad1.Notepadv1/databases/
> > notes.db
> > SQLite version 3.5.9
> > Enter ".help" for instructions
> > sqlite> .tables
> > sqlite> .databases
> > sqlite>
>
> > As you can see I get no output???
>
> > Has anyone else experienced this problem?
>
> > Thanks
>
> > Graham
>
> > PS. Conder and Darcey's Android book on p540 states the adb shell
> > interface should work on both the emulator and device.
>
> _
> New! Get to Messenger faster: Sign-in here 
> now!http://go.microsoft.com/?linkid=9677407
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Notepad Tutorial and sqlite3

2009-10-03 Thread gmseed

Hi

Just worked my way through the Android Notepad v1 tutorial and when
the emulator is running I thought I query the database:

./adb -s emulator-5554 shell
# sqlite3 /data/data/com.android.demo.notepad1.Notepadv1/databases/
notes.db
SQLite version 3.5.9
Enter ".help" for instructions
sqlite> .tables
sqlite> .databases
sqlite>

As you can see I get no output???

Has anyone else experienced this problem?

Thanks

Graham

PS. Conder and Darcey's Android book on p540 states the adb shell
interface should work on both the emulator and device.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Doc and Samples typos and suggestions?

2009-09-30 Thread gmseed

Hi

Thanks for your reply.

I saw the bug report system but thought that documenting may use a
different system.

If I spot anything I'll submit it via the bug reporting system.

Thanks

Graham

On 29 Sep, 21:07, Romain Guy  wrote:
> Hi,
>
> Please follow the instructions at source.android.com if you want to
> submit patches, or just file bugs at b.android.com.
>
> On Tue, Sep 29, 2009 at 12:20 PM, gmseed  wrote:
>
> > Hi
>
> > I've found a couple of typos in the dev guide and samples.
>
> > Does anyone know how to pass these onto the Google Android doc team?
>
> > Graham
>
> --
> Romain Guy
> Android framework engineer
> romain...@android.com
>
> Note: please don't send private questions to me, as I don't have time
> to provide private support.  All such questions should be posted on
> public forums, where I and others can see and answer them
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Doc and Samples typos and suggestions?

2009-09-29 Thread gmseed

Hi

I've found a couple of typos in the dev guide and samples.

Does anyone know how to pass these onto the Google Android doc team?

Graham
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Changing the Build Target

2009-09-29 Thread gmseed

I have 2 versions of a "Hello,World" project. Both were newly built.
One I built with Android 1.5-API Level 3 and one with Android1.6-API
Level 4.

If I run them as initially setup then they both run fine.

I then changed the build target of the 1.6-API Level 4 down to 1.5-API
Level 3 via right clicking on the project, selecting "Properties" and
then "Andoird" and selecting a different build target.

The "Android 1.6" icon is changed to an "Android 1.5" icon in the
Package Explorer but when I rebuild and rerun I get the following
error:

[2009-09-29 19:05:57 - MyFirstAndroidApp]ERROR: Application requires
API version 4. Device API version is 3 (Android 1.5).
[2009-09-29 19:05:57 - MyFirstAndroidApp]Launch canceled!

Has anyone else experienced this problem in changing the build target?

Thanks

Graham
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: adb installer on Ubuntu

2009-09-29 Thread gmseed

Hi

Thanks for your reply. I did the following, and now works fine:

created file /etc/udev/rules.d/50-android.rules.
SUBSYSTEM=="usb", SYSFS{idVendor}=="0bb4", MODE="0666"
chmod a+rx /etc/udev/rules.d/51-android.rules

Thanks for your help.

Graham


On 28 Sep, 20:05, Mark Murphy  wrote:
> gmseed wrote:
> > Hi
>
> > I developed a first Hello-World adnroid application and was wanting to
> > install on my HTC Hero device.
>
> > I connected the device, enabled "Unknown sources" in "Applications
> > Settings" and typed:
>
> > adb -d install "...path to file..."
>
> > and get back:
>
> > "device not found"
>
> > Does anyone know how to upload apps to an android device when using
> > Ubuntu?
>
> Generally, you need to adjust your udev rules:
>
> http://developer.android.com/guide/developing/device.html#setting-up
>
> Some people have to try different numbers than the 51-android.rules the
> documentation suggests. Also, the instructions shown there are for HTC
> devices; different manufacturers will have different rules.
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://twitter.com/commonsguy
>
> Android App Developer Training:http://commonsware.com/training.html
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] adb installer on Ubuntu

2009-09-28 Thread gmseed

Hi

I developed a first Hello-World adnroid application and was wanting to
install on my HTC Hero device.

I connected the device, enabled "Unknown sources" in "Applications
Settings" and typed:

adb -d install "...path to file..."

and get back:

"device not found"

Does anyone know how to upload apps to an android device when using
Ubuntu?

Thanks

Graham

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---