[android-beginners] Re: WebView Issue

2009-05-05 Thread glory

hi,
loadDataWithBaseURL() method was woking well in the previous version
i.e 1.1 but when I migrated to 1.5, in webview it showed only blank
screen.
Also in the API doc it is mentioned that WebView is depricated.
I am really confused over this.
Please help me out

Thanks,
Glory


On May 6, 3:23 am, Mark Murphy  wrote:
> glory wrote:
> > Does loadDataWithBaseURL is depricated in version 1.5 ?
>
> Where do you see this? Looking at the 1.5 API differences report, I do
> not see anything mentioning loadDataWithBaseURL().
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://twitter.com/commonsguy
>
> Android App Developer Books:http://commonsware.com/books.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] Re: Use external component of the phone list.

2009-05-05 Thread swarup

look at API demos example @

http://developer.android.com/guide/samples/ApiDemos/src/com/example/android/apis/view/AutoComplete4.html
http://developer.android.com/guide/samples/ApiDemos/src/com/example/android/apis/view/AutoComplete5.html

On May 5, 6:31 pm, rinia  wrote:
> I am using android first time.I have done some initial learning.So,I
> like to prepare one component.I like to fetch the same the contact
> detail of the phone using external provider like contact Provider.How
> can I do that?Please help me.
--~--~-~--~~~---~--~~
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: Basic Gps application

2009-05-05 Thread amit saini
Hello Florent,

For starting GPS related application, you can refer following useful link -


   - http://www.devx.com/wireless/Article/39239/0/page/1

Regards,
Amit Saini


On Tue, May 5, 2009 at 1:02 AM, Flow  wrote:

>
> Hello world.
>
> I'm looking for a basic Gps code (initialize, get Gps location, ...).
> I'm not very very good at Java and Android so i'd like some examples
> to understand the concepts.
>
> Thank you.
> Florent
>
> >
>

--~--~-~--~~~---~--~~
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: distributing an app packaged with just emulator

2009-05-05 Thread tansaku

Hi Raphael,

Thanks - yes, actually I just upgraded to the latest SDK and was able
to do the install over the browser.  That also allowed me to create
the bundle I needed.

Many thanks
CHEERS> SAM

On May 2, 8:41 am, Raphael  wrote:
> Are you using the final 1.5 SDK or the 1.5 preview one?
> I just tried installing an app on the emulator using the web browser
> and it installed fine.
>
> R/
>
> 2009/4/28 tansaku :
>
>
>
> > Hi Jack,
>
> > Many thanks for that suggestion, however even after "sudo killall adb"
> > the emulator does not show up in the list of devices.
>
> > The web download idea is also a good one, and I thought I had got it
> > to work after creating an sdcard image for the emulator, but when I
> > tried to run the downloaded app, I got a message:
>
> > "Install blocked.  For security, your phone is set to block
> > installations of applications not sourced in Android Market".
>
> > With two buttons: "Settings" and "Cancel" - clicking on "Settings"
> > causes an error.
>
> > I did some web searching, but can't immediately see any way round
> > this ...
>
> > Many thanks again
> > CHEERS> SAM
>
> > On Apr 23, 3:35 pm, "Jack Ha (T-Mobile USA)" 
> > wrote:
> >> If adb is not able to connect to the emulator, try "sudo killall adb"
> >> first and then rerun you "sudo adb ..." command.
>
> >> One suggestion is that you can place you app on a web server and your
> >> friends should be able to download/install it via the emulator
> >> browser. Of course doing this might expose your app to the outside
> >> world.
>
> >> --
> >> Jack Ha
> >> Open Source Development Center
> >> ・T・ ・ ・Mobile・ stick together
>
> >> The views, opinions and statements in this email are those of
> >> the author solely in their individual capacity, and do not
> >> necessarily represent those of T-Mobile USA, Inc.
>
> >> On Apr 23, 5:25 pm, Samuel Joseph  wrote:
>
> >> > Hi All,
>
> >> > [Tried posting this through web interface but didn't show up ... here
> >> > goes via email ...]
>
> >> > I was wondering if anyone has ever been able to distribute their app in
> >> > a bundle with an emulator?
>
> >> > The reason I want to do this is that I have some friends who don't have
> >> > android phones, but I'd like them to be able to play with my app so that
> >> > they can give me feedback.  I've previously sent them screen casts, but
> >> > I'd really like them to be able to get interactive with the app.
>
> >> > Now I could ask them to get all installed with the whole android
> >> > framework, eclipse etc,. but some of them are not so technical.  Ideally
> >> > what I'd like to be able to do is create a package that is the android
> >> > emulator with my app and perhaps 1 or 2 other related apps
> >> > pre-installed, so that they can download it, open it and run it
> >> > interactively on their computers?
>
> >> > Has anyone ever tried this?
>
> >> > So far I found that I can run the emulator standalone, and I assume I
> >> > could probably send them just that and it would run.  However the adb
> >> > tool is needed to install apps.  I could send them that too, and ask the
> >> > to run an 'adb install myapp.apk' from the command line, but at the
> >> > moment I can't even seem to do that myself.
>
> >> > Running the emulator standalone, the adb tool can't seem to see it:
>
> >> > samuel-josephs-computer-2:tools samueljoseph$ sudo ./adb devices
> >> > List of devices attached
>
> >> > I just get no list of devices ...
>
> >> > I have previously used the adb tool to install apk files, but that is
> >> > after I had started the emulator from eclipse - of course even then I
> >> > always have to restart eclipse and the emulator two or three times
> >> > before I can get the connection (I am on OSX 10.5.6., eclipse 3.4.1) ...
>
> >> > Any suggestions greatly appreciated.
>
> >> > CHEERS> SAM
--~--~-~--~~~---~--~~
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: Hello World Tutorial Error Message

2009-05-05 Thread dragli

seems you are using the Android SDK version1.1...What version of ADT
do you use? It should be 0.8 (eclipse-->help-->SW update-->installed
SW list) If you are using the ADT ver.0.9, you need to upgrade to the
Android SDK 1.5 for compatibility.
I am not a Vista user, but the android.bat exist in the "android-sdk-
windows-1.5_r1\tools".

