Re: [android-beginners] Android Emulator Internet Setting

2010-05-21 Thread David Turner
The -http-proxy option was fixed in the emulator binary that comes with SDK
2.2 (it was only broken on Windows, for the record).

On Thu, May 20, 2010 at 8:52 AM, Ali Murtaza mralimurt...@gmail.com wrote:

 The system is using proxy to connect the internet. I have tried to set the
 proxy by running query

 android-sdk-windows/tools adb.exe shell sqlite3
 /data/data/com.google.android.providers/setting/databases/setting.db INSERT
 INTO System values(111, 'http_proxy','ipaddress:portno');
 then press enter
 no msg display

 and after this i got still no connection

 please help me further


 On Thu, May 20, 2010 at 7:02 PM, Kaustubh Padegaonkar 
 thetuxra...@gmail.com wrote:

 You really dont need to do anything. The emulator should pick up your
 internat connection automatically. although you might wanna load up the
 emulator *after* you connect to the internet.

 Kaustubh Padegaonkar,
 thetuxra...@gmail.com


 On Tue, May 18, 2010 at 3:00 PM, Ali Murtaza mralimurt...@gmail.comwrote:

 I am using android 2.0 and in this i am unable to connect the internet,
 the main confusion is that the 3G sign can be see on the status bar.
 Please help me I am really unable to set it, define me all steps.

 In attach picture, it is screen shot of my emulator when i am run google
 simple browser on it.
 please help me


 --
 Ali Murtaza

 BCSF06M021
 Research Assistant
 Data Virtulization Ware House
 PUCIT, Lahore, Pakistan
 ali.murt...@pucit.edu.pk

 --
 You received this message because you are subscribed to the Google
 Groups Android Beginners group.

 NEW! Try asking and tagging your question on Stack Overflow at
 http://stackoverflow.com/questions/tagged/android

 To unsubscribe from this group, send email to
 android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-beginners?hl=en


  --
 You received this message because you are subscribed to the Google
 Groups Android Beginners group.

 NEW! Try asking and tagging your question on Stack Overflow at
 http://stackoverflow.com/questions/tagged/android

 To unsubscribe from this group, send email to
 android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-beginners?hl=en




 --
 Ali Murtaza

 BCSF06M021
 Research Assistant
 Data Virtulization Ware House
 PUCIT, Lahore, Pakistan
 ali.murt...@pucit.edu.pk

 --
 You received this message because you are subscribed to the Google
 Groups Android Beginners group.

 NEW! Try asking and tagging your question on Stack Overflow at
 http://stackoverflow.com/questions/tagged/android

 To unsubscribe from this group, send email to
 android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-beginners?hl=en


-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

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


Re: [android-beginners] ubuntu 10.04 emulator not launching

2010-05-05 Thread David Turner
can you start the emulator from the command line properly (e.g. :
$ANDROID_SDK_ROOT/tools/emulator -avd name)

Can you try with the -verbose option to see if it dumps useful information,
there is also -debug-all which is going to dump a *lot* of stuff.

It looks like the emulator has problems connecting to your X server. How is
your DISPLAY environment variable defined ?

On Mon, May 3, 2010 at 12:30 AM, riazrahaman rahaman.r...@gmail.com wrote:

 Hi,

 Was not able to launch the emulator on Ubuntu 10.04. Getting the below
 error in eclipse. Is there a work around or a fix for this?

 [2010-05-02 23:35:34 - HelloWorld] Automatic Target Mode: Unable to detect
 device compatibility. Please select a target device.
 [2010-05-02 23:35:39 - HelloWorld] Launching a new emulator with Virtual
 Device 'android15'
 [2010-05-02 23:35:42 - HelloWorld] New emulator found: emulator-5554
 [2010-05-02 23:35:42 - HelloWorld] Waiting for HOME
 ('android.process.acore') to be launched...
 [2010-05-02 23:35:43 - Emulator] XIO:  fatal IO error 11 (Resource
 temporarily unavailable) on X server :0.0
 [2010-05-02 23:35:43 - Emulator]   after 7 requests (6 known processed)
 with 0 events remaining.
 [2010-05-02 23:35:43 - HelloWorld] emulator-5554 disconnected! Cancelling
 'com.paad.chapter2.HelloWorld activity launch'!

 Is this a known issue with the 10.04 Lucid lynx ubuntu?


 Regards,
 Riaz Ur Rahaman

 --
 You received this message because you are subscribed to the Google
 Groups Android Beginners group.

 NEW! Try asking and tagging your question on Stack Overflow at
 http://stackoverflow.com/questions/tagged/android

 To unsubscribe from this group, send email to
 android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-beginners?hl=en


-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

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 unedrline text?

2010-04-27 Thread David Fire
hi
i need some help.
how i do an underline text?
i was looking for it but i didnt foun how...
i was here http://www.droiddraw.org/widgetguide.html and on the android
site...
the best will be if the under line is blue or how can i use an image to
underline a text view?
thanks!!!
David

-- 
(\__/)
(='.'=)This is Bunny. Copy and paste bunny into your
()_()signature to help him gain world domination.

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

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


Re: [android-beginners] disabling GMail access ... changing GMail password doesn't

2010-04-09 Thread David Bonner
It's really unlikely that the phone caches your password and resends
it every time it logs in to a google service.  They're much more
likely to get an auth token the first time you log in, and store that.

On Fri, Apr 9, 2010 at 9:50 AM, ~ TreKing treking...@gmail.com wrote:
 On Fri, Apr 9, 2010 at 12:14 AM, Richard Schilling
 richard.rootwirel...@gmail.com wrote:

 How do I tell GMail to stop giving my Android access to my GMail account
 without using the Android phone

 No idea ... but what happens if you change your password and then reboot the
 phone? Does it still automatically sign in (I would think not) or does it
 prompt you for a password at that point?

 -
 TreKing - Chicago transit tracking app for Android-powered devices
 http://sites.google.com/site/rezmobileapps/treking

 --
 You received this message because you are subscribed to the Google
 Groups Android Beginners group.

 NEW! Try asking and tagging your question on Stack Overflow at
 http://stackoverflow.com/questions/tagged/android

 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




-- 
david bonner
dbon...@gmail.com

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

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

To unsubscribe, reply using remove me as the subject.


[android-beginners] Long Press on Options Key - v 2.1

2010-03-16 Thread David R.
We are trying to figure out the reason why a long press on the Options
Key brings up a keyboard.  This happens in every application.  Is this
documented anywhere?

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

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] Pictbridge-- anyone know how?

2010-03-16 Thread David Southwell ARPS
Hi

Does anyone know of an app that will enable an android phone to use  a 
pictbridge printer? My pictbridge printer can work with many wireless phones 
but not my htc magic.

Thanks in advance for any replies

David
Photographic Artist
Permanent Installations  Design
Creative Imagery and Advanced Digital Techniques
High Dynamic Range Photography  Official Portraiture
Combined darkroom  digital creations

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

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


Re: [android-beginners] Changing the APN settings!!

2010-02-26 Thread David Fire
look the source code of apndroid
http://code.google.com/p/apndroid/

2010/2/26 rocky84 rocky84 hulkman...@gmail.com

 hi,

 can anybody suggest me how can i change the APN parameters in android
 for activating the PDP context automatically?

 i need it from scratch as being new to android..


 regds
 rakesh

 --
 You received this message because you are subscribed to the Google
 Groups Android Beginners group.

 NEW! Try asking and tagging your question on Stack Overflow at
 http://stackoverflow.com/questions/tagged/android

 To unsubscribe from this group, send email to
 android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-beginners?hl=en




-- 
(\__/)
(='.'=)This is Bunny. Copy and paste bunny into your
()_()signature to help him gain world domination.

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

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


Re: [android-beginners] can't compile opencore

2010-02-26 Thread David Turner
please do not cross post.

you should try the android-porting forum instead.

On Fri, Feb 26, 2010 at 8:13 AM, zeeshan genx...@gmail.com wrote:

 Hi Dear,
 i am trying to compile opencore module separatley at cygwin.

 downloaded the source code
 followed steps in startup file
 ---
  cd opencore/build_config/opencore_dynamic
source setup.sh opencore
make -j
 --

 error:
 /cygdrive/c/opencore/extern_tools_v2/bin/linux/make: /cygdrive/c/
 opencore/extern
 _tools_v2/bin/linux/make: cannot execute binary file


 can anybody help how can i compile opencore?

 --
 You received this message because you are subscribed to the Google
 Groups Android Beginners group.

 NEW! Try asking and tagging your question on Stack Overflow at
 http://stackoverflow.com/questions/tagged/android

 To unsubscribe from this group, send email to
 android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-beginners?hl=en


-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

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


Re: [android-beginners] Transmit serialized object via HTTP in Android?

2010-02-22 Thread David Fire
why you want to do such effort if you can transmit it using xml or json or
something like that?


2010/2/22 Ray da Costa raydaco...@gmail.com

 Mostrar romanização
  Hi

 Personnel possibility exists to transmit serialized object via HTTP in
 Android? I'm trying to use the HttpURLConnection but I get an exception
 saying that does not support


 --
 Ray da Costa
 The best way to predict the future is to invent it.
 Alan Kay

 --
 You received this message because you are subscribed to the Google
 Groups Android Beginners group.

 NEW! Try asking and tagging your question on Stack Overflow at
 http://stackoverflow.com/questions/tagged/android

 To unsubscribe from this group, send email to
 android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-beginners?hl=en




-- 
(\__/)
(='.'=)This is Bunny. Copy and paste bunny into your
()_()signature to help him gain world domination.

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

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] online seminar

2010-02-09 Thread David Fire
this link is a online realtime android seminar
http://training.oreilly.com/androidapps-java/
start today 16:00 (GTM -3)

-- 
(\__/)
(='.'=)This is Bunny. Copy and paste bunny into your
()_()signature to help him gain world domination.

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

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: listview is getting me mad plase help

2010-02-03 Thread David Fire
i didnt do it yet.
but you can get a sample from here, i am folowing this book
http://apress.com/book/downloadfile/4433
there is a zip file, extract it and navigate to FancyLists\RateList\. there
you have a full and working example.

please send the question to the list wo everyone can get the answer
2010/2/3 Abhi abhinay.pothuga...@gmail.com


 Hi David,

 Are you able to capture the checkbox click in the list view ?if so can
 you pls send me the code

 I am also facing the same problem as you are facing,
 I am having a list view with Checkbox,If user clicks on the listrow
 then the checkbox needs to get selected and on further click it needs
 to unselect

 Can you pls help me in solving this

 On Jan 31, 9:32 pm, David Fire ddf...@gmail.com wrote:
  SOLVED
  all the items in the row must be facusable=false
 
  i just put it
  David
 
  2010/1/31 free1000 prwfree...@googlemail.com
 
 
 
   Just out of curiosity why do you have this in the ListView definition
 
   android:isScrollContainer=true
 
   Not saying it has anything to do with your problem,just wondering. The
   list knows how to scroll without this attribute being set.
 
   P
 
   On Jan 30, 5:08 pm, David Fire ddf...@gmail.com wrote:
hi
i cant press any item on my listview nor in the emulator nor in a
 real
phone.
 
item layout
?xml version=1.0 encoding=utf-8?
LinearLayout xmlns:android=
 http://schemas.android.com/apk/res/android;
android:id=@+id/LinearLayout01 android:layout_width=wrap_content
android:layout_height=wrap_content
 android:orientation=horizontal
  CheckBox android:id=@+id/RuleEnable android:text=
android:layout_width=wrap_content
   android:layout_height=wrap_content/CheckBox
 
  TextView android:id=@+id/RuleName
android:layout_width=wrap_content
 android:layout_height=wrap_content
android:text= android:focusable=true /TextView
 
/LinearLayout
 
listview layout
ListView android:id=@+id/Listado
 android:layout_width=fill_parent
android:layout_height=250px  android:isScrollContainer=true
android:drawSelectorOnTop=false
android:choiceMode=singleChoice/ListView
 
some code
public class GuiActivity extends Activity implements
   View.OnClickListener,
OnItemClickListener{
 //lista means list in spanish
lista = (ListView)findViewById(R.id.Listado);
RuleList = new ArrayListSMSRule();
loadRuleList();
adapter=new SMSRuleAdaptor(this,RuleList);
lista.setAdapter(adapter);
lista.setOnItemClickListener(this);
 
this method is never called
public void onItemClick(AdapterView? arg0, View arg1, int arg2,
   long
id) {
enable.setText(id: +id);
 
}
 
--
(\__/)
(='.'=)This is Bunny. Copy and paste bunny into your
()_()signature to help him gain world domination.
 
   --
   You received this message because you are subscribed to the Google
   Groups Android Developers group.
   To post to this group, send email to
 android-develop...@googlegroups.com
   To unsubscribe from this group, send email to
   android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com
 android-developers%2bunsubscr...@googlegroups.comandroid-developers%252bunsubscr...@googlegroups.com
 
   For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en
 
  --
  (\__/)
  (='.'=)This is Bunny. Copy and paste bunny into your
  ()_()signature to help him gain world domination.




-- 
(\__/)
(='.'=)This is Bunny. Copy and paste bunny into your
()_()signature to help him gain world domination.

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

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 make a clickable region

2010-02-03 Thread David Aragão
Hi Rogerio,

(I`m from Recife - PE =P)

So, i have a background image in my layout and i want to trigger an
action when i tap certain region of the image. It`s something that i
want
to create a simple game.

Your contribution for the keyboard made me curious =)

Thanks for the help.

On Feb 2, 5:50 pm, Rogério de Souza Moraes rogerio.so...@gmail.com
wrote:
 Why do you want to do this?

 I am making something similar, but it is for the android plataform. It is a
 virtual keyboard area that simulates some hard buttons. Maybe I can help you
 if.

 Regards,

 Rogerio

 2010/1/29 David Aragão davidara...@gmail.com

  Hi,

  There`s some way to create a clickable region in the backgroud layout?

  I was trying to put a button in the place that i want to click and set
  the button
  visibility to invisible, but for some reason it not responds to clicks
  anymore.

  David

  --
  You received this message because you are subscribed to the Google
  Groups Android Beginners group.

  NEW! Try asking and tagging your question on Stack Overflow at
 http://stackoverflow.com/questions/tagged/android

  To unsubscribe from this group, send email to
  android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com
  For more options, visit this group at
 http://groups.google.com/group/android-beginners?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

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 clickable region

2010-02-02 Thread David Aragão
Hi,

There`s some way to create a clickable region in the backgroud layout?

I was trying to put a button in the place that i want to click and set
the button
visibility to invisible, but for some reason it not responds to clicks
anymore.

David

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

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] listview is getting me mad plase help

