[android-developers] Accessing real SD card from the emulator

2012-10-05 Thread Gus
Hi,
 
I am using the android emulator on a Linux box. I know you can read and 
write a fake SD card simulated by a .img file (in vfat) in the emulator. 
However, I would like the emulator to access a real SD card (mounted on 
/media/sdcard0 on the host computer, for example).
 
I do not want to make a copy of the SD card (dd and other commands). I want 
live access to the real SD card.
 
Is it possible? How?
 
Thanks, Gus

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

[android-developers] Re: No AVDs from Emulator since last update

2011-11-21 Thread gus
Thanks Mark,
I have tried 'wipe data' (along with other things) - nothing has
helped so far.

I will send it to b.android.com as you suggested.

Regards,
Gus
(Like your book by the way!)

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


[android-developers] No AVDs from Emulator since last update

2011-11-20 Thread gus
I can no longer get any avds to launch.
I can create them, but they will not start (from targets 2.2 up to
4.0)
I am running Windows XP and have the latest updates for eclipse and
android addons.

Problems occurred after updates for both eclipse and android were
installed 3 weeks ago (approx Oct 26th, 2011)
Now I cannot get avds to load.
I have installed and uninstalled the avds.
I have run the emulator from the command line.
I have re-installed sdk tools 15
I have installed latest android and eclipse updates today (Nov21st,
2011)
All to no avail.

The error is ALWAYS the same and the debugger ALWAYS flags the SAME
offset (see below).

I have looked through, and tried, all the 'helps' that I can find
including no snapshot, different resolutions, etc, etc, etc.

I would have hoped the latest updates would fix it -  - but I have now
been without an avd for more than 3 weeks and it is seriously
restricting my work.

Please - Can Anyone Help?!?

Details of problem:

1. Black Screen pops up, titled:
SDL_app

2. then error message:
emulator-arm.exe has encountered a problem and needs to close.  We are
sorry for the inconvenience.

3. and clicking 'further details' gives:
AppName: emulator-arm.exeAppVer: 0.0.0.0 ModName: 
emulator-arm.exe
ModVer: 0.0.0.0  Offset: 00078334

4. and clicking debug gives:
C++ debugger
unhandled exception in emulator-arm.exe: 0xC005: Access Violation
7C901230 int 3
7C901231ret
7C901232mov edi,edi
7C901234nop
7C901235nop
.
.
00478327   mov cl,byte ptr [ebp+8]
0047832A   shl ebx,cl
0047832C   jmp 0047837D
0047832E   ???
0047832F   nop
00478330   mov edx,dword ptr [esp+24h]
00478334   mov eax,dword ptr [edx]
00478336   mov ecx,dword ptr [ebp+10h]
00478339   mov ebx,dword ptr [ebp+14h]
0047833C   and ecx,eax
0047833E   mov edi,eax
00478340   mov dword ptr [esp+4Ch],ecx
00478344   xor ecx,ecx

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


[android-developers] New to android and nfc developing

2011-10-02 Thread Gus
I am new to both android and nfc developing! I am searching for a nfc
sdk. I already have tested eclipse + android plugin, so i am ready for
the client side developing. On the other side i must create a program
to run on a server tha will manage the data that will come from nfc
communication.

Can anyone help me find out which programs, sdk, os, programming
language( for the server side) should i use!!!

I am asking for suggestions. I realise that there is no golden rule
for developing.

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


[android-developers] Re: Using Eclipse write monkeyrunner

2011-03-30 Thread Gus
I have the exact same problem.
Has anyone come up with a solution?

On Mar 17, 6:00 am, c j techandroid@gmail.com wrote:
 I think post img is better :)

 eclipse settings

 pythonhttp://goo.gl/WTjDz

 jythonhttp://goo.gl/cKj7P

 tracebackhttp://goo.gl/Ywsm8

 thank you

 On 3月17日, 上午7時42分, Bill Napier nap...@google.com wrote:







  Can you provide the full stack trace from your first mail?  It looks like
  part of it got cut off.

  @diego - I've filed a bug to look at fixing the unbuffered input issue that
  you had to work around.  It would be nice ifmonkeyrunnercould just do this
  without resorting to a wrapper script.

  On Tue, Mar 15, 2011 at 1:46 AM, c j techandroid@gmail.com wrote:
   in command line usedmonkeyrunneris ok
   but i need used eclipse can Instantly watch result
   thank you

   On 3月15日, 上午10時23分, A. Elk lancaster.dambust...@gmail.com wrote:
Although I don't think thatmonkeyrunnerwas designed to be used
   fromEclipse.

Whenever you run into a problem withmonkeyrunner, try it from the
command line first.

On Mar 13, 9:11 pm, Diego Torres Milano dtmil...@gmail.com wrote:

 Some hints to usemonkeyrunnerfromeclipsecan be found athttp://
   dtmilano.blogspot.com/2011/03/using-android-monkeyrunner-from-...

 On Mar 11, 6:06 am, c j techandroid@gmail.com wrote:

  I needusingmonkeyrunner do some easy auto test but have some
  problem.

 EclipseSDK 3.6.2 (Pydev 1.6.5 + Jython 2.5.2 + Python 2.7.1 +
 monkeyrunner.jar + google-collect-1.0-rc1.jar)
  jdk1.6.0_24
  android-sdk-windows

  i try this example in second line have wrong

 http://developer.android.com/guide/developing/tools/MonkeyRunner.html

  # Imports themonkeyrunnermodules used by this program
  from com.android.monkeyrunnerimportMonkeyRunner, MonkeyDevice

  # Connects to the current device, returning a MonkeyDevice object
  device =MonkeyRunner.waitForConnection()

  error msg

   device =MonkeyRunner.waitForConnection()
          at

   com.android.monkeyrunner.MonkeyRunner.waitForConnection(MonkeyRunner.java:
  74)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
   Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown
   Source)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
  Source)
          at java.lang.reflect.Method.invoke(Unknown Source)
  java.lang.NullPointerException: java.lang.NullPointerException

  Please tell know where setting wrong.
  thanks!

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

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


[android-developers] Re: Issue with messages in this group?

2010-12-31 Thread Gus
Hi:

Yes, I 'm using the Web Browser, and I noticed some posts showed up,
and dissapeared after a while.

Thanks for confirming this..Now I know I'm not crazy!

Gus

On Dec 31, 9:30 am, TreKing treking...@gmail.com wrote:
 On Wed, Dec 29, 2010 at 7:13 AM, Gus gussab...@yahoo.com wrote:
  Are some messages deleted or they just dissapear?

 Are you using the web interface? Because it sucks and randomly eats
 posts.I've not been able to find some posts even when searching by exact
 title. Use Gmail.

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

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


[android-developers] Issue with messages in this group?

2010-12-29 Thread Gus
Hi:

I posted a message last 12/27/2010, and it was responded, and now I
can't find it...Same issue happened before.
Are some messages deleted or they just dissapear?

Below is the original message:

Suject:
Can't debug/install applications into Tablet with Android 2.1 using
ADB commands

Body:
Hi:

I have a tablet with Android 2.1 and I'm able to query the device
issuing the adb devices command, for which I get the 0123456789ABCDEF
device response (serial number and device state).
However, any other command such install, push, pull, or shell, I never
get a response. I mean, after issuing the command, nothing happens
until, after a while, I press ^C and it returns to the Windows Command
prompt.

Any idea what could be wrong or how to debug what it's happening?

Thanks;
Gus

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


[android-developers] Can't debug/install applications into Tablet with Android 2.1 using ADB commands

2010-12-27 Thread Gus
Hi:

I have a tablet with Android 2.1 and I'm able to query the device
issuing the adb devices command, for which I get the 0123456789ABCDEF
device response (serial number and device state).
However, any other command such install, push, pull, or shell, I never
get a response. I mean, after issuing the command, nothing happens
until, after a while, I press ^C and it returns to the Windows Command
prompt.

Any idea what could be wrong or how to debug what it's happening?

Thanks;
Gus

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


[android-developers] Re: Can't debug/install applications into Tablet with Android 2.1 using ADB commands

2010-12-27 Thread Gus
Hi:

Actually, I figure it out that adb shell is working but once I try
push, pull, or install commands, it seems like Android blocks
and following shell commands are not working. However, the adb
devices still responds as usual.

I would appreciate any help.

Thanks
Gus

On Dec 27, 10:29 pm, Gus gussab...@yahoo.com wrote:
 Hi:

 I have a tablet with Android 2.1 and I'm able to query the device
 issuing the adb devices command, for which I get the 0123456789ABCDEF
 device response (serial number and device state).
 However, any other command such install, push, pull, or shell, I never
 get a response. I mean, after issuing the command, nothing happens
 until, after a while, I press ^C and it returns to the Windows Command
 prompt.

 Any idea what could be wrong or how to debug what it's happening?

 Thanks;
 Gus

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