On 5月6日, 上午3時29分, Dennis Christy  wrote:
> The example in the documentation for setting the path apparently refers to
> Windows XP, I am using Windows Vista, so I had to do it differently. I did:
> ControlPanel\System\AdvancedSystemSettings\EnvironmentVariable\Path in the
> dialog box for Path I entered:
> c:\android-sdk-windows-1.1_r1\tools
>
> I am not able to get to a command line box, and I do not have android.bat
> anywhere in my android-sdk files in which I could enter the
> tools\android.bat create avd --name you suggested  ?
> Really appreciate any help you can give me
>
> 2009/5/5 dragli 
>
>
>
>
>
> > Do you have further more information with this error?
>
> > Just some guesses:
> > 1. what version of SDK do you use? 1.5? or still 1.1? did you set the
> > right path in the eclipse setting?
> > 2. did you create the virtual device for the simulation?
> > (command like this: tools\android.bat create avd --name
> > your_avd_name )
>
> > On 5月5日, 上午2時42分, Dennis Christy  wrote:
> > > This is my 4th try at getting my question posted. Don't know what I am
> > doing
> > > wrong???
> > > Here is my question:
>
> > > I receive the following error on screen 2 of the Hello World Tutorial:
> > > "Error: Error loading the SDK"
> > > I am running Eclipse version 3.4-2 Build Id: M200-0211-1700
> > > I have installed the ADT plugin
> > > I am running Windows Vista
> > > The screen I get is also different from the screen shown in the
> > > tutorial
> > > Thanks for your help
>
> > > --
> > > Dennis Christy
>
> --
> Dennis Christy
--~--~-~--~~~---~--~~
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: What is causing this error?

2009-05-05 Thread Mark Murphy

Kevin J. Brooks wrote:
> That is solved, but when I use the emulator and click on an item in the
> list, I the item does not stay clicked.  What do I need to do?

Rethink your perceptions of UIs.

Android operates in two modes: touch mode and...ummm...non-touch mode.

Non-touch mode is when you use the trackball or D-pad for navigation. In
that mode, a ListView row stays highlighted, to indicate where you are
and where you will move on the next trackball/D-pad selection.

Touch mode is when you tap on the touchscreen (or, in the emulator,
click on the screen with the mouse). In that mode, rows are briefly
highlighted to show where you tapped, but they do not stay highlighted.

The expectation is that any ListActivity should override onListClick()
and actually do something when the user taps a row, such as launch
another activity.

This seems unintuitive when you are only working with the emulator, and
particularly when you are creating your first Android apps. Over time,
and once you start seeing your work on an actual Android device, you get
used to it.

Android development is a bit like a movie: _Dr. Romainguy (Or: How I
Learned to Stop Worrying and Love the Touch Mode)_ ;-)

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy

_The Busy Coder's Guide to Android Development_ Version 2.0 Available!

--~--~-~--~~~---~--~~
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: What is causing this error?

2009-05-05 Thread Kevin J. Brooks

That is solved, but when I use the emulator and click on an item in the
list, I the item does not stay clicked.  What do I need to do?
On Tue, 2009-05-05 at 06:10 -0400, Mark Murphy wrote:
> Kevin J. Brooks wrote:
> > When I try to bring this one screen up I get the Application has stopped
> > unexpectedly.
> 
> 
> 
> > 05-04 20:53:27.324: ERROR/AndroidRuntime(237):
> > java.lang.RuntimeException: Unable to start activity
> > ComponentInfo{com.parisj13.trackmydrinks/com.parisj13.trackmydrinks.BeerScreen}:
> java.lang.RuntimeException: Your content must have a ListView whose id
> attribute is 'android.R.id.list'
> 
> This means that instead of:
> 
> >  > android:layout_width="wrap_content"
> > android:layout_height="wrap_content"
> > android:layout_below="@id/beerselect"
> > android:entries="@array/beers"
> > android:background="#aa"
> > android.textColor="ff"
> > android:choiceMode="singleChoice"/>
> 
> you want:
> 
>android:layout_width="wrap_content"
>   android:layout_height="wrap_content"
>   android:layout_below="@id/beerselect"
>   android:entries="@array/beers"
>   android:background="#aa"
>   android.textColor="ff"
>   android:choiceMode="singleChoice"/>
> 
> http://developer.android.com/reference/android/app/ListActivity.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] Re: Contradiction in Dev Guide

2009-05-05 Thread jtaylor


On May 5, 7:46 pm, jtaylor  wrote:
> This is just a little confusing.
>
> "Similarly, the Maps external library is not included in the standard
> Android library provided in the SDK...the Maps external library is
> made available to you as part of the Google APIs add-on"
>
> Then it says:
> "For your convenience, the Google APIs add-on is also included in the
> Android SDK."
>
> http://developer.android.com/guide/topics/location/index.html
>
> - juan

It's cleared up on this page. But it needs to be clear on the other
page.

"The Google APIs add-on is not yet available for download. For your
convenience, the Google APIs add-on is available preinstalled in the
Android 1.5 SDK."
http://code.google.com/android/add-ons/google-apis/

- juan



--~--~-~--~~~---~--~~
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] Contradiction in Dev Guide

2009-05-05 Thread jtaylor

This is just a little confusing.

"Similarly, the Maps external library is not included in the standard
Android library provided in the SDK...the Maps external library is
made available to you as part of the Google APIs add-on"

Then it says:
"For your convenience, the Google APIs add-on is also included in the
Android SDK."

http://developer.android.com/guide/topics/location/index.html


- juan
--~--~-~--~~~---~--~~
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: WebView Issue

2009-05-05 Thread Mark Murphy

glory wrote:
> Does loadDataWithBaseURL is depricated in version 1.5 ?

Where do you see this? Looking at the 1.5 API differences report, I do
not see anything mentioning loadDataWithBaseURL().

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy

Android App Developer Books: http://commonsware.com/books.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] Re: Hide address bar in Webview

2009-05-05 Thread Josiah

Thanks, I appreciate it!

On May 5, 4:15 pm, Mark Murphy  wrote:
> Josiah wrote:
> > I admit I'm pretty new to Java.  You wouldn't be itchin' to show some
> > code, would you?
>
> Well, you can grab the source code to my introductory book:
>
> http://commonsware.com/Android/
>
> The WebKit/Browser3 application should have a WebViewClient in it.
>
> The Hello, WebView tutorial on the Android site also demonstrates it:
>
> http://developer.android.com/guide/tutorials/views/hello-webview.html
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://twitter.com/commonsguy
>
> Android App Developer Books:http://commonsware.com/books.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] Re: Hide address bar in Webview

2009-05-05 Thread Mark Murphy

Josiah wrote:
> I admit I'm pretty new to Java.  You wouldn't be itchin' to show some
> code, would you?

Well, you can grab the source code to my introductory book:

http://commonsware.com/Android/

The WebKit/Browser3 application should have a WebViewClient in it.

The Hello, WebView tutorial on the Android site also demonstrates it:

http://developer.android.com/guide/tutorials/views/hello-webview.html

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy

Android App Developer Books: http://commonsware.com/books.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] Re: Hide address bar in Webview

2009-05-05 Thread Josiah

Uh, never mind the PhoneGap part.  I have too many Google Groups open
right now... Sorry.

On May 5, 4:01 pm, Josiah  wrote:
> Thanks for reply.
>
> I admit I'm pretty new to Java.  You wouldn't be itchin' to show some
> code, would you?
>
> I figure since this seems to influence everyone who uses PhoneGap
> Android this way, it may be of benefit to more than just me.  Where
> Android gives away the URL of the webapp, it seems to undermine the
> efforts to make the app native to begin with.
>
> -Josiah
>
> On May 5, 12:17 pm, "Mark Murphy"  wrote:
>
> > > I am creating an app that loads a URL in Webview at launch. No address
> > > bar is present on the first screen.  After I follow a link on the page
> > > to a second screen, a new window launches and an address bar appears
> > > on the screen.
>
> > That is because clicking on the link in your WebView is launching the
> > Browser activity.
>
> > > I would like to know how to disable that address bar in the Webview.
> > > Anyone have any ideas?
>
> > Check out WebViewClient and shouldOverrideUrlLoading(). You need to
> > arrange to intercept clicks and route them back to your own WebView (or to
> > some other activity of your choosing).
>
> > --
> > Mark Murphy (a Commons Guy)http://commonsware.com
> > _The Busy Coder's Guide to Android Development_ Version 2.0 Available!
--~--~-~--~~~---~--~~
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: Hide address bar in Webview

2009-05-05 Thread Josiah

Thanks for reply.

I admit I'm pretty new to Java.  You wouldn't be itchin' to show some
code, would you?

I figure since this seems to influence everyone who uses PhoneGap
Android this way, it may be of benefit to more than just me.  Where
Android gives away the URL of the webapp, it seems to undermine the
efforts to make the app native to begin with.

-Josiah

On May 5, 12:17 pm, "Mark Murphy"  wrote:
> > I am creating an app that loads a URL in Webview at launch. No address
> > bar is present on the first screen.  After I follow a link on the page
> > to a second screen, a new window launches and an address bar appears
> > on the screen.
>
> That is because clicking on the link in your WebView is launching the
> Browser activity.
>
> > I would like to know how to disable that address bar in the Webview.
> > Anyone have any ideas?
>
> Check out WebViewClient and shouldOverrideUrlLoading(). You need to
> arrange to intercept clicks and route them back to your own WebView (or to
> some other activity of your choosing).
>
> --
> Mark Murphy (a Commons Guy)http://commonsware.com
> _The Busy Coder's Guide to Android Development_ Version 2.0 Available!
--~--~-~--~~~---~--~~
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] HTC Magic

2009-05-05 Thread moa

Anyone got an HTC Magic?

http://groups.google.co.uk/group/htc-magic


--~--~-~--~~~---~--~~
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: Hello World Tutorial Error Message

2009-05-05 Thread Dennis Christy
The example in the documentation for setting the path apparently refers to
Windows XP, I am using Windows Vista, so I had to do it differently. I did:
ControlPanel\System\AdvancedSystemSettings\EnvironmentVariable\Path in the
dialog box for Path I entered:
c:\android-sdk-windows-1.1_r1\tools

I am not able to get to a command line box, and I do not have android.bat
anywhere in my android-sdk files in which I could enter the
tools\android.bat create avd --name you suggested  ?
Really appreciate any help you can give me




2009/5/5 dragli 

>
> Do you have further more information with this error?
>
> Just some guesses:
> 1. what version of SDK do you use? 1.5? or still 1.1? did you set the
> right path in the eclipse setting?
> 2. did you create the virtual device for the simulation?
> (command like this: tools\android.bat create avd --name
> your_avd_name )
>
> On 5月5日, 上午2時42分, Dennis Christy  wrote:
> > This is my 4th try at getting my question posted. Don't know what I am
> doing
> > wrong???
> > Here is my question:
> >
> > I receive the following error on screen 2 of the Hello World Tutorial:
> > "Error: Error loading the SDK"
> > I am running Eclipse version 3.4-2 Build Id: M200-0211-1700
> > I have installed the ADT plugin
> > I am running Windows Vista
> > The screen I get is also different from the screen shown in the
> > tutorial
> > Thanks for your help
> >
> > --
> > Dennis Christy
>
> >
>


-- 
Dennis Christy

--~--~-~--~~~---~--~~
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] How to create and open an SQLite database? (Based on NotePad tutorial)

2009-05-05 Thread AJ

Hello - our dev team is looking into utilizing an SQLite DB as a means
to store data within our application.  We've been following the
official dev guide's NotePad tutorial (http://d.android.com/guide/
tutorials/notepad/notepad-ex1.html) to accomplish this, but we're
stuck on Step 2: the preliminary creation of the database itself.  We
aren't even concerned with inserting into and retrieving from the DB
yet.

Basically, we re-purposed the NoteDbAdapter.java file (renamed to
simply DbAdapter.java) to work with our main activity, called
LifeVault.  When an instance of the DbAdapter class created within
LifeVault.java calls the "open()" function within DbAdapter.java,
however, the Android emulator just crashes and displays a message
along the lines of "the process has stopped working and needs to
close."

The code doesn't have any compilation errors, and it's based on the
code from the official dev guide, so we're pretty perplexed as to why
this happens.


/**
DbAdapter.java
***/
package com.android.lifevault;

import android.content.Context;
import android.database.SQLException;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import android.util.Log;

public class DbAdapter {

   private static final String TAG = "DbAdapter";
   private DatabaseHelper mDbHelper;
   private SQLiteDatabase mDb;

   private static final String DATABASE_NAME = "FVDB";
   private static final String DATABASE_TABLE_USER = "User";
   private static final String DATABASE_TABLE_ACH = "Ach";
   private static final String DATABASE_TABLE_USER_ACH = "User_Ach";
   private static final int DATABASE_VERSION = 1;

   private final Context mCtx;

   private static class DatabaseHelper extends SQLiteOpenHelper {

   DatabaseHelper(Context context) {
   super(context, DATABASE_NAME, null, DATABASE_VERSION);
   }

   @Override
   public void onCreate(SQLiteDatabase db) {
   // Our "db.execSQL" statements for creating the three tables
live here
   }

   @Override
   public void onUpgrade(SQLiteDatabase db, int oldVersion, int
newVersion) {
   Log.w(TAG, "Upgrading database from version " + oldVersion
+ " to "
   + newVersion + ", which will destroy all old
data");
   db.execSQL("DROP TABLE IF EXISTS User_Ach");
   db.execSQL("DROP TABLE IF EXISTS Ach");
   db.execSQL("DROP TABLE IF EXISTS User");
   onCreate(db);
   }
   }