2010-02-02 Thread David Fire
hi
i cant press any item on my listview nor in the emulator nor in a real
phone.


item layout
?xml version=1.0 encoding=utf-8?
LinearLayout xmlns:android=http://schemas.android.com/apk/res/android;
android:id=@+id/LinearLayout01 android:layout_width=wrap_content
android:layout_height=wrap_content android:orientation=horizontal
  CheckBox android:id=@+id/RuleEnable android:text=
android:layout_width=wrap_content android:layout_height=wrap_content
/CheckBox
  TextView android:id=@+id/RuleName
android:layout_width=wrap_content android:layout_height=wrap_content
android:text= android:focusable=true /TextView

/LinearLayout

listview layout
ListView android:id=@+id/Listado android:layout_width=fill_parent
android:layout_height=250px  android:isScrollContainer=true
android:drawSelectorOnTop=false
android:choiceMode=singleChoice/ListView

some code
public class GuiActivity extends Activity implements View.OnClickListener,
OnItemClickListener{
 //lista means list in spanish
lista = (ListView)findViewById(R.id.Listado);
RuleList = new ArrayListSMSRule();
loadRuleList();
adapter=new SMSRuleAdaptor(this,RuleList);
lista.setAdapter(adapter);
lista.setOnItemClickListener(this);


this method is never called
public void onItemClick(AdapterView? arg0, View arg1, int arg2, long
id) {
enable.setText(id: +id);

}



-- 
(\__/)
(='.'=)This is Bunny. Copy and paste bunny into your
()_()signature to help him gain world domination.

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

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] Design question: Activity per screen or not

2010-02-02 Thread David Melgar
Are there guidelines to help understand how fine grained to make  
activities?


I've heard people state that an activity should be just one screen and  
that multi-screen applications should have one activity per screen.  
But this model can seem awkward, more work, and I'm not sure what  
value you get in return.

What are the pros and cons of many activites vs few.

I've also heard debate about how much processing can occur in an  
activity and some people suggesting that any complex work should occur  
in a service. That doesn't seem obvious to me. How is the browser  
implemented? A bunch of activities and a service to do the real work,  
or just one actiity to render a web page and that activity does all  
the work?


Are there issues with threads that determines how you should design  
you app, ie few or many activities and need for a service?


Thanks

Sent from my iPhone

On Feb 2, 2010, at 9:43 AM, android-beginners+nore...@googlegroups.com  
wrote:



  Today's Topic Summary
Group: http://groups.google.com/group/android-beginners/topics

الآن إفتح اى موقع ممنوع او محجوب فى  
بلدك وجرب بنفسك [1 Update]

'drawable' vs. 'drawable-hdpi' in Online Tutorial [5 Updates]
list view button error [2 Updates]
Eclipse can't seem to locate R.java [1 Update]
Bug in SDK Manager: cannot update [1 Update]
Not able to start Call Log Activity [1 Update]
SDK Setup.exe not working [1 Update]
No market on HTC hero [1 Update]
I have note pad where are notepads files saved??? [1 Update]
Can't create new class in Eclipse (Google Map View official  
tutorial) [1 Update]
 Topic: الآن إفتح اى موقع ممنوع او محجوب  
فى بلدك وجرب بنفسك

alagmy smsm_egy2...@yahoo.com Feb 02 06:28AM -0800 ^

الآن إفتح اى موقع ممنوع او محجوب فى  
بلدك وجرب بنفسك


الأن يمكنك فتح أى موقع محجوب ببلدك فقط  
من خلال هذا الموقع


open all blocked sites now for free and have fun

http://translatorproxy.zzl.org/vb


 Topic: 'drawable' vs. 'drawable-hdpi' in Online Tutorial
Indicator Veritatis mej1...@yahoo.com Feb 01 12:17PM -0800 ^

It seems the online tutorials have not been rewritten to reflect
Android 2.1. For they still refer to 'drawable' and 'res/drawable',
but when I create a new project for 2.1 using the wizard, I do not GET
any such directory. Instead, I get 'res/drawable-hdpi', 'res/drawable-
ldpi' and 'res/drawable-mdpi'.

Now for some tutorials, I have been able to get by by putting files in
'res/drawable-hdpi'. But for the TabLayout tutorial,
http://developer.android.com/resources/tutorials/views/hello-tabwidget.html 
,

this does not work. I still get the error message (on completion of
step 3) R.drawable.ic_tab_artists cannot be resolved.

The files ic_tab_artists_grey.png and ic_tab_artists_whit.png
really are in res/drawable-hdpi.

I also tried changing the name 'drawable' to 'drawable-hdpi', but Java
did not like the '-' in the name (no surprise).

So how are we supposed to get this to work? Go back to 1.5? Surely
there is a better way.

Just for clarity's sake, the line of code I get the error on is: spec
= tabHost.newTabSpec(artists).setIndicator(Artists,
// res.getDrawable
(R.drawable.ic_tab_artists))
.setContent(intent);

in HelloTabWidget.java.

I get the same class of error message on the other three
res.getDrawable calls, too.


Ben  Jerry's South Bay mochama...@gmail.com Feb 01 03:01PM  
-0800 ^


I just created a new folder within eclipse called 'drawable' and then
created my new files there. It worked for me.

On Feb 1, 2010 12:18 PM, Indicator Veritatis mej1...@yahoo.com  
wrote:


It seems the online tutorials have not been rewritten to reflect
Android 2.1. For they still refer to 'drawable' and 'res/drawable',
but when I create a new project for 2.1 using the wizard, I do not GET
any such directory. Instead, I get 'res/drawable-hdpi', 'res/drawable-
ldpi' and 'res/drawable-mdpi'.

Now for some tutorials, I have been able to get by by putting files in
'res/drawable-hdpi'. But for the TabLayout tutorial,
http://developer.android.com/resources/tutorials/views/hello-tabwidget.html 
,

this does not work. I still get the error message (on completion of
step 3) R.drawable.ic_tab_artists cannot be resolved.

The files ic_tab_artists_grey.png and ic_tab_artists_whit.png
really are in res/drawable-hdpi.

I also tried changing the name 'drawable' to 'drawable-hdpi', but Java
did not like the '-' in the name (no surprise).

So how are we supposed to get this to work? Go back to 1.5? Surely
there is a better way.

Just for clarity's sake, the line of code I get the error on is: spec
= tabHost.newTabSpec(artists).setIndicator(Artists,
// res.getDrawable
(R.drawable.ic_tab_artists))
.setContent(intent);

in HelloTabWidget.java.

I get the same class of error message on the other three
res.getDrawable calls, too.

--
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To 

Re: [android-beginners] listview is getting me mad plase help

2010-02-02 Thread David Fire
SOLVED
all the items in the row must be facusable=false

2010/2/2 Yousuf Faheem yousuf.syed@gmail.com

 Hi,

 try writting onClick event within getView method of the adapter


 Thanks  Regards,
 Yousuf



 On Sat, Jan 30, 2010 at 11:08 AM, David Fire ddf...@gmail.com wrote:

 hi
 i cant press any item on my listview nor in the emulator nor in a real
 phone.


 item layout
 ?xml version=1.0 encoding=utf-8?
 LinearLayout xmlns:android=http://schemas.android.com/apk/res/android;
 android:id=@+id/LinearLayout01 android:layout_width=wrap_content
 android:layout_height=wrap_content android:orientation=horizontal
   CheckBox android:id=@+id/RuleEnable android:text=
 android:layout_width=wrap_content android:layout_height=wrap_content
 /CheckBox
   TextView android:id=@+id/RuleName
 android:layout_width=wrap_content android:layout_height=wrap_content
 android:text= android:focusable=true /TextView

 /LinearLayout

 listview layout
 ListView android:id=@+id/Listado android:layout_width=fill_parent
 android:layout_height=250px  android:isScrollContainer=true
 android:drawSelectorOnTop=false
 android:choiceMode=singleChoice/ListView

 some code
 public class GuiActivity extends Activity implements View.OnClickListener,
 OnItemClickListener{
  //lista means list in spanish
 lista = (ListView)findViewById(R.id.Listado);
 RuleList = new ArrayListSMSRule();
 loadRuleList();
 adapter=new SMSRuleAdaptor(this,RuleList);
 lista.setAdapter(adapter);
 lista.setOnItemClickListener(this);


 this method is never called
 public void onItemClick(AdapterView? arg0, View arg1, int arg2, long
 id) {
 enable.setText(id: +id);

 }



 --
 (\__/)
 (='.'=)This is Bunny. Copy and paste bunny into your
 ()_()signature to help him gain world domination.

  --
 You received this message because you are subscribed to the Google
 Groups Android Beginners group.

 NEW! Try asking and tagging your question on Stack Overflow at
 http://stackoverflow.com/questions/tagged/android


 To unsubscribe from this group, send email to
 android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com

 For more options, visit this group at
 http://groups.google.com/group/android-beginners?hl=en


  --
 You received this message because you are subscribed to the Google
 Groups Android Beginners group.

 NEW! Try asking and tagging your question on Stack Overflow at
 http://stackoverflow.com/questions/tagged/android


 To unsubscribe from this group, send email to
 android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com

 For more options, visit this group at
 http://groups.google.com/group/android-beginners?hl=en




-- 
(\__/)
(='.'=)This is Bunny. Copy and paste bunny into your
()_()signature to help him gain world domination.

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

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


Re: [android-beginners] Unable to configure emulator network

2010-01-27 Thread David Turner
can you send me the output of emulator -proxy yourproxy -debug-proxy -avd
youravd so I can look at it ?

On Tue, Jan 26, 2010 at 2:28 AM, Pebble malonsolo...@gmail.com wrote:

 Hi all!

 I'm using the Android SDK r3 under Windows to develop my application.
 The problem is that I'm not able to connect to the internet through
 the emulator. As I access the internet through a proxy server, I use
 the -http-proxy option when I launch the emulator.

 Any ideas? Perhaps, the emulator doesn't support my proxy server.

 Thanks in advance

 --
 You received this message because you are subscribed to the Google
 Groups Android Beginners group.

 NEW! Try asking and tagging your question on Stack Overflow at
 http://stackoverflow.com/questions/tagged/android

 To unsubscribe from this group, send email to
 android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-beginners?hl=en


-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

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


Re: [android-beginners] Android 2.1 SDK

2010-01-13 Thread David Sauter
On Mon, Jan 11, 2010 at 4:24 PM, Xavier Ducrohet x...@android.com wrote:
 Hello everyone,

 We've just released the 2.1 SDK.

 More info: http://android-developers.blogspot.com/2010/01/android-21-sdk.html

 Enjoy!

 Xav
 --
 Xavier Ducrohet
 Android SDK Tech Lead
 Google Inc.

I thank you from the bottom of my heart.

... now is there any word on NDK 2.X?

-- 
--
David Sauter
-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

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] Nested source directories

2010-01-13 Thread David Sauter
I've been trying for a little while to get nested source directories
and headers not in the same directories as their source working.  Can
someone throw together a quick example of how to structure the
android.nk files for this?  I've tried a few variants on the
documentation but none of it's working.

Example:

Source - has source and headers
Source/Object - has source and headers but also relies on headers in Source
Source/Object2 - has source but relies on headers in Source/Object and Source

How do you get this to compile?  I need also uniform values across the
whole thing in terms of flags and CPP extension.

Thank you in advance.

-- 
--
David Sauter
-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

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] Android on Chinese Clone cellphone Handphone GPS Wifi Analog TV FM transmitter

2009-12-23 Thread David Viola
Hello users, customers, manufacturers and programmers.
I'm just someone who loves google products and really need to see
Android running on my handphone.
I have a chinese MP20 (does everything), but it system is limited as
it isn't compatible to .cab files etc. (MTK6235 OS). Although, I can't
install Android on it and get no Internet, TV, Dual SIM support, GPS
Nav system, FM transmitting, voice recordig, radio, camera, video
recording with sound, PDF reading, .doc and .xls reading, scientific
calculator... etc on my daily use.
So, this is a place to share what's missing on which platform, until
all the information is collected and problems solved by Android and
Factories.
Thanks and be welcome to reply.

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

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


Re: [android-beginners] Creating Database with big amount of data

2009-12-22 Thread David Fire
save the file using utf8 encode this solved similar issues on diferent
plataforms.


2009/12/20 Thomas thomas.bruye...@gmail.com

 Hi all,

 The database of my application need to be filled with a lot of data,
 so during onCreate(), it's not only some create table sql
 instructions, there is a lot of inserts. The solution I chose is to
 store all this instructions in a sql file located in res/raw and which
 is loaded with Resources.openRawResource(id).

 It works well but I face to encoding issue, I have some accentuated
 caharacters in the sql file which appears bad in my application. This
 my code to do this :

  public String getFileContent(Resources resources, int rawId) throws
 IOException
  {
InputStream is = resources.openRawResource(rawId);
int size = is.available();
// Read the entire asset into a local byte buffer.
byte[] buffer = new byte[size];
is.read(buffer);
is.close();
// Convert the buffer into a string.
return new String(buffer);
  }

 public void onCreate(SQLiteDatabase db) {
try {
// get file content
String sqlCode = getFileContent(mCtx
.getResources(),
 R.raw.db_create);
// execute code
for (String sqlStatements :
 sqlCode.split(;)) {
db.execSQL(sqlStatements);
}
db.execSQL(HappyContactsDb.DB_CREATE);
Log.v(Creating database done.);
} catch (IOException e) {
// Should never happen!
Log.e(Error reading sql file  +
 e.getMessage(), e);
throw new RuntimeException(e);
} catch (SQLException e) {
Log.e(Error executing sql code  +
 e.getMessage(), e);
throw new RuntimeException(e);
}

 The solution I found to avoid this is to load the sql instructions
 from a huge static final string instead of a file, and all
 accentutated characters appears well.

 But Isn't there a more elegant way to load sql instructions than a big
 static final String attribute with all sql instructions ?

 Thanks in advance

 Thomas

 --
 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.comandroid-beginners%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-beginners?hl=en




-- 
(\__/)
(='.'=)This is Bunny. Copy and paste bunny into your
()_()signature to help him gain world domination.

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

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] Delete button dynamically

2009-11-19 Thread David Kebo
Can somebody tell me how to delete a button dynamically ?

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