[android-developers] Re: ADB drivers for Windows XP available for Android devices

2010-12-11 Thread Gus
Hi Kostya:

Thanks for your advice.

Regarding:
 As first step, enable ADB in device settings (on the tablet).
Do you mean enable Settings-Applications-Development-USB
Debugging option? (I already have it enabled...)
If not, how to enable ADB on the tablet?

Thanks
Gus

On Dec 9, 9:02 am, Kostya Vasilyev kmans...@gmail.com wrote:
 Gus,

 As first step, enable ADB in device settings (on the tablet).

 There is no generic driver for ADB. Each device uses its own UPnP vendor
  device IDs, although I understand all NVidia Tegra based devices use
 the same ones.

 Some manufacturers do provide an ADB driver (Samsung, Motorola).

 Since Viewsonic does not seem to be among them:

 - Connect the tablet to the computer, wait until driver installation fails
 - Find out the UPnP IDs used by the tablet (Device Manager, hardware
 info tool, etc.)
 - Edit android_winusb.inf in the standard Android driver and add those IDs
 - Reinstall the driver and reconnect the tablet, this time it should connect

 Also see this, which pretty much says the same thing:

 http://tegradeveloper.nvidia.com/tegra/forum/faq-where-can-i-find-usb...

 -- Kostya

 09.12.2010 19:39, Gus пишет:





  Hi All:

  I have the Viewsonic G Tablet with Android 2.2, and I want to debug my
  own programs.
  Once I connected to my PC (Windows XP), it was recognized and I'm able
  to access the tablet as a Mass Storage Device.
  However, when I want to debug the application, the tablet it's not
  being recognized as a ADB device (Android Debug Bridge). (USB
  Debugging is enable in the device).
  I know there is a USB drivers which cover many of the available
  Android devices, but not all of them.
  My question is, does the manufacturer (Viewsonic in this case) need to
  develop and provide an ADB driver for each device? Otherwise, how can
  we debug the device? Is there any other solution for this (like a
  generic driver)?

  Thanks;
  Gus

 --
 Kostya Vasilyev -- WiFi Manager + pretty widget 
 --http://kmansoft.wordpress.com- Hide quoted text -

 - Show quoted text -

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


[android-developers] ADB drivers for Windows XP available for Android devices

2010-12-09 Thread Gus
Hi All:

I have the Viewsonic G Tablet with Android 2.2, and I want to debug my
own programs.
Once I connected to my PC (Windows XP), it was recognized and I'm able
to access the tablet as a Mass Storage Device.
However, when I want to debug the application, the tablet it's not
being recognized as a ADB device (Android Debug Bridge). (USB
Debugging is enable in the device).
I know there is a USB drivers which cover many of the available
Android devices, but not all of them.
My question is, does the manufacturer (Viewsonic in this case) need to
develop and provide an ADB driver for each device? Otherwise, how can
we debug the device? Is there any other solution for this (like a
generic driver)?

Thanks;
Gus

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


[android-developers] Re: What Tablet would you get

2010-12-08 Thread Gus
Hi Jon:

I also have the VIewsonic 10 Tablet, and I think it's great.
However, I'm having trouble to debug my programs because it's not
being recognized for ADB.
Did you try that? Is it working for you? I couldn't get the drivers
from Viewsonic for that.

Thanks;
Gus

On Dec 7, 11:00 am, Jon F Hancock jonfhanc...@gmail.com wrote:
 So the more I use my Viewsonic g Tablet, the more I love it.  It does have
 some weird issues, but in general, it is fantastic.  After using Android and
 especially playing Angry Birds on a nice big 10 screen, my phone seems
 useless.  If I wasn't so concerned about having internet everywhere, I would
 switch to a feature phone, and just use the tablet for internet and gaming.

 It's also comforting that my main app (LauncherPro Icons) works beautifully
 on the higher resolution screen.  I want to scream at Google though because
 the Google Reader app looks great in the listing activity, then when you go
 to actually read a story, it confines itself to a little window the size of
 my phone...  What is so hard about following the design guidelines of fluid
 resizing, Google?



 On Fri, Dec 3, 2010 at 4:25 PM, Bill Morgan b...@bmorgan.com wrote:
   On 12/3/2010 6:09 PM, Phil Endecott wrote: Giving a

  crapo resistive cheaptab would be an insult.  So buy a NOOKcolor.  Or
  an iPad :-)

  (Anyone here played with the new Nook yet?  I think I need to get one.)

   Had one for about a week now. Seems solid. BN just
  made their SDK available today.

  People over at XDA got it rooted this week:
 http://forum.xda-developers.com/

   --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to android-developers@googlegroups.com
  To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubs­cr...@googlegroups.com
  For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en- Hide quoted text -

 - Show quoted text -

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