   /**
* Constructor - takes the context to allow the database to be
* opened/created
*/
   public DbAdapter(Context ctx) {
   this.mCtx = ctx;
   }

   /**
** Open the database - Here's where things get screwy.
**/
   public DbAdapter open() throws SQLException {
   mDbHelper = new DatabaseHelper(mCtx);
   mDb = mDbHelper.getWritableDatabase();
   return this;
   }

   public void close() {
   mDbHelper.close();
   }
}
/**
END DbAdapter.java
**/



/**
LifeVault.java
**/
package com.android.lifevault;

import com.android.lifevault.DbAdapter;
import android.app.Activity;
import android.os.Bundle;
import android.view.View;

public class LifeVault extends Activity {

private DbAdapter mDbHelper;

@Override
public void onCreate(Bundle icicle) {
super.onCreate(icicle);
mDbHelper = new DbAdapter(this);
mDbHelper.open();   // <- Program crashes here
setContentView(R.layout.main);

/**The rest of the code**/

 }
}
/
END LifeVault.java
/



- Am I using the Context class incorrectly?
- Am I missing a library that the app needs to recognize the
getWritableDatabase() funciton?

Those are my two best guesses.  I'm so close I can taste it!
Hopefully someone can help me see this answer that's probably right in
front of my face.  Thank you; the help is greatly appreciated.
--~--~-~--~~~---~--~~
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: Andriod Development

2009-05-05 Thread Mark Murphy

> i am very new to android development. i have one question in my mind
>
> 1. Which is better approach programming android. i mean using main.xml
> or coding?
>
> Please help me on this

XML is typically easier, unless you don't like XML. But, that's just me.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
_The Busy Coder's Guide to Android Development_ Version 2.0 Available!



--~--~-~--~~~---~--~~
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: Hide address bar in Webview

2009-05-05 Thread Mark Murphy

> I am creating an app that loads a URL in Webview at launch. No address
> bar is present on the first screen.  After I follow a link on the page
> to a second screen, a new window launches and an address bar appears
> on the screen.

That is because clicking on the link in your WebView is launching the
Browser activity.

> I would like to know how to disable that address bar in the Webview.
> Anyone have any ideas?

Check out WebViewClient and shouldOverrideUrlLoading(). You need to
arrange to intercept clicks and route them back to your own WebView (or to
some other activity of your choosing).

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
_The Busy Coder's Guide to Android Development_ Version 2.0 Available!



--~--~-~--~~~---~--~~
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: Snake on Image

2009-05-05 Thread Wujo

On May 4, 9:45 am, vineeth Desai  wrote:
> Raphael,
>  This already I tried. It didnt work for me. I am trying this for smaple
> game snake in Android SDK. Please let us know the solution. I am blocked
> with other developments.
>
> Warm Regards,
> Sunil
>

There is no way it doesn't work. Just simply put :




into your layout .xml, and of course store menu_background file in
drawable dir.
BR,
Rafal

--~--~-~--~~~---~--~~
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] Andriod Development

2009-05-05 Thread RS.Giridaran

Hi All,

i am very new to android development. i have one question in my mind

1. Which is better approach programming android. i mean using main.xml
or coding?

Please help me on this

Thanks,
Giridaran


--~--~-~--~~~---~--~~
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] Use external component of the phone list.

2009-05-05 Thread rinia

I am using android first time.I have done some initial learning.So,I
like to prepare one component.I like to fetch the same the contact
detail of the phone using external provider like contact Provider.How
can I do that?Please help me.

--~--~-~--~~~---~--~~
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] Hide address bar in Webview

2009-05-05 Thread Josiah

I am creating an app that loads a URL in Webview at launch. No address
bar is present on the first screen.  After I follow a link on the page
to a second screen, a new window launches and an address bar appears
on the screen.

I would like to know how to disable that address bar in the Webview.
Anyone have any ideas?

--~--~-~--~~~---~--~~
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: Android 1.5 SDK now available

2009-05-05 Thread gritty

I am also having this problem and I don't have a clue what to do about
it.


On May 2, 4:27 pm, "david.lygagnon"  wrote:
> Hi,
>
> I am having the same problem as Javier with ubuntu 9.04 Jaunty, x64
> and eclipse version: 3.4.2.
>
> On launching eclipse after installing the Android plugin, I get the
> following error:
>
> Multiple problems have occured:
> pingUsageServer failed
> Android sdk ping
>
> Does anyone have a solution to this problem?
>
> David
>
> On Apr 27, 12:41 pm, Javi  wrote:
>
> > I have problems with the new sdk (1.5),
>
> > A dialog show with a error a and suggest me to exit the workbench.
> > Other dialog appear with a "pingUsageServer failed":
> > Android SDK Ping
> > pingUsageServer failed
>
> > The .log file says:
>
> > !SESSION 2009-04-27 21:31:38.570 
> > ---
> > eclipse.buildId=M20090211-1700
> > java.version=1.6.0_13
> > java.vendor=Sun Microsystems Inc.
> > BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=es_ES
> > Command-line arguments:  -os linux -ws gtk -arch x86_64
>
> > !ENTRY com.android.ide.eclipse.adt 4 0 2009-04-27 21:31:46.358
> > !MESSAGE Failed to load properties file for project 'WifiScan'
>
> > !ENTRY com.android.ide.eclipse.adt 4 0 2009-04-27 21:31:48.330
> > !MESSAGE pingUsageServer failed
> > !STACK 0
> > org.eclipse.swt.SWTError: Not implemented [multiple displays]
> >         at org.eclipse.swt.SWT.error(SWT.java:3803)
> >         at org.eclipse.swt.widgets.Display.checkDisplay(Display.java:712)
> >         at org.eclipse.swt.widgets.Display.create(Display.java:842)
> >         at org.eclipse.swt.graphics.Device.(Device.java:154)
> >         at org.eclipse.swt.widgets.Display.(Display.java:471)
> >         at org.eclipse.swt.widgets.Display.(Display.java:462)
> >         at 
> > com.android.sdkstats.SdkStatsService.getUserPermission(SdkStatsService.java:278)
> >         at 
> > com.android.sdkstats.SdkStatsService.ping(SdkStatsService.java:126)
> >         at 
> > com.android.ide.eclipse.common.SdkStatsHelper.pingUsageServer(Unknown
> > Source)
> >         at com.android.ide.eclipse.adt.AdtPlugin$12.run(Unknown Source)
> >         at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
>
> > !ENTRY com.android.ide.eclipse.adt 4 0 2009-04-27 21:31:48.341
> > !MESSAGE pingUsageServer failed
> > !STACK 0
> > org.eclipse.swt.SWTError: Not implemented [multiple displays]
> >         at org.eclipse.swt.SWT.error(SWT.java:3803)
> >         at org.eclipse.swt.widgets.Display.checkDisplay(Display.java:712)
> >         at org.eclipse.swt.widgets.Display.create(Display.java:842)
> >         at org.eclipse.swt.graphics.Device.(Device.java:154)
> >         at org.eclipse.swt.widgets.Display.(Display.java:471)
> >         at org.eclipse.swt.widgets.Display.(Display.java:462)
> >         at 
> > com.android.sdkstats.SdkStatsService.getUserPermission(SdkStatsService.java:278)
> >         at 
> > com.android.sdkstats.SdkStatsService.ping(SdkStatsService.java:126)
> >         at 
> > com.android.ide.eclipse.common.SdkStatsHelper.pingUsageServer(Unknown
> > Source)
> >         at com.android.ide.eclipse.adt.AdtPlugin$12.run(Unknown Source)
> >         at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
>
> > I use the latest Ubuntu jaunty and Sun JDK
> > The previous Android SDK  (1.1) works without problems
>
> > I tried to do a clean installation of the eclipse and the sdk but the
> > problem persist
>
> > Anybody else with this problem?
> > --
> > Javier Jardón Cabezas