Re: [android-beginners] Re: Communication between AppWidgetProvider and Configuration Activity

2009-11-19 Thread David McNicol
I have been working with widgets a wee bit lately, onUpdate() is called when
the configuration completes.


On Thu, Nov 19, 2009 at 3:27 PM, Justin Anderson janderson@gmail.comwrote:

 I've never used the widget configuration, but if my memory serves me
 correctly, you shouldn't need to request an update at the end of your
 configuration activity...

 Isn't the widget's onUpdate() method called by default by Android after the
 configuration activity finishes?


 Thanks,
 Justin

 --
 There are only 10 types of people in the world...
 Those who know binary and those who don't.
 --


 On Thu, Nov 19, 2009 at 1:10 AM, Susan ska...@gmail.com wrote:

 Well isn't that spiffy. In that case, if I'm understanding everything
 correctly, I guess I would just put the read code in onUpdate() and
 then request an update at the end of my configuration? (Or is there a
 more elegant way to call specific code in Widget.java?

 Thanks!

 On Nov 19, 2:02 am, Justin Anderson janderson@gmail.com wrote:
  You will have to have some form of default value for this to work, but
 here
  is how I do it:
 
  When I want to read from SharedPreferences I do this:
  SharedPreference prefMgr =
  PreferenceManager.getDefaultSharedPreferences(this);
  m_curPage = prefMgr.getInt(getString(R.string.wgt_pref_cur_screen_key),
 0);
 
  When I want to write to it I do this:
  SharedPreference prefMgr =
  PreferenceManager.getDefaultSharedPreferences(this);
  Editor editor = m_prefMgr.edit();
  editor.putInt(this.getString(R.string.wgt_pref_cur_screen_key),
 m_curPage);
  editor.commit();
 
  You don't actually pass an object.  SharedPreferences essentially
 abstracts
  out reading to and writing from a file
 
  Thanks,
  Justin
 
  --
  There are only 10 types of people in the world...
  Those who know binary and those who don't.
  --
 
  On Thu, Nov 19, 2009 at 12:41 AM, Susan ska...@gmail.com wrote:
   Justin, thanks. But doesn't that still leave me with the same problem?
   IE, if WidgetConfiguration.java creates the SharedPreferences objet,
   how does it pass that object back to the code running in Widget.java?
 
   On Nov 19, 1:16 am, Justin Anderson janderson@gmail.com wrote:
You could use SharedPreferences...  I have a Widget that displays
   multiple
pages of info to the user.  I use the SharedPreferences class to
 store
what page I am currently displaying, so that when the Widget is
 updated,
   it
knows which page to update.
 
   
 --
There are only 10 types of people in the world...
Those who know binary and those who don't.
   
 --
 
On Wed, Nov 18, 2009 at 11:32 PM, Susan ska...@gmail.com wrote:
 I have a widget whose appearance will depend on information gained
 from the user in the configuration activity. However, I'm
 uncertain
 how (and in what section of code) to act on the information gained
 from the user in the config.
 
 Here is the target functionality from the user's perspective:
 
   When the user creates the widget, the config activity prompts
 for a
 string (with an EditText). The user types it in and presses the
 submit
 button. The config activity goes away and the widget appears on
 the
 homescreen displaying the text the user entered. When the user
 touches
 the widget, the browser is opened and goes to a particular URL
 that is
 determined in part by the string the user entered.
 
 Here is what I have implemented so far:
 
 The config activity lets the user enter data and happily displays
 it
 to me as a Toast message. Then the config goes away as desired and
 the
 widget appears with the default widget icon. If you touch the
 widget,
 it goes to a hardcoded URL. (code below)
 
 My question:
 
 How do I connect the info from the config activity with the code
 that displays the widget itself? If I put the user's string in a
 putExtra of the intent sent in setResult(), where do I write the
 code
 to retrieve that extra? It seems like it ought to put it somewhere
 in
 the AppWidgetProvider code, but where? (Or is there a better way
 to do
 it?)
 
 Here are the relevant portions of my code:
 
 
   widget.java:
 
 public class Widget extends AppWidgetProvider
 {
public void onReceive(Context context, Intent intent)
{
String action = intent.getAction();
if
 (AppWidgetManager.ACTION_APPWIDGET_UPDATE.equals(action))
{
//Toast.makeText(context, 

[android-beginners] SDK Installation: A folder failed to be renamed or moved

2009-11-15 Thread NoVa David
Windows XP Professional SP3
JDK 1.6.0_14
site: https://dl-ssl.google.com/android/repository/repository.xml (i
have force https:// to be fetched as http://...;)
Android SDK Updater Revision 3


i run the Android SDK and AVD Manager, goto Available Packages,
choose *anything* (but i'm concentrating on v2 stuff) i get the
following...

Downloading SDK Platform Android 2.0, API 5, revision 1
Installing SDK Platform Android 2.0, API 5, revision 1
Failed to rename directory C:\work\android-sdk-windows\temp
\PlatformPackage.new01 to C:\work\android-sdk-windows\platforms
\android-2.0
-= Warning ! =-
A folder failed to be renamed or moved. On Windows this typically
means that a program is using that folder (for example Windows
Explorer.) Please close all running programs that may be locking the
directory 'C:\work\android-sdk-windows\temp\PlatformPackage.new01' and
try again.

no other applications are running. i've rebooted, verified that the
directory is NOT read-only. yet i still get similar results. i have
ADMINISTRATOR privileges on this machine.

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] Phone to phone communication

2009-11-08 Thread David Kebo
Hello,
I’m writing an application that requires 2 or multiple phones to talk
to each other ? Phones are on the same Wi-Fi network and will send
simple status messages to each other.  I’m thinking of client-server ,
with one phone as server and the others as clients, but i'm not sure.
Please provide some suggestions or references, if possible.

Thanks 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] Re: Is it possible to append a value to R.string or any resource under R.?

2009-10-26 Thread David

How do I use one line of code versus the ~312?

 public static final Bundle mStrings;
 mStrings.putAll(R.strings.*); // what would be the right
incantation to get the R.strings into the resource bundle?

Then I would then pull out the single desired string with . . .

 textView.setText(mStrings.getString(desiredString));

I looked through the Android reference docs concerning bundles (and a
few online tuts) but the correct method to use escapes me.



On Oct 25, 2:43 am, Jeffrey Blattman jeffrey.blatt...@gmail.com
wrote:
 On 10/24/09 5:10 PM, David wrote:

 one line of code vs. 312 ... and being forced to use a 2nd way to store
 your resource strings.
 --
--~--~-~--~~~---~--~~
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] Call URL

2009-10-25 Thread David Kebo

I am trying to call a URL for code.
This URL is supposed to move a camera connected on the same network

url = new URL(http://10.0.1.90/axis-cgi/com/ptz.cgi?
camera=1move=home);
URLConnection cameraConnection = url.openConnection();
cameraConnection.connect();

I get no response when I run this code. Is this the right way to call
a URL from an Android phone ?

--~--~-~--~~~---~--~~
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: Is it possible to append a value to R.string or any resource under R.?

2009-10-24 Thread David

@Farproc

Ah yes, the R.xx.xx are integer constants created automatically in the
R.java file (i.e., h1=0x7f050002, h2=0x7f050003, etc.).  Now it makes
sense why constructing a string to reference them does not work.


@Jeffrey

I have a couple of questions.  I just finished reading up a bit on
resource bundles but things are still a little cloudy for me.  Would I
need to populate the 312 key:value pairs into the rb bundle?

If so, then what benefits does the bundle approach have over the the
ElseIf approach?  It seems that putting 312 strings (even if small)
into a resource bundle would be more memory usage than required when,
in the alternative, the one desired string could be called directly
from an ElseIf approach, albeit with more lines of code.

Similar to your bundle idea, I thought about creating an XML array
with each string as a member but, again, all of the strings would be
pulled into memory to create the array when all I need is *one* of the
312 strings.  Too bad there isn't a way to dynamically construct a
reference to the R. resources . . .

Thanks for answering questions from a new Java-Android developer
coming from the PHP side of things.




On Oct 24, 7:17 am, Jeffrey Blattman jeffrey.blatt...@gmail.com
wrote:
 using standard java res bundles,

 textView.setText(rb.getString(desiredString));

 and in your res bundle,

 desiredString1=value of R.string.h1
 desiredString2=value of R.string.h2
 ...

 that is, the RB keys are the possible values of desiredString, and the
 values are the proper mapping from a particular value of desired string.

 On 10/23/09 6:59 PM, David wrote:



  Screen A permits the user to input a value into an EditText field.
  Screen B populates a TextView using one of the entries in strings.xml
  based upon the TextView value.  For example, if the user inputs 2 on
  Screen A then Screen B should populate the TextView with
  R.strings.h2.  I have tried the following:

        // get the bundle extras from Screen A's intent
        Bundle extras = getIntent().getExtras();
        // pull out the value from the UserInput EditText sent from
  Screen A
        Str desiredString = extras != null ? extras.getString
  (UserInput) : ;
        // popluate textView with the string R.string.h + whatever the
  user put on Screen A
        textView.setText(R.string.h + desiredString);

  I get a cannot resolve R.string.h resource error message because,
  evidently, the desiredString value is not appended onto R.string.h.
  So, I decided to come at it from another angle:

        switch (desiredString) {
        case 1:
             textView.setText(R.string.h1);
        case 2:
             textView.setText(R.string.h2);
        . . .
        case 312:
             textView.setText(R.string.h312);

  Note that you cannot switch on a string so I tried Integer.parseInt on
  the string but I wind up with a blank Screen B with the switch
  statement above.  It seems that the string is not turned into an int.
  So, my question is twofold: (1) is it possible to append a variable
  onto a R. entry and (2) if I am obliged to use the larger and uglier
  switch approach, how do I turn an EditText string value into an Int
  value?  Thanks.

 --
--~--~-~--~~~---~--~~
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] Is it possible to append a value to R.string or any resource under R.?

2009-10-23 Thread David

Screen A permits the user to input a value into an EditText field.
Screen B populates a TextView using one of the entries in strings.xml
based upon the TextView value.  For example, if the user inputs 2 on
Screen A then Screen B should populate the TextView with
R.strings.h2.  I have tried the following:

 // get the bundle extras from Screen A's intent
 Bundle extras = getIntent().getExtras();
 // pull out the value from the UserInput EditText sent from
Screen A
 Str desiredString = extras != null ? extras.getString
(UserInput) : ;
 // popluate textView with the string R.string.h + whatever the
user put on Screen A
 textView.setText(R.string.h + desiredString);

I get a cannot resolve R.string.h resource error message because,
evidently, the desiredString value is not appended onto R.string.h.
So, I decided to come at it from another angle:

 switch (desiredString) {
 case 1:
  textView.setText(R.string.h1);
 case 2:
  textView.setText(R.string.h2);
 . . .
 case 312:
  textView.setText(R.string.h312);

Note that you cannot switch on a string so I tried Integer.parseInt on
the string but I wind up with a blank Screen B with the switch
statement above.  It seems that the string is not turned into an int.
So, my question is twofold: (1) is it possible to append a variable
onto a R. entry and (2) if I am obliged to use the larger and uglier
switch approach, how do I turn an EditText string value into an Int
value?  Thanks.

--~--~-~--~~~---~--~~
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: Is it possible to append a value to R.string or any resource under R.?

2009-10-23 Thread David

@Farpoc

Your solution worked perfectly.  Thank you very much.  I have about
300 possible strings the user can choose.  Is there a less CPU
intensive way to do this without 300 else if statements?

If not, hey, the application works well enough.  But it would be
cleaner code if it were possible to use R.string.h + whatever the user
entered on prior screen.  Is this possible?
--~--~-~--~~~---~--~~
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] Unsubscribe

2009-10-16 Thread David McNab

Hi all

I've been trying unsuccessfully to unsubscribe from this group.

Messages I've sent to android-beginners-unsubscr...@googlegroups.com
have been ignored, and my Google Groups list is no longer showing this
group. But I'm still receiving messages.

Can someone please unsubscribe me?

Thanks
David




--~--~-~--~~~---~--~~
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: Unsubscribe

2009-10-16 Thread David McNab

On Fri, 2009-10-16 at 06:45 -0400, Mark Murphy wrote:
  For more options, visit this group at
  http://groups.google.com/group/android-beginners?hl=en
 
 Click that link. Unsubscribe from there.

Can't unsubscribe - the page doesn't show me as subscribed




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



Re: Please HELP -- RE: [android-beginners] Re: Unsubscribe

2009-10-16 Thread David McNab

On Fri, 2009-10-16 at 10:42 -0600, Justin Anderson wrote:
 Seriously?  You have already been given the link:
 
 1) http://groups.google.com/group/android-beginners
 2) Sign in with your gmail account
 3) Click Edit My Membership

Did that, but android-beginners doesn't show on my list of groups.

Seems I'm not the only one suffering from inescapable phantom
subscription.

 4) Click Unsubscribe
 
How can I click 'unsubscribe' when the group won't even show me as
subscribed?

David

 --
 There are only 10 types of people in the world...
 Those who know binary and those who don't.
 --
 
 
 On Fri, Oct 16, 2009 at 8:01 AM, Mimi Tam mimik...@gmail.com wrote:
 
 Dear all,
 
 I am still receiving messages after I tried to unsubscribe.
 Please send me an exact link that works to unsubscribe.
 
 Many Thanks...Mimi
 
 
 
 -Original Message-
 From: android-beginners@googlegroups.com
 [mailto:android-beginn...@googlegroups.com] On Behalf Of Mark
 Murphy
 Sent: Friday, October 16, 2009 6:46 AM
 To: android-beginners@googlegroups.com
 Subject: [android-beginners] Re: Unsubscribe
 
 
 David McNab wrote:
  Hi all
 
  I've been trying unsuccessfully to unsubscribe from this
 group.
 
  Messages I've sent to
 android-beginners-unsubscr...@googlegroups.com
  have been ignored, and my Google Groups list is no longer
 showing this
  group. But I'm still receiving messages.
 
  Can someone please unsubscribe me?
 
 snip
 
  For more options, visit this group at
  http://groups.google.com/group/android-beginners?hl=en
 
 Click that link. Unsubscribe from there.
 
 --
 Mark Murphy (a Commons Guy)
 http://commonsware.com | http://twitter.com/commonsguy
 
 _Beginning Android_ from Apress Now 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] seriously, how can I unsubscribe?

2009-10-14 Thread David Meyer
android-beginners-unsubscr...@googlegroups.com bounces and the list owners
aren't responding.