[android-developers] ADB drivers for Windows XP available for Android devices

2010-12-08 Thread Gus
Hi All:

I have the Viewsonic G Tablet with Android 2.2, and I want to debug my
own programs.
Once I connected to my PC (Windows XP), it was recognized and I'm able
to access the tablet as a Mass Storage Device.
However, when I want to debug the application, the tablet it's not
being recognized as a ADB device (Android Debug Bridge). (USB
Debugging is enable in the device).
I know there is a USB drivers which cover many of the available
Android devices, but not all of them.
My question is, does the manufacturer (Viewsonic in this case) need to
develop and provide an ADB driver for each device? Otherwise, how can
we debug the device? Is there any other solution for this (like a
generic driver)?

Thanks;
Gus

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


[android-developers] What is the Android Sequence of Startup

2010-11-29 Thread gus
I have worked my way through an Android book and a half, some of the
online documentation, and have an understanding of Java (although I
use it seldom because it is so verbose) - but am STILL having trouble
getting my head around this stuff.

What I would like to know is:
How does Android start up an application? Does it:
 A.  Fire up the java code with the same name as the project and then
'filters' activities etc through the Manifest to see if they are
allowed.
 B.  Looks at the manifest and then (somehow) decides what java
program to start, allowing only those activities etc defined (somehow)
in the Manifest.
OR
 C. Something totally different and automagical and I obviously do not
yet have a clue.

Gus

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


[android-developers] Re: Follow this procedure to get the Map as earlier

2008-11-04 Thread GUS

   Im doing:

C:\Arquivos de programas\Java\jdk1.6.0_04\binkeytool keytool -list -
alias androiddebugkey -keystore C:\Documents and Settings\Usuario
\Android\debug.keystore -storepass android -keypass android

   and getting:

keytool error: java.lang.RuntimeException: Usage error, keytool is not
a legal command