--~--~-~--~~~---~--~~
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] How to make a Button repeat

2009-05-05 Thread Colin

Hi,

Pretty new to Android, I am just wondering how to make a button
'repeat'.

For example, if I touch and hold the button down, I would like an
event to fire for the initial 'down' then, preferably after a little
delay, I would like to get further 'down' or 'still down' events.

The behavior I am after is much like the +/- buttons on the date
widget in the API Demos - Views - Date Widget activities... press and
hold the +, you get an initial increment, then after a short delay, it
continues to increment.

Regards
Colin


--~--~-~--~~~---~--~~
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: Installing the android SDK on my new PC

2009-05-05 Thread TheSamurai

Where do we choose the SDK target? I'm new to Eclipse... IDE's are a
PITA 'til you get used to them. Thanks in advance.


On May 4, 1:29 am, swarup  wrote:
> SDK 1.5 supports 3 different targets: 1.1, 1.5, Google APIs. you need
> to choose one for creating a project, based on the target selected,
> proper Android.jar will added to your project.
>
> Also checkhttp://developer.android.com/guide/developing/tools/avd.html
>
> On May 4, 7:49 am, weird0  wrote:
>
> > Hi!! I am working on the android platform. Prior to installing it on
> > my PC, i was coding on  my laptop. The environment was ready and
> > everything was going okay. I am unable to create a new project on  my
> > PC.
>
> > When I select Start-> New Project. The window opens.
>
> > It has a red mark along with cross sign that says "An SDK target must
> > be specified", upon specifying the project nam.
>
> > Along with that, it also has two additional textboxes on the bottom
> > that say(never seen before):
>
> > Create Activity
> > Min SDK version
>
> > When i run the command 'adb' on the emulator to see whether android
> > has been installed properly, they work A-okay.
>
> > So why am I getting these kind of errors. I tried to re-install the
> > API several times but cant seem to figure out what is the problem.
>
> > Would some-one suggest what is the problem?
>
>

--~--~-~--~~~---~--~~
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] Eclipse Error: SWT on ubuntu (amd turion )64 bit

2009-05-05 Thread Lorenz

Hi
i've just tried to install SDK 1.5 and I have a big problem,
when I try to point the sdk directory(in Eclipse 3.3.2) from "Windows-
>Preferences->Android" two windows appear: in the first is written
"...pingUsageServerfailed" in the second "An SWT erro has occured.We
are reccomended to exit the workbench. .".
Now I've ridden some blogs and I've understood that the problem is in
SWT that doesn't support 64bit
architecture.
What shall I do?
Please answer in a simple.
Lorenz

--~--~-~--~~~---~--~~
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] f/w 1.5 Input Method

2009-05-05 Thread Menny

Hi,
I want to create a new on-screen-keyboard, and I thought that a good
start point will be to see how the SoftKeyboard sample in the SDK
(under the SDK folder: android-sdk-windows-1.5_r1\platforms
\android-1.5\samples\SoftKeyboard) works.
But it doesn't! I run it in Eclipse. So, it compile, then the emulator
starts, and under "Settings->Locale&text" I see the new keyboard. But
it does not show up when I click on a textbox. Only the regular on-
screen keyboard appears.
Am I missing something?

I also looked at "http://android-developers.blogspot.com/2009/04/
creating-input-method.html" for details, but didn't see anything.

Menny

--~--~-~--~~~---~--~~
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]

2009-05-05 Thread Steph


--~--~-~--~~~---~--~~
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: New Android SDK

2009-05-05 Thread dragli

Try to create an AVD. Please follow the page below:
http://developer.android.com/guide/tutorials/hello-world.html

On 5月1日, 上午3時07分, "sbaye...@gmail.com"  wrote:
> Im just now switching to the new SDK and trying to run my project and
> this is the error I get
>
> [2009-04-30 15:03:07 - Surface] Android Launch!
> [2009-04-30 15:03:07 - Surface] adb is running normally.
> [2009-04-30 15:03:07 - Surface] Performing com.td.surface.Game
> activity launch
> [2009-04-30 15:03:07 - Surface] Failed to find an AVD compatible with
> target 'Android 1.5'. Launch aborted.
>
> I think the problem is in the new SDK setup but I'm not sure what to
> do..

--~--~-~--~~~---~--~~
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] Basic Gps application

2009-05-05 Thread Flow

Hello world.

I'm looking for a basic Gps code (initialize, get Gps location, ...).
I'm not very very good at Java and Android so i'd like some examples
to understand the concepts.

Thank you.
Florent

--~--~-~--~~~---~--~~
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: Hello World Tutorial Error Message

2009-05-05 Thread dragli

Do you have further more information with this error?

Just some guesses:
1. what version of SDK do you use? 1.5? or still 1.1? did you set the
right path in the eclipse setting?
2. did you create the virtual device for the simulation?
(command like this: tools\android.bat create avd --name
your_avd_name )

On 5月5日, 上午2時42分, Dennis Christy  wrote:
> This is my 4th try at getting my question posted. Don't know what I am doing
> wrong???
> Here is my question:
>
> I receive the following error on screen 2 of the Hello World Tutorial:
> "Error: Error loading the SDK"
> I am running Eclipse version 3.4-2 Build Id: M200-0211-1700
> I have installed the ADT plugin
> I am running Windows Vista
> The screen I get is also different from the screen shown in the
> tutorial
> Thanks for your help
>
> --
> Dennis Christy