Thnx,

Dave

--~--~-~--~~~---~--~~
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: Code protection

2009-09-21 Thread David Wilson

Hi,

It should be possible to run ProGuard over your jars before converting
them to dex.


David

2009/9/16 uknowwho uknow...@gmail.com:

 I have a stupid questions. Since Android code development is based on
 Java, will my published application be easily decompiled and stolen? I
 know you can obfuscate, but that doesn't sound too good to me.

 




-- 
Reality is that which, when you stop believing in it, doesn't go away.
  — Philip K. Dick

--~--~-~--~~~---~--~~
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] ADT Plugin for Eclipse

2009-09-12 Thread David Kebo

I run snow leopard ans installed Eclipse + the ADT Plugin for Eclipse.
When I try to create a new project in Eclipse in shows the location
of the android sdk has not been setup.
I go to the Eclipe  Preferences tab  Android, but I cannot find the
SDK location.

Any help please ?

--~--~-~--~~~---~--~~
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 load the developer image under a rooted G1?

2009-09-08 Thread Marcio David
Hi all. I got a G1 with root access running the Cyagonen image. But this
image is a little unstable and not official, and I would like to run the
official developer edition of Android. Is there a official developer edition
image of the OS anywhere?

ps: I need root for some low level developing stuff, and I can't buy a dev
edition phone, since they don't send it to the country I live in.

Thanks.

--~--~-~--~~~---~--~~
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: problems building an eclipse dev environment as described on http://source.android.com/using-eclips

2009-09-03 Thread David Meyer
On Mon, Aug 31, 2009 at 7:13 PM, shuchi muley shuchimu...@gmail.com wrote:

 Hi Dav

 I use Eclipse with Android plugin. What I did was to download eclipse, open
 it up, add the android plugin. What is the problem that you are facing? Are
 you unable to use Eclipse or Android plugin hasn't properly installed ?


That seem to work (http://developer.android.com/sdk/1.5_r1/installing.html).
What dies is
if I try to follow the instructions on
http://source.android.com/using-eclipse. In particular,
when I try to Create project from existing source  I get the errors I
showed in my reply to Fred.

Thanks,

Dave



 On Mon, Aug 31, 2009 at 5:17 PM, dmm...@gmail.com wrote:

 Folks,

 I've tried a few different things, all with the same outcome. Basically,
 when
 I Create project from existing source I get 100s of errors, all of type
 Java Problem

 What I did was follow these instructions (
 http://source.android.com/using-eclipse)
 1. If Eclipse asks you for a workspace location, choose the default.
 2. If you have a Welcome screen, close it to reveal the Java
 perspective.
 3. File  New  Java Project
 4. Pick a project name, android or anything you like.
 5. Select Create project from existing source, enter the path to your
 Android root directory, and click Finish.
 6. Wait while it sets up the project. (You'll see a subtle progress meter
 in the lower right corner.)

 (eclipse-java-galileo-linux-gtk.tar.gz has a slightly different sequence)

 eclipse is eclipse-java-galileo-linux-gtk.tar.gz
 linux is 2.6.28-15-generic #49-Ubuntu
 jre is java-1.5.0-sun-1.5.0.18

 I've tried a lot of different combinations with no luck. Am I doing
 something obviously
 wrong here?

 Thanks,

 Dav




 --
 Regards
 Shuchi

 


--~--~-~--~~~---~--~~
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 show a Progress dialog in AsyncTask?

2009-08-30 Thread Juan David Trujillo C.

Hi all!

I am creating an app that show a Progress dialog in AsyncTask to
inform the user while web information is being fetched.  I've read
there are two ways of doing this: Using handlers or creating and
executing an inner class that overrides the AsyncTask class

I am trying to create and executing inner class that overrides the
AsyncTask class, which runs a resource-intensive thread in the
background, to provide progress updates, and reports back when
finished.

On the OnCreate, I have:
protected Dialog onCreateDialog(int id) {
 return ProgressDialog.show(ListSituation.this, , Loading.
Please wait..., true);
}

throws the following error:
android.util.AndroidRuntimeException: requestFeature() must be called
before adding content

On the other hand, if I do it this way:
protected Dialog onCreateDialog(int id) {
return progressDialog();
}

public Dialog progressDialog(){
Log.d(Tifersons, Entra a
progressDialog..);
ProgressDialog dialog = new ProgressDialog(this);
dialog.setProgressStyle(ProgressDialog.STYLE_SPINNER);
dialog.setMessage(Loading...);
dialog.setIndeterminate(true);
dialog.setCancelable(false);
return dialog;
}

No dialog gets shown.

This is being done inside an activity included in a Tab.  When I
switch to another Activity in the tab, the progressDialog gets shown.

Thanks for your help,

Best regards,

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: Emulator Proxy

2009-08-19 Thread David Turner
There are some proxy-related fixes in Android SDK 1.5_r3, can you test with
this and report if yourproblem still persists?

If it does, can you start with the -debug-proxy option and show the output
here?

On Tue, Aug 18, 2009 at 6:20 PM, chengks99 chengk...@gmail.com wrote:


 I encounter some problem when starting emulator using -http-proxy

 C:\android-sdk-windows-1.5_r2\toolsemulator -avd android1 -http-proxy
 proxy.##.##.com:8080 -debug-proxy
 proxy_http_setup: creating http proxy service connecting to:
 proxy.##.##.com:8080
 server name 'proxy.##.##.com' resolved to XX.XX.X.X:8080
 proxy_http_setup: creating HTTP Proxy Service Footer is (len=2):
 '
 '

 however, I still cant use internet connection via emulator's browser.
 I also tried command below:

 ./adb shell sqlite3 /data/data/com.google.android.providers.settings/
 databases/settings.db “\”INSERT INTO system VALUES(99,’http_proxy’,’
 proxy.##.##.com:8080’);\”

 but seems had no effect at all, the problem remain. Can anyone help me
 on this issues? 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: Android SDK 2.0?

2009-08-19 Thread David Turner
Actually, Andy Rubin has now officially declared that:
the Donut branch will be used for Android 1.6 releases
the Eclair branch will be used for Android 2.0 releases

http://www.reuters.com/article/internetNews/idUSTRE56U5XU20090801

http://www.reuters.com/article/internetNews/idUSTRE56U5XU20090801hope that
helps

On Wed, Aug 19, 2009 at 1:36 PM, Mark Murphy mmur...@commonsware.comwrote:


 Andrés G. Aragoneses wrote:
  Is Flash a proprietary component as well or is the plugin also included
  in Android?

 Flash is rather proprietary. It is not in the Android open source project.

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

 _Beginning Android_ from Apress Now 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: Why so slow

2009-07-22 Thread David Turner
And what does your application exactly?

On Tue, Jul 21, 2009 at 7:15 PM, yves yves5...@googlemail.com wrote:


 Hi,

 Iam developing on Eclipse and I already set the Emulator Parameter to
 EDGE-Speed.

 The Problem is, the application runs fast on my Emulator but very slow
 on my device.

 Thanks
 Yves
 


--~--~-~--~~~---~--~~
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: Is it permitted to run GPLv2 programs on Android?

2009-07-14 Thread David Turner
The problem related to what kind of distribution you envision for your
program?.

If it's a program distributed separately from the Android system image (e.g.
through Market, or your own website), then you can do whatever you want
as long as you make the sources available under the GPL too.

If you want the program to be part of the Android system image, chances that
it will be accepted by the Android team as part of the standard platform are
extremely small (MIT / BSD / Apache licenses are strongly preferred).

On Tue, Jul 14, 2009 at 10:49 AM, Numaguchi Daisuke
d.numagu...@gmail.comwrote:


 Hello.

 I have a GPLv2 package which was originaly designed for PC and servers
 (and written by me). I want to make that package available on Android.
 Programs in that package are executed from /system/bin/sh or /init.rc
 and do not share memory with other applications.
 Information is passed via command line arguments and stdio.

 I can release that package for Android as GPLv2 if it is permitted to
 run GPLv2 programs on Android.
 Is it permitted to run GPLv2 programs on Android?

 (In other words, do I have to rewrite the package from the scratch in
 order to make the package not restricted by GPL?)

 Regards.

 


--~--~-~--~~~---~--~~
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: fastboot on emulator

2009-07-10 Thread David Turner
no fastboot doesn't work with the emulator at all.

(fastboot is talking to the hardware bootloader that simply doesn't exist on
the emulator.
Instead, the emulator directly loads a Linux kernel image and starts it
directly...)

On Thu, Jul 9, 2009 at 3:48 PM, pan.gaoy...@gmail.com pan.gaoy...@gmail.com
 wrote:


 Hi,

 The adb devices can detect the emulator but fastboot devices can
 not, does the fastboot work on emulator? if yes, how to enter into
 fastboot mode?

 


--~--~-~--~~~---~--~~
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 starting emulator from command line

2009-07-06 Thread David Turner
that's pretty weird. Can you tell us what is the output of emulator -avd
my_avd -debug-all before the crash?

On Mon, Jul 6, 2009 at 5:18 PM, greg sep...@eduneer.com wrote:


 Although I can reliably start the android emulator from within Eclipse
 (version 3.4.2), I would like to use some emulator options (e.g., -
 scale) that don't appear to be available from within Eclipse.  However
 I get a Microsoft Windows error dialog displaying emulator.exe has
 stopped working whenever I try to start the emulator using the
 command line emulator -avd my_avd

 If I disconnect the network, in addition to the emulator.exe has
 stopped working dialog, the command line response is Warning: No DNS
 servers found.  Note that the android emulator starts avd my_avd
 reliably from within Eclipse with or without a network connection.

 This problem is occurring on the android 1.5 platform running on 64-
 bit Vista.

 There was a reference to a seemingly similar problem at

 http://groups.google.com/group/android-developers/browse_thread/thread/dcbe8e8fb305982c/b29565044e5abb51?show_docid=b29565044e5abb51
 ,
 but I didn't see any resolution to it.

 By the way, I think the android development environment and
 documentation is very impressive, especially considering how new it
 is.  I did happen to notice a couple typos in the SDK's emulator
 documentation at
 http://developer.android.com/guide/developing/tools/emulator.html:

 -- files tht you want
 -- control the its behaviors

 Best regards,
 Greg
 


--~--~-~--~~~---~--~~
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: Is the emulator good enough for production?

2009-07-02 Thread David Turner
You should definitely try to test on a real device before that.

The emulator will never give you more than an approximate experience with
regards to physical user experience (e.g. touch screen, track ball,
keyboard,
etc...)

On Thu, Jul 2, 2009 at 6:41 AM, ayush ayushv2...@gmail.com wrote:


 a few more thoughts in favour of actual on-device testing rather than
 just emulators:

 1) what happens to ur game when it is interrupted by an incoming
 call / SMS?
 2) the touch events in the emulator are triggered by mouse-clicks.
 however on the device the user will use his fingers ... finger touches
 have far lower precision than mouse-clicks
 3) the performance of ur code could be much slower on the device than
 on the emulator. u'll need to optimize accordingly


Absolutely !


 4) the emulator has a (physical dimensions) larger screen. this does
 not give u a true picture of what the graphics appear on a real
 device. i'd say this is very important especially for a game


Again, that is true. Note however that there is a simple way to rescale the
emulator's window to fit the physical dimensions of a real device. Use the
following:

   emulator -scale 110dpi

If your physical monitor's real resolution is 110dpi (adjust accordingly).
This will resize the window so that the size of the emulated framebuffer
matches the physical size of a real device, which will give you a good idea
of how large/small your buttons and views will appear to a normal user.

You can also do that dynamically through the console with the window scale
command  (see help window scale for details).

Hope this helps






 On Jul 1, 5:51 pm, Carl carl...@gmail.com wrote:
  I have written a game for Android and have tested it on the emulator -
  everything seems to be perfect.
  It is a simple game with few graphics and a few touch-based commands.
 
  I'd like to release it on the market (paid). I have not yet tested it
  on any devices though, as I am waiting for the HTC Hero to be released
  so I can buy a device.
 
  Should I wait for the release or is the emulator reliable enough?
 


--~--~-~--~~~---~--~~
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: creating an avd

2009-07-02 Thread David Turner
The command tries to create the file C:\Documents and
Settings\Sam\.android\avd\helloIan.ini
which contains the AVD's configuration. The error reported is a bit strange
but could be implied
by the fact that the directory .android or .android\avd could not be created
in your HOME directory
(which should be C:\Documents and Settings\Sam).

Try defining ANDROID_SDK_HOME in your environment to point to a different
location, i.e.
one that doesn't contain any spaces in it. This will instruct the SDK tools
to use a different home
directory to store the AVDs and other config information.

Let us know if this works.

On Tue, Jun 30, 2009 at 7:05 AM, ain kodeni...@gmail.com wrote:


 Ihave looked around on the internet for a solution to this. I have
 tried creating and avd but this does not seem to work. I have been
 looking around online for 4 hours and all the solutions out there I
 have tried and non seems to be working.

 when I try to create and avd using the following command

 C:\Documents and Settings\Sam\Desktop\dotEXE\android-sdk-
 windows-1.5_r2\toolsandroid create avd -n hellosam -t 1

 I get the following error: Error: C:\Documents and Settings\Sam
 \.android\avd\helloIan.ini (The system cannot find the path specified)

 This is what am using.
 I am using the latest SDk in windows and Ihave the Eclipese Galileo.
 This is on windows XP. I am really stumped. I have restarted my pc but
 nothing is working.

 I have pulled out my hair enough.I am my wits end. I try to avoid
 posting because I usually find my answer by looking through the forums
 but so far nothing is working.

 


--~--~-~--~~~---~--~~
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 install and run applications from within another application?

2009-07-02 Thread David Turner
On Wed, Jul 1, 2009 at 6:22 PM, calleandersson
calleanders...@hotmail.comwrote:


 Is there somehow possible to simulate that an application has system
 rights in the Emulator?


No, and very intentionally.





--~--~-~--~~~---~--~~
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: G1 vs Emulator

2009-06-24 Thread David Turner
adb -e    to talk to the emulator (only works if there is a single
emulator instance running)
adb -d ...to talk to a real device (only works if there is a single
physical device connected)
adb -s serial ...  to talk to a specific device  (where serial is either
emulator-5554 or HT850GZ54711)