:(

On 1 nov, 23:42, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 Kesav:

 Great guide!

 samia:

 If you use windows, 'keytool' is under  JDK's folder, such as c:\
 Program Files\Java\jdkversion\bin\keytool, you need type full path
 to execute keytool command.

 On 10月31日, 下午2時40分, samina [EMAIL PROTECTED] wrote:

  Hi kesav ,

   i have tried Keytool command C:\Users\user\AppData\Local
  \Androidkeytool -list -alias
  androiddebugkey -keystore debug.keystore -storepass android -keypass
  android  to get the MD5 fingerprint of the debug certificate:but its
  throwing error like 'keytool' is not recognized as an internal or
  external command,operable program or batch file.
  plz help me to solve the problem

  thanks
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@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-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Follow this procedure to get the Map as earlier

2008-11-04 Thread GUS

Now I got it :D

C:\Documents and Settings\Usuario\AndroidC:\Arquivos de programas
\Java\jdk1.6.
0_04\bin\keytool.exe -list -alias androiddebugkey -keystore
debug.keystore -sto
repass android -keypass android
androiddebugkey, 17/09/2008, PrivateKeyEntry,
Certificate fingerprint (MD5): XX:XX:XX:XX:...


On 1 nov, 23:42, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 Kesav:

 Great guide!

 samia:

 If you use windows, 'keytool' is under  JDK's folder, such as c:\
 Program Files\Java\jdkversion\bin\keytool, you need type full path
 to execute keytool command.

 On 10月31日, 下午2時40分, samina [EMAIL PROTECTED] wrote:

  Hi kesav ,

   i have tried Keytool command C:\Users\user\AppData\Local
  \Androidkeytool -list -alias
  androiddebugkey -keystore debug.keystore -storepass android -keypass
  android  to get the MD5 fingerprint of the debug certificate:but its
  throwing error like 'keytool' is not recognized as an internal or
  external command,operable program or batch file.
  plz help me to solve the problem

  thanks
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@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-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Follow this procedure to get the Map as earlier

2008-11-04 Thread GUS


   Unfortunately the version m5_rc15 dont accept android:apiKey
   Wont Maps work anymore in M5??



On 5 nov, 00:36, GUS [EMAIL PROTECTED] wrote:
 Now I got it :D

 C:\Documents and Settings\Usuario\AndroidC:\Arquivos de programas
 \Java\jdk1.6.
 0_04\bin\keytool.exe -list -alias androiddebugkey -keystore
 debug.keystore -sto
 repass android -keypass android
 androiddebugkey, 17/09/2008, PrivateKeyEntry,
 Certificate fingerprint (MD5): XX:XX:XX:XX:...

 On 1 nov, 23:42, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

  Kesav:

  Great guide!

  samia:

  If you use windows, 'keytool' is under  JDK's folder, such as c:\
  Program Files\Java\jdkversion\bin\keytool, you need type full path
  to execute keytool command.

  On 10月31日, 下午2時40分, samina [EMAIL PROTECTED] wrote:

   Hi kesav ,

i have tried Keytool command C:\Users\user\AppData\Local
   \Androidkeytool -list -alias
   androiddebugkey -keystore debug.keystore -storepass android -keypass
   android  to get the MD5 fingerprint of the debug certificate:but its
   throwing error like 'keytool' is not recognized as an internal or
   external command,operable program or batch file.
   plz help me to solve the problem

   thanks
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@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-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Populating a Spinner from SQLite

2008-10-19 Thread GUS

As far as I remember you can use the method setSelection(int
position).

On 19 out, 10:11, humanoid [EMAIL PROTECTED] wrote:
 Thanks GUS!

 I actually figured it out myself. Now my next problem is how to set
 the spinner to show the position based on the _id when I go back to
 a page. 

 On Oct 18, 4:38 pm, GUS [EMAIL PROTECTED] wrote:

  Well, I have an application that does that, but its for version m5.
  The code was something like this:

                  // SPINNER
                  s1 = (Spinner) findViewById(R.id.spinner1);
                  ArrayAdapterCharSequence adapter =
  ArrayAdapter.createFromResource(
                                  this, R.array.tipo, 
  android.R.layout.simple_spinner_item);
                  adapter
                                  
  .setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
                  s1.setAdapter(adapter);
  //              s1.setSelection(1);

                  s1.setOnItemSelectedListener(new 
  Spinner.OnItemSelectedListener() {

                          public void onItemSelected(AdapterView parent, View 
  v,
                                          int position, long id) {
                                  tipo = position;
                          }

                          public void onNothingSelected(AdapterView arg0) {
                                  // TODO Auto-generated method stub

                          }
                  });
                  // END SPINNER

  I'm gonna migrate the application an tell you later if something has
  changed.

  cordially, Gus.http://www.androidforum.com.br

  On 18 out, 12:06, humanoid [EMAIL PROTECTED] wrote:

   All:

   Has anybody figured out how to populate a Spinner from SQLite table,
   displaying a description in the dropdown but getting an _id upon the
   user clicking on a value.

   I am trying to recreate the HTML select with which I am sure you are
   all familiar.

   Any feedback appreciated.

   P.S. I know how to populate and display a single column values.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@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-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Populating a Spinner from SQLite

2008-10-18 Thread GUS

Well, I have an application that does that, but its for version m5.
The code was something like this:

// SPINNER
s1 = (Spinner) findViewById(R.id.spinner1);
ArrayAdapterCharSequence adapter =
ArrayAdapter.createFromResource(
this, R.array.tipo, 
android.R.layout.simple_spinner_item);
adapter

.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
s1.setAdapter(adapter);
//  s1.setSelection(1);

s1.setOnItemSelectedListener(new 
Spinner.OnItemSelectedListener() {

public void onItemSelected(AdapterView parent, View v,
int position, long id) {
tipo = position;
}

public void onNothingSelected(AdapterView arg0) {
// TODO Auto-generated method stub

}
});
// END SPINNER

I'm gonna migrate the application an tell you later if something has
changed.

cordially, Gus.
http://www.androidforum.com.br


On 18 out, 12:06, humanoid [EMAIL PROTECTED] wrote:
 All:

 Has anybody figured out how to populate a Spinner from SQLite table,
 displaying a description in the dropdown but getting an _id upon the
 user clicking on a value.

 I am trying to recreate the HTML select with which I am sure you are
 all familiar.

 Any feedback appreciated.

 P.S. I know how to populate and display a single column values.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@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-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Enabling audio in emulator

2008-10-06 Thread GUS

Nice. But I think your audio doesn´t work normaly becouse some other
program on your machine is blocking the audio devices. Fortunatelly,
my audio works fine.

Thx anyway.

PAS wrote:
 Since I found nothing about this while looking, I thought I would
 document my findings here.

 I had some trouble getting audio to work in the Android emulator.
 Eclipse was displaying the following:
 [2008-10-06 16:18:12 - Emulator] emulator: warning: opening audio
 output failed

 Having a look at the emulator startup options for Android 1.0 SDK,
 Release 1:
 http://code.google.com/android/reference/emulator.html#startup-options

 ...I found some of the Media ones are not correct . Even the self
 documentation inside emulator -help-audio is not correct:
 $ emulator -useaudio
 invalid command-line parameter: -useaudio
 $ emulator -help-audio-out
 unknown option: -audio-out
 $ emulator -help-audio-in
 unknown option: -audio-in

 I tried the obvious, but got the same error I was getting through
 Eclipse (I guess alsa is the default)
 $ emulator -audio alsa
 emulator: warning: opening audio output failed

 The only way I got sound working was to run:
 $ emulator -audio oss

 Please note that while the emulator is running, you will not be able
 to use other audio apps (at least I couldn't).

 I hope that helps someone out there. If I have missed something,
 please let me know.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@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-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Videos on emulator's browser

2008-09-28 Thread GUS

I've seeing this video where this guy is watching YouTube videos on
the browser:
http://www.youtube.com/watch?v=NJJhqOVcjsI
Why cant I do that on the emulator?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@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-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] MapView invalidate (is invalidating?)

2008-04-12 Thread GUS


I have a MapView that I update from time to time from a timing
thread.

The problem is when the user interacts with the map two invalidate
occurs, does anyone know how can I know if the map is alredy drawing
for me not to send invalidate again?

is there anything like isdrawing or isinvalidating?


thx, Gustavo Avila
http://www.androidyou.com
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] ListView along with buttons