--~--~-~--~~~---~--~~
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: Ports used by android emulator

2009-05-05 Thread swarup

you will have 2 different serial numbers for 2 different emulators,
check it by 'adb devices'

$ adb devices
List of devices attached
emulator-5554   device
emulator-5556   device

use the serial number to get separate logs by 'adb -s 
logcat

$ adb -s emulator-5554 logcat  # at terminal 1
$ adb -s emulator-5556 logcat  # at terminal 2



On May 5, 10:01 pm, Meryl Silverburgh 
wrote:
> Thank you. But how can I run 'adb logcat' to that emulator running on that 
> port?
>
> I would like to run 2 emulators on my machine and have 2 terminals
> hook up to each 'adb logcat'.
>
> Is that possible? I have looked at 'adb -help' , I cant' find anything.
>
> On Tue, May 5, 2009 at 9:54 AM, David Turner  wrote:
> > "emulator -help-port" will answer the question :-)
>
> > On Tue, May 5, 2009 at 6:03 PM, Meryl Silverburgh
> >  wrote:
>
> >> Can you please tell me what are the ports opened by android emulator?
> >> And how can I configure those ports to use different numbers?
>
> >> Thank you.
--~--~-~--~~~---~--~~
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: How to get last added TextView of a ListView after ArrayAdapter.add()

2009-05-05 Thread Romain Guy

What you want to do is usually done in the adapter. It's especially
important to do it in the adapter's getView() method because there's
no guarantee in the order in which the views are created.

On Tue, May 5, 2009 at 1:27 AM, JackMaster  wrote:
>
> Hi all!
> I'm doing the following inside a handleMessage() method of an Handler
> object:
>
> arrayAdapter.add(myMessage);
> System.out.println(listView.getChildCount());
>
> I always get the expected numer (i.e. 1 after the first add() call)
> minus 1. I supposed it happens because the UI is not yet refreshed. I
> need to retrieve the last textview in order to change its "drawable
> left" property, but of course I cannot do it there. Is there any way
> to force the UI refresh, so the getChildCount() returns me what i
> need? Any alternative solutions?
>
> Thank you in advance!
> >
>



-- 
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] Imageview / Event problem

2009-05-05 Thread Oliver M. Batista
Hi guys, i have a class that dinamically create one imageview and a event
listener to make a change on the imageview. When I create 2 instances of
this class using the same drawable (from R) and click on one of the
imageviews both imageviews are been changed AND when I use different
drawables the event affects only the imageview clicked( which is the result
that I want)

What do I have to change to having the same result but using the same
drawable?

thank u for advance

-- 
Oliver M. Batista

--~--~-~--~~~---~--~~
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: Ports used by android emulator

2009-05-05 Thread Meryl Silverburgh

Thank you. But how can I run 'adb logcat' to that emulator running on that port?

I would like to run 2 emulators on my machine and have 2 terminals
hook up to each 'adb logcat'.

Is that possible? I have looked at 'adb -help' , I cant' find anything.

On Tue, May 5, 2009 at 9:54 AM, David Turner  wrote:
> "emulator -help-port" will answer the question :-)
>
> On Tue, May 5, 2009 at 6:03 PM, Meryl Silverburgh
>  wrote:
>>
>> Can you please tell me what are the ports opened by android emulator?
>> And how can I configure those ports to use different numbers?
>>
>> Thank you.
>>
>>
>
>
> >
>

--~--~-~--~~~---~--~~
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: Ports used by android emulator

2009-05-05 Thread David Turner
"emulator -help-port" will answer the question :-)

On Tue, May 5, 2009 at 6:03 PM, Meryl Silverburgh <
silverburgh.me...@gmail.com> wrote:

>
> Can you please tell me what are the ports opened by android emulator?
> And how can I configure those ports to use different numbers?
>
> Thank you.
>
> >
>

--~--~-~--~~~---~--~~
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: -http-proxy can't work in emulator with 1.5 sdk

2009-05-05 Thread David Turner
2009/5/5 stevensli 

>
> The version of Windows I am running is XP SP3, 32bit.  Can this
> problem be solved by adjusting the configuation of the emulator?
> Thanks!
>

I'm just speculating at the moment, but I doubt it's related to the
emulator's configuration.

Essentially, the emulator doesn't deal very well with certain networking
setups at the moment
due to changes in its socket code that happened between 1.1 and 1.5. I
suspect some interaction
with the IPv6 localhost and a few other things.

I could be wrong though, but I'll investigate.


>
> On May 5, 11:50 pm, David Turner  wrote:
> > thanks for posting the details, they are helpful. Which exact version of
> > Windows are you running ? XP or Vista, 32 or 64 bit ?
> >
> > thanks in advance
> >
> > On Mon, May 4, 2009 at 12:05 PM, stevensli  wrote:
> >
> > > The -http-proxy works fine for emulator with 1.1r1 sdk, but not work
> > > for emulator with 1.5r1 sdk. I use those emulator on the same
> > > development computer. The following is debug info:
> >
> > > D:\Downloads>emulator -avd avd15addon -sdcard d:\sd.iso -http-proxy
> > > 127.0.0.1:58
> > > 65 -debug-proxy
> > > proxy_http_setup: creating http proxy service connecting to:
> > > 127.0.0.1:5865
> > > server name '127.0.0.1' resolved to 127.0.0.1:5865
> > > proxy_http_setup: creating HTTP Proxy Service Footer is (len=2):
> > > '
> > > '
> > > http_service_connect: trying to connect to 64.233.189.104:80
> > > http_service_connect: using HTTP rewriter
> > > tcp:64.233.189.104:80(1480): cannot connect to proxy: 
> > > http_service_connect: trying to connect to 64.233.189.104:80
> > > http_service_connect: using HTTP rewriter
> > > tcp:64.233.189.104:80(1480): cannot connect to proxy: 
> > > http_service_connect: trying to connect to 64.233.189.104:80
> > > http_service_connect: using HTTP rewriter
> > > tcp:64.233.189.104:80(1480): cannot connect to proxy: 
> > > http_service_connect: trying to connect to 64.233.189.104:80
> > > http_service_connect: using HTTP rewriter
> > > tcp:64.233.189.104:80(1480): cannot connect to proxy: 
> > > http_service_connect: trying to connect to 64.233.189.104:80
> > > http_service_connect: using HTTP rewriter
> > > tcp:64.233.189.104:80(1480): cannot connect to proxy: 
> > > http_service_connect: trying to connect to 64.233.189.104:80
> > > http_service_connect: using HTTP rewriter
> > > tcp:64.233.189.104:80(1480): cannot connect to proxy: 
> >
>