On Wed, Jun 24, 2009 at 7:01 PM, Neil Hendrick mojote...@gmail.com wrote:

 Droids,

 I have managed to set up my G1 so that it is recognized by the system when
 it is connected:

 mojote...@kobo:~$ adb devices
 List of devices attached
 HT850GZ54711 device
 emulator-5554 device

 but when I try to run my application, I do not get the option to run on the
 device. There is no device chooser, it goes straight to the emulator. Any
 thoughts?


 --
 ~Neil

 Neil Hendrick
 Bill Cosby http://www.brainyquote.com/quotes/authors/b/bill_cosby.html - A 
 word to the wise ain't necessary - it's the stupid ones that need the
 advice.
 


--~--~-~--~~~---~--~~
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: Emulator not showing on screen from cmd.

2009-06-09 Thread David Turner
On Sat, Jun 6, 2009 at 3:01 PM, timberwo7ves timberwo7...@gmail.com wrote:


 Using the emulator -avd testavd command, where 'testavd' is the name
 of my AVD, a list of the syntax for using the emulator came up in the
 cmd window, an instance of the JavaFX SDK 1.1 Device Manager started
 up, but the actual emulator window did not appear, though the tutorial
 says that a window should pop up.


I'm pretty sure that JavaFX SDK has nothing to do with Android :-)
Maybe you have a JavaFX emulator program in your path, and that this is
what is being called?



 ideas 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: android' is not recognized as an internal or external command,

2009-06-09 Thread David Turner
The android tool was added in SDK 1.5, so it's not part of previous
releases

On Tue, Jun 9, 2009 at 3:25 PM, Yogeshbansal canceryogi1...@gmail.comwrote:


 Hi Team,

 I am a newbie to this forum. I am trying to run my first android
 program. I have set everything as pe the instruction. when I tried to
 create AVD for command prompt i got the below error.

 D:\Project_Work\android-sdk-windows-1.1_r1\android-sdk-
 windows-1.1_r1\toolsand
 oid
 'android' is not recognized as an internal or external command,
 operable program or batch file.

 Please guide me on this

 thanks
 yogesh

 


--~--~-~--~~~---~--~~
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: Bug in Emulator Data and Time settings?

2009-06-03 Thread David Turner
that's really weird; I'm still interested to know in which timezone you are
when the problem appears, and what -debug-timezone outputs though.
On Wed, Jun 3, 2009 at 4:29 PM, Lewis Z. lzh...@gmail.com wrote:


 I don't know why the Automatic Mode gives me complete wrong time. So I
 chose to use manual mode. The Select Time Zone window shows all GMT
 values off by one, as shown here,

 [img]http://www.pbase.com/3stones/image/113326113.jpg[/img]

 It's not big deal for me, just very annoying.


 On Jun 2, 5:53 pm, David Turner di...@android.com wrote:
  Can you tell us in which exact time zone you're located, and which
 platform
  you're running on?
 
  You can try using -debug-timezone to see what it auto-detected by the
  emulator.
  You can also try the -timezone option to correct it (see -help-timezone)
 
  Hope this helps
 
  On Tue, Jun 2, 2009 at 6:36 PM, Lewis Z. lzh...@gmail.com wrote:
 
   It seems to me that the time zone settings are messed up. For example,
   Central Time Zone is GMT-5:00? It should be GMT-6:00.
 


--~--~-~--~~~---~--~~
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: Bug in Emulator Data and Time settings?

2009-06-02 Thread David Turner
Can you tell us in which exact time zone you're located, and which platform
you're running on?

You can try using -debug-timezone to see what it auto-detected by the
emulator.
You can also try the -timezone option to correct it (see -help-timezone)

Hope this helps

On Tue, Jun 2, 2009 at 6:36 PM, Lewis Z. lzh...@gmail.com wrote:


 It seems to me that the time zone settings are messed up. For example,
 Central Time Zone is GMT-5:00? It should be GMT-6:00.
 


--~--~-~--~~~---~--~~
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 emulator starts with a dialog promoting what is the HOME

2009-05-28 Thread David Turner
emulator @avdname -wipe-data is your friend :-) no need to reinstall

On Thu, May 28, 2009 at 10:37 AM, Sean Hodges
seanhodge...@googlemail.comwrote:


 It sounds like you installed an app on the emulator that declares
 itself as a home app to Android.

 Usually you have a checkbox at the bottom of the dialog that allows
 you to tell it not to ask again. Worst case scenario; just ditch the
 whole emulator and re-install it.

 I'm not sure on how you reset it (maybe a factory reset in the
 Settings like the phone?), but assuming you've kept everything backed
 up, it might be easier just to start with a fresh emulator instance.



 On Wed, May 27, 2009 at 10:31 PM, Meryl Silverburgh
 silverburgh.me...@gmail.com wrote:
 
  Hi,
 
  Why sometimes when I start Android emulator starts with a dialog
  promoting what is the HOME?
  How can I make that dialog goes away? And how can I reset the android
  emulator so that the dialog appears again?
  I have tried starting the emulator with '-wipe-data', that does not
  prompt me back that dialog?
 
  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: SDL init failure, reason is: No available video device

2009-05-27 Thread David Turner
then it means the emulator could not find your X11 library (libX11.so.6)
through dlopen().
this is really weird, what kind of setup are you using ?

On Wed, May 27, 2009 at 7:43 AM, arunjith g arunj...@gmail.com wrote:

 hi
  I have no enviornment variable as SDL_VIDEODRIVER. Im running the emulator
 in a ubuntu machine (32 bit) . I have installed my sdl libraries properly.
 please suggest me how to proceed


 On Wed, May 27, 2009 at 2:25 AM, David Turner di...@android.com wrote:

 Try unsetting SDL_VIDEODRIVER in your environment before launching the
 emulator.
 That should generally fix the issue. If not, please tell me more about
 your system.


 On Tue, May 26, 2009 at 7:09 AM, arunjith arunj...@gmail.com wrote:


 Hi

  When im trying to  run the emulator i have this following error
 comes
  SDL init failure, reason is: No available video device. I have
 updated and installed all the necessary packages . i tried using both
 java5 and java6 . Can any one guide me , how to solve this 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] Re: SDL init failure, reason is: No available video device

2009-05-27 Thread David Turner
One possibility is that the emulator is a 32-bit program that expects to use
the 32-bit libX11 shared library. You might want to install this if you run
on a 64-bit system.

On Wed, May 27, 2009 at 11:52 PM, David Turner di...@android.com wrote:

 then it means the emulator could not find your X11 library (libX11.so.6)
 through dlopen().
 this is really weird, what kind of setup are you using ?


 On Wed, May 27, 2009 at 7:43 AM, arunjith g arunj...@gmail.com wrote:

 hi
  I have no enviornment variable as SDL_VIDEODRIVER. Im running the
 emulator in a ubuntu machine (32 bit) . I have installed my sdl libraries
 properly. please suggest me how to proceed


 On Wed, May 27, 2009 at 2:25 AM, David Turner di...@android.com wrote:

 Try unsetting SDL_VIDEODRIVER in your environment before launching the
 emulator.
 That should generally fix the issue. If not, please tell me more about
 your system.


 On Tue, May 26, 2009 at 7:09 AM, arunjith arunj...@gmail.com wrote:


 Hi

  When im trying to  run the emulator i have this following error
 comes
  SDL init failure, reason is: No available video device. I have
 updated and installed all the necessary packages . i tried using both
 java5 and java6 . Can any one guide me , how to solve this 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] Re: SDL init failure, reason is: No available video device

2009-05-26 Thread David Turner
Try unsetting SDL_VIDEODRIVER in your environment before launching the
emulator.
That should generally fix the issue. If not, please tell me more about your
system.

On Tue, May 26, 2009 at 7:09 AM, arunjith arunj...@gmail.com wrote:


 Hi

  When im trying to  run the emulator i have this following error
 comes
  SDL init failure, reason is: No available video device. I have
 updated and installed all the necessary packages . i tried using both
 java5 and java6 . Can any one guide me , how to solve this 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] Re: Porting Qt applications on Android

2009-05-18 Thread David Turner
no

On Mon, May 18, 2009 at 11:05 AM, Vaidya vaidya...@gmail.com wrote:

 Hi,
 Is it possible to port an application (C/C++ platform) developed using Qt
 on Android?
 Can the C shared libraries (.so files) be loaded in Android?

 Regards,
 Vaidya

 


--~--~-~--~~~---~--~~
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 emulator window hangs when closing window

2009-05-15 Thread David Turner
this is probably to audio. Can you tell me if starting the emulator with
emulator -audio none does solve the issue.
If is does, can you try the following values instead of none:  alsa,
oss, sdl and esd and let me know which work, and which do not.

Note: in certain cases, the EsounD daemon (or equivalent) will go into a
weird infinite loop and freeze the desktop when
quitting the emulator. This generally happens on Ubuntu 6.04, which is
pretty old now.

On Thu, May 14, 2009 at 3:49 PM, jimbo jim.basila...@gmail.com wrote:


 Hi,

 After installing android SDK 1.5 r1 and the ADT plugin for Eclipse
 Ganymede 3.4.2 on Ubuntu 32 bit 9.04 (Jaunty), I find that after
 running any android application (with no problems), that I am unable
 to terminate the emulator instance by closing the window. It just
 hangs and I have to call kill -9 to terminate the process. This
 happens irrespective of whatever AVD target I choose (1.1 or 1.5).

 The same happens even if I run the emulator from a terminal (by
 passing eclipse altogether) by calling 'emulator -avd myavd -netspeed
 full -netdelay none' . Adding the -verbose and -logcat and -show-
 kernel flags does not help resolve the issue.

 I have looked widely for a solution on the Web but this problem does
 not appear much.

 Any ideas on how to resolve this or is there another way to terminate
 the emulator instance?

 Thanks,
 Jim

 


--~--~-~--~~~---~--~~
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] SQLite version in Android 1.5

2009-05-15 Thread David

I am having trouble opening a database I imported and copied from my
mac.  this worked in Android 1.1.  I get unable to open database
What version of SQLite is used in Android 1.5?  has it changed?

--~--~-~--~~~---~--~~
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-07 Thread David Turner
2009/5/7 a druid klausf...@gmail.com


 I think the emulator should be fixed, especially as the doc
 suggests using -htt-proxy.


Absolutely, and I'm working on it, I was just clarifying that the incorrect
TCP checksums cannot be caused by the emulator.



 Additionally the dog suggests to use the switch -verbose-proxy , which
 doesn't work.


it's -debug-proxy



 On May 6, 1:36 pm, Fabien Marchewka fura...@gmail.com wrote:
  solution here :
 http://groups.google.com/group/android-developers/browse_thread/threa...
  work for me.
  But it will be fine to correct the error with -http-proxy
 
  On 5 mai, 18:23, David Turner di...@android.com wrote:
 
   2009/5/5 stevensli stevens...@gmail.com
 
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 di...@android.com 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 stevens...@gmail.com
 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:\Downloadsemulator -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: unknown
 error
  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: unknown
 error
  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: unknown
 error
  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: unknown
 error
  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: unknown
 error
  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: unknown
 error
 
 
 


--~--~-~--~~~---~--~~
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-06 Thread David Turner
From the error:

org.eclipse.swt.SWTError: Not implemented [multiple displays]

It looks like you have multiple displays and that the SWT implementation on
your platform doesn't support them yet. Huhu :-(

On Tue, May 5, 2009 at 10:23 PM, icedfusion icedfus...@googlemail.comwrote:


 I am also having the same problem - wish i hadn't updated now.. I
 even reinstalled it all to make sure I hadn't done anything wrong and
 I get the error.

 From my .log:

 !ENTRY org.eclipse.ui.workbench.texteditor 4 0 2009-05-05 21:18:04.826
 !MESSAGE The

 'org.eclipse.wst.jsdt.web.ui.internal.hyperlink.script.event.JSPJavaHyperlinkDetector'
 extension from plug-in 'org.eclipse.wst.jsdt.web.ui' to the
 'org.eclipse.ui.workbench.texteditor.hyperlinkDetectors' extension
 point will be ignored because it contains invalid attributes.

 !ENTRY com.android.ide.eclipse.adt 4 0 2009-05-05 21:18:08.970
 !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.init(Device.java:154)