2008-04-09 Thread GUS

Is there anyway to have a listview a spinner and a button in the same
activity?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Button im map

2008-04-08 Thread GUS

I want to show my contacts on the map showing their photos. But I want
these images to be clickable.
In other words I want to put a button on a Overlay and make link it to
a webpages.
Is that possible?

Gustavo avila.
androidforum.com.br
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Are you satisfied or disappointed with the level of support from Google, for Android?

2008-03-28 Thread GUS

Just to explain: When I say you I mean Google.

On 28 mar, 20:23, GUS [EMAIL PROTECTED] wrote:
 I just had an idea!!!
 You could do something like a prize called Cooperation Prize, with
 no benefits.
 Just as recognition for those who send good projects, but don't win
 the challenge.
 List the names of the participants somewhere on the Android's site
 would be awesome.

 What do you think?
 Gus. ;p

 On 27 mar, 14:49, Dan Morrill [EMAIL PROTECTED] wrote:

  On Thu, Mar 27, 2008 at 9:14 AM, Peli [EMAIL PROTECTED] wrote:
   In this sense, the Android team sticked to the Google code hosting
   motto (http://code.google.com/hosting/) release early, release
   often on the first part - they indeed released a pre-alpha SDK - but
   I personally think they could have done better on the release often
   part.

  We agree, actually. :)  Unfortunately since we are focused on shipping the
  first devices, we have to balance the work involved in packaging (and
  especially testing) SDK releases against the work on the platform itself.

  I don't know whether another update would be released before the

   challenge deadline. Given that it less than 2 1/2 weeks from now, I'd
   say it is rather unlikely that many developers will risk having to
   debug their programs from scratch again

  Yes, for exactly this reason we don't plan to release another major SDK
  before the deadline. It would not be cool to release a new SDK with tons of
  changes mere weeks before the deadline.  Some developers would feel
  compelled to pull all-nighters to upgrade, and that's not what we intend.

  - Dan
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Download photo from server

2008-03-23 Thread GUS

Hi folks,

I need to download a .jpg photo from a webserver and then save it in a
database. Does anyone knows where can I find a sample of downloading
files trhu HTTP, and also a sample of serializating files to database?

Thank You very much.

Gustavo Avila
virtualsite.com.br
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---