--~--~-~--~~~---~--~~
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] Ports used by android emulator

2009-05-05 Thread Meryl Silverburgh

Can you please tell me what are the ports opened by android emulator?
And how can I configure those ports to use different numbers?

Thank you.

--~--~-~--~~~---~--~~
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: -http-proxy can't work in emulator with 1.5 sdk

2009-05-05 Thread stevensli

The version of Windows I am running is XP SP3, 32bit.  Can this
problem be solved by adjusting the configuation of the emulator?
Thanks!

On May 5, 11:50 pm, David Turner  wrote:
> thanks for posting the details, they are helpful. Which exact version of
> Windows are you running ? XP or Vista, 32 or 64 bit ?
>
> thanks in advance
>
> On Mon, May 4, 2009 at 12:05 PM, stevensli  wrote:
>
> > The -http-proxy works fine for emulator with 1.1r1 sdk, but not work
> > for emulator with 1.5r1 sdk. I use those emulator on the same
> > development computer. The following is debug info:
>
> > D:\Downloads>emulator -avd avd15addon -sdcard d:\sd.iso -http-proxy
> > 127.0.0.1:58
> > 65 -debug-proxy
> > proxy_http_setup: creating http proxy service connecting to:
> > 127.0.0.1:5865
> > server name '127.0.0.1' resolved to 127.0.0.1:5865
> > proxy_http_setup: creating HTTP Proxy Service Footer is (len=2):
> > '
> > '
> > http_service_connect: trying to connect to 64.233.189.104:80
> > http_service_connect: using HTTP rewriter
> > tcp:64.233.189.104:80(1480): cannot connect to proxy: 
> > http_service_connect: trying to connect to 64.233.189.104:80
> > http_service_connect: using HTTP rewriter
> > tcp:64.233.189.104:80(1480): cannot connect to proxy: 
> > http_service_connect: trying to connect to 64.233.189.104:80
> > http_service_connect: using HTTP rewriter
> > tcp:64.233.189.104:80(1480): cannot connect to proxy: 
> > http_service_connect: trying to connect to 64.233.189.104:80
> > http_service_connect: using HTTP rewriter
> > tcp:64.233.189.104:80(1480): cannot connect to proxy: 
> > http_service_connect: trying to connect to 64.233.189.104:80
> > http_service_connect: using HTTP rewriter
> > tcp:64.233.189.104:80(1480): cannot connect to proxy: 
> > http_service_connect: trying to connect to 64.233.189.104:80
> > http_service_connect: using HTTP rewriter
> > tcp:64.233.189.104:80(1480): cannot connect to proxy: 
--~--~-~--~~~---~--~~
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: -http-proxy can't work in emulator with 1.5 sdk

2009-05-05 Thread David Turner
thanks for posting the details, they are helpful. Which exact version of
Windows are you running ? XP or Vista, 32 or 64 bit ?

thanks in advance

On Mon, May 4, 2009 at 12:05 PM, stevensli  wrote:

>
> The -http-proxy works fine for emulator with 1.1r1 sdk, but not work
> for emulator with 1.5r1 sdk. I use those emulator on the same
> development computer. The following is debug info:
>
>
>
> D:\Downloads>emulator -avd avd15addon -sdcard d:\sd.iso -http-proxy
> 127.0.0.1:58
> 65 -debug-proxy
> proxy_http_setup: creating http proxy service connecting to:
> 127.0.0.1:5865
> server name '127.0.0.1' resolved to 127.0.0.1:5865
> proxy_http_setup: creating HTTP Proxy Service Footer is (len=2):
> '
> '
> http_service_connect: trying to connect to 64.233.189.104:80
> http_service_connect: using HTTP rewriter
> tcp:64.233.189.104:80(1480): cannot connect to proxy: 
> http_service_connect: trying to connect to 64.233.189.104:80
> http_service_connect: using HTTP rewriter
> tcp:64.233.189.104:80(1480): cannot connect to proxy: 
> http_service_connect: trying to connect to 64.233.189.104:80
> http_service_connect: using HTTP rewriter
> tcp:64.233.189.104:80(1480): cannot connect to proxy: 
> http_service_connect: trying to connect to 64.233.189.104:80
> http_service_connect: using HTTP rewriter
> tcp:64.233.189.104:80(1480): cannot connect to proxy: 
> http_service_connect: trying to connect to 64.233.189.104:80
> http_service_connect: using HTTP rewriter
> tcp:64.233.189.104:80(1480): cannot connect to proxy: 
> http_service_connect: trying to connect to 64.233.189.104:80
> http_service_connect: using HTTP rewriter
> tcp:64.233.189.104:80(1480): cannot connect to proxy: 
>
> >
>

--~--~-~--~~~---~--~~
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: problem installing ADT 0.9.0

2009-05-05 Thread Ragavendra

Hi Raphael,
   Thanks for your reply.

I am using the
/
Fedora Eclipse Platform
Version: 3.4.1
Based on build id:  20080911-1700
(c) Copyright Eclipse contributors and others 2000, 2008.  All rights
reserved.
Visit http://sources.redhat.com/eclipse
//
This came with Fedora10 and can create Java or C
projects..

I am not sure if this is the classic version.