at org.eclipse.swt.widgets.Display.init(Display.java:471)
at org.eclipse.swt.widgets.Display.init(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-05-05 21:18:08.990
 !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.init(Device.java:154)
at org.eclipse.swt.widgets.Display.init(Display.java:471)
at org.eclipse.swt.widgets.Display.init(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)



 On May 4, 8:27 pm, gritty k...@uoregon.edu wrote:
  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 david.lygag...@gmail.com 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 javierjc1...@gmail.com 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.init(Device.java:154)
at org.eclipse.swt.widgets.Display.init(Display.java:471)
at org.eclipse.swt.widgets.Display.init(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

[android-beginners] Re: -http-proxy can't work in emulator with 1.5 sdk

2009-05-06 Thread David Turner
the emulator is just a normal program that uses the standard Winsock
interface to access the network. If you have TCP checksum errors on a real
network, this can only come from buggy network drivers, I'm afraid, since
there is no way the emulator itself is generating these.
That's really weird...

2009/5/6 Fabien Marchewka fura...@gmail.com


 Same problem on windows XP 32 bits SP3. No firewall and no antivirus,
 antispam ...
 I have trace but it seems to be not supported by traceview.
 I have packets with incorrect tcp checksum from my host to proxy host.
 host ip : 172.16.124.133
 proxy ip : 172.18.251.23
 log with wireshark :
 No. TimeSourceDestination
 Protocol Info
  1 0.00172.16.124.133172.18.251.23
 TCP  isg-uda-server  http-alt [ACK] Seq=1 Ack=1 Win=65535 [TCP
 CHECKSUM INCORRECT] Len=0

 Frame 1 (54 bytes on wire, 54 bytes captured)
Arrival Time: May  6, 2009 10:24:25.741972000
[Time delta from previous captured frame: 0.0 seconds]
[Time delta from previous displayed frame: 0.0 seconds]
[Time since reference or first frame: 0.0 seconds]
Frame Number: 1
Frame Length: 54 bytes
Capture Length: 54 bytes
[Frame is marked: False]
[Protocols in frame: eth:ip:tcp]
[Coloring Rule Name: Checksum Errors]
[Coloring Rule String: cdp.checksum_bad==1 || edp.checksum_bad==1
 || ip.checksum_bad==1 || tcp.checksum_bad==1 || udp.checksum_bad==1]
 Ethernet II, Src: HewlettP_1d:a7:b6 (00:14:38:1d:a7:b6), Dst:
 Oneacces_44:73:f5 (00:12:ef:44:73:f5)
Destination: Oneacces_44:73:f5 (00:12:ef:44:73:f5)
Address: Oneacces_44:73:f5 (00:12:ef:44:73:f5)
 ...0     = IG bit: Individual address
 (unicast)
 ..0.     = LG bit: Globally unique
 address (factory default)
Source: HewlettP_1d:a7:b6 (00:14:38:1d:a7:b6)
Address: HewlettP_1d:a7:b6 (00:14:38:1d:a7:b6)
 ...0     = IG bit: Individual address
 (unicast)
 ..0.     = LG bit: Globally unique
 address (factory default)
Type: IP (0x0800)
 Internet Protocol, Src: 172.16.124.133 (172.16.124.133), Dst:
 172.18.251.23 (172.18.251.23)
Version: 4
Header length: 20 bytes
Differentiated Services Field: 0x00 (DSCP 0x00: Default; ECN:
 0x00)
 00.. = Differentiated Services Codepoint: Default (0x00)
 ..0. = ECN-Capable Transport (ECT): 0
 ...0 = ECN-CE: 0
Total Length: 40
Identification: 0xb8a8 (47272)
Flags: 0x04 (Don't Fragment)
0... = Reserved bit: Not set
.1.. = Don't fragment: Set
..0. = More fragments: Not set
Fragment offset: 0
Time to live: 128
Protocol: TCP (0x06)
Header checksum: 0x7267 [correct]
[Good: True]
[Bad : False]
Source: 172.16.124.133 (172.16.124.133)
Destination: 172.18.251.23 (172.18.251.23)
 Transmission Control Protocol, Src Port: isg-uda-server (2551), Dst
 Port: http-alt (8080), Seq: 1, Ack: 1, Len: 0
Source port: isg-uda-server (2551)
Destination port: http-alt (8080)
Sequence number: 1(relative sequence number)
Acknowledgement number: 1(relative ack number)
Header length: 20 bytes
Flags: 0x10 (ACK)
0...  = Congestion Window Reduced (CWR): Not set
.0..  = ECN-Echo: Not set
..0.  = Urgent: Not set
...1  = Acknowledgment: Set
 0... = Push: Not set
 .0.. = Reset: Not set
 ..0. = Syn: Not set
 ...0 = Fin: Not set
Window size: 65535
Checksum: 0xcfda [incorrect, should be 0x3e77 (maybe caused by
 TCP checksum offload?)]
[Good Checksum: False]
[Bad Checksum: True]

   00 12 ef 44 73 f5 00 14 38 1d a7 b6 08 00 45 00   ...Ds...
 8.E.
 0010  00 28 b8 a8 40 00 80 06 72 67 ac 10 7c 85 ac 12   .
 (@...rg..|...
 0020  fb 17 09 f7 1f 90 54 49 5a 77 87 19 42 3c 50
 10   ..TIZw..BP.
 0030  ff ff cf da 00 00 ..



 On 5 mai, 18:23, David Turner di...@android.com wrote:
  2009/5/5 stevensli stevens...@gmail.com
 
 
 
   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 di...@android.com 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

[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 stevens...@gmail.com 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:\Downloadsemulator -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: unknown error
 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: unknown error
 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: unknown error
 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: unknown error
 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: unknown error
 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: unknown error

 


--~--~-~--~~~---~--~~
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 stevens...@gmail.com


 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 di...@android.com 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 stevens...@gmail.com 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:\Downloadsemulator -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: unknown error
   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: unknown error
   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: unknown error
   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: unknown error
   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: unknown error
   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: unknown error
 


--~--~-~--~~~---~--~~
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: Fetching using http_proxy : 1.5_pre

2009-05-02 Thread David Turner
Mmm, can't reproduce this. Again, can someone post the content of
-debug-proxy when trying to connect to their proxy with -http-proxy,
this will help me understand the problem.

Thanks in advance

On Thu, Apr 30, 2009 at 5:12 PM, Ed Burnette ed.burne...@gmail.com wrote:


 I can verify that using the -http-proxy option alone is not enough
 anymore with 1.5_r1. Setting the proxy address and port number as
 described by mspanduranga works for me. Actually you don't need the IP
 address: a regular domain name works too.

 I think this might be a bug in the emulator.


 On Apr 28, 2:14 am, mspanduranga mspandura...@gmail.com wrote:
  Hi David,
 
  Thanks for your response !!
 
  It works for me now !!
 
  Theproxyset up works if we set theproxyin Home- Application menu -
 settings - Wireless Controls  - Mobile Networks - Access Point
 
  Names.
 
  Select any existing access point name and set the ip of yourproxyand
  port number.
 
  (For eg. if theproxyis abc.def.com:1080 ,  set its IP address of
  abc.def.com and port as 1080  in Access point name )
 
  After that it works fine.
 
  ( I am even able to save an additional home profile in 1.5
 (withoutproxy/port info)so when at home, I just use the home profile
 and
  I can browse onAndroid)
 
  Thanks
  mspanduranga
 
  On Apr 23, 8:42 pm, David Turner di...@android.com wrote:
 
   Hello,
 
   can you run 'emulator-debug-proxy-http-proxyyourproxy' and send the
   output here?
   this will print the messages exchanged between the emulated system and
 your
  proxyand
   might help debug the issue.
 
   On Mon, Apr 20, 2009 at 9:47 PM, mspanduranga mspandura...@gmail.com
 wrote:
 
Hi All,
 
I am trying to connect to the internet ( I am behind a http_proxy )
using 1.5_pre SDK...but is not working for me..
 
I already tried the two suggestions given in
 
   
 http://developer.android.com/guide/developing/tools/emulator.html#proxy
 
but it does not seem to working.
 
In the earlier SDK version (r10)...giving [host_name]:[port_no] used
to work
 
Please helpwhat else do I need to do ?
 
thank you
mspanduranga
 


--~--~-~--~~~---~--~~
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] Need help on Mobile Middleware

2009-04-27 Thread David

Hey guys,

I was wondering, if you have any suggestions on the best Mobile
Middleware solutions for the enterprise.  If you could suggest any
another alternatives to Mobile Middleware that will also be helpful.
Thanks for your help!

Best,
David
--~--~-~--~~~---~--~~
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: Fetching using http_proxy : 1.5_pre

2009-04-23 Thread David Turner
Hello,

can you run 'emulator -debug-proxy -http-proxy yourproxy' and send the
output here?
this will print the messages exchanged between the emulated system and your
proxy and
might help debug the issue.

On Mon, Apr 20, 2009 at 9:47 PM, mspanduranga mspandura...@gmail.comwrote:


 Hi All,

 I am trying to connect to the internet ( I am behind a http_proxy )
 using 1.5_pre SDK...but is not working for me..

 I already tried the two suggestions given in

http://developer.android.com/guide/developing/tools/emulator.html#proxy

 but it does not seem to working.

 In the earlier SDK version (r10)...giving [host_name]:[port_no] used
 to work

 Please helpwhat else do I need to do ?

 thank you
 mspanduranga

 


--~--~-~--~~~---~--~~
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 let PVAuthor support recording QCELP

2009-04-21 Thread david 1
This issue has been resolved. Thank you all.

david

2009/3/23 david david...@gmail.com

 There's no relevant spec documents indicating where to start to handle
 this issue. Should there be a specific composer required? Or just deos
 'ADIF/ADTS format' suffice to handle it? I'm sorry I have no sense of
 this issue. Could anybody show me hints?

--~--~-~--~~~---~--~~
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: Multicast problem

2009-04-10 Thread David Turner
Sorry, but the emulator currently doesn't support multicast :-(

On Wed, Apr 8, 2009 at 1:57 AM, Thiago B. tvbo...@gmail.com wrote:


 Hi, I'm trying to develop an application that need to send UDP
 Multicast packets to the local network.
 There is a few equipments that respond to this packets and send back
 some informations.
 I'm not worried with the server right now, because there is a server
 on the same network that collect all this multicast data.
 I just want to make my mobile able to send the request message to
 start the process.

 My client class is called MCastClient, see below:
 import java.net.DatagramPacket;
 import java.net.InetAddress;
 import java.net.MulticastSocket;

 public class MCastClient {
private int port = 5;
private String addr = 239.192.1.100;
private MulticastSocket sock = null;

public void sendData(String data) {
try {
InetAddress group = InetAddress.getByName(addr);

sock = new MulticastSocket(port);

sock.joinGroup(group);

DatagramPacket dataPckt = new
 DatagramPacket(data.getBytes(),
data.length(), group, port);

sock.send(dataPckt);
sock.leaveGroup(group);
sock.close();
} catch (Exception e) {}
}
 }

 It runs perfectly on my computer as a Java Application.

 On the Android Emulator i create a simple application with a button
 and add a OnClickListener.

 public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);

final MCastClient mcClient = new MCastClient();
Button btn = (Button)findViewById(R.id.btn_send);

btn.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
mcClient.sendData(001RequestData);
}
});

 I believe that my packet is not arriving on the local network.
 I already did some test with the command redir add udp:5:5
 on telnet port of the emulator, that i got from

 http://developer.android.com/guide/developing/tools/emulator.html#connecting
 .

 There is any other command that can forward ports to the emulator?
 I'm almost putting a port sniffer on my machine just to check what is
 happening.

 Thanks for the help, it will be very appreciated.
 Thiago B.


 


--~--~-~--~~~---~--~~
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 with Emulator

2009-03-30 Thread David Turner
it looks like there is something fishy in your system image. Try starting
with emulator -wipe-data once to see if this solves the issue.
If it doesn't, try re-downloading the SDK.

If that doesn't solve the issue, let us know by giving us as much detail as
possible as to what you do to build/install/start your
application.

On Mon, Mar 30, 2009 at 6:03 AM, gganesh ganesh@gmail.com wrote:


 hi ,
 I could launch any application on emulator has it shows error like


  ERROR/mountd(19): could not read initial mass storage state
  ERROR/flash_image(28): can't find recovery partition
 DEBUG/AndroidRuntime(23):  AndroidRuntime START
 
 DEBUG/AndroidRuntime(23): CheckJNI is ON
 ERROR/dalvikvm(23): Unable to find run() in java.lang.Thread
 DEBUG/dalvikvm(23): VM cleaning up
 DEBUG/dalvikvm(23): LinearAlloc 0x0 used 15972 of 4194304 (0%)
 WARN/dalvikvm(23): JNI_CreateJavaVM failed
 ERROR/AndroidRuntime(23): JNI_CreateJavaVM failed
 INFO/(24): ServiceManager: 0xaab8
 INFO/AudioFlinger(24): AudioFlinger's main thread ready to run.
 INFO/CameraService(24): CameraService started: pid=24
 DEBUG/RILD(22): overriding with -s /dev/socket/qemud_gsm
 DEBUG/AndroidRuntime(48):  AndroidRuntime START
 


 I could not figure out what went wrong
 I'm using Ubuntu 8.4
 Eclipse 3.4
 java 1.6

 Thanks

 


--~--~-~--~~~---~--~~
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: Reconnect adb while emulator is running

2009-03-25 Thread David Turner
Strange, which build are you using exactly ?
For the record, adb won't be able to connect to the emulator if the emulated
ethernet interface is down.

On Tue, Mar 24, 2009 at 8:59 PM, frank frank.yens...@gmail.com wrote:


 Is there a way to reconnect the adb after an emulator has started.  I
 am currently receiving the following error which kills adb:

 NetworkStateTracker(   49): initial network configuration
 NetworkStateTracker(   49): config changed:: before:interface eth0
 state: link up
 NetworkStateTracker(   49): ipaddr 0.0.0.0 gateway 0.0.0.0 netmask
 0.0.0.0 dns1 0.0.0.0 dns2 0.0.0.0 DHCP server 0.0.0.0 lease 0 seconds
 NetworkStateTracker(   49): haveIpAddress=false,
 obtainingIpAddress=false, explicitlyDisabled=false
 NetworkStateTracker(   49): reset Interface
 NetworkStateTracker(   49): a broadcasting ethernet change action:
 state:DISCONNECTING



 no devices are detected after this however my emulator is still
 running on port 5554.  Please let me know if there is a way to
 reconnect adb to this emulator.

 Thanks,
 Frank

 


--~--~-~--~~~---~--~~
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 and ddms can't connect to emulator after installing Windows XP driver for G1

2009-03-24 Thread David Turner
that's very strange. To help debug this issue, can you do the following?:

1/ kill any existing adb server (i.e. either do adb kill-server or kill in
the task manager's process list any program named 'adb.exe')
2/ restart the server with the following in a command-line window:

set ADB_TRACE=all
adb server

this restarts the server which will log many traces to %TEMP%\adb.log

3/ start the emulator, then do adb devices
4/ if the emulator is not listed, zip the adb.log and send it to me
directly.

Thanks in advance

On Wed, Mar 18, 2009 at 8:48 PM, Jade j...@edufone.com wrote:


 After installing the Windows XP driver for G1 from the android android-
 sdk-windows-1.1_r1 sdk, I'm able to run ddms and adb with the G1
 phone. The problem is that even when the phone is unplugged, adb can't
 find the emulator anymore.

 I've unplugged the phone and USB cable from my computer. I start the
 emulator and then I issue this command: adb devices and adb doesn't
 see the emulator. If I try to run ddms, it also can't find the
 emulator.

 I've also tried issuing: adb kill-server and then restarting the
 emulator and adb logcat but all I get is the waiting for device
 error.

 Any suggestions would be greatly appreciated!

 Jade
 


--~--~-~--~~~---~--~~
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: Removal / Recovery from Android Emulator on OS X

2009-03-24 Thread David Turner
Hmm. Are you sure this is only caused by the emulator ?
If you use -noaudio, the emulator shouldn't even try to generate or record
audio.

It definitely sounds like flaky hardware.

On Tue, Mar 24, 2009 at 8:15 AM, shmeed duncan.osb...@gmail.com wrote:


 I recently began using the Android SDK on a Macbook Pro. Today as I
 was coding, I was listening to music through an external DAC connected
 to the USB output of the laptop. I noticed a lot of interference in
 the audio, so I switched USB ports and the problem was solved.
 However, I then restarted the Android emulator and the interference
 immediately began on the second USB port. Now both of my USB ports
 produce audibly distorted audio even when the emulator is not running.
 I have tried emulator -wipe-data and emulator -noaudio to no avail.
 How can I undo whatever the emulator did to my USB audio output?

 Thanks 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] Re: using an API not in the SDK

