[android-beginners] Re: How to access wireless toggle functionality

2009-09-17 Thread Bartłomiej Nowak
2009/9/14 Carl vapor.trail@gmail.com


 Hello all,

 I would like to create an application that allows the user to quickly
 toggle wireless connections ON/OFF. I found the API for wi-fi
 (android.net.wifi.WifiManager) but I am not able to find any API for
 Bluetooth and airplane modes.
 Do you have any idea where I can find such APIs or how can I have
 access to the switching functionality?

 Regards

 carl

 


--~--~-~--~~~---~--~~
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: Development Phone

2009-09-17 Thread Bartłomiej Nowak
2009/9/16 Rafa Perfeito rafa.perfe...@gmail.com

 No T-Mobile for me. TMN from Portugal...But that means that the carrier
 itself enables the update?

 On Wed, Sep 16, 2009 at 12:23 PM, Mark Murphy mmur...@commonsware.comwrote:


 Rafa Perfeito wrote:
  I have an HTC Magic from a carrier. Can i update to
  1.6? How? Through the carrier?

 T-Mobile has not yet announced plans for Android 1.6 for any of their
 devices. At some point, in all likelihood, they will make such an
 announcement.

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

 Need Android talent? Ask on HADO! http://wiki.andmob.org/hado





 --
 Cumprimentos,

 Hugo Rafael Augusto


 


--~--~-~--~~~---~--~~
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: About ERROR: unknown virtual device name: 'myavd'

2009-09-17 Thread Bartłomiej Nowak
2009/9/16 Nicolas Gramlich stoeps...@gmx.de


 Hi,

 just tried this again with the ADT 0.9.3 (downloaded today) and
 Android 1.6 r1 (also from today) and in the Virtual Devices-Window I
 can see my newly created AVD with a green checker to the left: A
 valid Android Virtual Device.

 ANDROID_SDK_HOME is properly set to C:\Users\nico; for user and
 system-environment variables.

 I can also see the emulator-image being properly created in C:\Users
 \nico\.android\avd\Emu_1_6.avd\userdata.img.

 I'm using Windows7 RC 64Bit with a 64 Bit JDK and Eclipse is running
 (or has to run) with its own 32 Bit JRE.

 Any ideas?


 On 27 Aug., 03:21, Xavier Ducrohet x...@android.com wrote:
  On Wed, Aug 26, 2009 at 4:21 AM, Phoenixphoenixsen...@gmail.com wrote:
 
   On Aug 25, 4:41 pm, Xavier Ducrohet x...@android.com wrote:
   I see that you have changed the location of the user folders (in S:
   instead of C:)
 
   There are user folders on both S: and C:.  Only the Desktop and My
   Documents special folders are on S:.  Everything else (including App
   Data) is on C:.  [The documents are shared between operating systems
   on different partitions]
 
   Android (or Eclipse?) has been the only thing to use S:.
 
   When the user location is not the default one, we have seen some cases
   where windows reports the location of the user folder differently
   depending on which API you use (the command line tool and Eclipse use
   a Java API, while the emulator use a windows C++ API).
 
   That would explain why the command line tools and Eclipse could see
   my_avd just fine, but the emulator could not find it.
 
   But, shouldn't Android be set up to use HOMEDRIVE/HOMEPATH?  Standard
   environment variables.
 
  I think there are difference on XP/Vista which makes using those hard
  to use (back in the previous SDK we were using LOCALAPPDATA but we
  ended up having the same problem).
 
  What we use on java is the user.home property setup by the VM. Looks
  like the Java VM thinks your home is in S:\...
  I look again into these 2 env variables and see if they could be used.
 
   Also, a single line in the installation instructions could have
   prevented this confusion.  When Android can see the AVD from the
   command line and the Eclipse gui, but not from the emulator, and no
   explanation is given (especially on the first test project), it's ...
   disheartening.
 
  I agree. We should at least have the emulator output a message saying
  where it's looking for the AVD and how to fix the problem if it's not
  where the AVDs are created.
 
   In any event, with the ANDROID_SDK_HOME variable set to the S:
   home (which is not the real home directory, that is on C:), the
   emulator now works.
 
  Well we don't want to go and set a permanent env on your machine. I
  guess we could but relying on existing standard env variables should
  be better. I mean, what happens if the user removes it or change the
  location of his/her home folder but doesn't update this?
 
  In any case we do need to find a solution.
 
  Xav
  --
  Xavier Ducrohet
  Android Developer Tools Engineer
  Google Inc.
 


--~--~-~--~~~---~--~~
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: Unknown host www.google.com (was Re: debug.keystore is missing)

2009-09-17 Thread Bartłomiej Nowak
2009/9/17 Jeffrey Blattman jeffrey.blatt...@gmail.com

  ugh. never mind. permissions?


 On 9/17/09 11:17 AM, Jeffrey Blattman wrote:

 after changing the SDK directory back and forth, the SDK was reloaded and
 the debug.keystore was created. now i'm back to the unknown host exception
 for google,

 09-17 11:16:07.003: INFO/InetAddress(756): Unknown host www.google.com,
 throwing UnknownHostException

 repeated over and over.

 On 9/17/09 10:44 AM, Jeffrey Blattman wrote:

 today i started a new eclipse project. setup the map activity, and used the
 same API key as my other projects. map was blank, and oddly, in the logs i
 see unknown host exceptions from google.com. i tested the browser, and
 google.com resolves fine.

 after re-creating my API key with no success still, i uninstalled ADT from
 eclipse and removed ~/.android, removed from AVD. then the reverse, install
 the ADT, and create a new AVD.

 however, now ~/.android doesn't contain debug.keystore. there must be a
 keystore somewhere, as my apps still launch, but any map view fails ... this
 time no unknown host exception, just no map (typical of having an invalid
 API key).

 ?

 i should note that i upgraded to 1.5r3 at some point in the recent past.
 yes keytool is in my path.

 --


 --


 --


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

image/pnginline: qr-gmail.pngimage/png

[android-beginners] Re: Math functions in Android - HELP

2009-09-17 Thread Bartłomiej Nowak
2009/9/16 GlennovitS glennov...@gmail.com


 Hey

 I'm about to make an app with some different math functions..

 How can I make a TAN, COS, and SIN function in andriod?. I dont know
 how to start on this..

 Please help me..

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