On May 4, 1:12 pm, Raphael  wrote:
> Are you using Eclipse "Classic" version?
>
> If so please install Eclipse IDE for Java Developers or Eclipse RCP
> instead fromhttp://www.eclipse.org/downloads/
>
> R/
>
> On Sun, May 3, 2009 at 10:54 PM, Ragavendra  wrote:
>
> > Me too getting
>
> > Cannot complete the request.  See the details.
> > Unsatisfied dependency: [com.android.ide.eclipse.adt.feature.group
> > 0.9.0.v200904221248-147402] requiredCapability:
> > org.eclipse.equinox.p2.iu/org.eclipse.wst.xml.core/0.0.0
> > Unsatisfied dependency: [com.android.ide.eclipse.adt.feature.group
> > 0.9.0.v200904221248-147402] requiredCapability:
> > org.eclipse.equinox.p2.iu/org.eclipse.wst.xml.ui/0.0.0
> > Unsatisfied dependency: [com.android.ide.eclipse.adt.feature.group
> > 0.9.0.v200904221248-147402] requiredCapability:
> > org.eclipse.equinox.p2.iu/org.eclipse.gef/0.0.0
> > Unsatisfied dependency: [com.android.ide.eclipse.adt.feature.group
> > 0.9.0.v200904221248-147402] requiredCapability:
> > org.eclipse.equinox.p2.iu/org.eclipse.wst.sse.core/0.0.0
> > Unsatisfied dependency: [com.android.ide.eclipse.adt.feature.group
> > 0.9.0.v200904221248-147402] requiredCapability:
> > org.eclipse.equinox.p2.iu/org.eclipse.wst.sse.ui/0.0.0
> > Unsatisfied dependency: [com.android.ide.eclipse.adt.feature.group
> > 0.9.0.v200904221248-147402] requiredCapability:
> > org.eclipse.equinox.p2.iu/org.eclipse.wst.sse.ui/0.0.0
> > Unsatisfied dependency: [com.android.ide.eclipse.adt.feature.group
> > 0.9.0.v200904221248-147402] requiredCapability:
> > org.eclipse.equinox.p2.iu/org.eclipse.wst.xml.core/0.0.0
> > Unsatisfied dependency: [com.android.ide.eclipse.adt.feature.group
> > 0.9.0.v200904221248-147402] requiredCapability:
> > org.eclipse.equinox.p2.iu/org.eclipse.wst.sse.core/0.0.0
> > Unsatisfied dependency: [com.android.ide.eclipse.adt.feature.group
> > 0.9.0.v200904221248-147402] requiredCapability:
> > org.eclipse.equinox.p2.iu/org.eclipse.gef/0.0.0
> > Unsatisfied dependency: [com.android.ide.eclipse.adt.feature.group
> > 0.9.0.v200904221248-147402] requiredCapability:
> > org.eclipse.equinox.p2.iu/org.eclipse.wst.xml.ui/0.0.0
>
> > for both remote and local plugin installGoogled but found
> > no solutions..
>
> > Thanks & Regards,
> > LinuxFlavour.co.in
--~--~-~--~~~---~--~~
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: How to start the code? what should I do?

2009-05-05 Thread ja...@work

Hi.
Actually I don't want to develop an application. I would like to work
on the source code... that's the reason i didn't use eclipse.
But i'm a beginner so maybe I did something wrong :(

On Apr 28, 4:04 pm, Arnaud Weber  wrote:
> Why did you modified buildspec.mk???
> If you have ADT plug-in and sdk, you just need to select your project in
> eclipse and do a run with -> android app
>
> if your adt plugin is configured with the sdk path then it's going to launch
> the emulator and deploy it.
>
> Arnaud
>
> 2009/4/28 ja...@work 
>
>
>
> > I'm a beginner with android, so i'm following all the steps in the dev
> > giude and so on.
> > At the moment,
> >  I downloaded the sdk 1.5,
> >  installed ADT plug-in for eclipse,
> > got the source code (repo sync),
>
> > In the future I'd like to make android running on the desktop i'm
> > using (x86,
> > ubuntu 8.10), so i modified the "buildspec.mk" file:
>
> > # Uncomment this if you want the simulator, otherwise, build for arm
> > ifndef TARGET_SIMULATOR
> > TARGET_SIMULATOR:=true
> > endif
>
> > # Set this to debug or release if you care.  Otherwise, it defaults to
> > # release for arm and debug for the simulator.
> > ifndef TARGET_BUILD_TYPE
> > #TARGET_BUILD_TYPE:=release
> > TARGET_BUILD_TYPE:=debug
> > endif
>
> > # Uncomment this if you want the host tools built in debug mode.
> > Otherwise
> > # it defaults to release.
> > ifndef HOST_BUILD_TYPE
> > HOST_BUILD_TYPE:=debug
> > endif
>
> > # Choose a product to build for.  Look in the products directory for
> > ones
> > # that work.
> > ifndef TARGET_PRODUCT
> > TARGET_PRODUCT:=generic
> > endif
>
> > and now i did a "make"
> > I should obtain a build...but what can i do with it? I mean, how can I
> > launch it or use an emulator?
>
> > thanks a lot
>
> > J
--~--~-~--~~~---~--~~
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] Cube Runner for Android

2009-05-05 Thread g1port.com

Hi Guys,

Here is a iPhone classic Cube Runner game for Android!

http://www.youtube.com/watch?v=GHzZOcEZOWY

Some screen shots:

http://www.g1port.com

Enjoy!
--~--~-~--~~~---~--~~
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] code for sending email using a android application

2009-05-05 Thread Salman Wahid

Can anyone provide me code for sending email using a android
application

--~--~-~--~~~---~--~~
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] WebView Issue

2009-05-05 Thread glory

Hi ,
Does loadDataWithBaseURL is depricated in version 1.5 ?
This method was working well in Android version 1.1
Does there is any other method available

Thanks in advace
Glory
--~--~-~--~~~---~--~~
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: What is causing this error?

2009-05-05 Thread Mark Murphy

Kevin J. Brooks wrote:
> When I try to bring this one screen up I get the Application has stopped
> unexpectedly.



> 05-04 20:53:27.324: ERROR/AndroidRuntime(237):
> java.lang.RuntimeException: Unable to start activity
> ComponentInfo{com.parisj13.trackmydrinks/com.parisj13.trackmydrinks.BeerScreen}:
java.lang.RuntimeException: Your content must have a ListView whose id
attribute is 'android.R.id.list'

This means that instead of:

>android:layout_width="wrap_content"
>   android:layout_height="wrap_content"
>   android:layout_below="@id/beerselect"
>   android:entries="@array/beers"
>   android:background="#aa"
>   android.textColor="ff"
>   android:choiceMode="singleChoice"/>

you want:



http://developer.android.com/reference/android/app/ListActivity.html

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy

Android App Developer Books: http://commonsware.com/books.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] How to get last added TextView of a ListView after ArrayAdapter.add()

2009-05-05 Thread JackMaster

Hi all!
I'm doing the following inside a handleMessage() method of an Handler
object:

arrayAdapter.add(myMessage);
System.out.println(listView.getChildCount());

I always get the expected numer (i.e. 1 after the first add() call)
minus 1. I supposed it happens because the UI is not yet refreshed. I
need to retrieve the last textview in order to change its "drawable
left" property, but of course I cannot do it there. Is there any way
to force the UI refresh, so the getChildCount() returns me what i
need? Any alternative solutions?

Thank you in advance!
--~--~-~--~~~---~--~~
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] paused activities' state

2009-05-05 Thread asymmetric

hi!

i have a question: when an activity is paused (because of its window
being partially covered by another activitiy's), does it still get
scheduled? i.e. is there multitasking between activities?

thanks a lot!
asy
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---