2009-03-20 Thread David Turner
There is no procedure; whatever means you find to achieve this would break
when the system is updated over the air with changes that modify/remove the
non-public API
(and believe me, internal changes between releases are *very* numerous).
Then your users will start to hate you and give you 1-star ratings, etc...

On Thu, Mar 19, 2009 at 12:08 AM, AndRaj rajendran.b...@gmail.com wrote:


 Hi All,

 If I want to use non-SDK API. what I wann to do. Is there any
 procedure to do that...

 On Feb 23, 2:28 am, Romain Guy romain...@google.com wrote:
  Don't usenon-SDKAPIs.
 
 
 
  On Sat, Feb 21, 2009 at 8:12 PM, surferdude datruesur...@gmail.com
 wrote:
 
   Hello,
 
   I'm trying to write my first android application which executes
   commands I feed to it on the comandline. I looked through the public
   git repository and found android.os.exec which should meet my needs
   fine, however I noticed that it isn't part of the SDK. When I try to
   add the class to my project and call it via createsubprocess(), it
   compiles fine but i get a force close as soon as it tries to run on
   the emulator or my device. According to the ddms logs, its getting
   stuck at an unsatisfied link error. Below are the three files in my
   project... if anyone could help me out, it would be much appreciated
 
   ---
 
   testapp.java:
 
   ---
 
   package com.android.testapp;
 
   import android.app.Activity;
   import android.os.Bundle;
   import com.android.testapp.exec;
 
   public class testapp extends Activity {
  /** Called when the activity is first created. */
  @Override
  public void onCreate(Bundle savedInstanceState) {
  super.onCreate(savedInstanceState);
  setContentView(R.layout.main);
 
  exec.createSubprocess(ls,null,null);
  }
 
   }
 
   ---
 
   exec.java
   ---
   package com.android.testapp;
 
   import java.io.FileDescriptor;
 
   /**
* @hide
* Tools for executing commands.  Not for public consumption.
*/
 
   public class exec
   {
  /**
   * @param cmd The command to execute
   * @param arg0 The first argument to the command, may be null
   * @param arg1 the second argument to the command, may be null
   * @return the file descriptor of the started process.
   *
   */
  public static FileDescriptor createSubprocess(
  String cmd, String arg0, String arg1) {
  return createSubprocess(cmd, arg0, arg1, null);
  }
 
  /**
   * @param cmd The command to execute
   * @param arg0 The first argument to the command, may be null
   * @param arg1 the second argument to the command, may be null
   * @param processId A one-element array to which the process ID of
   the
   * started process will be written.
   * @return the file descriptor of the started process.
   *
   */
   public static native FileDescriptor createSubprocess(
  String cmd, String arg0, String arg1, int[] processId);
 
   public static native void setPtyWindowSize(FileDescriptor fd,
 int row, int col, int xpixel, int ypixel);
  /**
   * Causes the calling thread to wait for the process associated
   with the
   * receiver to finish executing.
   *
   * @return The exit value of the Process being waited on
   *
   */
  public static native int waitFor(int processId);
   }
 
   ---
 
   androidmanifest.xml
   ---
 
   ?xml version=1.0 encoding=utf-8?
   manifest xmlns:android=http://schemas.android.com/apk/res/android;
package=com.android.testapp
android:versionCode=1
android:versionName=1.0.0
  application android:icon=@drawable/icon android:label=@string/
   app_name
  activity android:name=testapp
android:label=@string/app_name
  intent-filter
  action android:name=android.intent.action.MAIN /
  category
   android:name=android.intent.category.LAUNCHER /
  /intent-filter
  /activity
  /application
   /manifest
 
  --
  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] Re: How does emulator manage to install all the applications?

2009-03-10 Thread David Turner
On Tue, Mar 10, 2009 at 4:48 AM, ramakrishna
mramakrishnapra...@gmail.comwrote:

 Hii David,

 Its nice to meet u...Can you please mail me the google maps apk file if u
 have it?


I will not do that. If you want the .apk, you should download the SDK and
abide to its end-user license, which as far as I know
forbids reverse engineering and redistributions of certain proprietary
binaries (which the Google Maps application is probably
part of). The SDK will allow you to develop applications that use the Google
Maps API, some people also use it to run the
application on real hardware too.

If you're interested in distributing the application in one of your
products, you should contact someone else at Google,
since I can't help you and this is a forum for people developing Android
applications.


 It will be of great help for me if anyone can share me the .apk file of
 google maps application.




 Thanks,
 Ramakrishna.

 On Tue, Mar 10, 2009 at 1:01 AM, David Turner di...@android.com wrote:

 the applications are pre-installed in the read-only /system partition.the
 Google Maps source code is not available. the corresponding .apk should be
 somewhere under / though.


 On Mon, Mar 9, 2009 at 6:35 PM, Ramakrishna mramakrishnapra...@gmail.com
  wrote:


 Hi everybody,

 I just wanna know how Android emulator manages to install
 all the applications by default when it is started. And moreover i was
 searching for Google maps source code or atleast the .apk file for
 that application in the emulator.  Any kind of help will be of great
 help to me.

 Thanks,
 Ramakrishna.







 --
 Best Regards,
 M.Rama Krishna Prasad,
 ST Microelectronics,Bangalore
 Ph No:09008718152


 


--~--~-~--~~~---~--~~
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 does emulator manage to install all the applications?

2009-03-09 Thread David Turner
the applications are pre-installed in the read-only /system partition.the
Google Maps source code is not available. the corresponding .apk should be
somewhere under / though.

On Mon, Mar 9, 2009 at 6:35 PM, Ramakrishna mramakrishnapra...@gmail.comwrote:


 Hi everybody,

 I just wanna know how Android emulator manages to install
 all the applications by default when it is started. And moreover i was
 searching for Google maps source code or atleast the .apk file for
 that application in the emulator.  Any kind of help will be of great
 help to me.

 Thanks,
 Ramakrishna.
 


--~--~-~--~~~---~--~~
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: emulator can not be powered on

2009-03-02 Thread David Turner
Ahh, this is a bit complex to explain, let's cut the details here:

   - make sdk will not do what you think. Building the SDK should be done
   on Linux or Darwin with something like make PRODUCT-sdk-sdk.


   - emulator will not do what you think either. Because you called
   lunch, the emulator will think by default that you want to run a system
   image, not a sdk one.

   - By the way, building the SDK is only directly supported on Linux and
   Darwin. For Windows, we have to generate a Linux installation tree, then
   copy Windows-specific binaries into it for a few select tools. Don't try
   this at home, seriously...

On Linux, here's how I rebuild and immediately test the SDK:

. build/envsetup.sh
make PRODUCT-sdk-sdk
cd out/host/linux-x86/bin/sdk/android-sdk_eng.digit_linux-x86/tools
ANDROID_PRODUCT_OUT= emulator -system ../platforms/android-1.5/images -data
data.img

Note that my username (digit) is part of the generated sdk directory, so
YMMV.

Hope this helps

On Fri, Feb 27, 2009 at 10:36 AM, beginner royzha...@gmail.com wrote:


 Hi:
I do as following:
 . /build/envsetup.sh
 lunch 1
 make sdk
 emulator -datadir imagedir

 the emulator can be started, but it can not be powered on. Can u help
 me to resolve it? THX

 


--~--~-~--~~~---~--~~
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 access Linux using Android SDK?

2009-02-24 Thread David Turner
adb shell perharps? If not, would you care to be more specific?

On Tue, Feb 24, 2009 at 5:40 AM, steve68 my6...@gmail.com wrote:


 Is it a way to access Linux shell command from with the Android SDK? I
 would like to do it as a root user

 Thanks,

 


--~--~-~--~~~---~--~~
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: Features supported by Android OS

2009-02-17 Thread David Turner
You should definitely try using a search engine, I just made a request and
it came up with the following page:
http://developer.android.com/guide/appendix/media-formats.html

As to what radio feature means, I don't know; that term is too vague, but
I encourage you to, hum, search the forums ?

On Tue, Feb 17, 2009 at 1:43 AM, mozaal moz...@gmail.com wrote:

 Hello Every one,

 I am new to this group and I was interested in exploring the list of
 features supported by Android OS.

 For example:

- Multimedia support: List of format supported example, aac+, amr,
.3gp, .mp4 etc )
- Radio feature ( if any )

 I got a list on following link but it seems is not enough for me ;)
 http://source.android.com/release-features

 If some one can provide me with the link where I can find the specs/
 features in detail or can help me thru with my question.

 Thanks

 mozaal



  android-beginners@googlegroups.com

 


--~--~-~--~~~---~--~~
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: Emulator suddenly won't load android.

2009-02-16 Thread David Turner
This is suspicious, it seems one of your disk images has been corrupted for
some reason.

Can you try -wipe-data to see if this resets your system to a workable state
?
If not, it looks like your system image was corrupted. Try re-downloading
the SDK and overwrite the content of tools/lib/images

This is very strange because the file system.img is never modified by the
emulator (it is copied into a temporary file which is then used as your /
partition when running the emulator).

Hope this helps

On Tue, Feb 17, 2009 at 7:14 AM, Vternal Android mdunsm...@gmail.comwrote:


 For absolutely no reason I can think of (i.e. I haven't done anything
 beyond email, browsing  eclipse), the emulator stopped working.

 Now, whenever I try and start an emulator it stops on the first no
 graphic 'android' screen and give the following message over and over

 E/JNIHelp (  117): Native registration unable to find class 'android/
 debug/JNITest'
 E/AndroidRuntime(  117): Unable to register all android natives
 D/AndroidRuntime(  119):
 D/AndroidRuntime(  119):  AndroidRuntime START
 
 D/AndroidRuntime(  119): CheckJNI is ON
 D/AndroidRuntime(  119): --- registering native functions ---
 W/dalvikvm(  119): Unable to resolve superclass of Landroid/debug/
 JNITest; (2740)
 W/dalvikvm(  119): Link of class 'Landroid/debug/JNITest;' failed

 Has anyone seen this, or have a solution.

 I am on iMac running OSX 10.5.6 and Eclipse-SDK 3.4.1

 Any help would be much appreciated.

 m.
 


--~--~-~--~~~---~--~~
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] Compare Mobile Platforms

2009-02-02 Thread David

Hey guys,

I am thinking of developing a small application and I am trying to
decide between various Mobile applications platforms - Android, iPhone
and RIMM.  I was wondering if any of you have any thoughts on any of
these mobile platforms, there advantages/disadvantages etc.

Also - how would you compare between the various app stores these
mobile platforms have.

Thanks guys for your help!

- D

--~--~-~--~~~---~--~~
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 show a dialog on top of another dialog in an activity

2009-01-25 Thread Juan David Trujillo C.

Hi guys!

I have an activity that shows a dialog that has some editText fields
the user is supposed to fill in.  I would like to validate if the user
entered information in some fields, and in case he didn't, I would
like to show a dialog with an appropiate message on top of the
aforementioned dialog.  However I haven't been able to do so, because
once I write code on the onClick(DialogInterface dialog, int
whichButton) of the first dialog, this dialog closes and doesn't stay
in the screen.
Am I missing something?

Here's what I have:
protected Dialog onCreateDialog(int id) {
return new AlertDialog.Builder(RegisterEvent.this)
.setIcon(R.drawable.ico_registerevent_customization)
.setTitle(R.string.tv_x_customization)
.setView(textEntryView)
.setPositiveButton(R.string.tv_x_ok, new
DialogInterface.OnClickListener() {
  public void onClick(DialogInterface dialog, int
whichButton) {
if (!validInformation()) // Validates if the
user entered or not information
//Here's where I would like to show another 
dialog!!
  }
 }).create();
Best regards,

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: How to show a dialog on top of another dialog in an activity

2009-01-25 Thread Juan David Trujillo C.

In case this is useful, I found it:

You can't use a regular dialog with the possitive and negative
buttons, what you have to do is to create the buttons inside the UI of
the dialog you want to show and then add regular listeners to this
buttons.  When you want to hide the dialog, all you have to do is ues
the cancel() method on the dialog and that's it.

Juan.

On Jan 25, 1:11 pm, Juan David Trujillo C. jdavidandr...@gmail.com
wrote:
 Hi guys!

 I have an activity that shows a dialog that has some editText fields
 the user is supposed to fill in.  I would like to validate if the user
 entered information in some fields, and in case he didn't, I would
 like to show a dialog with an appropiate message on top of the
 aforementioned dialog.  However I haven't been able to do so, because
 once I write code on the onClick(DialogInterface dialog, int
 whichButton) of the first dialog, this dialog closes and doesn't stay
 in the screen.
 Am I missing something?

 Here's what I have:
 protected Dialog onCreateDialog(int id) {
     return new AlertDialog.Builder(RegisterEvent.this)
             .setIcon(R.drawable.ico_registerevent_customization)
             .setTitle(R.string.tv_x_customization)
             .setView(textEntryView)
             .setPositiveButton(R.string.tv_x_ok, new
 DialogInterface.OnClickListener() {
                   public void onClick(DialogInterface dialog, int
 whichButton) {
                         if (!validInformation()) // Validates if the
 user entered or not information
                                 //Here's where I would like to show another 
 dialog!!
                   }
      }).create();
 Best regards,

 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] Question about Java coding good practice - Inner classes

2009-01-17 Thread Juan David Trujillo C.

Hi guys!

I have been reading some Java coding good practices and inner classes
are an important subject.  I know for a fact Inner classes are
originally used to handle UI events (button clicks, keyboard type,
etc.).  I was wondering if variables to handle UI elements (EditText,
Buttons, TextView, etc.) should be declared in the inner class or the
outer class.  What is the best practice in terms of Java coding?

Best regards,

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: SDL init failure, reason is: No available video device

2009-01-14 Thread David Turner
You don't need to have SDL_VIDEODRIVER defined in your environment, the
emulator will by default try to find the X11 libraries on your system and
use them (then an error means that the libraries are not properly installed
or reachable by the application. this may be possible to installation
oddities on mixed 32/64 bit systems).

A good way to check this is to use strace emulator to see which
files/libraries the program is trying to open (it uses dlopen/dlsym to do
that)

A long time ago, someone reported a similar issue. the problem came from the
fact that they had SDL_VIDEODRIVER=directfb in their environment. This
variable is normally used to direct the SDL library to use a specific video
driver. But the one that comes with the Android emulator (statically linked
to it for ease of deployment) only supports X11.

hope this clarifies :-)

On Wed, Jan 14, 2009 at 10:46 AM, Anri Lau anri...@gmail.com wrote:

 All,

 Thank you Dave. I guess I did not set SDL_VIDEODRIVER. Could you show me
 where I can found the instruction to set the building environment?

 I have no any idea of how to start.


 2009/1/14 David Turner di...@android.com

 hmmm. do you have SDL_VIDEODRIVER defined in your environment ?

 On Tue, Jan 13, 2009 at 1:18 PM, superspider anri...@gmail.com wrote:


 When I run android-sdk-linux_x86-1.0_r2/tools/emulator on linux-centos
 it happened.









 --
 Best regards to you and your family


 


--~--~-~--~~~---~--~~
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: SDL init failure, reason is: No available video device

2009-01-13 Thread David Turner
hmmm. do you have SDL_VIDEODRIVER defined in your environment ?

On Tue, Jan 13, 2009 at 1:18 PM, superspider anri...@gmail.com wrote:


 When I run android-sdk-linux_x86-1.0_r2/tools/emulator on linux-centos
 it happened.


 


--~--~-~--~~~---~--~~
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: Google phone dev 1 keyboard issues

2009-01-09 Thread David Turner
if you're really only touching one of the keys, it definitely sounds like a
bad hardware issue
since this isn't expected to happen at all.

On Thu, Jan 8, 2009 at 8:21 PM, kmatzen kmat...@gmail.com wrote:


 I have a quick question regarding the functionality of the keyboard on
 the unlocked developer version of the phone.  When we try to register
 it with a google account during activation, the top two rows of keys
 seem to get typed at the same time.  For example, pressing 'e' makes
 '3e' appear and pressing '3' also makes '3e' appear.  Other examples
 include: '56', 'i0', 'r4'.

 Is this a hardware issue?  We are unfamiliar with the interface so we
 do not know if this is expected behavior.

 


--~--~-~--~~~---~--~~
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: Removing installed application in Emulator

2009-01-07 Thread David Turner
if you mean the applications that are already part of the system image (i.e.
available after a -wipe-data),
then you can't uninstall them since the partition is read-only.

On Wed, Jan 7, 2009 at 12:10 PM, Apparao Mulpuri
apparao.for...@gmail.comwrote:


 How can we remove the already installed apps from the Emulator?

 Thanks,
 Apparao Mulpuri.

 


--~--~-~--~~~---~--~~
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: Canada... anyone got a story?

2008-12-27 Thread David Duong

JeanNiBee wrote:
 Hi

 I'm in Montreal and I've gotten into developing for Android as I
 believe the open source-ness and Java base will truly help it win over
 the other guys closed nature in the long run.

 My problem is I can't find an android phone WITH a data package in
 Canada (I don't care if it's outside Quebec)

 I've scoured this group and the net but haven't seen anything other
 than getting a Rogers account, signing up for the iPhone data plan,
 unlocking my Android and slapping the sim from my Rogers iPhone
 account / phone into the Android and hoping to get G1 service.

 Yeah sure I can use the device emulator for now but I'd love to have
 my own phone sporting my own apps. :)

 Two questions:

 1. Is this still the only way to do this?
 2. Are there ANY plans for someone to bring the Android to us in the
 Great White North?

 Thanks.

 
   
Hello,

You can actually by an unlocked Tmobile Android G1 phone from the US but 
the shipping is just way too much.  I myself is living in Ontario Canada 
and I'm just waiting for my friend to buy it in the states.  Other than 
that, you can wait till the first quarter in 2009 and _maybe_ there will 
be a release in Canada (I really hope so).

--
David Duong

--~--~-~--~~~---~--~~
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: emulator: ERROR: you must provide the name of a virtual machine to start the emulator.

2008-12-23 Thread David Turner
this is part of current changes to the SDK and the way multiple
configurations are going to be supported concurrently in the near future.

if ANDROID_PRODUCT_OUT is defined in your environment, it should pick built
system images automatically for you (you need to build these before
launching the emulator though). Simply invoking a command like choosecombo
should be enough to set ANDROID_PRODUCT_OUT

if ANDROID_PRODUCT_OUT is not defined, then the emulator assumes you are
using the SDK only (outside of the Android source tree) and expect to be
given the name of a virtual machine.

An Android Virtual Machine is a recently introduced concept, it corresponds
to a directory containing persistent images for the /data partition, the
/cache partition, option mutable and persistent system.img etc...

You can create/list/delete virtual machines on your host through the new
android program.

Alternatively, if you don't have a virtual machine created, and
ANDROID_PRODUCT_OUT is not defined, you can get by by specifying on the
command-line all disk images to use with -image, -kernel, -ramdisk, -data,
etc...


On Sun, Dec 21, 2008 at 1:50 PM, moontain chen.worksp...@gmail.com wrote:

 Hi,

 I downloaded the platform source code and completed a build.
 When I trying to run the emulator with following command,error occurs.
   $ ./out/host/darwin-x86/bin/emulator -system ./out/target/product/generic
 -kernel ./prebuilt/android-arm/kernel/kernel-qemu -skindir
 ./development/emulator/skins

 Below is the error message.

 emulator: ERROR: you must provide the name of a virtual machine to start
 the emulator.
 please see -help-vm for details.

 what's wrong with the command? what's the name of the virtual machine in
 the case?

 I'm using Mac OS X v 10.4.11, XCode v2.5

 Regards,
 Moontain

 


--~--~-~--~~~---~--~~
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: dev phone 1 adb error: device not found

2008-12-23 Thread David Turner
you probably miss installing the USB driver :-)

On Sun, Dec 21, 2008 at 11:15 PM, dfabulich d...@fabulich.com wrote:


 When I plug my Android Dev Phone 1 into my Windows machine and try to
 run adb, it refuses to detect my device.  I made sure USB
 debugging is enabled in the Application Settings on the phone.  What
 am I missing here?

 C:\devtools\android-sdk-windows-1.0_r2\tools adb devices
 * daemon not running. starting it now *
 * daemon started successfully *
 List of devices attached


 C:\devtools\android-sdk-windows-1.0_r2\tools adb shell
 error: device not found

 


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



Re: RES: [android-beginners] Activating dev phone with ATT sim card?

2008-12-23 Thread David Turner
the information that has been given to you looks like to be for WAP only.

normally, once you enter the correct APN values, you shouldn't need to do
anything more, because the system will detect which network operators are in
range and match your SIM card and use just that.

I don't know the values for your operator though; hope someone else will
have them

On Wed, Dec 24, 2008 at 3:22 AM, sherifffruitfly
sherifffruit...@gmail.comwrote:


 Ok - ATT gave me this info:


 https://www.wireless.att.com/support/setDevice.do?dest=tutorialsuniverse=attmake=Motorolamodel=RAZR+V3x=22y=12

 (Relevant stuff copied below)

 I'm having 2 problems now:

 1) I'm not certain how to map the ATT info to what the Dev Phone
 fields are.

 2) I've *created* a new APN on the dev phone, but I'm not sure how to
 *select* it, or make it active, or whatever. Everytime I click/tap my
 new APN, it just goes back into the settings screen.

 Sorry for being such a noob, but a little more help would be
 appreciated, if anyone has a few more details.

 TIA,
 -sff


 Copied info from ATT:

 NOTE: Entering text on the Motorola RAZR V3.

* Name: MEdia Net
* Homepage: http://device.home
* Service Type 1: WAP
* Gateway IP: 66.209.11.61
* Port 1: 9201
* Domain 1: Blank
* Service Type 2: WAP
* Gateway IP 2: 000.000.000.000
* Port 2: 9201
* Domain 2: blank
* DNS 1: 000.000.000.000
* DNS 2: 000.000.000.000
* Timeout: 15 minutes.
* CSD No 1: 14152441012 or 18472549271
* Username: w...@cingular.com (required for CSD use only)
* Password CINGULAR1 (required for CSD use only)
* Speed (Bps) 1: 9600
* Linetype 1: ISDN
* CSD 2: Blank
* Username 2: Blank
* Password 2: Blank
* Speed (Bps): 9600
* Line Type 2: ISDN
* GPRS APN: wap.cingular
* Username: leave blank
* Password: leave blank

 On Dec 23, 4:31 pm, George Lanes georgela...@gmail.com wrote:
  Hi,
 
  First you Will need to set the APN. Check this parameter (3G connection
  like) with ATT.
  After this, try to connect to Google.
 
  Regards,
 
  George
 
  -Mensagem original-
  De: android-beginners@googlegroups.com
  [mailto:android-beginn...@googlegroups.com] Em nome de sherifffruitfly
  Enviada em: terça-feira, 23 de dezembro de 2008 21:47
  Para: Android Beginners
  Assunto: [android-beginners] Activating dev phone with ATT sim card?
 
  Hi all,
 
  I can't seem to get the phone to talk to the google servers - error
  when it attempts to login: There is a problem communicating with the
  google servers.
 
  I have a web + text plan on the simcard, so I didn't think there would
  be an issue.
 
  Any suggestions?
 
  Thanks,
 
  -sff
 


--~--~-~--~~~---~--~~
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: emulator trace wanted

2008-12-19 Thread David Turner
hmmm, try to invoke it with: emulator -show-kernel -logcat '*:v'

for the record, the emulator is a fork of QEMU 0.8.2 and, as such, can only
be compiled into a correct binary with specific versions of gcc (see the
README.ANDROID for details in the sources), and only 32-bit builds are
supported. This issue will be fixed in a later release, though I can't
specify which.


On Sat, Dec 20, 2008 at 12:24 AM, niklas
niklas+goo...@appli.seniklas%2bgoo...@appli.se
 wrote:


 I have just finished the first port of the android dev system to
 OpenBSD/amd64, surely to still contain quite a few bugs, but it has
 gone through the compilation phase ok.

 When I start the emulator, I have just guessed at appropriate
 arguments, it fires up the gui, and it looks nice, but then it sits
 with ANDROID in the window, just highlighting gui elements as the
 mouse passes over them, and having the cursor blink for about ten
 seconds, then it stops.  I have waited quite a while for a potential
 initialization of the disk images, but nothing seems to happen,
 although CPU is chewing.  If someone could send me a trace with -debug
 all, it could help me find out where it ends working...

 or any hints on what part I may have problem would be appriciated of
 course.  I supect a 64bit issue, saw quite a few warnings during the
 builds with pointers casted to longs.. felt really nineties actually.
 Well, it's fun to do porting work like this...

 


--~--~-~--~~~---~--~~
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: Emulator file path?

2008-12-11 Thread David Turner
everything that is written to /data on the emulated device is stored on your
host machine
in a file named userdata-qemu.img, which is a disk image containing all of
/data.
It is located in a platform-specific directory.

it's normally in $HOME/.android/, and in the local application directory
on Windows,
which differ between XP and Vista. You can know which file exactly when you
use
the -verbose option when starting the emulator.

if you need to retrieve/add a file, use adb pull or adb push


On Wed, Dec 10, 2008 at 12:42 PM, Keith Wiley kbwi...@gmail.com wrote:


 Simple question, I've searched the web, I've searched the groups, and
 I simply can't figure this one out.

 Where are the emulator files located?  In particular, when an app is
 installed on the emulator, say by running it from Eclipse, or
 alternatively, when an app running on the emulator creates a data file
 (in its private Android file system space for example), where do these
 files go?  Where can I see them on my computer so I can debug the file
 output and make sure it's correct?

 Thanks.

 


--~--~-~--~~~---~--~~
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: emulator segmentation fault on Mac

2008-12-11 Thread David Turner
Yes, this is a known issue with the emulator. Unfortunately we haven't been
able to reproduce it
on two distinct machines running different versions of OS X. This makes
debugging a bit hard
at that point.

On Wed, Dec 10, 2008 at 9:47 PM, mikaye mik...@gmail.com wrote:


 Thanks to Nathan for his reply in a different post about working
 around the emulator segmentation fault on a Mac when running with a
 Plantronics USB headset,

 Mike's Mac:tools mike$ emulator 
 Mike's Mac:tools mike$ 2008-12-10 21:39:26.352 emulator[3235:10b]
 Warning once: This application, or a library it uses, is using
 NSQuickDrawView, which has been deprecated. Apps should cease use of
 QuickDraw and move to Quartz.

 Followed by a segmentation fault in the emulator.

 Nathan unplugged his USB headset. I just wanted to mention that you
 can also change your sound settings to use the internal audio devices
 (my usb connections are a little harder to get to).



 


--~--~-~--~~~---~--~~
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 and Windows Host file

2008-12-09 Thread David Turner
your best bet at this point would be to run a DNS cache on your machine that
reads your HOSTS file
then use the -dns-server option to make the emulated system connect to it.

On Tue, Dec 9, 2008 at 7:17 AM, isisagate [EMAIL PROTECTED] wrote:


 I am trying to develop an Android app that connects to a tomcat web
 service and want to be able to load it off my local machine.

 In my host file on my windows dev machine I have the service's URL
 defined and tomcat running, however when i try to load the page it
 says it cannot find it. I read that the Android emulator is not setup
 to use the host file. Is there a way I can get it to use the host
 file, or add the url entry to android so it will connect to the server
 hosted on the same machine the emulator is hosted on.


 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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] wifi and GPS only

2008-12-07 Thread David Duong

Hello everyone,

I noticed that the development handsets (unlocked SIM  hardware) are 
available on Google.  One question I would like to ask is if I'm able to 
use the handset without a SIM?  I would only like to use the GPS + Wifi 
on the device as I don't want to get tied into a cellphone plan.  I'm 
also planning to develop on the phone too.

Thanks,

--
David Duong



--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Emulator is Crashing

2008-12-07 Thread David Turner
Are you talking about the emulator program crashing, or your application ?

if the emulator program is crashing, can you give me the output of emulator
-debug-all
what if you try emulator -audio none ?

what is your development machine (CPU, memory, PC/Mac), what OS does it run
?

On Sat, Dec 6, 2008 at 8:19 AM, i3onk [EMAIL PROTECTED] wrote:


 I just ran through the sample Hello, Android project, and every time I
 try to run it the Emulator crashes. I did this with and without the
 suggested changes, each time it crashed.

 Any ideas of what is causing this? I searched for related threads but
 nothing posted about this early in the process.



 


--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Enabling taps in ListView

2008-11-24 Thread David Orme
I have a ListView where I've supplied a custom row object.  I can both tap
and long-tap using the hardware track ball (or the Enter key in the
emulator), but these same gestures do not work on the screen.  How do I
enable this?

Thanks in advance,

Dave Orme

--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



  1   2   >