[android-developers] Re: Background music in application

2008-10-23 Thread bins

yes.thanks  for u message...

u mentioned that " it has something to do with reading the file and
sending it to
the audiobuffer" i didnt get any documents regarding audiobuffer...do
u know how to mange that buffer..
let me know if u know...please..
thanks in advance
bins..

On Oct 20, 4:06 pm, TjerkW <[EMAIL PROTECTED]> wrote:
> On Oct 19, 2:09 pm, bins <[EMAIL PROTECTED]> wrote:
>
> > hi...
> > thanks for u r replay...
>
> > Actually i am playing 2mb file ,,,which is have looping also.I am
> > calling Media player Inside a thread,Actually i need play background
> > music for my application,and it should not effect my application speed
>
> Playing a file in the background needs resources (cpu cycles).
> If you application is already using all the resources then the
> background music WILL affect
> your application speed.
>
> By the way, i am also getting those error messages, i think
> it has something to do with reading the file and sending it to
> the audiobuffer. My emulator is rather slow, so maybe
> my machine is not fast enough.
--~--~-~--~~~---~--~~
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: Custom view - canvas height incorrect?

2008-10-23 Thread Romain Guy

You should not use the size of the Canvas but the size of the View
itself. Instead of canvas.getWidth(), use getWidth(). Do the same for
getHeight().

On Thu, Oct 23, 2008 at 7:12 PM, bw <[EMAIL PROTECTED]> wrote:
>
> To simply debugging of my custom View, I'm trying to draw a border
> around it so I can see its exact size/position.
> The left and right sides of the border draw correctly, but the top and
> bottom end up outside the screen by about 50 pixels.
> My guess is that canvas.getHeight() isn't accounting for the
> notification bar at the top. What am I doing wrong?
>
> Here's my code:
>
> protected void onDraw(Canvas canvas)
> {
>super.onDraw(canvas);
>
>Log.w("", "canvas bounds:" + canvas.getClipBounds() + ", width/
> height: " + canvas.getWidth() + ", " + canvas.getHeight());
>
>
>//draw border
>canvas.drawLine(0, 0, canvas.getWidth(), 0, mBorderPaint);
>canvas.drawLine(canvas.getWidth(), 0, canvas.getWidth(),
> canvas.getHeight(), mBorderPaint);
>canvas.drawLine(canvas.getWidth(), canvas.getHeight(), 0,
> canvas.getHeight(), mBorderPaint);
>canvas.drawLine(0, 0, 0, canvas.getHeight(), mBorderPaint);
> }
>
>
> Here's the output of the log statement:
>
> 10-24 02:01:35.488: WARN/(1300): onDraw called: canvas bounds:Rect(0,
> 0, 320, 430), width/height: 320, 480
>
>
>
>
> >
>



-- 
Romain Guy
www.curious-creature.org

--~--~-~--~~~---~--~~
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: ListView's selector in touch mode

2008-10-23 Thread Romain Guy

ListView works just fine. You apparently changed the color of the
background or of the ListView itself, which means you need to change
the cacheColorHint (use android:cacheColorHint="yourcolor" or
setCacheColorHint(yourcolor), where yourcolor can be # or 0 to
disable the optimization.)

If you don't get a highlight when you press an item, then you did
something wrong in your code, and without looking at it, I can't help
you more. But there is *no reason* to hack anything to make ListView
work normally.

On Thu, Oct 23, 2008 at 7:43 PM, michael <[EMAIL PROTECTED]> wrote:
>
> Well, I for one don't see any alternative but to do this.  Not only
> does my plain and simple ListView NOT give any visible indicator when
> an item is tapped (unless I build in my own onTouch handler), but in
> fact, when I touch and drag, every list item turns black.  I've
> disabled every element of my code that I could, and this behavior
> persists (including disabling all touch and click handlers, all
> selection drawables, etc...).  If the basic ListView isn't working as
> is, is there any alternative but to try and override every single
> inherent list behavior to get it to work?
>
> Michael
>
> On Oct 7, 10:57 am, "Romain Guy" <[EMAIL PROTECTED]> wrote:
>> No :) Also, do *NOT* try to change the behavior of the touch mode.
>> This is how the UI framework is designed and trying to work around it
>> will only cause more issues since the framework tries to enforce it.
>> This is also how all standard Android applications behave and you
>> should remain consistent with this behavior.
>>
>> On Tue, Oct 7, 2008 at 10:40 AM, skink <[EMAIL PROTECTED]> wrote:
>>
>> > hi,
>>
>> > i know that normally when in touch mode ListView's selector is not
>> > focused/highlighted.
>>
>> > but... isn't there any way (even dirty) to have selector focused in
>> > touch mode?
>>
>> > skink
>>
>> --
>> Romain Guywww.curious-creature.org
>
> >
>



-- 
Romain Guy
www.curious-creature.org

--~--~-~--~~~---~--~~
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: Browser based installation fails on G1

2008-10-23 Thread Shane Isbell
Hi Travis,

MiniSpaceWar downloads and installs just fine on SAM, so it's not your
application.

Shane

On Thu, Oct 23, 2008 at 10:06 PM, tberthel <[EMAIL PROTECTED]> wrote:

>
> I have been told that it does install and runs so hopefully you just
> installed it in a different way.
>
> I wouldn't want my application to fail installation.
>
> Did you find the solution?
>
> On Oct 22, 10:10 am, nknize <[EMAIL PROTECTED]> wrote:
> > I'm having a similar issue, but I'm actually hosting the .apk files in
> > an Oracle database.  Here is a code snippet:
> >
> > Intent intent = new Intent(Intent.ACTION_VIEW);
> > intent.setDataAndType(Uri.fromFile(apkFile),
> "application/" +
> > "vnd.android.package-archive");
> > MainMenuActivity.instance.startActivity(intent);
> >
> > 1.  The apk is successfully saved in /sdcard/download/ with the
> > original filename.
> > 2. When startActivity(intent) is called.  A "Replace application"
> > dialog appears (when I have never once installed the application)
> > saying "The application you are installing will replace another
> > application."  And the following log is printed:
> >
> > I/ActivityManager(   52): Starting activity: Intent
> > { action=android.intent.action.VIEW data=file:///sdcard/download/
> > MiniSpaceWarAndroidApplication.apk type=app
> > lication/vnd.android.package-archive
> > comp={com.android.packageinstaller/
> > com.android.packageinstaller.PackageInstallerActivity} }
> > D/asset   (  313): failed to open Zip archive '/sdcard/download/
> > MiniSpaceWarAndroidApplication.apk'
> >
> > 3. When the user selects "ok", the InstallAppConfirmation screen comes
> > up and the following log is printed:
> >
> > I/ActivityManager(   52): Starting activity: Intent { data=file:///
> > data/data/com.android.packageinstaller/files/
> > MiniSpaceWarAndroidApplication.apk comp={com.and
> > roid.packageinstaller/
> > com.android.packageinstaller.InstallAppConfirmation} (has extras) }
> > D/asset   (  313): failed to open Zip archive '/data/data/
> > com.android.packageinstaller/files/MiniSpaceWarAndroidApplication.apk'
> > D/asset   (  313): failed to open Zip archive '/data/data/
> > com.android.packageinstaller/files/MiniSpaceWarAndroidApplication.apk'
> > I/ActivityManager(   52): Displayed activity
> > com.android.packageinstaller/.InstallAppConfirmation: 399 ms
> >
> > 4. When the user selects "Install", "Application install unsuccessful"
> > is displayed and the following log is printed:
> >
> > I/PackageInstaller(  313): downloaded app uri=file:///data/data/
> > com.android.packageinstaller/files/MiniSpaceWarAndroidApplication.apk
> > I/ActivityManager(   52): Starting activity: Intent { data=file:///
> > data/data/com.android.packageinstaller/files/
> > MiniSpaceWarAndroidApplication.apk comp={com.and
> > roid.packageinstaller/com.android.packageinstaller.InstallAppProgress}
> > (has extras) }
> > I/ActivityManager(   52): Displayed activity
> > com.android.packageinstaller/.InstallAppProgress: 146 ms
> > D/asset   (   52): failed to open Zip archive '/data/app/
> > vmdl14442.tmp'
> > W/PackageParser(   52): Unable to read AndroidManifest.xml of /data/
> > app/vmdl14442.tmp
> > W/PackageParser(   52): java.io.FileNotFoundException:
> > AndroidManifest.xml
> > W/PackageParser(   52): at
> > android.content.res.AssetManager.openXmlAssetNative(Native Method)
> > W/PackageParser(   52): at
> > android.content.res.AssetManager.openXmlBlockAsset(AssetManager.java:
> > 471)
> > W/PackageParser(   52): at
> > android.content.res.AssetManager.openXmlResourceParser(AssetManager.java:
> > 439)
> > W/PackageParser(   52): at
> > android.content.pm.PackageParser.parsePackageName(PackageParser.java:
> > 436)
> > W/PackageParser(   52): at
> >
> com.android.server.PackageManagerService.installPackageLI(PackageManagerService.java:
> > 3102)
> > W/PackageParser(   52): at
> > com.android.server.PackageManagerService
> > $4.run(PackageManagerService.java:3008)
> > W/PackageParser(   52): at
> > android.os.Handler.handleCallback(Handler.java:542)
> > W/PackageParser(   52): at
> > android.os.Handler.dispatchMessage(Handler.java:86)
> > W/PackageParser(   52): at android.os.Looper.loop(Looper.java:
> > 123)
> > W/PackageParser(   52): at
> > android.os.HandlerThread.run(HandlerThread.java:60)
> > E/PackageManager(   52): Couldn't find a package name in : /data/app/
> > vmdl14442.tmp
> > I/installd(   36): unlink /data/dalvik-cache/
> > [EMAIL PROTECTED]@[EMAIL PROTECTED]
> > I/InstallAppProgress(  313): Sleeping for 5 seconds to display screen
> > D/dalvikvm(   52): GC freed 5799 objects / 287216 bytes in 153ms
> > I/PackageInstaller(  313): downloaded app uri=file:///data/data/
> > com.android.packageinstaller/files/MiniSpaceWarAndroidApplication.apk
> > I/ActivityManager(   52): Starting activity: Intent
> > { action=android.i

[android-developers] Re: Relative layout

2008-10-23 Thread yasmin afrose
Hi,

You will use the following link.

www.droiddraw.org . It is a GUI editor for cell phone programming. You'll
design the UI & click "Generate " button it'll generate corresponding xml
file for you.

Enjoy it.

by,
yasmin

On Fri, Oct 24, 2008 at 10:35 AM, april <[EMAIL PROTECTED]> wrote:

>
> I need to create a relative layout using java instead of XML. In the
> layout, there are 3 buttons, one on the left, the other 2 will be
> right.
>
> Does some one have sample code on that?
>
> Thanks!
> >
>


-- 
Everything is Possible For U only

--~--~-~--~~~---~--~~
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: Attaching the Eclipse debugger to actual device

2008-10-23 Thread Wanted unique nickname

Wow, that totally worked.  For those who are interested, here is my
complete Suse example:

Before you connect the g1 via usb

[create the udev rules file, and choose a number lower than the
default rules file]
/etc/udev/rules.d/11-android.rules

[copy the following text to that file, and replace "username", all one
line]
SUBSYSTEM=="usb", ATTRS{idVendor}=="0bb4", ATTRS{idProduct}=="0c02",
MODE="0666", NAME="username"

[start the adb daemon]
adb
* daemon not running. starting it now *
* daemon started successfully *

[connect the phone, and check devices]
adb devices
HT840GZ14538device

-Marc

On Oct 23, 5:09 pm, shyamal <[EMAIL PROTECTED]> wrote:
> It seems that the device needs to be owned by the user running 'adb'.
> At a first approximation anyway; I've worked on Android for a full
> three days or something. Adding OWNER='yourusername' should fix
> it.
>
> Works for me on a Debian (Testing) system where I mount it to to /dev/
> sdb (though I had to use SUBSYSTEMS, not SUBSYSTEM, with the default
> udev config files).
>
> /Shyamal
>
> On Oct 22, 8:20 pm, Wanted unique nickname <[EMAIL PROTECTED]>
> wrote:
>
> > I was able to write the following udev rule, but running "adbdevices"
> > does not show any device.  What doesadblook for when its scanning
> > for devices?
>
> > Here is my rule in /etc/udev/rules.d/11-android.rules
>
> > SUBSYSTEM=="usb", ATTRS{idVendor}=="0bb4", ATTRS{idProduct}=="0c02",
> > MODE="0666", NAME="android"
>
> > When I connect the device the /dev/android link is created.  So my
> > rule works with the device, but I still don't get whyadbdevices
> > returns nothing... little help here?
>
> > -Marc
>
> > On Oct 22, 7:33 pm, Wanted unique nickname <[EMAIL PROTECTED]>
> > wrote:
>
> > > Does anyone know how to perform Step 3 for developing on SuseLinux?
> > > When I run dmesg I get some relevant info, but I don't know enough
> > > about udev to make this work on Suse...
>
> > > usb 1-10: new high speed USB device using ehci_hcd and address 10
> > > usb 1-10: new device found, idVendor=0bb4, idProduct=0c02
> > > usb 1-10: new device strings: Mfr=3, Product=2, SerialNumber=1
> > > usb 1-10: Product: Android Phone
> > > usb 1-10: Manufacturer: HTC
> > > usb 1-10: SerialNumber: HT840GZ14538
> > > usb 1-10: configuration #1 chosen from 1 choice
> > > scsi18 : SCSI emulation for USB Mass Storage devices
> > > usb-storage: device found at 10
> > > usb-storage: waiting for device to settle before scanning
> > > scsi 18:0:0:0: Direct-Access     HTC      Android Phone    0100 PQ: 0
> > > ANSI: 2
> > > sd 18:0:0:0: [sdc] Attached SCSI removable disk
> > > sd 18:0:0:0: Attached scsi generic sg4 type 0
> > > usb-storage: device scan complete
>
> > > -Marc
>
> > > On Oct 22, 12:02 pm, "Xavier Ducrohet" <[EMAIL PROTECTED]> wrote:
>
> > > > We just updated the documentation.
>
> > > > Developing on devices is explained 
> > > > here:http://code.google.com/android/intro/develop-and-debug.html#developin...
>
> > > > On Tue, Oct 21, 2008 at 11:45 PM, bhines <[EMAIL PROTECTED]> wrote:
>
> > > > > this sounds like my problem as well.
>
> > > > > This really should be mentioned 
> > > > > onhttp://code.google.com/android/intro/develop-and-debug.html
>
> > > > > thanks,
>
> > > > > -Ben
>
> > > > > On Oct 21, 8:42 pm, nkijak <[EMAIL PROTECTED]> wrote:
> > > > >> That possibly did the trick.  I had to restart the phone.  Maybe for
> > > > >> the "Debug when USB" thing to take effect?
>
> > > > >> Thanks
>
> > > > >> On Oct 21, 11:33 pm, "Xavier Ducrohet" <[EMAIL PROTECTED]> wrote:
>
> > > > >> > To debug on devices you need to set the 'debuggable' attribute of 
> > > > >> > the
> > > > >> > application node to true (in AndroidManifest.xml).
>
> > > > >> > Make sure to set it back to false before releasing your 
> > > > >> > application.
>
> > > > >> > Xav
>
> > > > >> > On Tue, Oct 21, 2008 at 8:24 PM, nkijak <[EMAIL PROTECTED]> wrote:
>
> > > > >> > > I can't seem to get the eclipse debugger to attach to theG1.  I 
> > > > >> > > can
> > > > >> > > select "Debug" from the run menu and it will compile and launch 
> > > > >> > > the
> > > > >> > > app on the phone but eclipse never enters the debug perspective 
> > > > >> > > (or
> > > > >> > > even asks to). The phone sits with a "Waiting for Debugger" 
> > > > >> > > message
> > > > >> > > dialog.
> > > > >> > > When I enter the Android perspective I can see the device 
> > > > >> > > attached,
> > > > >> > > see log entries, take screenshots but I cannot see process 
> > > > >> > > listings
> > > > >> > > and "restartingadb" results in 11 failed attempts to connect.
> > > > >> > > Is there some other configuration I need to adjust in eclipse, 
> > > > >> > > perhaps
> > > > >> > > a port number?
>
> > > > >> > > Thanks,
> > > > >> > > Nick
--~--~-~--~~~---~--~~
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

[android-developers] Re: process ids

2008-10-23 Thread hackbod

Sorry, we don't currently have a high-level API for doing this.  As a
hack, you can read /proc directly, but that is not something that is
part of the SDK and so you have no guarantees of it working on future
releases or other phones.

On Oct 23, 8:25 pm, alexdonnini <[EMAIL PROTECTED]> wrote:
> Hello,
>
> Would anyone be able to tell me (or point me in the right direction)
> how I could retrieve the pids and related process information as
> reported, for example, in DDMS in an Android application?
>
> I have been able to put together a small application that retrieves
> information about all tasks running
> (ActivityManager activityManager =
> (ActivityManager)this.getSystemService(ACTIVITY_SERVICE);
>         List runningTasks =
> activityManager.getRunningTasks(30); )
>
> However, if possible, I would like to retrieve task and process
> information at a higher level of granularity (or, if you like, at
> lower level).
>
> Any help would be greatly appreciated.
>
> Thanks.
>
> Alex Donnini
--~--~-~--~~~---~--~~
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: Browser based installation fails on G1

2008-10-23 Thread tberthel

I have been told that it does install and runs so hopefully you just
installed it in a different way.

I wouldn't want my application to fail installation.

Did you find the solution?

On Oct 22, 10:10 am, nknize <[EMAIL PROTECTED]> wrote:
> I'm having a similar issue, but I'm actually hosting the .apk files in
> an Oracle database.  Here is a code snippet:
>
> Intent intent = new Intent(Intent.ACTION_VIEW);
> intent.setDataAndType(Uri.fromFile(apkFile), "application/" +
> "vnd.android.package-archive");
> MainMenuActivity.instance.startActivity(intent);
>
> 1.  The apk is successfully saved in /sdcard/download/ with the
> original filename.
> 2. When startActivity(intent) is called.  A "Replace application"
> dialog appears (when I have never once installed the application)
> saying "The application you are installing will replace another
> application."  And the following log is printed:
>
> I/ActivityManager(   52): Starting activity: Intent
> { action=android.intent.action.VIEW data=file:///sdcard/download/
> MiniSpaceWarAndroidApplication.apk type=app
> lication/vnd.android.package-archive
> comp={com.android.packageinstaller/
> com.android.packageinstaller.PackageInstallerActivity} }
> D/asset   (  313): failed to open Zip archive '/sdcard/download/
> MiniSpaceWarAndroidApplication.apk'
>
> 3. When the user selects "ok", the InstallAppConfirmation screen comes
> up and the following log is printed:
>
> I/ActivityManager(   52): Starting activity: Intent { data=file:///
> data/data/com.android.packageinstaller/files/
> MiniSpaceWarAndroidApplication.apk comp={com.and
> roid.packageinstaller/
> com.android.packageinstaller.InstallAppConfirmation} (has extras) }
> D/asset   (  313): failed to open Zip archive '/data/data/
> com.android.packageinstaller/files/MiniSpaceWarAndroidApplication.apk'
> D/asset   (  313): failed to open Zip archive '/data/data/
> com.android.packageinstaller/files/MiniSpaceWarAndroidApplication.apk'
> I/ActivityManager(   52): Displayed activity
> com.android.packageinstaller/.InstallAppConfirmation: 399 ms
>
> 4. When the user selects "Install", "Application install unsuccessful"
> is displayed and the following log is printed:
>
> I/PackageInstaller(  313): downloaded app uri=file:///data/data/
> com.android.packageinstaller/files/MiniSpaceWarAndroidApplication.apk
> I/ActivityManager(   52): Starting activity: Intent { data=file:///
> data/data/com.android.packageinstaller/files/
> MiniSpaceWarAndroidApplication.apk comp={com.and
> roid.packageinstaller/com.android.packageinstaller.InstallAppProgress}
> (has extras) }
> I/ActivityManager(   52): Displayed activity
> com.android.packageinstaller/.InstallAppProgress: 146 ms
> D/asset   (   52): failed to open Zip archive '/data/app/
> vmdl14442.tmp'
> W/PackageParser(   52): Unable to read AndroidManifest.xml of /data/
> app/vmdl14442.tmp
> W/PackageParser(   52): java.io.FileNotFoundException:
> AndroidManifest.xml
> W/PackageParser(   52): at
> android.content.res.AssetManager.openXmlAssetNative(Native Method)
> W/PackageParser(   52): at
> android.content.res.AssetManager.openXmlBlockAsset(AssetManager.java:
> 471)
> W/PackageParser(   52): at
> android.content.res.AssetManager.openXmlResourceParser(AssetManager.java:
> 439)
> W/PackageParser(   52): at
> android.content.pm.PackageParser.parsePackageName(PackageParser.java:
> 436)
> W/PackageParser(   52): at
> com.android.server.PackageManagerService.installPackageLI(PackageManagerService.java:
> 3102)
> W/PackageParser(   52): at
> com.android.server.PackageManagerService
> $4.run(PackageManagerService.java:3008)
> W/PackageParser(   52): at
> android.os.Handler.handleCallback(Handler.java:542)
> W/PackageParser(   52): at
> android.os.Handler.dispatchMessage(Handler.java:86)
> W/PackageParser(   52): at android.os.Looper.loop(Looper.java:
> 123)
> W/PackageParser(   52): at
> android.os.HandlerThread.run(HandlerThread.java:60)
> E/PackageManager(   52): Couldn't find a package name in : /data/app/
> vmdl14442.tmp
> I/installd(   36): unlink /data/dalvik-cache/
> [EMAIL PROTECTED]@[EMAIL PROTECTED]
> I/InstallAppProgress(  313): Sleeping for 5 seconds to display screen
> D/dalvikvm(   52): GC freed 5799 objects / 287216 bytes in 153ms
> I/PackageInstaller(  313): downloaded app uri=file:///data/data/
> com.android.packageinstaller/files/MiniSpaceWarAndroidApplication.apk
> I/ActivityManager(   52): Starting activity: Intent
> { action=android.intent.action.VIEW data=file:///data/data/
> com.android.packageinstaller/files/MiniSpaceWarAn
> droidApplication.apk comp={com.android.packageinstaller/
> com.android.packageinstaller.InstallAppDone} (has extras) }
> D/dalvikvm(  313): GC freed 5228 objects / 349536 bytes in 127ms
> I/ActivityManager(   52): Displayed activity
> com.android.packageinstaller/.Insta
> llAppDon

[android-developers] Relative layout

2008-10-23 Thread april

I need to create a relative layout using java instead of XML. In the
layout, there are 3 buttons, one on the left, the other 2 will be
right.

Does some one have sample code on that?

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: How to put apk to G1 Phone

2008-10-23 Thread B Sreen
See if this helps you:
http://code.google.com/android/intro/develop-and-debug.html#developingondevicehardware

Sreenivas

On Thu, Oct 23, 2008 at 9:15 PM, Sudha <[EMAIL PROTECTED]> wrote:

>
> Hi
> can anyone tell me how to install my apk to a G1 phone ?
> ota , datta cable ?
> after downloading do I need to install the apk ?
> 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] How to put apk to G1 Phone

2008-10-23 Thread Sudha

Hi
can anyone tell me how to install my apk to a G1 phone ?
ota , datta cable ?
after downloading do I need to install the apk ?
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: How to put apk to G1 Phone

2008-10-23 Thread yasmin afrose
Hi,

I'm also want to know the same thing. If you get any reply \ you got any
idea please forward to me.

Thanks in advance

By,
Yasmin

On Fri, Oct 24, 2008 at 9:45 AM, Sudha <[EMAIL PROTECTED]> wrote:

>
> Hi
> can anyone tell me how to install my apk to a G1 phone ?
> ota , datta cable ?
> after downloading do I need to install the apk ?
> Thanks
> >
>


-- 
Everything is Possible For U only

--~--~-~--~~~---~--~~
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: Attaching the Eclipse debugger to actual device

2008-10-23 Thread shyamal

It seems that the device needs to be owned by the user running 'adb'.
At a first approximation anyway; I've worked on Android for a full
three days or something. Adding OWNER='yourusername' should fix
it.

Works for me on a Debian (Testing) system where I mount it to to /dev/
sdb (though I had to use SUBSYSTEMS, not SUBSYSTEM, with the default
udev config files).

/Shyamal

On Oct 22, 8:20 pm, Wanted unique nickname <[EMAIL PROTECTED]>
wrote:
> I was able to write the following udev rule, but running "adbdevices"
> does not show any device.  What doesadblook for when its scanning
> for devices?
>
> Here is my rule in /etc/udev/rules.d/11-android.rules
>
> SUBSYSTEM=="usb", ATTRS{idVendor}=="0bb4", ATTRS{idProduct}=="0c02",
> MODE="0666", NAME="android"
>
> When I connect the device the /dev/android link is created.  So my
> rule works with the device, but I still don't get whyadbdevices
> returns nothing... little help here?
>
> -Marc
>
> On Oct 22, 7:33 pm, Wanted unique nickname <[EMAIL PROTECTED]>
> wrote:
>
> > Does anyone know how to perform Step 3 for developing on SuseLinux?
> > When I run dmesg I get some relevant info, but I don't know enough
> > about udev to make this work on Suse...
>
> > usb 1-10: new high speed USB device using ehci_hcd and address 10
> > usb 1-10: new device found, idVendor=0bb4, idProduct=0c02
> > usb 1-10: new device strings: Mfr=3, Product=2, SerialNumber=1
> > usb 1-10: Product: Android Phone
> > usb 1-10: Manufacturer: HTC
> > usb 1-10: SerialNumber: HT840GZ14538
> > usb 1-10: configuration #1 chosen from 1 choice
> > scsi18 : SCSI emulation for USB Mass Storage devices
> > usb-storage: device found at 10
> > usb-storage: waiting for device to settle before scanning
> > scsi 18:0:0:0: Direct-Access     HTC      Android Phone    0100 PQ: 0
> > ANSI: 2
> > sd 18:0:0:0: [sdc] Attached SCSI removable disk
> > sd 18:0:0:0: Attached scsi generic sg4 type 0
> > usb-storage: device scan complete
>
> > -Marc
>
> > On Oct 22, 12:02 pm, "Xavier Ducrohet" <[EMAIL PROTECTED]> wrote:
>
> > > We just updated the documentation.
>
> > > Developing on devices is explained 
> > > here:http://code.google.com/android/intro/develop-and-debug.html#developin...
>
> > > On Tue, Oct 21, 2008 at 11:45 PM, bhines <[EMAIL PROTECTED]> wrote:
>
> > > > this sounds like my problem as well.
>
> > > > This really should be mentioned 
> > > > onhttp://code.google.com/android/intro/develop-and-debug.html
>
> > > > thanks,
>
> > > > -Ben
>
> > > > On Oct 21, 8:42 pm, nkijak <[EMAIL PROTECTED]> wrote:
> > > >> That possibly did the trick.  I had to restart the phone.  Maybe for
> > > >> the "Debug when USB" thing to take effect?
>
> > > >> Thanks
>
> > > >> On Oct 21, 11:33 pm, "Xavier Ducrohet" <[EMAIL PROTECTED]> wrote:
>
> > > >> > To debug on devices you need to set the 'debuggable' attribute of the
> > > >> > application node to true (in AndroidManifest.xml).
>
> > > >> > Make sure to set it back to false before releasing your application.
>
> > > >> > Xav
>
> > > >> > On Tue, Oct 21, 2008 at 8:24 PM, nkijak <[EMAIL PROTECTED]> wrote:
>
> > > >> > > I can't seem to get the eclipse debugger to attach to theG1.  I can
> > > >> > > select "Debug" from the run menu and it will compile and launch the
> > > >> > > app on the phone but eclipse never enters the debug perspective (or
> > > >> > > even asks to). The phone sits with a "Waiting for Debugger" message
> > > >> > > dialog.
> > > >> > > When I enter the Android perspective I can see the device attached,
> > > >> > > see log entries, take screenshots but I cannot see process listings
> > > >> > > and "restartingadb" results in 11 failed attempts to connect.
> > > >> > > Is there some other configuration I need to adjust in eclipse, 
> > > >> > > perhaps
> > > >> > > a port number?
>
> > > >> > > Thanks,
> > > >> > > Nick

--~--~-~--~~~---~--~~
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: Problem with MapView

2008-10-23 Thread Robert

MapView was working fine until yesterday. Since yesterday i run into
problems too.
Please have a look at this:
http://code.google.com/android/reference/com/google/android/maps/MapView.html
and this:
http://code.google.com/android/toolbox/apis/mapkey.html

Nageshwar schrieb:
> I'm also having the same problem as sudha has. it was working fine
> yesterday and suddenly stopped working. I dint make any changes to it.

--~--~-~--~~~---~--~~
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: ListView's selector in touch mode

2008-10-23 Thread michael

Well, I for one don't see any alternative but to do this.  Not only
does my plain and simple ListView NOT give any visible indicator when
an item is tapped (unless I build in my own onTouch handler), but in
fact, when I touch and drag, every list item turns black.  I've
disabled every element of my code that I could, and this behavior
persists (including disabling all touch and click handlers, all
selection drawables, etc...).  If the basic ListView isn't working as
is, is there any alternative but to try and override every single
inherent list behavior to get it to work?

Michael

On Oct 7, 10:57 am, "Romain Guy" <[EMAIL PROTECTED]> wrote:
> No :) Also, do *NOT* try to change the behavior of the touch mode.
> This is how the UI framework is designed and trying to work around it
> will only cause more issues since the framework tries to enforce it.
> This is also how all standard Android applications behave and you
> should remain consistent with this behavior.
>
> On Tue, Oct 7, 2008 at 10:40 AM, skink <[EMAIL PROTECTED]> wrote:
>
> > hi,
>
> > i know that normally when in touch mode ListView's selector is not
> > focused/highlighted.
>
> > but... isn't there any way (even dirty) to have selector focused in
> > touch mode?
>
> > skink
>
> --
> Romain Guywww.curious-creature.org

--~--~-~--~~~---~--~~
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: Android SoftKeyboard Released(Both English and Chinese Input) !

2008-10-23 Thread MacGregor

Is this Chinese input app slated to be released on the Android
Marketplace so I can use it on my G1?  How soon can we have it?
Nicely done.  лл

On Sep 6, 10:09 am, PowerGUI <[EMAIL PROTECTED]> wrote:
> Dear Androiders,
>   I am glad to release the Android SoftKeyboard,support both
> English and Chinese input use SoftKeyboard. If you have android
> dotphone development evaluation or other android hardware which
> supports touchscreen, it is also for you.   :D
>   here is the steps:
>  1)please download the TestSoftKeyboard.tgz andSoftKey.apk
>  2)adb installSoftKey.apk
>  3)extract the TestSoftKeyboard.tgz,you can compile it.then
> generate
> TestSoftKeyboard.apk (or TestSoftKeyboad-debug.apk)
>  4)adb install TestSoftKeyboard.apk (a compiled
> TestSoftkeyboard.apk is ready,please checkt it)
>  5)when the window of TestSoftKeyboard.apk appears,then click the
> edittext area(need click two times,bugs in android?), popup the
> SoftKeyboard windows,input anythings as you like.
>  6)click ok or cancel to return your window
>  7)TestSoftKeyboard is just a samples,you can use the same rule to
> make your program to support input method.
>
>   the screenshot ,related program and TestSoftKeyboard Source code
> is avaiable at:
>   1)http://www.dotphone.org/english
>   2)http://groups.google.com/group/android-dotphone
>
> Any feedbacks is appreciate.
>
> Best Regards
> Android DotPhone Teamhttp://www.dotphone.org/english/

--~--~-~--~~~---~--~~
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: Content observers for SMS mailboxes

2008-10-23 Thread denismo

Thanks, you saved me time looking through the source code, I planned
to do this tonight.

Will try listening on those available URIs, and check for new sent SMS
as you suggested.

Thanks.

Denis

On Oct 24, 11:49 am, "Evan JIANG" <[EMAIL PROTECTED]> wrote:
> The sms provider's source code is in
> ROOT_OF_ANDROID_SOURCE_CODE/packages/providers/TelephonyProvider/SmsProvider.java
> After had a look at that, I found you're right. It only send UriChange
> notification on 3 Uris. I'm not sure if it's a bug.
> You can register your content observer on "content://sms". After get the
> notifyChange, query the latest SMSes, and check the sent flag to judge is it
> a sent sms or received sms.
>
> Regards,
> Evan JIANG
>
> On Fri, Oct 24, 2008 at 8:22 AM, denismo <[EMAIL PROTECTED]> wrote:
>
> > Hi,
>
> > I've spent several days trying to figure out how to listen for sent
> > SMS. One thing that I tried is content observers on content://sms/sent.
> > That didn't work.  Then I tried content://sms/inbox. That didn't work
> > either.
>
> > In my scenarios, I was doing two things:
> > - sending SMS to emulator using telnet "sms send   > text>". This generates notification in the notification area, and you
> > can read the sms later, but content observer on content://sms/inbox is
> > not invoked
> > - sending SMS from one emulator to another. I had one on 5554, another
> > on 5556. I had content observers on both on content://sms/inbox and
> > content://sms/sent and I was sending sms from 5554 to 5556 using
> > sendTextMessage("5556", null, ...). I saw SMS being received by 5556,
> > there was notification and I could read the SMS on 5556. None of the
> > observers were invoked.
>
> > So now I start wondering if content observers are at all support for
> > SMS content provider?  The same content observers, when installed on
> > content://contacts/people, are invoked fine when I add a new contact,
> > so I know I'm using the right API and use it correctly.
>
> > Any clues? Anyone has any examples of listening on these content
> > providers? Or listening on different content providers which do give
> > you information about sent SMS?
>
> > Thanks.
>
> > Denis
>
>
--~--~-~--~~~---~--~~
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] process ids

2008-10-23 Thread alexdonnini

Hello,

Would anyone be able to tell me (or point me in the right direction)
how I could retrieve the pids and related process information as
reported, for example, in DDMS in an Android application?

I have been able to put together a small application that retrieves
information about all tasks running
(ActivityManager activityManager =
(ActivityManager)this.getSystemService(ACTIVITY_SERVICE);
List runningTasks =
activityManager.getRunningTasks(30); )

However, if possible, I would like to retrieve task and process
information at a higher level of granularity (or, if you like, at
lower level).

Any help would be greatly appreciated.

Thanks.

Alex Donnini

--~--~-~--~~~---~--~~
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: Licensing and Trial Software, the starts of a solution?

2008-10-23 Thread barisistanbul

What if I call a special web page from a WebView and add it to a
adsense code.
When I tried it I see I can do it but will this click count as invalid
by adsense?
I can alos see the advertiser web page...

And what about handango store for android application? Anybody tried
or will try?

Thanks
Baris

On Oct 23, 9:03 pm, Al Sutton <[EMAIL PROTECTED]> wrote:
> This might be useful to some of you looking for a solution to the
> Trial/Pay-for dilemma;
>
> I've just made available some code athttp://www.andlicensing.com/which
> will allow you to create a license file which is a set of encrypted
> properties on one machine (such as a web server), and decrypt it on an
> Android device.
>
> It's not an all-singing all-dancing licensing solution, but what it will
> do is allow you to write your apps in a way where they can ask the user
> for a license file, store the encrypted license, and then enable or
> disable functionality based whether the license exists and what
> properties it contains.
>
> Anyway, hope it's useful.
>
> Al.
>
>
>
> Ed Burnette wrote:
> > How about this idea: Call your program "Beta" for now and then in
> > February (or whenever) retire the Beta version and come out with a new
> > non-Beta version that has a charge. The only trick would be to prevent
> > people from auto-updating from Beta to the commercial version without
> > annoying them.
>
> > IMHO Google did the developer community a disservice by not allowing
> > for paid apps from day one. A lot of the developer energy on iPhone
> > comes from dreams of "riches" made in the App Store. If at all
> > possible, please get paid apps in place by this December at the
> > latest.
>
> > --Ed
> > "Hello, Android" - now in 7th beta
> >http://www.pragprog.com/titles/eband/hello-android
>
> > On Oct 22, 4:25 pm, atrus123 <[EMAIL PROTECTED]> wrote:
>
> >> Another thing I was wondering if it would be possible to simply start
> >> charging for the app once that becomes an option.  So we'd post our
> >> stuff now... free... and then go in and edit the price later on.  It
> >> might be a good option; by then we'd have feedback, and any popularity
> >> might drive future revenue.
>
> >> I'd love to hear from a Google employee about how they expect this to
> >> work.
>
> >> On Oct 22, 4:07 pm, cyntacks <[EMAIL PROTECTED]> wrote:
>
> >>> Hi Al,
>
> >>> Great stuuf, to be honest I'm not as adept at licensing as I should
> >>> be, given my job description and all! But there is def. a need for
> >>> licensing of some sort. I'm really surprised we have to wait until Q1
> >>> (which, as we all know could mean as late as March 31!). It just
> >>> really puts a damper on the whole thing and is going to create
> >>> headaches for most of us.
>
> >>> Time-to-Market is huge in this industry, and those of us who worked
> >>> very long days for too long toiling in the dark will not be able to
> >>> benefit (read "$") from the vacuum created when the new store goes
> >>> live on Monday. Just a shame, that's all... But then again, I guess we
> >>> could use the opportunity to perfect our products, or create more
> >>> apps.
>
> >>> Keep on coding, and def. let me know about the licensing idea, very
> >>> interested.
>
> >>> Kevin
>
> >>> On Oct 22, 3:57 pm, Al Sutton <[EMAIL PROTECTED]> wrote:
>
>  Hi Kevin,
>
>  I think you'll end up with two apps initially. I'm looking at working on
>  a licensing solution because there seems to be a need. Do you have any
>  tips as to what you'd like to see?
>
>  Al.
>
>  cyntacks wrote:
>
> > Hi Al,
>
> > I guess that is the question. Does Android support this type of
> > transaction (i.e. "lite" version)? I don't recall seeing anything in
> > the API about this. Of course I can just disable parts of the app, but
> > how would the user "upgrade" to the full version?
>
> > Am I making to much out of this, will it all make sense come Monday
> > morning?
>
> > Kevin
>
> > On Oct 22, 3:44 pm, Al Sutton <[EMAIL PROTECTED]> wrote:
>
> >> Can you not ship a cut down "lite" version with an option to pay for a
> >> fuller version?
>
> >> Al.
>
> >> atrus123 wrote:
>
> >>> I'm disappointed that we won't be able to charge until next quarter,
> >>> and it does put a slight dent in my plans.  I guess I'll just sigh and
> >>> deploy.
>
> >>> On Oct 22, 1:56 pm, cyntacks <[EMAIL PROTECTED]> wrote:
>
>  Ok, so the Market Place will be live on Monday, AWESOME! AWESOME!
>  AWESOME!
>
>  But here is a question for all you developers like us who are hoping
>  to make some revenue off months of hard work.
>
>  Does the API currently support a way to make our applications "trial
>  software"? That is, making them free until "March 1st" or some other
>  date, at which time the user will have to pay?
>
>  Obviously getting on the phone and receiving user reviews is 
>  extremely
>  im

[android-developers] Custom view - canvas height incorrect?

2008-10-23 Thread bw

To simply debugging of my custom View, I'm trying to draw a border
around it so I can see its exact size/position.
The left and right sides of the border draw correctly, but the top and
bottom end up outside the screen by about 50 pixels.
My guess is that canvas.getHeight() isn't accounting for the
notification bar at the top. What am I doing wrong?

Here's my code:

protected void onDraw(Canvas canvas)
{
super.onDraw(canvas);

Log.w("", "canvas bounds:" + canvas.getClipBounds() + ", width/
height: " + canvas.getWidth() + ", " + canvas.getHeight());


//draw border
canvas.drawLine(0, 0, canvas.getWidth(), 0, mBorderPaint);
canvas.drawLine(canvas.getWidth(), 0, canvas.getWidth(),
canvas.getHeight(), mBorderPaint);
canvas.drawLine(canvas.getWidth(), canvas.getHeight(), 0,
canvas.getHeight(), mBorderPaint);
canvas.drawLine(0, 0, 0, canvas.getHeight(), mBorderPaint);
}


Here's the output of the log statement:

10-24 02:01:35.488: WARN/(1300): onDraw called: canvas bounds:Rect(0,
0, 320, 430), width/height: 320, 480




--~--~-~--~~~---~--~~
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] Is BrowserCallback missing in my SDK or does it not exist?

2008-10-23 Thread Obormot

Hi, guys.

I apologize for the rather dumb question.
I'm trying to use WebView with the BrowserCallback to handle URL
loading.
I see tons of examples and documentation on the internet, but I don't
see this class in my SDK.
I tried to find out whether this is newest addition or it's been
removed, but no luck so far.
So I decided to ask you, guys.

I'm using the SDK from the following archive:
android-sdk-windows-1.0_r1.zip
and it doesn't have that class.
There's something with similar API called CallbackProxy, but it's
package local and not used in public WebView API.

Thank you in advance.

Sincerely,
  Andriy Trubka.

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

2008-10-23 Thread hyc

So I just got a shiny new G1 yesterday. Much to my disappointment I
found that its wifi menu only supports WPA-PSK, while I need WPA-EAP/
PEAP support. I see from the recent source code release that the
freeware wpa_supplicant is underneath all this, and that project
supports EAP etc. so why is that functionality missing from the UI?

Next question is, what would it take to fix this and enable the
support in the UI?

--~--~-~--~~~---~--~~
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: eclipse debug keystore and google maps api key problem

2008-10-23 Thread shrisha

Hmm.. So, there's no easy way to both debug and release with the same
XML Layout files?  I understand the need for separate keystores (and
therefore map keys); but, I was hoping ADT and/or the emulator would
somehow take the map key as a command line or system parameter.

This just makes the release process more error-prone, no?

Cheers,
Shrisha

On Oct 23, 1:23 pm, "Justin (Google Employee)" <[EMAIL PROTECTED]>
wrote:
> Also, if you wanted to use a differentkeystore, you would need to use
> the same passwords for thatkeystoreand key. The value that the
> Eclipse plugin uses to access the store is hard coded.
>
> Cheers,
> Justin
> Android Team @ Google
>
> On Oct 23, 11:37 am, "Xavier Ducrohet" <[EMAIL PROTECTED]> wrote:
>
> > Hi Dave,
>
> > the password is android for both thekeystoreand the key.
>
> > More information about getting the MD5 fingerprint is 
> > here:http://code.google.com/android/toolbox/apis/mapkey.html#getfingerprint
>
> > It shows the full command line for the debug key.
>
> > Xav
>
> > On Wed, Oct 22, 2008 at 9:24 PM, Dave <[EMAIL PROTECTED]> wrote:
>
> > > Maybe I'm being stupid, but I cant seem to figure this out.  I want
> > > eclipse to generate a debug version of my app signed with a custom
> > >keystorethat is associated with my google maps api key so it works
> > > now that the key is required.  I created an api key from mykeystore,
> > > added it to theMapView,  and set the Preferences->Android->Build-
> > >>Custom debugkeystoreto point to mykeystore.  I was assuming this
> > > would use mykeystorerather than the default,  but it seems to have
> > > no effect.  I can't generate a google maps api key from the default
> > > debugkeystoresince I don't know the password, so I cant generate a
> > > key from that.  So how are you supposed to do this?

--~--~-~--~~~---~--~~
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] Can Someone develop a program that...

2008-10-23 Thread KKing

Hey i know you guys are hard at work making new apps but i would like
to see an app that lets you text with the touch screen, What i mean by
that is being able to use the dialer letters to send text message
rather then open the slide out keyboard all the time...thanks and
please email me if any progress is made...i will be looking

--~--~-~--~~~---~--~~
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] Is there OMA DM and FOTA in Android source?

2008-10-23 Thread [EMAIL PROTECTED]

Hi

Is there OMA DM and FOTA in Android source?
I found there are some source codes that are relative withe FOTA.
The list of source files
//device/java/android/android/server/checkin/UpdateReceiver.java

But FOTA download is triggered by
"android.server.checkin.FOTA_UPDATE" intent. And I didn't find which
code  send the intend "android.server.checkin.FOTA_UPDATE".
 It seems there is google "checkin" server to provision the
setting and update software.
 Google won't support OMA DM protocol.
 Is it right?


Jack Pan

--~--~-~--~~~---~--~~
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: repo behind proxy

2008-10-23 Thread [EMAIL PROTECTED]

Hi  Matthieu

   Thanks. It is working fine.

Jack Pan

On Oct 23, 10:59 pm, mpoullet <[EMAIL PROTECTED]> wrote:
> Hi,
>
> To use GIT behind a proxy, have a look 
> at:http://www.aptgetupdate.de/2007/07/27/git-hinterm-proxy-nutzen/
>
> Basically the steps are:
> 1 - sudo apt-get install socket
> 2 - in your home directory, put a shell script called "proxy-cmd.sh"
> containing (replace YOUR_PROXY and YOUR_PROXY_PORT with your own proxy
> parameters):
> #! /bin/bash
> (echo "CONNECT $1:$2 HTTP/1.0"; echo; cat ) | socket YOUR_PROXY
> YOUR_PROXY_PORT | (read a; read a; cat )
> 3 - chmod +x proxy-cmd.sh
> 4 - export GIT_PROXY_COMMAND=/proxy-cmd.sh
>
> Enjoy,
> Matthieu
>
> PS: you can export GIT_PROXY_COMMAND in your ~/.bashrc file to make
> this permanent
>
> On 23 Okt., 08:56, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
> wrote:
>
>
>
> > Hi all
>
> >    Who know how to use repo bebind proxy?
> >    My computer shall access Internet through a proxy.
> >    So I always got a error when I run
> >    "repo init -u git://android.git.kernel.org/platform/manifest.git"
>
> > Jack- 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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] album art in included music player

2008-10-23 Thread John

Hey guys,

This isn't much of a developer question, so I hope I'm not posting in
the wrong place.

Does anyone know how to load album art into the phone? More
specifically, how can we associate songs to a particular image?

(Side note: the music player downloaded what appears to be a corrupt
image for one of my albums. Has this happened to anyone else?)

Thanks!

John
--~--~-~--~~~---~--~~
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: About GPS Support on Android

2008-10-23 Thread nkijak

Did you read the "how to test location services" section of the
documentation? It's pretty easy to find.

On Oct 23, 3:56 pm, "Mayank Rana" <[EMAIL PROTECTED]> wrote:
> Hi All,
>
> I have couple of things to clarify:
>
> 1. What are the GPS Applications currently part of Android ?
>
> 2. As on Emulator , I am not able to run maps applications as there is no
> GPS Driver and hardware connected. How can I use google maps on emulator ?
>
> 3. Providing GPS HAL interface gps_get_hardware_interface will be sufficient
> to connect GPS Drive with Application Framework and upper application in
> Android ?
>
> 4. Is there any basic test application for GPS on Android ? not necessary
> maps kind of application.
>
> Any more information related to GPS on Android is welcome.
>
> Thanks.
>
> Regards,
> _-_Mayank Rana_-_
--~--~-~--~~~---~--~~
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: Database on a G1

2008-10-23 Thread ScottG

Thanks much for the suggestion, Mark.

A method that works during development when you want to test with
various populated databases
is to cd into /sqlite_stmt_journals and build your database there (or
in a subdirectory, of course).

sqlite3 won't run on the G1 so you have to build your database (using
sqlite3 -init foo.sql db, for example)
in the emulator and then move the resulting database to the G1.  Most
amazingly it works.

Cheers, Scott
--~--~-~--~~~---~--~~
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: Database on a G1

2008-10-23 Thread Mark Murphy

ScottG wrote:
> Anybody have any recommendations on building a SQLite database on a G1
> phone?  On the emulator one can simply go to /data/data/.../databases
> and build the database that your application needs.
> 
> Of course it doesn't have to be here but I can't find anywhere on the
> G1 that I have write permission.
> 
> Is there a recommended place that one can and should build an
> application's database on the G1?

You should let Android build it and let Android put it in its proper place.

If you look at the NotePad example in the SDK, you will see how it uses 
DatabaseHelper to run the DDL necessary to create the notes table. While 
the database name (note_pad.db) is specified, it does not specify a path 
-- Android handles that for you.

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

Android Training on the Ranch! -- Mar 16-20, 2009
http://www.bignerdranch.com/schedule.shtml

--~--~-~--~~~---~--~~
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] Database on a G1

2008-10-23 Thread ScottG

Anybody have any recommendations on building a SQLite database on a G1
phone?  On the emulator one can simply go to /data/data/.../databases
and build the database that your application needs.

Of course it doesn't have to be here but I can't find anywhere on the
G1 that I have write permission.

Is there a recommended place that one can and should build an
application's database on the G1?

Thanks for any insight.

Cheers, Scott
--~--~-~--~~~---~--~~
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: Content observers for SMS mailboxes

2008-10-23 Thread Evan JIANG
The sms provider's source code is in
ROOT_OF_ANDROID_SOURCE_CODE/packages/providers/TelephonyProvider/SmsProvider.java
After had a look at that, I found you're right. It only send UriChange
notification on 3 Uris. I'm not sure if it's a bug.
You can register your content observer on "content://sms". After get the
notifyChange, query the latest SMSes, and check the sent flag to judge is it
a sent sms or received sms.

Regards,
Evan JIANG

On Fri, Oct 24, 2008 at 8:22 AM, denismo <[EMAIL PROTECTED]> wrote:

>
> Hi,
>
> I've spent several days trying to figure out how to listen for sent
> SMS. One thing that I tried is content observers on content://sms/sent.
> That didn't work.  Then I tried content://sms/inbox. That didn't work
> either.
>
> In my scenarios, I was doing two things:
> - sending SMS to emulator using telnet "sms send   text>". This generates notification in the notification area, and you
> can read the sms later, but content observer on content://sms/inbox is
> not invoked
> - sending SMS from one emulator to another. I had one on 5554, another
> on 5556. I had content observers on both on content://sms/inbox and
> content://sms/sent and I was sending sms from 5554 to 5556 using
> sendTextMessage("5556", null, ...). I saw SMS being received by 5556,
> there was notification and I could read the SMS on 5556. None of the
> observers were invoked.
>
> So now I start wondering if content observers are at all support for
> SMS content provider?  The same content observers, when installed on
> content://contacts/people, are invoked fine when I add a new contact,
> so I know I'm using the right API and use it correctly.
>
> Any clues? Anyone has any examples of listening on these content
> providers? Or listening on different content providers which do give
> you information about sent SMS?
>
> Thanks.
>
> Denis
> >
>

--~--~-~--~~~---~--~~
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] Content observers for SMS mailboxes

2008-10-23 Thread denismo

Hi,

I've spent several days trying to figure out how to listen for sent
SMS. One thing that I tried is content observers on content://sms/sent.
That didn't work.  Then I tried content://sms/inbox. That didn't work
either.

In my scenarios, I was doing two things:
- sending SMS to emulator using telnet "sms send  ". This generates notification in the notification area, and you
can read the sms later, but content observer on content://sms/inbox is
not invoked
- sending SMS from one emulator to another. I had one on 5554, another
on 5556. I had content observers on both on content://sms/inbox and
content://sms/sent and I was sending sms from 5554 to 5556 using
sendTextMessage("5556", null, ...). I saw SMS being received by 5556,
there was notification and I could read the SMS on 5556. None of the
observers were invoked.

So now I start wondering if content observers are at all support for
SMS content provider?  The same content observers, when installed on
content://contacts/people, are invoked fine when I add a new contact,
so I know I'm using the right API and use it correctly.

Any clues? Anyone has any examples of listening on these content
providers? Or listening on different content providers which do give
you information about sent SMS?

Thanks.

Denis
--~--~-~--~~~---~--~~
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: Installing large .apk file to Android

2008-10-23 Thread Steve Oldmeadow

On Oct 24, 1:54 am, "Justin (Google Employee)" <[EMAIL PROTECTED]>
wrote:
>
> Remember, mobile networks are slow, and how many of your users with
> want to wait for a 10MB application to download?
>

Based on the iPhone App Store's sales lots of people want apps greater
than 10Mb - as an example Spore Origins is 80Mb.  Apple's approach of
forcing > 10 Mb downloads to be done over WiFi seems reasonable to
me.  The bulk of these big games is media assets like music and video
so downloading those assets and storing them on the SD card is
feasible, however, I'd like to see Android offer better support for
this.  For example allow an associated directory to be established on
the SD card so that when the user deletes or backs up the application
the associated directory on the SD card is also deleted or backed up.
--~--~-~--~~~---~--~~
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: Windows driver for HTC G1 phone

2008-10-23 Thread Jonathan Herriott

Hi,

The "Found New Hardware Wizard" is unable to detect the drivers after
I already specified exactly which directory to look.  Has anyone else
run into these issues?

Thanks

On Oct 22, 1:32 am, Beau Gunderson <[EMAIL PROTECTED]> wrote:
> Here's the link from the other thread on this topic:
>
> http://dl.google.com/android/android_usb_windows.zip
>
> Beau
>
> On Oct 17, 11:13 am, RonS <[EMAIL PROTECTED]> wrote:
>
>
>
> > Any idea where can I get the USB driver so that adb will see the G1?
>
> > RonS
--~--~-~--~~~---~--~~
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] platform updates on devices

2008-10-23 Thread Declan Shanaghy
What is the general consensus from handset makers about platform updates to
released devices?

Will this happen? It seems to me it would be necessary to stay competitive.

 

Is there any sort of API that can be used by apps to figure out which
version of the platform they are running on?

 

 


--~--~-~--~~~---~--~~
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: Installing large .apk file to Android

2008-10-23 Thread Mark Murphy

Timmah wrote:
> 2) Otherwise, packaging an actual app and its data in separate
> packages will make installation a confusing for a user 2-step process.
> Maybe it's possible to ship one zip file and make the android's
> installer do the work of installing an app on the phone and app's data
> on SD card ?

Why not have the application lazy-fetch the data off the Internet when 
it is first run?

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

Android Training on the Ranch! -- Mar 16-20, 2009
http://www.bignerdranch.com/schedule.shtml

--~--~-~--~~~---~--~~
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: Getting user's phone number

2008-10-23 Thread Mark Murphy

Danny wrote:
> I am trying to get the user's phone number to use as UID and it seems
> to work in the emulator but not in the actual device, is it a bug or
> am I doing something wrong? My piece of code is here...
> 
>   TelephonyManager mTelephonyMgr = 
> (TelephonyManager)
> getSystemService(Context.TELEPHONY_SERVICE);
>   String phoneNum = 
> mTelephonyMgr.getLine1Number();

Are you sure you have the proper permission? I would think you have to 
if it works in the emulator, but I figured I'd mention it.

BTW, if you want a device ID, Settings.System.ANDROID_ID is a unique 
value on devices, but null in emulators.

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

--~--~-~--~~~---~--~~
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] Getting user's phone number

2008-10-23 Thread Danny

I am trying to get the user's phone number to use as UID and it seems
to work in the emulator but not in the actual device, is it a bug or
am I doing something wrong? My piece of code is here...

TelephonyManager mTelephonyMgr = 
(TelephonyManager)
getSystemService(Context.TELEPHONY_SERVICE);
String phoneNum = 
mTelephonyMgr.getLine1Number();
--~--~-~--~~~---~--~~
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] Restoration of SMS reading capability.

2008-10-23 Thread tomgibara

Will the capability for applications to observe incoming SMS messages
be restored in future releases?

(There's a permission, but no public API which is incongruous)

I am already aware that the Intents of former SDK releases continue to
work but I'm interested in whether there is a commitment to support
equivalent functionality in the future.

Tom.


--~--~-~--~~~---~--~~
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: give-up screen (going to sleep)

2008-10-23 Thread Dex Wood

I have observed that when using the music application, the music
continues to play when the device appears to go to sleep.  Does this
application use a wake lock?

Thank you for your reply

On Oct 23, 3:26 pm, "Justin (Google Employee)" <[EMAIL PROTECTED]>
wrote:
> When the screen goes off, the device goes to sleep. This means that
> the main CPU shuts off. You can prevent this by holding a wakelock.
> WARNING: Holding a wake lock for a substantial period of time will
> have a terrible effect on battery life. Android achieves better
> battery life by doing as little as possible and sleeping as much as
> possible. Please consider the best interests of your users when doing
> things that will adversely effect their experience.
>
> Cheers,
> Justin
> Android Team @ Google
>
> On Oct 23, 1:21 pm, Dex Wood <[EMAIL PROTECTED]> wrote:
>
> > I am developing an application that uses the accelerometer and/or gps
> > inside of a service.  It will be in use while the service runs in the
> > background until the user terminates the service.  I am using usb
> > debugging on the device and I noticed in logcat it is saying give-up
> > screen and my service stops getting input from the accelerometer.  Is
> > there a way to have a service run while the phone is idle for a period
> > of time without having to disable the key-lock?
--~--~-~--~~~---~--~~
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: Running Google's IM.apk, built from source

2008-10-23 Thread [EMAIL PROTECTED]

I should add that I have since added that com.android.im.plugin.jar
file to the /system/framework/ folder in a custom system.img for the
Android emulator, but that didn't help either.

On Oct 23, 4:43 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> Hello all,
>
> Has anyone been able to build Android from source and successfully
> install the produced ImProvider.apk and IM.apk applications in their
> SDK emulator and run them?  I am able to install ImProvider.apk, but
> when I try to install IM.apk, adb reports the
> INSTALL_FAILED_MISSING_SHARED_LIBRARY error and logcat reports:
>
>      "Package com.android.im requires unavailable shared library
> com.android.im.plugin; ignoring!"
>
> Building Android from source produces the com.android.im.plugin.jar
> file, but I am not sure where to put it nor how to configure it in
> order for it to be correctly utilized.  I placed this file in the
> android/tools/lib/ folder, where many other .JARs reside, but this
> didn't help a bit.
>
> To generalize on my issue, does anyone understand how the Android
> runtime "plugin" system works?  Is there documentation on it
> somewhere?  Does someone know the answer that will resolve my
> issue?  :-)
>
> Thanks!
> Nathan Morse
--~--~-~--~~~---~--~~
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: Example: upload files to php from android

2008-10-23 Thread De San Nicolas Jean Philippe
hello

just a question (for the moment -:))

you set the dependencies in your classpath in your Android project?

thank's


2008/10/21 octagon <[EMAIL PROTECTED]>

>
> This is a way for android to POST a file upload to a php script. I had
> a bit of trouble figuring out the ins and outs of the http client
> situation, but this is what works for me (hope someone finds it
> helpful):
>
> Notes:
>
> Expect/continue handshaking needed to be disabled to avoid getting 417
> errors from lighttpd. Doesn't work without an sdcard yet, as there is
> no Content-Length header associated with uploading an OutputStream as
> opposed to a File object, and writing to files is only allowed on the
> sdcard (as far as I know, please correct me if there is a way to do
> this).
>
> Dependencies:
>
> apache-mime4j-0.5.jar
> log4j-zeroconf.jar
> httpmime-4.0-beta1.jar
>
> upload.php:
>
> 
> 
> Choose a file to upload:  >
> 
> 
>   $to_file = "tmp/" . basename($_FILES['uploadedfile']['name']);
>  $from_file = $_FILES['uploadedfile']['tmp_name'];
>
>  if (move_uploaded_file($from_file, $to_file)) {
>echo "Successful upload";
> ?>
>  
>   } else {
>echo "Unsuccessful upload";
>  }
> ?>
>
> DemoActivity.java:
>
> import android.app.Activity;
> import android.os.Bundle;
> import android.util.Log;
> import android.view.View;
> import android.view.View.OnClickListener;
> import android.widget.Button;
> import android.widget.TextView;
>
> import org.apache.http.client.ClientProtocolException;
> import org.apache.http.client.HttpClient;
> import org.apache.http.client.methods.HttpEntityEnclosingRequestBase;
> import org.apache.http.client.methods.HttpPost;
> import org.apache.http.client.methods.HttpUriRequest;
> import org.apache.http.entity.mime.MultipartEntity;
> import org.apache.http.entity.mime.content.FileBody;
> import org.apache.http.impl.client.DefaultHttpClient;
>
> import java.io.BufferedReader;
> import java.io.File;
> import java.io.FileReader;
> import java.io.IOException;
> import java.io.PrintWriter;
> import java.util.Date;
>
> public class DemoActivity extends Activity {
>
>  /** Called when the activity is first created. */
>@Override
>public void onCreate(Bundle savedInstanceState) {
>super.onCreate(savedInstanceState);
>setContentView(R.layout.main);
>
>/*
> * Make a simple view with a button and a bit of text. Click
> the button to upload the file to the
> * server. The file will be saved to tmp/test.txt (relative to
> your php script) and it should contain
> * the current time and date.
> */
>final TextView tmp = (TextView) findViewById(R.id.textView1);
>tmp.setText("Hi! Click the button!");
>
>Button b = (Button) findViewById(R.id.button1);
>b.setOnClickListener(new OnClickListener() {
>public void onClick(View v) {
>File f = new File("/sdcard/test.txt");
>try {
>f.createNewFile();
>Date d = new Date();
>PrintWriter writer = new
> PrintWriter(f);
>writer.println(d.toString());
>writer.close();
>
>HttpClient client = new
> DefaultHttpClient();
>httpPostFileUpload(client,
> "/sdcard/test.txt", "http://
> ubergibson.com/~micha/work/oculi/upload.php",
> "uploadedfile");
>} catch (Exception e) {
>// TODO Auto-generated catch block
>e.printStackTrace();
>}
>}
>});
>}
>
>/**
> * Upload a file using a POST request.
> *
> * @param client the HTTP client object
> * @param filePath local file location
> * @param uploadUri URI to POST to
> * @param inputNameAttr the name attribute of the file input
> element in
> * the html form
> * @throws IOException
> * @throws ClientProtocolException
> */
>public void httpPostFileUpload(
>HttpClient client,
>String filePath,
>String uploadUri,
>String inputNameAttr) throws ClientProtocolException,
> IOException {
>
>HttpUriRequest  request = new HttpPost(uploadUri);
>MultipartEntity form= new MultipartEntity();
>
>// disable expect-continue handshake (lighttpd doesn't support
> it)
>client.getParams().setBooleanParameter(
>"http.protocol.expect-continue", false);
>
>form.addPart(inputNameAttr, new FileBody(new File(filePath)));
>
>((HttpEntityEnclosingRequestBase) request).setEntity(form);
>
>try {
> 

[android-developers] Running Google's IM.apk, built from source

2008-10-23 Thread [EMAIL PROTECTED]

Hello all,

Has anyone been able to build Android from source and successfully
install the produced ImProvider.apk and IM.apk applications in their
SDK emulator and run them?  I am able to install ImProvider.apk, but
when I try to install IM.apk, adb reports the
INSTALL_FAILED_MISSING_SHARED_LIBRARY error and logcat reports:

 "Package com.android.im requires unavailable shared library
com.android.im.plugin; ignoring!"

Building Android from source produces the com.android.im.plugin.jar
file, but I am not sure where to put it nor how to configure it in
order for it to be correctly utilized.  I placed this file in the
android/tools/lib/ folder, where many other .JARs reside, but this
didn't help a bit.

To generalize on my issue, does anyone understand how the Android
runtime "plugin" system works?  Is there documentation on it
somewhere?  Does someone know the answer that will resolve my
issue?  :-)


Thanks!
Nathan Morse
--~--~-~--~~~---~--~~
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] reverse geocoder timeout?

2008-10-23 Thread [EMAIL PROTECTED]

This seems to happen quite often when I attempt a reverse geocode, and
since I'm doing this in a background thread, is there anyway to
increase the timeout value?

W/AndroidHttpConnectionFactory(   58): IOException in HttpClient:
Socket is not connected
E/InitLocationListener( 8156): Reverse geocoding failed
E/InitLocationListener( 8156): java.io.IOException: Unable to parse
response from server
E/InitLocationListener( 8156):  at
android.location.Geocoder.getFromLocation(Geocoder.java:120)
E/InitLocationListener( 8156):  at
com.biggu.shopsavvy.data.InitLocationListener.getZipFromLocation(InitLocationListener.java:
249)
E/InitLocationListener( 8156):  at
com.biggu.shopsavvy.data.InitLocationListener.access
$20(InitLocationListener.java:242)
E/InitLocationListener( 8156):  at
com.biggu.shopsavvy.data.InitLocationListener
$2.run(InitLocationListener.java:270)
E/InitLocationListener( 8156):  at java.lang.Thread.run(Thread.java:
935)

--~--~-~--~~~---~--~~
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] What is "ANDROID_PRODUCT_OUT" ?

2008-10-23 Thread Wanted unique nickname

While trying to get adb to recognize my G1 on Suse Linux, I took a
closer look at some of the command arguments.  Can someone please
explain the meaning of "ANDROID_PRODUCT_OUT" and what it specifies?
Is the product name totally arbitrary, or is it supposed to be
specific to the g1 like "HTC Android Phone"?

Suppose my G1 device is linked to /dev/android.  Can I use the
ANDROID_PRODUCT_OUT or -p argument to tell adb where it can look for
the device?

adb -p /dev/android

-Marc
--~--~-~--~~~---~--~~
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: Found the problem with the getFromLocationName method

2008-10-23 Thread plusminus

I think you found it!
Looks pretty obvious because there is neither a reference to that
Parameter-ArrayList nor sth is returned.

On 21 Okt., 16:24, Rafael Fernandes <[EMAIL PROTECTED]> wrote:
> Hi all,
> after the release of android's source code, I believe found the
> problem with the method:
> public ListgetFromLocationName(String locationName, int
> maxResults,
>          double lowerLeftLatitude, double lowerLeftLongitude,
>          double upperRightLatitude, double upperRightLongitude) throws
> IOException;
>
> As I and some other fellas reported in other threads, this method
> always return empty results and the reason is on the line 231, is
> passing a object to the service, which fills the results but the
> method returns a different object ...
>
> I believe this is the issue, can anybody test this and let me know the
> results?
> I'm under windows here, so I can't even download the thing and fix
> myself
>
> try {
>  228             ArrayList result = new ArrayList();
>  229             String ex =
> mService.getFromLocationName(locationName,
>  230                 lowerLeftLatitude, lowerLeftLongitude,
> upperRightLatitude, upperRightLongitude,
>  231                 maxResults, mLanguage, mCountry, mVariant,
> mAppName, new ArrayList());
>  232             if (ex != null) {
>  233                 throw new IOException(ex);
>  234             } else {
>  235                 return result;
>  236             }
>  237         }
>
> thanks,
> Rafael Fernandes
--~--~-~--~~~---~--~~
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: Can I record an audio file via MediaRecorder on the simulator which based on android-sdk-windows-1.0_r1?

2008-10-23 Thread De San Nicolas Jean Philippe
yes you can. I can't help you now I've no time but you can record with the
emulator I've done it

2008/10/23 Mobile Diva <[EMAIL PROTECTED]>

>
> I've spent several hours trying to record audio on android-sdk-
> windows-1.0_r1 and emulator, and surfing for information that would
> tell me how to do it, or that it can't be done.  Posts like this one
> suggest it can be done.  When I run the code in this post under the
> Eclipse debuger and the emulator, I get a runtime exception:
>
>   10-23 17:58:18.001: ERROR/AMS(196): java.lang.RuntimeException:
> start failed.
>   10-23 17:58:18.001: ERROR/AMS(196): at
> android.media.MediaRecorder.start(Native Method)
>
> I have included the RECORD_AUDIO permission in the Androidmanifest.xml
> file, as Lurky suggested on Oct.9
>
> I've also found information that says one can not record audio using
> the emulator.  For example on this page
>   http://code.google.com/android/toolbox/apis/media.html page,
> contains the following statement
>  "While the emulator obviously doesn't have hardware to capture and
> record audio and video ..."
> While is statement is not true in the real world sense (for example my
> laptop PC has a bulit-in microphone that many shareware applications
> can use), perhaps the Android emulator is not able to use it?  Can
> someone from Google confirm or deny this statement?
>
> Sigh... I've also noted that the sample code from the web page whose
> URL is above does not even compile in SDK v.1.  This is unfortunate,
> given the scarcity of information about this promising platform.  If
> anyone has a working example of recording audio (emulator or actual
> device), please post it here!
>
> For reference, my code (that get the ruintime exception shown above)
> is:
>recorder = new MediaRecorder();
>recorder.setAudioSource(MediaRecorder.AudioSource.MIC);
>recorder.setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP);
>recorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB);
>recorder.setOutputFile("AudioOut.3gp");
>recorder.prepare();
>recorder.start();   // The runtime exception is throw here.
> and my permission is:
> uses-permission>
>
> Thanks in advance, Jim
>
>
> On Oct 9, 11:15 pm, "[EMAIL PROTECTED]"  [EMAIL PROTECTED]> wrote:
> > You may do the following two points before therecord.
> >
> > 1. set the permission for RECORD_AUDIO in Androidmanifest.xml.
> > 2. simulate the sdcard.
> >
> > Theaudiofile should be stored in the sdcard.
> >
> > On Oct 9, 4:45 pm, Lurky <[EMAIL PROTECTED]> wrote:
> >
> > > Hi, All
> > > I needrecordvoice on the simulator and playback it. I wrot my
> > > code according the example in the documents:
> >
> > > A common case of using MediaRecorder torecordaudioworks as
> > > follows:
> >
> > > MediaRecorder recorder = new MediaRecorder();
> > >  recorder.setAudioSource(MediaRecorder.AudioSource.MIC);
> > >  recorder.setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP);
> > >  recorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB);
> > >  recorder.setOutputFile(PATH_NAME);
> > >  recorder.prepare();
> > >  recorder.start();   // Recording is now started
> > >  ...
> > >  recorder.stop();
> > >  recorder.reset();   // You can reuse the object by going back to
> > > setAudioSource() step
> > >  recorder.release(); // Now the object cannot be reused
> >
> > >  My code created theaudiofile, but there isn't anyaudiodata in
> > > it.
> > >  Would you give me a completed demo code for how to use
> > > MediaRecorder ?
> >
> > > 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: obtaining an IPhone.Stub

2008-10-23 Thread hackbod

Yes, you place an outgoing call by starting an activity with the CALL
intent.  There is nothing in the background catching this -- it is
just launching the call activity (which then talks with the telephony
system, sends broadcasts, etc to finally get in to a call).

This is actually all the old IPhone API did, was call startActivity()
for you.

On Oct 23, 1:34 pm, dreamerBoy <[EMAIL PROTECTED]> wrote:
> Yeah, saw that.  If you read it carefully, there's no way to place an
> outgoing call.
>
> The damn API changed...
>
> I believe the answer I was looking for was
>
> http://code.google.com/android/reference/android/content/Intent.html
>
> ACTION_CALL
>
> I'm still a bit unclear on the entire picture.  I guess the receiver
> here lives in the background and is launched automagically on startup
> by Android (sort of like a system daemon on unix)?  Upon receiving
> your intent, it actually triggers the phone to initiate a call?
>
> Is there some way to list all of these background services?
>
> Can anyone help fill out the picture?
>
> Thanks -
>
> Paul
>
> On Oct 22, 7:20 pm, hackbod <[EMAIL PROTECTED]> wrote:
>
> > These are not public APIs.  The telephony APIs are here:
>
> >http://code.google.com/android/reference/android/telephony/package-su...
>
> > On Oct 22, 1:38 pm, dreamerBoy <[EMAIL PROTECTED]> wrote:
>
> > > Hi -
>
> > > I need to be able to place outgoing calls and interact with IPhone.
> > > This apparently, ~was~ the way to get it:
>
> > > private static IPhone getPhoneInterface() throws DeadObjectException {
> > >   IServiceManager sm = ServiceManagerNative.getDefault();
> > >   IPhone phoneService =
> > > IPhone.Stub.asInterface(sm.getService("phone"));
> > >   return phoneService;
>
> > > }
>
> > > However, my eclipse project does not accept:
>
> > > import android.os.ServiceManagerNative;
>
> > > and there is no longer a ServiceManagerNative class in the android
> > > javadoc.
>
> > > The API must have changed.  Does anyone know the new way to do this?
>
> > > Much obliged.
>
> > > Paul
--~--~-~--~~~---~--~~
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: onActivityResult failing to fire

2008-10-23 Thread Alvin Yates

Turns out it was simple after all.  Was using a negative number for
USER_CREATE.

On Oct 23, 10:14 am, Alvin Yates <[EMAIL PROTECTED]> wrote:
> In my case, there isn't actually a data exchange at all.  This is
> actually setting my app's Preferences.  This is the relevant code:
>
>  Activity A
> // Button Listeners
>         accountButton.setOnClickListener(new View.OnClickListener() {
>                 public void onClick(View view) {
>                         Intent i = new Intent(A.this, B.class);
>                         startActivityForResult(i, App.USER_CREATE);
>                 }});
>
>  Activity B
>
> @Override
> protected voidonActivityResult(int request, int result, Intent i){
>         super.onActivityResult(request, result, i);
>         Log.i("B","Returning from User Create");   // Note, this line
> is NEVER seen
>
>         // Just returned from creating a user
>         if(request == App.USER_CREATE && result == RESULT_OK){
>                 // User has successfully registered, go back to main
> screen
>                 setResult(RESULT_OK);
>                 finish();
>         }
>
> }
>
> // Button for B
> signupButton.setOnClickListener(new View.OnClickListener() {
>         public void onClick(View view) {
>                 Intent nextScreen = new Intent(B.this, C.class);
>                 startActivityForResult(nextScreen, App.USER_CREATE);
>         }});
>
> // Activity C
>
> // Button in C
> signupButton.setOnClickListener(new View.OnClickListener() {
>         public void onClick(View view) {
>                 setResult(RESULT_OK);
>                 finish();
>         }});
>
> On Oct 23, 12:20 am, Saltedfish <[EMAIL PROTECTED]> wrote:
>
> > by your means ,I make these codes:
> > if you want to pass a intent data from C to A,you  should first set
> > the intent data as the result for B.
> > then B set the intent data as reasult for A in B'sonActivityResult()
> > function.
> > like this:
>
> > //C Activity:
> > //button press for pass intent data to A
> > Intent ctoadata;
> > setResult(RESULT_OK , ctoadata);
> > finish();
>
> > //B Activity:
> > //receive the result from C,then pass the result to A
> > protected voidonActivityResult(int requestCode, int resultCode,
> > Intent data)
> > {
> >      if(resultCode==RESULT_OK)
> >      {
> >               setResult(RESULT_OK , data);
> >               finish();
>
> >      }
>
> > }
>
> > //A Acitivity
> > //receive the result from B, now the data equals C.ctoadata intent
> > data.
> > protected voidonActivityResult(int requestCode, int resultCode,
> > Intent data)
> > {
> >      if(resultCode==RESULT_OK)
> >      {
> >               //data==C.ctoadata
> >              //do other.
> >      }
>
> > }
>
> > if your codes like these,it should be successful.
>
>
--~--~-~--~~~---~--~~
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: eclipse debug keystore and google maps api key problem

2008-10-23 Thread [EMAIL PROTECTED]

The custom debug keystore preferences is just so that you can access a
debug keystore at a different location.
It has to be a store automatically generated by Eclipse during a
build.

It's useful if you want to put the store on a shared drive so that
multiple developers in the same team all use the same debug key for
instance.

Xav

On Oct 23, 7:12 am, Dave <[EMAIL PROTECTED]> wrote:
> Doh  Thanks.  But what about the "Custom debug keystore"
> preference in eclipse?  I can't find any documentation on what it
> does.  I expected eclipse to prompt me for the password once I had it
> specified and I rebuilt, but instead it seems to just be ignored.
--~--~-~--~~~---~--~~
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: My application doesn't work...

2008-10-23 Thread Yoshiyuki

Hi, Alvin, and thanks for reading this one.

You asked about the statement  and . As you
guessed, these were replaced manually. I'm sorry, these changes might
make some troubles for people who read this discussion.

On 10月24日, 午前5:24, Alvin Yates <[EMAIL PROTECTED]> wrote:
> He's compiling on OS X.  That's a Java library that he has zero
> control over.  I get the same error all the time.
>
> As far at the spontaneous death, the only thing I can point you to is:
> "emulator: ### WARNING: /etc/localtime does not point to zoneinfo-
> compatible timezone name "
>
> Also, did you manually replace  and  in the
> log, or is that straight from the log?  If it's straight from the log,
> I really have no idea what is going on there.
>
> On Oct 23, 6:16 am, Mast3rpyr0 <[EMAIL PROTECTED]> wrote:
>
> > one of the packages you include uses something that was removed. find
> > which one is using NSQuickDrawView. and dont use quickdraw anymore.
>
> > On Oct 23, 8:13 am, Yoshiyuki <[EMAIL PROTECTED]> wrote:
>
> > > I installed latest version of android and migrated my application. But
> > > my application doesn't work. After installing it, I fixed the program
> > > because there were some errors due to API changes. Then, I tried to
> > > run it, but an error was appeared. Application was not started as a
> > > matter of course. The error is below.
>
> > > [2008-10-23 20:57:45 - Calorie2] --
> > > [2008-10-23 20:57:45 - Calorie2] Android Launch!
> > > [2008-10-23 20:57:45 - Calorie2] adb is running normally.
> > > [2008-10-23 20:57:45 - Calorie2] Launching: com.gclue.android.Calorie
> > > [2008-10-23 20:57:45 - Calorie2] Automatic Target Mode: launching new
> > > emulator.
> > > [2008-10-23 20:57:45 - Calorie2] Launching a new emulator.
> > > [2008-10-23 20:57:47 - Calorie2] New emulator found: emulator-5554
> > > [2008-10-23 20:57:47 - Calorie2] Waiting for HOME
> > > ('android.process.acore') to be launched...
> > > [2008-10-23 20:57:48 - Emulator] 2008-10-23 20:57:48.113
> > > emulator[860: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.
> > > [2008-10-23 20:57:50 - Emulator] emulator: ### WARNING: /etc/localtime
> > > does not point to zoneinfo-compatible timezone name
> > > [2008-10-23 20:57:50 - Emulator]
> > > [2008-10-23 20:58:46 - Calorie2] HOME is up on device 'emulator-5554'
> > > [2008-10-23 20:58:46 - Calorie2] Uploading .apk onto device
> > > 'emulator-5554'
> > > [2008-10-23 20:58:46 - Calorie2] Installing .apk...
> > > [2008-10-23 20:58:52 - Calorie2] Success!
> > > [2008-10-23 20:58:52 - Calorie2] Starting activity  on
> > > device
> > > [2008-10-23 20:58:55 - Calorie2] ActivityManager: Starting: Intent
> > > { comp={package name} }
> > > [2008-10-23 20:58:55 - Calorie2] ActivityManager: [1]
> > > Killed  am start -n com
>
> > > Would someone have ideas to fix it up?
>
> > > 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: obtaining an IPhone.Stub

2008-10-23 Thread dreamerBoy

Yeah, saw that.  If you read it carefully, there's no way to place an
outgoing call.

The damn API changed...

I believe the answer I was looking for was

http://code.google.com/android/reference/android/content/Intent.html

ACTION_CALL

I'm still a bit unclear on the entire picture.  I guess the receiver
here lives in the background and is launched automagically on startup
by Android (sort of like a system daemon on unix)?  Upon receiving
your intent, it actually triggers the phone to initiate a call?

Is there some way to list all of these background services?

Can anyone help fill out the picture?

Thanks -

Paul


On Oct 22, 7:20 pm, hackbod <[EMAIL PROTECTED]> wrote:
> These are not public APIs.  The telephony APIs are here:
>
> http://code.google.com/android/reference/android/telephony/package-su...
>
> On Oct 22, 1:38 pm, dreamerBoy <[EMAIL PROTECTED]> wrote:
>
> > Hi -
>
> > I need to be able to place outgoing calls and interact with IPhone.
> > This apparently, ~was~ the way to get it:
>
> > private static IPhone getPhoneInterface() throws DeadObjectException {
> >   IServiceManager sm = ServiceManagerNative.getDefault();
> >   IPhone phoneService =
> > IPhone.Stub.asInterface(sm.getService("phone"));
> >   return phoneService;
>
> > }
>
> > However, my eclipse project does not accept:
>
> > import android.os.ServiceManagerNative;
>
> > and there is no longer a ServiceManagerNative class in the android
> > javadoc.
>
> > The API must have changed.  Does anyone know the new way to do this?
>
> > Much obliged.
>
> > Paul
>
>
--~--~-~--~~~---~--~~
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: Tips for Orientation

2008-10-23 Thread ksmith44

How can you determine the current orientation?  Most of my pages
rotate just fine, but I have one page on which I actually need to do
slightly different logic based on the orientation (specifically, I
want to add additional menu options in landscape mode).  When I use
getRequestedOrientation(), I always get back a -1 (UNSPECIFIED).  It
appears as if this method only works if an orientation has been
requested by the code using setRequestedOrientation.  Is there a
better way to determine the current orientation?

BTW, thanks hackbod for the gem about ctrl-F12.  I never found that in
the documentation and had been changing the android:screenOrientation
var in my manifest file and restarting every time I wanted to test in
the alternate orientation.


--~--~-~--~~~---~--~~
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: give-up screen (going to sleep)

2008-10-23 Thread Justin (Google Employee)

When the screen goes off, the device goes to sleep. This means that
the main CPU shuts off. You can prevent this by holding a wakelock.
WARNING: Holding a wake lock for a substantial period of time will
have a terrible effect on battery life. Android achieves better
battery life by doing as little as possible and sleeping as much as
possible. Please consider the best interests of your users when doing
things that will adversely effect their experience.

Cheers,
Justin
Android Team @ Google

On Oct 23, 1:21 pm, Dex Wood <[EMAIL PROTECTED]> wrote:
> I am developing an application that uses the accelerometer and/or gps
> inside of a service.  It will be in use while the service runs in the
> background until the user terminates the service.  I am using usb
> debugging on the device and I noticed in logcat it is saying give-up
> screen and my service stops getting input from the accelerometer.  Is
> there a way to have a service run while the phone is idle for a period
> of time without having to disable the key-lock?
--~--~-~--~~~---~--~~
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: My application doesn't work...

2008-10-23 Thread Alvin Yates

He's compiling on OS X.  That's a Java library that he has zero
control over.  I get the same error all the time.

As far at the spontaneous death, the only thing I can point you to is:
"emulator: ### WARNING: /etc/localtime does not point to zoneinfo-
compatible timezone name "

Also, did you manually replace  and  in the
log, or is that straight from the log?  If it's straight from the log,
I really have no idea what is going on there.

On Oct 23, 6:16 am, Mast3rpyr0 <[EMAIL PROTECTED]> wrote:
> one of the packages you include uses something that was removed. find
> which one is using NSQuickDrawView. and dont use quickdraw anymore.
>
> On Oct 23, 8:13 am, Yoshiyuki <[EMAIL PROTECTED]> wrote:
>
> > I installed latest version of android and migrated my application. But
> > my application doesn't work. After installing it, I fixed the program
> > because there were some errors due to API changes. Then, I tried to
> > run it, but an error was appeared. Application was not started as a
> > matter of course. The error is below.
>
> > [2008-10-23 20:57:45 - Calorie2] --
> > [2008-10-23 20:57:45 - Calorie2] Android Launch!
> > [2008-10-23 20:57:45 - Calorie2] adb is running normally.
> > [2008-10-23 20:57:45 - Calorie2] Launching: com.gclue.android.Calorie
> > [2008-10-23 20:57:45 - Calorie2] Automatic Target Mode: launching new
> > emulator.
> > [2008-10-23 20:57:45 - Calorie2] Launching a new emulator.
> > [2008-10-23 20:57:47 - Calorie2] New emulator found: emulator-5554
> > [2008-10-23 20:57:47 - Calorie2] Waiting for HOME
> > ('android.process.acore') to be launched...
> > [2008-10-23 20:57:48 - Emulator] 2008-10-23 20:57:48.113
> > emulator[860: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.
> > [2008-10-23 20:57:50 - Emulator] emulator: ### WARNING: /etc/localtime
> > does not point to zoneinfo-compatible timezone name
> > [2008-10-23 20:57:50 - Emulator]
> > [2008-10-23 20:58:46 - Calorie2] HOME is up on device 'emulator-5554'
> > [2008-10-23 20:58:46 - Calorie2] Uploading .apk onto device
> > 'emulator-5554'
> > [2008-10-23 20:58:46 - Calorie2] Installing .apk...
> > [2008-10-23 20:58:52 - Calorie2] Success!
> > [2008-10-23 20:58:52 - Calorie2] Starting activity  on
> > device
> > [2008-10-23 20:58:55 - Calorie2] ActivityManager: Starting: Intent
> > { comp={package name} }
> > [2008-10-23 20:58:55 - Calorie2] ActivityManager: [1]
> > Killed                  am start -n com
>
> > Would someone have ideas to fix it up?
>
> > 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: Can I record an audio file via MediaRecorder on the simulator which based on android-sdk-windows-1.0_r1?

2008-10-23 Thread Mobile Diva

I've spent several hours trying to record audio on android-sdk-
windows-1.0_r1 and emulator, and surfing for information that would
tell me how to do it, or that it can't be done.  Posts like this one
suggest it can be done.  When I run the code in this post under the
Eclipse debuger and the emulator, I get a runtime exception:

   10-23 17:58:18.001: ERROR/AMS(196): java.lang.RuntimeException:
start failed.
   10-23 17:58:18.001: ERROR/AMS(196): at
android.media.MediaRecorder.start(Native Method)

I have included the RECORD_AUDIO permission in the Androidmanifest.xml
file, as Lurky suggested on Oct.9

I've also found information that says one can not record audio using
the emulator.  For example on this page
   http://code.google.com/android/toolbox/apis/media.html page,
contains the following statement
  "While the emulator obviously doesn't have hardware to capture and
record audio and video ..."
While is statement is not true in the real world sense (for example my
laptop PC has a bulit-in microphone that many shareware applications
can use), perhaps the Android emulator is not able to use it?  Can
someone from Google confirm or deny this statement?

Sigh... I've also noted that the sample code from the web page whose
URL is above does not even compile in SDK v.1.  This is unfortunate,
given the scarcity of information about this promising platform.  If
anyone has a working example of recording audio (emulator or actual
device), please post it here!

For reference, my code (that get the ruintime exception shown above)
is:
recorder = new MediaRecorder();
recorder.setAudioSource(MediaRecorder.AudioSource.MIC);
recorder.setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP);
recorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB);
recorder.setOutputFile("AudioOut.3gp");
recorder.prepare();
recorder.start();   // The runtime exception is throw here.
and my permission is:


Thanks in advance, Jim


On Oct 9, 11:15 pm, "[EMAIL PROTECTED]"  wrote:
> You may do the following two points before therecord.
>
> 1. set the permission for RECORD_AUDIO in Androidmanifest.xml.
> 2. simulate the sdcard.
>
> Theaudiofile should be stored in the sdcard.
>
> On Oct 9, 4:45 pm, Lurky <[EMAIL PROTECTED]> wrote:
>
> > Hi, All
> >     I needrecordvoice on the simulator and playback it. I wrot my
> > code according the example in the documents:
>
> > A common case of using MediaRecorder torecordaudioworks as
> > follows:
>
> > MediaRecorder recorder = new MediaRecorder();
> >  recorder.setAudioSource(MediaRecorder.AudioSource.MIC);
> >  recorder.setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP);
> >  recorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB);
> >  recorder.setOutputFile(PATH_NAME);
> >  recorder.prepare();
> >  recorder.start();   // Recording is now started
> >  ...
> >  recorder.stop();
> >  recorder.reset();   // You can reuse the object by going back to
> > setAudioSource() step
> >  recorder.release(); // Now the object cannot be reused
>
> >      My code created theaudiofile, but there isn't anyaudiodata in
> > it.
> >      Would you give me a completed demo code for how to use
> > MediaRecorder ?
>
> >     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] About GPS Support on Android

2008-10-23 Thread Mayank Rana
Hi All,

I have couple of things to clarify:

1. What are the GPS Applications currently part of Android ?

2. As on Emulator , I am not able to run maps applications as there is no
GPS Driver and hardware connected. How can I use google maps on emulator ?

3. Providing GPS HAL interface gps_get_hardware_interface will be sufficient
to connect GPS Drive with Application Framework and upper application in
Android ?

4. Is there any basic test application for GPS on Android ? not necessary
maps kind of application.

Any more information related to GPS on Android is welcome.

Thanks.

Regards,
_-_Mayank Rana_-_

--~--~-~--~~~---~--~~
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] give-up screen (going to sleep)

2008-10-23 Thread Dex Wood

I am developing an application that uses the accelerometer and/or gps
inside of a service.  It will be in use while the service runs in the
background until the user terminates the service.  I am using usb
debugging on the device and I noticed in logcat it is saying give-up
screen and my service stops getting input from the accelerometer.  Is
there a way to have a service run while the phone is idle for a period
of time without having to disable the key-lock?

--~--~-~--~~~---~--~~
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: eclipse debug keystore and google maps api key problem

2008-10-23 Thread Justin (Google Employee)

Also, if you wanted to use a different keystore, you would need to use
the same passwords for that keystore and key. The value that the
Eclipse plugin uses to access the store is hard coded.

Cheers,
Justin
Android Team @ Google

On Oct 23, 11:37 am, "Xavier Ducrohet" <[EMAIL PROTECTED]> wrote:
> Hi Dave,
>
> the password is android for both thekeystoreand the key.
>
> More information about getting the MD5 fingerprint is 
> here:http://code.google.com/android/toolbox/apis/mapkey.html#getfingerprint
>
> It shows the full command line for the debug key.
>
> Xav
>
> On Wed, Oct 22, 2008 at 9:24 PM, Dave <[EMAIL PROTECTED]> wrote:
>
> > Maybe I'm being stupid, but I cant seem to figure this out.  I want
> > eclipse to generate a debug version of my app signed with a custom
> >keystorethat is associated with my google maps api key so it works
> > now that the key is required.  I created an api key from mykeystore,
> > added it to the MapView,  and set the Preferences->Android->Build-
> >>Custom debugkeystoreto point to mykeystore.  I was assuming this
> > would use mykeystorerather than the default,  but it seems to have
> > no effect.  I can't generate a google maps api key from the default
> > debugkeystoresince I don't know the password, so I cant generate a
> > key from that.  So how are you supposed to do this?
>
>
--~--~-~--~~~---~--~~
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: setOnKeyListener problem

2008-10-23 Thread Breno

Hey pabbot,

 I'm facing the same problem you had, but, sorry, i didn't
understand your solution. Could you explain better? thanks a lot

Breno

On 15 out, 05:03, pabbot <[EMAIL PROTECTED]> wrote:
> Ok. It's solved.
>
> The solution is not only to detect the KEYCODE_ENTER but also the key
> down. Previously it detected both the key press and the key release
> and this fired two KEYCODE_ENTER events...
>
> On 14 oct, 23:50, pabbot <[EMAIL PROTECTED]> wrote:
>
> > Hi everyone,
>
> > this is my first post here so I'll try not to extend so much.
>
> > I've got a Layout with 3 EditText, called mText1, mText2 and mText3.
> > I want to navigate through them by pressing the ENTER KEY, so I
> > decided to set a onKeyListener for every of them and every time I
> > detect the user presses the ENTER KEY, I set the focus on the next
> > EditText. But it sets the focus on the "next's next". If I press the
> > ENTER KEY on mText1, the focus is set on mText3; the same with mText2
> > (it is set on mText1) and so on...
>
> > I can't understand this kind of behaviour.
>
> > Any solution? Many thanks in advance.
>
> > Here, the code:
> > mText1.setOnKeyListener(new OnKeyListener() {
>
> >                         public boolean onKey(View v, int keyCode, KeyEvent 
> > event) {
> >                                 if(keyCode == KeyEvent.KEYCODE_ENTER) {
> >                                         mText2.requestFocus();
> >                                         return true;
> >                                 }
> >                                 return false;
> >                         }
>
> >         });
> > mText2.setOnKeyListener(new OnKeyListener() {
>
> >                         public boolean onKey(View v, int keyCode, KeyEvent 
> > event) {
> >                                 if(keyCode == KeyEvent.KEYCODE_ENTER) {
> >                                         mText3.requestFocus();
> >                                         return true;
> >                                 }
> >                                 return false;
> >                         }
>
> >         });
> > mText3.setOnKeyListener(new OnKeyListener() {
>
> >                         public boolean onKey(View v, int keyCode, KeyEvent 
> > event) {
> >                                 if(keyCode == KeyEvent.KEYCODE_ENTER) {
> >                                         mText1.requestFocus();
> >                                         return true;
> >                                 }
> >                                 return false;
> >                         }
>
> >         });
--~--~-~--~~~---~--~~
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] Android/WebKit browser: any way to intercept the navigation keys from a script?

2008-10-23 Thread ...Max...

Subj. The straightforward approach (example below) doesn't seem to
work, at least on the simulator. It does intercept the keyboard
buttons but not the up/down/left/right "joystick" keys. BTW, without
an  element on the page (or, I guess, something else to take
focus) this code doesn't see even the keyboard presses -- everything
goes straight to the search bar. Is this a missing feature, or is
there a trick to it?

Regards,
...Max...








function log( txt )

{


document.getElementById( 'log' ).appendChild( document.createTextNode( txt ) );


document.getElementById( 'log' ).appendChild( document.createElement( 'br' ) );

}


function str(e)
{
var s = '';
if( 'charCode' in e )   s += ' charCode=' + e.charCode;
if( 'keyCode' in e )s += ' keyCode=' + e.keyCode;
return s;
}

function onKeyDown(e)
{
log( 'onkeydown: ' + str(e) );
}

function onKeyUp(e)
{
log( 'onkeyup: ' + str(e) );
}

function onKeyPress(e)
{
log( 'onkeypress: ' + str(e) );
}

function runOnLoad()
{
document.onkeydown = onKeyDown;
document.onkeyup = onKeyUp;
document.onkeypress = onKeyPress;
}









--~--~-~--~~~---~--~~
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: What's the Cost ??

2008-10-23 Thread Rob Franz
You'd have to ask TMobile if they can unlock the phone.
I imagine if they unlock the phone, and you popped the ATTM SIM in, I assume
you'd be able to get a signal on 2.5G (EDGE).

At that point you're using the G1 on ATTM's network, and I'm not real sure
of the volume of data that you're transferring/receiving with this phone.

I don't know ATTM's data plans, but if the G1 has an unusually high amount
of data being sent to and from the phone, you could go over your limit and
have a pretty hefty bill.  I would think ATTM has some sort of similar
unlimited data package as TMobile does.

Hope this helps.

On Thu, Oct 23, 2008 at 3:32 PM, Mark Wyszomierski <[EMAIL PROTECTED]> wrote:

>
> Sorry to be repetitive here - so if we buy the $400 phone alone
> without any contract - can we immediately unlock the phone, then
> somehow get on our AT&T plan (I have an iPhone with them). I don't
> mind not being able to get on the 3G network, EDGE is fine, I just
> want to be able to test the apps out on the phone,
>
> Thanks
>
> On Oct 23, 1:31 pm, "Rob Franz" <[EMAIL PROTECTED]> wrote:
> > Perhaps someone could call them and ask?  :-)
> > In my experience the phones come locked, but they'll unlock it for you
> after
> > a couple of months if you're a new customer.
> >
> > If you're an existing customer, they'll unlock the phone for you - if I
> > remember correctly they'll send you a text w/the unlock code.
> >
> > However I don't know what their policy is on buying a phone without a
> > contract and unlocking the phone - but I would guess that they're not
> going
> > to unlock it without you being a customer.
> >
> > On Thu, Oct 23, 2008 at 1:24 PM, Josh Roesslein <[EMAIL PROTECTED]
> >wrote:
> >
> > > I'm pretty sure the G1 is locked to work only on the T-mobile network.
> >
> > > On Thu, Oct 23, 2008 at 12:19 PM, Pulkit Arora <[EMAIL PROTECTED]
> >wrote:
> >
> > >> But the question, perhaps, still remains UN-Answered :-(Is the G1
> which
> > >> sells for $399 Unlocked to any carrier ???
> > >> And now, as the point is raised, will i be able to use it in India ?
> >
> > >> Pulkit Arora
> >
>

--~--~-~--~~~---~--~~
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: What's the Cost ??

2008-10-23 Thread Rob Franz
Yeah i get that - I was just adding that part about the plan...
On Thu, Oct 23, 2008 at 3:40 PM, Pulkit Arora <[EMAIL PROTECTED]> wrote:

> Umm, we are talking about the compatibility as of now, the bills wud be the
> next step i guess :-)
>
>
> On Fri, Oct 24, 2008 at 1:08 AM, Rob Franz <[EMAIL PROTECTED]> wrote:
>
>> You'd have to ask TMobile if they can unlock the phone.
>> I imagine if they unlock the phone, and you popped the ATTM SIM in, I
>> assume you'd be able to get a signal on 2.5G (EDGE).
>>
>> At that point you're using the G1 on ATTM's network, and I'm not real sure
>> of the volume of data that you're transferring/receiving with this phone.
>>
>> I don't know ATTM's data plans, but if the G1 has an unusually high amount
>> of data being sent to and from the phone, you could go over your limit and
>> have a pretty hefty bill.  I would think ATTM has some sort of similar
>> unlimited data package as TMobile does.
>>
>> Hope this helps.
>>
>> On Thu, Oct 23, 2008 at 3:32 PM, Mark Wyszomierski <[EMAIL PROTECTED]>wrote:
>>
>>>
>>> Sorry to be repetitive here - so if we buy the $400 phone alone
>>> without any contract - can we immediately unlock the phone, then
>>> somehow get on our AT&T plan (I have an iPhone with them). I don't
>>> mind not being able to get on the 3G network, EDGE is fine, I just
>>> want to be able to test the apps out on the phone,
>>>
>>> Thanks
>>>
>>> On Oct 23, 1:31 pm, "Rob Franz" <[EMAIL PROTECTED]> wrote:
>>> > Perhaps someone could call them and ask?  :-)
>>> > In my experience the phones come locked, but they'll unlock it for you
>>> after
>>> > a couple of months if you're a new customer.
>>> >
>>> > If you're an existing customer, they'll unlock the phone for you - if I
>>> > remember correctly they'll send you a text w/the unlock code.
>>> >
>>> > However I don't know what their policy is on buying a phone without a
>>> > contract and unlocking the phone - but I would guess that they're not
>>> going
>>> > to unlock it without you being a customer.
>>> >
>>> > On Thu, Oct 23, 2008 at 1:24 PM, Josh Roesslein <[EMAIL PROTECTED]
>>> >wrote:
>>> >
>>> > > I'm pretty sure the G1 is locked to work only on the T-mobile
>>> network.
>>> >
>>> > > On Thu, Oct 23, 2008 at 12:19 PM, Pulkit Arora <[EMAIL PROTECTED]
>>> >wrote:
>>> >
>>> > >> But the question, perhaps, still remains UN-Answered :-(Is the G1
>>> which
>>> > >> sells for $399 Unlocked to any carrier ???
>>> > >> And now, as the point is raised, will i be able to use it in India ?
>>> >
>>> > >> Pulkit Arora
>>>
>>>
>>
>>
>>
>
>
> --
> Pulkit Arora
>
> >
>

--~--~-~--~~~---~--~~
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: What's the Cost ??

2008-10-23 Thread Pulkit Arora
Umm, we are talking about the compatibility as of now, the bills wud be the
next step i guess :-)

On Fri, Oct 24, 2008 at 1:08 AM, Rob Franz <[EMAIL PROTECTED]> wrote:

> You'd have to ask TMobile if they can unlock the phone.
> I imagine if they unlock the phone, and you popped the ATTM SIM in, I
> assume you'd be able to get a signal on 2.5G (EDGE).
>
> At that point you're using the G1 on ATTM's network, and I'm not real sure
> of the volume of data that you're transferring/receiving with this phone.
>
> I don't know ATTM's data plans, but if the G1 has an unusually high amount
> of data being sent to and from the phone, you could go over your limit and
> have a pretty hefty bill.  I would think ATTM has some sort of similar
> unlimited data package as TMobile does.
>
> Hope this helps.
>
> On Thu, Oct 23, 2008 at 3:32 PM, Mark Wyszomierski <[EMAIL PROTECTED]>wrote:
>
>>
>> Sorry to be repetitive here - so if we buy the $400 phone alone
>> without any contract - can we immediately unlock the phone, then
>> somehow get on our AT&T plan (I have an iPhone with them). I don't
>> mind not being able to get on the 3G network, EDGE is fine, I just
>> want to be able to test the apps out on the phone,
>>
>> Thanks
>>
>> On Oct 23, 1:31 pm, "Rob Franz" <[EMAIL PROTECTED]> wrote:
>> > Perhaps someone could call them and ask?  :-)
>> > In my experience the phones come locked, but they'll unlock it for you
>> after
>> > a couple of months if you're a new customer.
>> >
>> > If you're an existing customer, they'll unlock the phone for you - if I
>> > remember correctly they'll send you a text w/the unlock code.
>> >
>> > However I don't know what their policy is on buying a phone without a
>> > contract and unlocking the phone - but I would guess that they're not
>> going
>> > to unlock it without you being a customer.
>> >
>> > On Thu, Oct 23, 2008 at 1:24 PM, Josh Roesslein <[EMAIL PROTECTED]
>> >wrote:
>> >
>> > > I'm pretty sure the G1 is locked to work only on the T-mobile network.
>> >
>> > > On Thu, Oct 23, 2008 at 12:19 PM, Pulkit Arora <[EMAIL PROTECTED]
>> >wrote:
>> >
>> > >> But the question, perhaps, still remains UN-Answered :-(Is the G1
>> which
>> > >> sells for $399 Unlocked to any carrier ???
>> > >> And now, as the point is raised, will i be able to use it in India ?
>> >
>> > >> Pulkit Arora
>>
>>
>
> >
>


-- 
Pulkit Arora

--~--~-~--~~~---~--~~
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: What's the Cost ??

2008-10-23 Thread Mark Wyszomierski

Sorry to be repetitive here - so if we buy the $400 phone alone
without any contract - can we immediately unlock the phone, then
somehow get on our AT&T plan (I have an iPhone with them). I don't
mind not being able to get on the 3G network, EDGE is fine, I just
want to be able to test the apps out on the phone,

Thanks

On Oct 23, 1:31 pm, "Rob Franz" <[EMAIL PROTECTED]> wrote:
> Perhaps someone could call them and ask?  :-)
> In my experience the phones come locked, but they'll unlock it for you after
> a couple of months if you're a new customer.
>
> If you're an existing customer, they'll unlock the phone for you - if I
> remember correctly they'll send you a text w/the unlock code.
>
> However I don't know what their policy is on buying a phone without a
> contract and unlocking the phone - but I would guess that they're not going
> to unlock it without you being a customer.
>
> On Thu, Oct 23, 2008 at 1:24 PM, Josh Roesslein <[EMAIL PROTECTED]>wrote:
>
> > I'm pretty sure the G1 is locked to work only on the T-mobile network.
>
> > On Thu, Oct 23, 2008 at 12:19 PM, Pulkit Arora <[EMAIL PROTECTED]>wrote:
>
> >> But the question, perhaps, still remains UN-Answered :-(Is the G1 which
> >> sells for $399 Unlocked to any carrier ???
> >> And now, as the point is raised, will i be able to use it in India ?
>
> >> Pulkit Arora
--~--~-~--~~~---~--~~
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] Android/WebKit browser: text box rendered out of z-index sequence

2008-10-23 Thread ...Max...

Looks like the 'ole Microsoft IE: when the text box doesn't have
focus, it is right where its z-index puts it. When you give it focus,
it comes out on top. Although I think IE did that with 
controls, not with text boxes...

Regards,
...Max...
--~--~-~--~~~---~--~~
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: eclipse debug keystore and google maps api key problem

2008-10-23 Thread Xavier Ducrohet

Hi Dave,

the password is android for both the keystore and the key.

More information about getting the MD5 fingerprint is here:
http://code.google.com/android/toolbox/apis/mapkey.html#getfingerprint

It shows the full command line for the debug key.

Xav

On Wed, Oct 22, 2008 at 9:24 PM, Dave <[EMAIL PROTECTED]> wrote:
>
> Maybe I'm being stupid, but I cant seem to figure this out.  I want
> eclipse to generate a debug version of my app signed with a custom
> keystore that is associated with my google maps api key so it works
> now that the key is required.  I created an api key from my keystore,
> added it to the MapView,  and set the Preferences->Android->Build-
>>Custom debug keystore to point to my keystore.  I was assuming this
> would use my keystore rather than the default,  but it seems to have
> no effect.  I can't generate a google maps api key from the default
> debug keystore since I don't know the password, so I cant generate a
> key from that.  So how are you supposed to do this?
>
> >
>

--~--~-~--~~~---~--~~
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: ADB via USB

2008-10-23 Thread Declan Shanaghy

But is the driver x64 compatible?



-Original Message-
From: android-developers@googlegroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of plusminus
Sent: Thursday, October 23, 2008 8:57 AM
To: Android Developers
Subject: ***SPAM*** [android-developers] Re: ADB via USB


Btw: I've compiled a list of steps to debug on Windows(Vista) with a
Driver-Download:

> http://href.to/Jo5

Regards, plusminus
http://anddev.org
#  Worlds largest Android Development Community / Tutorials

On 23 Okt., 11:48, Ed Burnette <[EMAIL PROTECTED]> wrote:
> I see the doc has been changed to say "Windows (32-bit only)". I tried
> it on a Win32 (XP) machine and it worked fine. Any tips on how to port
> the driver to Win64?
>
> On Oct 22, 4:20 pm, Ed Burnette <[EMAIL PROTECTED]> wrote:
>
> > It's not working for me. The device driver won't install, and I get
> > this error from Vista64:
>
> > Description:
> >   Windows detected a new device attached to your computer, but could
> > not find the driver software it needs to make the device usable. Each
> > device manufacturer typically includes driver software of a CD that
> > comes with the device, or as a download from its website. The hardware
> > ID of your device is USB\VID_0BB4&PID_0C02&REV_0100&MI_01.
>
> > Problem signature:
> >   Problem Event Name:   PnPDriverNotFound
> >   Architecture: x64
> >   Hardware Id:  USB\VID_0BB4&PID_0C02&REV_0100&MI_01
> >   OS Version:   6.0.6001.2.1.0.256.4
> >   Locale ID:    1033
>
> > On Oct 22, 3:03 pm, "Xavier Ducrohet" <[EMAIL PROTECTED]> wrote:
>
> > > Hi Mark,
>
> > > We just updated the doc regarding developing on devices, for all
platforms.
>
> >
>http://code.google.com/android/intro/develop-and-debug.html#developin...
>
> > > Xav
>
>



--~--~-~--~~~---~--~~
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: Error using XMPP using Smack API 3.0.4

2008-10-23 Thread jsm

I can see both files exists in the system/etc/security folder,
ccerts.bks 44204 bytes, otacerts.zip 1107, both permisssion have (-rw-
r--r--)

On Oct 23, 8:34 pm, Anders Rundgren <[EMAIL PROTECTED]> wrote:
> I hope this can be of some help
>
> # ls /system/etc/security
> ls /system/etc/security
> otacerts.zip
> cacerts.bks
>
> Anders
--~--~-~--~~~---~--~~
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] Has anyone built IM.apk and ImProvider.apk?

2008-10-23 Thread Cheryl Sedota

Has anyone built IM.apk and ImProvider.apk?  If so, can you please
post those .apk files?  They are not shipped with the 1.0 SDK and I
don't have a mac or linux machine that I can use to build them myself
now that the source code has been released.

Thanks!!!
Cheryl
--~--~-~--~~~---~--~~
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] Licensing and Trial Software, the starts of a solution?

2008-10-23 Thread Al Sutton

This might be useful to some of you looking for a solution to the 
Trial/Pay-for dilemma;

I've just made available some code at http://www.andlicensing.com/ which 
will allow you to create a license file which is a set of encrypted 
properties on one machine (such as a web server), and decrypt it on an 
Android device.

It's not an all-singing all-dancing licensing solution, but what it will 
do is allow you to write your apps in a way where they can ask the user 
for a license file, store the encrypted license, and then enable or 
disable functionality based whether the license exists and what 
properties it contains.

Anyway, hope it's useful.

Al.

Ed Burnette wrote:
> How about this idea: Call your program "Beta" for now and then in
> February (or whenever) retire the Beta version and come out with a new
> non-Beta version that has a charge. The only trick would be to prevent
> people from auto-updating from Beta to the commercial version without
> annoying them.
>
> IMHO Google did the developer community a disservice by not allowing
> for paid apps from day one. A lot of the developer energy on iPhone
> comes from dreams of "riches" made in the App Store. If at all
> possible, please get paid apps in place by this December at the
> latest.
>
> --Ed
> "Hello, Android" - now in 7th beta
> http://www.pragprog.com/titles/eband/hello-android
>
> On Oct 22, 4:25 pm, atrus123 <[EMAIL PROTECTED]> wrote:
>   
>> Another thing I was wondering if it would be possible to simply start
>> charging for the app once that becomes an option.  So we'd post our
>> stuff now... free... and then go in and edit the price later on.  It
>> might be a good option; by then we'd have feedback, and any popularity
>> might drive future revenue.
>>
>> I'd love to hear from a Google employee about how they expect this to
>> work.
>>
>> On Oct 22, 4:07 pm, cyntacks <[EMAIL PROTECTED]> wrote:
>>
>> 
>>> Hi Al,
>>>   
>>> Great stuuf, to be honest I'm not as adept at licensing as I should
>>> be, given my job description and all! But there is def. a need for
>>> licensing of some sort. I'm really surprised we have to wait until Q1
>>> (which, as we all know could mean as late as March 31!). It just
>>> really puts a damper on the whole thing and is going to create
>>> headaches for most of us.
>>>   
>>> Time-to-Market is huge in this industry, and those of us who worked
>>> very long days for too long toiling in the dark will not be able to
>>> benefit (read "$") from the vacuum created when the new store goes
>>> live on Monday. Just a shame, that's all... But then again, I guess we
>>> could use the opportunity to perfect our products, or create more
>>> apps.
>>>   
>>> Keep on coding, and def. let me know about the licensing idea, very
>>> interested.
>>>   
>>> Kevin
>>>   
>>> On Oct 22, 3:57 pm, Al Sutton <[EMAIL PROTECTED]> wrote:
>>>   
 Hi Kevin,
 
 I think you'll end up with two apps initially. I'm looking at working on
 a licensing solution because there seems to be a need. Do you have any
 tips as to what you'd like to see?
 
 Al.
 
 cyntacks wrote:
 
> Hi Al,
>   
> I guess that is the question. Does Android support this type of
> transaction (i.e. "lite" version)? I don't recall seeing anything in
> the API about this. Of course I can just disable parts of the app, but
> how would the user "upgrade" to the full version?
>   
> Am I making to much out of this, will it all make sense come Monday
> morning?
>   
> Kevin
>   
> On Oct 22, 3:44 pm, Al Sutton <[EMAIL PROTECTED]> wrote:
>   
>> Can you not ship a cut down "lite" version with an option to pay for a
>> fuller version?
>> 
>> Al.
>> 
>> atrus123 wrote:
>> 
>>> I'm disappointed that we won't be able to charge until next quarter,
>>> and it does put a slight dent in my plans.  I guess I'll just sigh and
>>> deploy.
>>>   
>>> On Oct 22, 1:56 pm, cyntacks <[EMAIL PROTECTED]> wrote:
>>>   
 Ok, so the Market Place will be live on Monday, AWESOME! AWESOME!
 AWESOME!
 
 But here is a question for all you developers like us who are hoping
 to make some revenue off months of hard work.
 
 Does the API currently support a way to make our applications "trial
 software"? That is, making them free until "March 1st" or some other
 date, at which time the user will have to pay?
 
 Obviously getting on the phone and receiving user reviews is extremely
 important, but giving away all of our hard work "just seems wrong". I
 have read that over 1 million people have pre-ordered the phone, that
 is a lot of free softwar

[android-developers] Re: Installing large .apk file to Android

2008-10-23 Thread Justin (Google Employee)

How large is your APK? In general, try to keep application files
around 1MB at most, and 2MB is really huge. There is *limited*
internal storage. If you have data files that are not going to be used
all the time, have your application download them the first time
they're needed rather than including them in the APK and if they're
not sensitive data, cache them on the SD card. Applications can not be
installed on the SD card, any data you want to write there, you'll
need to do yourself.

Remember, mobile networks are slow, and how many of your users with
want to wait for a 10MB application to download?

Cheers,
Justin
Android Team @ Google

On Oct 23, 9:30 am, Timmah <[EMAIL PROTECTED]> wrote:
> Hello All,
>
> Looking for some recommendations on how to handle large .apk files on
> Android:
>
> Trying to write an application that will come with large amounts of
> data and due to limitations on RAM, struggling finding a solution on
> how to avoid INSUFFICIENT MEMORY problem when installing an app.
>
> 1) Is it possible to install an app solely on SD Card ?
>
> 2) Otherwise, packaging an actual app and its data in separate
> packages will make installation a confusing for a user 2-step process.
> Maybe it's possible to ship one zip file and make the android's
> installer do the work of installing an app on the phone and app's data
> on SD card ?
>
> Any recommendations are really appreciated.
>
> Thank you!
--~--~-~--~~~---~--~~
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: Receiving SMS Messages in 1.0?

2008-10-23 Thread rh

Hi,

Very nice.

Does this mean that only your application will handle the incoming
SMS?
Or does it mean you can read the incoming SMS but they will also be
directed to the regular SMS app?

Thanks

On 24 Sep, 12:21, Cristina <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I do not know if it is the right way, but I have found a way to get
> the message.
> Here I include my code to get the SmsMessages. I hope it helps you
>
> public class ServerMessagesReceiver extends BroadcastReceiver {
>
>     static final String ACTION =
> "android.provider.Telephony.SMS_RECEIVED";
>
>     public void onReceive(Context context, Intent intent) {
>         if (intent.getAction().equals(ACTION)) {
>                  StringBuilder buf = new StringBuilder();
>                  Bundle bundle = intent.getExtras();
>                  if (bundle != null) {
>                          Object[] pdusObj = (Object[]) bundle.get("pdus");
>                          SmsMessage[] messages = new 
> SmsMessage[pdusObj.length];
>                          for (int i = 0; i                                  messages[i] = SmsMessage.createFromPdu 
> ((byte[]) pdusObj[i]);
>                          }
> 
> 
> ...
>
> By the way, Does somebody know how to receive an SMS that has been
> sent using
> an application port using the methos.sendDataMessage?
>
> On 24 sep, 08:15, Reto Meier <[EMAIL PROTECTED]> wrote:> Is it still possible 
> to listen for incoming SMS messages in the latest
> > 1.0 SDK release?
>
> > The SMS_RECEIVED_ACTION string used to listen for incoming SMS
> > messages seems to have gone missing. It used to be available from the
> > android.provider.Telephony.Sms package, which also seems to have
> > disappeared, so getMessagesFromIntent has gone too.
>
> > Previously, you could create a Broadcast Receiver to listen for SMS
> > messages using this code:
>
> >   String incoming_SMS =
> > android.provider.Telephony.Sms.Intents.SMS_RECEIVED_ACTION;
>
> >   public void onReceive(Context _context, Intent _intent) {
>
> >     if (_intent.getAction().equals(incoming_SMS)) {
> >       SmsManager sms = SmsManager.getDefault();
> >       SmsMessage[] messages =
> > Sms.Intents.getMessagesFromIntent(_intent);
> >     }
>
> > Is there still a way to do this?
>
> > Thanks
> > Reto

--~--~-~--~~~---~--~~
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] Installing large .apk file to Android

2008-10-23 Thread Timmah

Hello All,

Looking for some recommendations on how to handle large .apk files on
Android:

Trying to write an application that will come with large amounts of
data and due to limitations on RAM, struggling finding a solution on
how to avoid INSUFFICIENT MEMORY problem when installing an app.

1) Is it possible to install an app solely on SD Card ?

2) Otherwise, packaging an actual app and its data in separate
packages will make installation a confusing for a user 2-step process.
Maybe it's possible to ship one zip file and make the android's
installer do the work of installing an app on the phone and app's data
on SD card ?

Any recommendations are really appreciated.

Thank you!


--~--~-~--~~~---~--~~
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] How to put a Label value in Spinner e.g

2008-10-23 Thread [EMAIL PROTECTED]

How to put a default value in Spinner ,the value which is not coming
from DB.. Some thing like


or


On the Spinner it should show something like this,and then when user
selects it,then he/she actually can get the value from DB or whatever
set.
--~--~-~--~~~---~--~~
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: What's the Cost ??

2008-10-23 Thread Rob Franz
Perhaps someone could call them and ask?  :-)
In my experience the phones come locked, but they'll unlock it for you after
a couple of months if you're a new customer.

If you're an existing customer, they'll unlock the phone for you - if I
remember correctly they'll send you a text w/the unlock code.

However I don't know what their policy is on buying a phone without a
contract and unlocking the phone - but I would guess that they're not going
to unlock it without you being a customer.

On Thu, Oct 23, 2008 at 1:24 PM, Josh Roesslein <[EMAIL PROTECTED]>wrote:

> I'm pretty sure the G1 is locked to work only on the T-mobile network.
>
>
> On Thu, Oct 23, 2008 at 12:19 PM, Pulkit Arora <[EMAIL PROTECTED]>wrote:
>
>> But the question, perhaps, still remains UN-Answered :-(Is the G1 which
>> sells for $399 Unlocked to any carrier ???
>> And now, as the point is raised, will i be able to use it in India ?
>>
>> Pulkit Arora
>>
>>
>>
>
> >
>

--~--~-~--~~~---~--~~
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: how to put application to g phone

2008-10-23 Thread Kipling Inscore

On Thu, Oct 23, 2008 at 10:08 AM, barrie <[EMAIL PROTECTED]> wrote:
> I just bought a new g phone and want to put my application into the
> phone.

For debugging with your G1, see
http://code.google.com/android/intro/develop-and-debug.html#developingondevicehardware
To add non-debug non-marketplace apps, download them over the web
using Browser on the G1, then tap the completed download to install.
You'll need to have "Unkown sources" set in system settings,
"Applications" section.

--~--~-~--~~~---~--~~
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: Accessing the Task Manager

2008-10-23 Thread CM

ok, thanks anyway

On Oct 23, 12:26 pm, hackbod <[EMAIL PROTECTED]> wrote:
> No, sorry there isn't.
>
> On Oct 23, 7:53 am, CM <[EMAIL PROTECTED]> wrote:
>
> > Is there a way to launch the Task Manager(the same one as when you
> > hold down the home button) from your application?
>
> > 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: What's the Cost ??

2008-10-23 Thread Josh Roesslein
I'm pretty sure the G1 is locked to work only on the T-mobile network.

On Thu, Oct 23, 2008 at 12:19 PM, Pulkit Arora <[EMAIL PROTECTED]> wrote:

> But the question, perhaps, still remains UN-Answered :-(Is the G1 which
> sells for $399 Unlocked to any carrier ???
> And now, as the point is raised, will i be able to use it in India ?
>
> Pulkit Arora
>
> >
>

--~--~-~--~~~---~--~~
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: Problem with Handler and messages

2008-10-23 Thread Al_R

Excellent, it's working now, thanks Romain Guy! I used
Message.obtain(...).sendToTarget(). Works perfectly.

On Oct 23, 12:37 am, "Romain Guy" <[EMAIL PROTECTED]> wrote:
> You keep overriding your s variable. You should make the String part of the
> message you send.
>
> On Oct 22, 2008 3:12 PM, "Al_R" <[EMAIL PROTECTED]> wrote:
>
> Hi, I have an app which makes a new server thread. This server thread
> connects and parses data received from the irc server and uses a
> handler inside the main class to update the textview. The problem I'm
> having is most of the times, the message is not seen by the handler. I
> know for sure it exists, I can see it in LogCat.
>
> My classes are laid out like this:
>
> class main:
>
> public handler h;
> public string s;
>
> oncreate() {
>
> //declare my textview (tv) here
> //do the layout and stuff here
>
> Thread t = new Thread(new Server());
> t.start();
>
> handler = new handler() {
>
>   [EMAIL PROTECTED]
>     public void handleMessage(Message m) () {
>                tv.append(s);
>    }
>
> };
>
> Server class:
>
> public void run() {
>
>   //connect to server and set up my buffered read/writer here
>
>   String msg = reader.ReadLine();
>   mainClass.s = msg + "\n";
>  mainClass.h.sendEmptyMessage(0);
>
> }
>
> I'm not sure why it keeps on missing some messages. Maybe there is a
> better way to update the textview?
--~--~-~--~~~---~--~~
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: What's the Cost ??

2008-10-23 Thread Pulkit Arora
But the question, perhaps, still remains UN-Answered :-(Is the G1 which
sells for $399 Unlocked to any carrier ???
And now, as the point is raised, will i be able to use it in India ?

Pulkit Arora

--~--~-~--~~~---~--~~
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: What's the Cost ??

2008-10-23 Thread Grant Robertson
AT&T and T-Mobile's 3G networks are not compatible. The phone will (should)
still work on EDGE.

Here's a bit more detail:

http://www.breakitdownblog.com/3g-iphone-may-not-work-on-t-mobile-3g-network/

Cheers,
-g


-- 
F. Grant Robertson // (New!) 404.492.8220 (New!) // [EMAIL PROTECTED] //
http://grantrobertson.com/
Lead Blogger - http://downloadsquad.com/

"You don't lead by pointing and telling people some place to go. You lead by
going to that place and making a case." ~ Ken Kesey


On Thu, Oct 23, 2008 at 2:20 AM, Mark Wyszomierski <[EMAIL PROTECTED]> wrote:

>
> Yeah I am confused on this too. I'm already an iPhone user, but I
> wanted to just get a GPhone to test my Android app. So I'd be one for
> $00 with no TMobile plan, then unlock it somehow - then can I use my
> AT&T data plan? Or if the thing has wifi that's good enough for me.
>
> On Oct 23, 2:13 am, "Pulkit Arora" <[EMAIL PROTECTED]> wrote:
> > Ohkk, I wanted to use the phone in INDIA. So i need an unlocked G1. Will
> > they be providing the UNLOCKED phone @ $399 , if i buy from the store ??
> >
> > On Thu, Oct 23, 2008 at 11:34 AM, Mark Wyszomierski <[EMAIL PROTECTED]
> >wrote:
> >
> >
> >
> >
> >
> > > I don't understand the $400 deal though -
> >
> > > You can buy the phone itself for $400 but without a plan? Then how
> > > would you get any data service?
> >
> > > I'd like to buy a phone + just a data plan, is that possible?
> >
> > > Thanks
> >
> > > On Oct 23, 12:58 am, Mast3rpyr0 <[EMAIL PROTECTED]> wrote:
> > > > its still locked to t-mobile tho..
> >
> > > > On Oct 23, 12:54 am, Easan <[EMAIL PROTECTED]> wrote:
> >
> > > > > If you can find a store with inventory they will sell you one for
> $399
> > > > > without a contract.   If they have to ship it to you, they only
> sell
> > > with
> > > > > contract.  T mobile will unlock the phone if you call customer
> service
> > > after
> > > > > 90 days.
> >
> > > > > Or you can buy this one right now:
> >
> > >
> http://cgi.ebay.com/New-G1-Tmobile-Unlocked_W0QQitemZ250310678463QQcm...65%3A12|240%3A1308&_trksid=p3286.c0.m14
> >
> > > > > I am interested in the mechanism of the upload of our programs to
> the
> > > G1
> >
> > > > > On Wed, Oct 22, 2008 at 9:41 PM, Rob Franz <[EMAIL PROTECTED]>
> > > wrote:
> > > > > > -$179 for 2 yr contract
> > > > > > -$200 (I think - if not it's $150) for early termination fee of
> the
> > > > > > contract-$399 retail
> >
> > > > > > Question here is whether the phone comes unlocked or not?
> >
> > > > > > On Thu, Oct 23, 2008 at 12:02 AM, Pulkit Arora <
> [EMAIL PROTECTED]
> > > >wrote:
> >
> > > > > >> Ohkk.. Thank you so much Josh.. :-)
> >
> > > > > >> On Thu, Oct 23, 2008 at 9:28 AM, Josh Roesslein <
> > > [EMAIL PROTECTED]>wrote:
> >
> > > > > >>> I believe the $179 is the price if you sign the 2 yr contract.
> > > > > >>> If you don't plan on keeping the 2yr contract it's probably
> going
> > > to cost
> > > > > >>> you more
> > > > > >>> to terminate the contract then it would to just pay the full
> $399.
> >
> > > > > >>> On Wed, Oct 22, 2008 at 10:56 PM, Pulkit Arora <
> > > [EMAIL PROTECTED]>wrote:
> >
> > > > >  Hi,
> > > > >  Can anyone please tell me how much does the G1 cost, if i want
> to
> > > buy
> > > > >  it for some other carrier ?? On the site, it says, $399 - $220
> =
> > > $179
> > > > >  { as an instant discount, or the subsidization }.
> > > > >  Can i buy the phone for $399 and use it with AT&T ?
> > > > >  Also, what is the cost of breaking the 2 year contract ??
> >
> > > > > >> --
> > > > > >> Pulkit Arora
> >
> > > > > --http://www.easankatir.com/
> >
> > --
> > Pulkit Arora
> >
>

--~--~-~--~~~---~--~~
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: onActivityResult failing to fire

2008-10-23 Thread Alvin Yates

In my case, there isn't actually a data exchange at all.  This is
actually setting my app's Preferences.  This is the relevant code:

 Activity A
// Button Listeners
accountButton.setOnClickListener(new View.OnClickListener() {
public void onClick(View view) {
Intent i = new Intent(A.this, B.class);
startActivityForResult(i, App.USER_CREATE);
}});

 Activity B

@Override
protected void onActivityResult(int request, int result, Intent i){
super.onActivityResult(request, result, i);
Log.i("B","Returning from User Create");   // Note, this line
is NEVER seen

// Just returned from creating a user
if(request == App.USER_CREATE && result == RESULT_OK){
// User has successfully registered, go back to main
screen
setResult(RESULT_OK);
finish();
}

}

// Button for B
signupButton.setOnClickListener(new View.OnClickListener() {
public void onClick(View view) {
Intent nextScreen = new Intent(B.this, C.class);
startActivityForResult(nextScreen, App.USER_CREATE);
}});

// Activity C

// Button in C
signupButton.setOnClickListener(new View.OnClickListener() {
public void onClick(View view) {
setResult(RESULT_OK);
finish();
}});

On Oct 23, 12:20 am, Saltedfish <[EMAIL PROTECTED]> wrote:
> by your means ,I make these codes:
> if you want to pass a intent data from C to A,you  should first set
> the intent data as the result for B.
> then B set the intent data as reasult for A in B's onActivityResult()
> function.
> like this:
>
> //C Activity:
> //button press for pass intent data to A
> Intent ctoadata;
> setResult(RESULT_OK , ctoadata);
> finish();
>
> //B Activity:
> //receive the result from C,then pass the result to A
> protected void onActivityResult(int requestCode, int resultCode,
> Intent data)
> {
>      if(resultCode==RESULT_OK)
>      {
>               setResult(RESULT_OK , data);
>               finish();
>
>      }
>
> }
>
> //A Acitivity
> //receive the result from B, now the data equals C.ctoadata intent
> data.
> protected void onActivityResult(int requestCode, int resultCode,
> Intent data)
> {
>      if(resultCode==RESULT_OK)
>      {
>               //data==C.ctoadata
>              //do other.
>      }
>
> }
>
> if your codes like these,it should be successful.
--~--~-~--~~~---~--~~
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] Linux help command?

2008-10-23 Thread Anders Rundgren

For those who are not Linux specialists, it would be nice with a help
command.  A doc page would probably be even better.  As I understand
Android implements a subset og Linux shell commands and "man" isn't
one of them.

Anders
--~--~-~--~~~---~--~~
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: onActivityResult failing to fire

2008-10-23 Thread Alvin Yates

In my case, there isn't actually a data exchange at all.  This is
actually setting my app's Preferences.  This is the relevant code:

 Activity A
// Button Listeners
accountButton.setOnClickListener(new View.OnClickListener() {
public void onClick(View view) {
Intent i = new Intent(A.this, UserPass.class);
startActivityForResult(i, Wherester.USER_CREATE);
}});


 Activity B

@Override
protected void onActivityResult(int request, int result, Intent i){
super.onActivityResult(request, result, i);
Log.i("UserPass","Returning from User Create");   // Note, this line
is NEVER seen

// Just returned from creating a user
if(request == App.USER_CREATE && result == RESULT_OK){
// User has successfully registered, go back to main screen
setResult(RESULT_OK);
finish();
}
}

// Button for B
signupButton.setOnClickListener(new View.OnClickListener() {
public void onClick(View view) {
Intent nextScreen = new Intent(B.this, C.class);
startActivityForResult(nextScreen, App.USER_CREATE);
}});


// Activity C

// Button in C
signupButton.setOnClickListener(new View.OnClickListener() {
public void onClick(View view) {
setResult(RESULT_OK);
finish();
}});

On Oct 23, 12:20 am, Saltedfish <[EMAIL PROTECTED]> wrote:
> by your means ,I make these codes:
> if you want to pass a intent data from C to A,you  should first set
> the intent data as the result for B.
> then B set the intent data as reasult for A in B's onActivityResult()
> function.
> like this:
>
> //C Activity:
> //button press for pass intent data to A
> Intent ctoadata;
> setResult(RESULT_OK , ctoadata);
> finish();
>
> //B Activity:
> //receive the result from C,then pass the result to A
> protected void onActivityResult(int requestCode, int resultCode,
> Intent data)
> {
>      if(resultCode==RESULT_OK)
>      {
>               setResult(RESULT_OK , data);
>               finish();
>
>      }
>
> }
>
> //A Acitivity
> //receive the result from B, now the data equals C.ctoadata intent
> data.
> protected void onActivityResult(int requestCode, int resultCode,
> Intent data)
> {
>      if(resultCode==RESULT_OK)
>      {
>               //data==C.ctoadata
>              //do other.
>      }
>
> }
>
> if your codes like these,it should be successful.
--~--~-~--~~~---~--~~
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] Unable to update "hosts" and "cacerts.bks"

2008-10-23 Thread Anders Rundgren

For those who call local servers it is convenient to be able to update
"hosts".
When I try updating /system/etc/hosts I get the error "read-only file
system"

Updating cacerts.bks is not possible either since there seems to an
undocumented password as well!

Anders
--~--~-~--~~~---~--~~
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] how to put application to g phone

2008-10-23 Thread barrie

Hi

I just bought a new g phone and want to put my application into the
phone.

Please advice me how to do this.

Thanks

Barrie
--~--~-~--~~~---~--~~
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: when will android support/have Speech Recognition System??

2008-10-23 Thread Jakob Sachse

yesterday android was made open source, as you may know for sure.
The website http://source.android.com was also put online then.

There is a youtube movie on the frontpage (http://www.youtube.com/
watch?v=7Y4thikv-OM)
that at 2:24min explicitly mentions speech recognition,
why would they do this if its not yet included?


On 1 Okt., 18:51, hackbod <[EMAIL PROTECTED]> wrote:
> Nospeechrecognition in 1.0.
>
> On Oct 1, 7:02 am, Wesley <[EMAIL PROTECTED]> wrote:
>
> > Are u mean android not going to supportspeechrecognition???
> > But I saw a folder callspeechinside android.jar wo???
> > Others is working on???
> > Means I should ask...
> > Anyone is working on this system???
> > Can anyone share out??? Or open sources???
>
> > but if android have this system... I believe it will b very great new
> > to all the developer... Including me...
>
> > may I know... when can we have this system on hand inside android???
>
> > your attention is much appreciated... Thanks...
>
> > wesley.
>
> > On 10/1/08, MrSnowflake <[EMAIL PROTECTED]> wrote:
>
> > > I believe someone was working on such a library, but I've read it a
> > > couple months ago, so I'm not sure how it was called.
>
> > > On 30 sep, 03:51, Wesley Sagittarius <[EMAIL PROTECTED]> wrote:
> > >> hi,
>
> > >> when will android support/haveSpeechRecognition System??
> > >> anyone have any ideas???
>
> > >> Wesley.
>
> > --
> > Sent from Gmail for mobile | mobile.google.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]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: If delete R.java, how how can recover it?

2008-10-23 Thread Declan Shanaghy

Well I know it is supposed to!

I was hoping that if he tried building 
thru ant it would fix the problem he's having.


-Original Message-
From: android-developers@googlegroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Romain Guy
Sent: Wednesday, October 22, 2008 9:55 PM
To: android-developers@googlegroups.com
Subject: [android-developers] Re: If delete R.java, how how can recover it?


It does :)

On Wed, Oct 22, 2008 at 9:39 PM, Declan Shanaghy <[EMAIL PROTECTED]>
wrote:
>
> If you build the app through ant rather than the eclipse UI does it
> recreate R.java?
>
>
> On Oct 22, 2008, at 10:11 AM, misbell wrote:
>
>>
>>
>> No one answered this question.
>>
>> Build Automatically is checked in Eclipse. Still doesn't regenerate
>> R.java. (Ganymede).
>>
>> Also, whenit existed, I made a change to main.xml, r.java was NOT
>> regenerated.
>>
>> There is nothing whatsoever wrong with my manifest file. The app ran
>> perfectly before I dared to alter the XML.
>>
>> This is flakey beyond belief.
>>
>> >
>
>
> >
>



-- 
Romain Guy
www.curious-creature.org




--~--~-~--~~~---~--~~
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: Fwd: Send DTMF

2008-10-23 Thread Pulkit Arora
Moreover, i want to RECEIVE or i can say DETECT the DTMF tone for generating
responses in my application, during a call. Can i do that by any ways ??

On Thu, Oct 23, 2008 at 7:43 PM, legerb <[EMAIL PROTECTED]> wrote:

>
> I'm adding the DTMF sequence to the dialed number. This seems to work,
> but when the call is established I'm getting a confirmation dialog
> asking "Send the following tones?".
> Is it possible to prevent this dialog from being shown? May be some
> additional permissions? Though I didn't find any relevant...
> Or is there a way to detect the dialog on screen in order to simulate
> a key stroke?
> >
>


-- 
Pulkit Arora

--~--~-~--~~~---~--~~
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: FTP?

2008-10-23 Thread disappearedng

Sockets doesn't say anything about the protocol, does it?

If I am not wrong, sockets could be used by any protocol.

(quote from wikipedia)
An Internet socket (or commonly, a network socket or socket), is an
end-point of a bidirectional process-to-process communication flow
across an IP based network, such as the Internet. Each socket is
mapped to an application process or thread. A socket is an interface
between an application process or thread and the TCP/IP protocol stack
provided by the operating system.

An Internet socket is identified by the operating system as a unique
combination of the following:

* Protocol (TCP, UDP or raw IP)
(/quote)

In fact, Java by default uses TCP. Hence, I am interested to find out
whether TCP is used in android (or how else does it communicate).
--~--~-~--~~~---~--~~
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: ListView Choices: What the devil is happening?

2008-10-23 Thread kingkung

Just made the changes, the behavior is identical... this is my updated
code, feel free to make sure I made all changes:

public String[] strings = { "What","the","devil","is","happening?" };

@Override
public void onCreate(Bundle icicle) {
super.onCreate(icicle);
setContentView(R.layout.listview);
getListView().setChoiceMode(ListView.CHOICE_MODE_SINGLE);
getListView().setAdapter(new
ArrayAdapter(this,R.layout.main,strings));
getListView().setOnItemClickListener(new OnItemClickListener()
{
public void onItemClick(AdapterView arg0, View arg1, 
int arg2,
long arg3) {
//  Log.d("test","Checked: "+
((TextView)getListView().getChildAt(arg2)).getText().toString());
if (getListView().isItemChecked(arg2))
{
for (int i=0; 
i wrote:
> Ok so the issue is what I noticed: you are mixing index and positions.
> A ListView contains only as many items as it needs to fill the screen.
> For instance, you can see 8 items on screens, there are 8 children in
> the ListView, numbered from 0 to 7 (the index.) However, your adapter
> can have many more items, for instance 400. The position (arg2 in your
> code) indicates the index of an item *in the adapter*. This means that
> the View of index 2 is not necessarily the adapter's item of position
> 2. To do the conversion, you can use
> ListView.getFirstVisiblePosition().
>
> Here is your code with the fix:
>
> if (i==arg2) becomes if (getListView().getFirstVisiblePosition() + i == arg2)
> and all the getChildAt(arg2) become getChildAt(arg2 -
> getListView().getFirstVisiblePosition())
>
>
>
> On Wed, Oct 22, 2008 at 8:20 PM, kingkung <[EMAIL PROTECTED]> wrote:
>
> > I just sent you an email explaining the problem to your google
> > account. :)
>
> > On Oct 22, 7:51 pm, "Romain Guy" <[EMAIL PROTECTED]> wrote:
> >> Could you please explain what you are witnessing? (I work on ListView,
> >> I'd like to help... :)
>
> >> There's another issue in your code. In the for loop, you are comparing
> >> a position (arg2) with an index (i). These are different and mixing
> >> them will cause tons of "weird" issues.
>
> >> On Wed, Oct 22, 2008 at 7:49 PM, kingkung <[EMAIL PROTECTED]> wrote:
>
> >> > I kind of wanted people to try it and find out :)  I can try that, but
> >> > it doesn't look like it's a race condition (like something gets called
> >> > too early or something) of any kind... it's a very distinct pattern of
> >> > behavior that's happening, though it's not what I would consider the
> >> > expected behavior...
>
> >> > On Oct 22, 7:40 pm, "Romain Guy" <[EMAIL PROTECTED]> wrote:
> >> >> You haven't explained what the crazy behavior is :) My bet is that you
> >> >> call isChecked() too early. Try to postpone everything you do in the
> >> >> OnItemClickListener by posting a Runnable into a Handler (or with
> >> >> getListView().post()).
>
> >> >> On Wed, Oct 22, 2008 at 7:31 PM, kingkung <[EMAIL PROTECTED]> wrote:
>
> >> >> > I wrote a small activity which illustrates some crazy behavior I found
> >> >> > while implementing ListView and choices.  Feel free to plug this in
> >> >> > and try it yourselves (and be sure to check logcat as well):
>
> >> >> > public class TestActivity extends ListActivity {
>
> >> >> >        public String[] strings = { 
> >> >> > "What","the","devil","is","happening?" };
>
> >> >> >       [EMAIL PROTECTED]
> >> >> >    public void onCreate(Bundle icicle) {
> >> >> >        super.onCreate(icicle);
> >> >> >        setContentView(R.layout.listview);
> >> >> >        getListView().setChoiceMode(ListView.CHOICE_MODE_SINGLE);
> >> >> >        getListView().setAdapter(new
> >> >> > ArrayAdapter(this,R.layout.main,strings));
> >> >> >        getListView().setOnItemClickListener(new OnItemClickListener()
> >> >> > {
> >> >> >                        public void onItemClick(AdapterView arg0, 
> >> >> > View arg1, int arg2,
> >> >> >                                        long arg3) {
> >> >> >                                        Log.d("test","Checked: "+
> >> >> > ((TextView)getListView().getChildAt(arg2)).getText().toString());
> >> >> >                                        if 
> >> >> > (getListView().isItemChecked(arg2))
> >> >> >                                        {
> >> >> >                                                for (int i=0; 
> >> >> > i >> >> >                                                {
> >> >> >                                                        if (i==arg2)
> >> >> >                                                                
> >> >> > getListView().getChildAt(i).setBackgroundColor(Color.MAGENTA);
> >> >> >                                                        else
>
> >> >> > getListView().getChildAt(i).setBackgroundColor(Color.TRANSPARENT);

[android-developers] Re: Accessing the Task Manager

2008-10-23 Thread hackbod

No, sorry there isn't.

On Oct 23, 7:53 am, CM <[EMAIL PROTECTED]> wrote:
> Is there a way to launch the Task Manager(the same one as when you
> hold down the home button) from your application?
>
> 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: Create Data Base

2008-10-23 Thread andrex

Thanks Anm, but I'm looking for something diferent, i want to create a
class like this(I got it from android example):

public class base extends ContentProvider {
private static final String TAG = "Base";

private static final String DATABASE_NAME = "base.db";
private static final int DATABASE_VERSION = 2;
private static final String POINTS_TABLE_NAME = "points";
 //   private static final String CITY_TABLE_NAME = "city";
 //   private static final String CATEGORY_TABLE_NAME = "category";

private static HashMap sNotesProjectionMap;

private static final int POINTS = 1;
private static final int POINT_ID = 2;

private static final UriMatcher sUriMatcher;

private static class DatabaseHelper extends SQLiteOpenHelper {

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

@Override
public void onCreate(SQLiteDatabase db) {
db.execSQL("CREATE TABLE " + POINTS_TABLE_NAME + " ("
+ Points._ID + " INTEGER PRIMARY KEY,"
+ Points.NOMBRE + " TEXT,"
+ Points.DESCRIPCION + " TEXT,"
+ Points.DIRECCION + " TEXT,"
+ Points.ALTITUD + " TEXT,"
+ Points.ID_CAT + " TEXT,"
+ Points.ID_CIUDAD + " TEXT,"
+ Points.LATITUD + " TEXT,"
+ Points.LONGUITUD + " TEXT,"
+ Points.URL + " TEXT,"
+ Points.TELEFONO + " TEXT"
+ ");");
}

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

@Override
public boolean onCreate() {
mOpenHelper = new DatabaseHelper(getContext());
return true;
}
@Override
public Cursor query(Uri uri, String[] projection, String
selection, String[] selectionArgs,
String sortOrder) {
SQLiteQueryBuilder qb = new SQLiteQueryBuilder();

switch (sUriMatcher.match(uri)) {
case POINTS:
qb.setTables(POINTS_TABLE_NAME);
qb.setProjectionMap(sNotesProjectionMap);
break;

case POINT_ID:
qb.setTables(POINTS_TABLE_NAME);
qb.setProjectionMap(sNotesProjectionMap);
qb.appendWhere(Points._ID + "=" +
uri.getPathSegments().get(1));
break;

default:
throw new IllegalArgumentException("Unknown URI " + uri);
}

// If no sort order is specified use the default
String orderBy;
if (TextUtils.isEmpty(sortOrder)) {
orderBy = tablas.Points.DEFAULT_SORT_ORDER;
} else {
orderBy = sortOrder;
}

// Get the database and run the query
SQLiteDatabase db = mOpenHelper.getReadableDatabase();
Cursor c = qb.query(db, projection, selection, selectionArgs,
null, null, orderBy);

// Tell the cursor what uri to watch, so it knows when its
source data changes
c.setNotificationUri(getContext().getContentResolver(), uri);
return c;
}

@Override
public String getType(Uri uri) {
switch (sUriMatcher.match(uri)) {
case POINTS:
  //  return Notes.CONTENT_TYPE;

case POINT_ID:
//return Notes.CONTENT_ITEM_TYPE;

default:
throw new IllegalArgumentException("Unknown URI " + uri);
}
}

@Override
public Uri insert(Uri uri, ContentValues initialValues) {
// Validate the requested uri
if (sUriMatcher.match(uri) != POINTS) {
throw new IllegalArgumentException("Unknown URI " + uri);
}

ContentValues values;
if (initialValues != null) {
values = new ContentValues(initialValues);
} else {
values = new ContentValues();
}

Long now = Long.valueOf(System.currentTimeMillis());
/*
// Make sure that the fields are all set
if (values.containsKey(NotePad.Notes.CREATED_DATE) == false) {
values.put(NotePad.Notes.CREATED_DATE, now);
}

if (values.containsKey(NotePad.Notes.MODIFIED_DATE) == false)
{
values.put(NotePad.Notes.MODIFIED_DATE, now);
}

if (values.containsKey(NotePad.Notes.TITLE) == false) {
Resources r = Resources.getSystem();
values.put(NotePad.Notes.TITLE,
r.getString(android.R.string.untitled));
}

if (values.containsKey(NotePad.Notes.NOTE) == false) {
values.put(NotePad.Notes.NOTE, "");
} */
values.put(tablas.Points.NOMBRE, "Pizza Hut");
 

[android-developers] Android developer Challenge 2

2008-10-23 Thread april

When the ADC 2 will be launched? does anyone have any idea? I can buy
a phone, but I really don't want to sign contract with TMobile? will
Google give any promotion for ADC2 developer?

Thanks!

April
--~--~-~--~~~---~--~~
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: Android Source Code Now Available

2008-10-23 Thread Ed Burnette

+1 to a zip file version, perhaps updated nightly or weekly. I know we
can use the web interface to look at one file at a time, but it would
be nice to be able to read it all from a Windows machine.

On Oct 21, 4:59 pm, whitehexagon <[EMAIL PROTECTED]> wrote:
> Great news!!  Is it also available as a .zip someplace, I really don't
> fancy to install all these other tools just to browse the source code.
--~--~-~--~~~---~--~~
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] PlayScreen launches portal with 20 free games for the new T-Mobile G1 (Google Android) Phone.

2008-10-23 Thread William D. Volk

News about our web-portal for the G1.

PlayScreen launches portal with 20 free games for the new T-Mobile G1  
(Google Android) Phone.

G1 owners won’t have to wait for great mobile entertainment at  
PlayScreen.com .

SAN DIEGO - Oct, 23rd, 2008.  The company that launched the first  
iPhone web-based games has announced the release of 20 web-based  
titles and its first downloadable game for the new T-Mobile G1™,  
Google Android™ Phone.   Titles include casual, action, puzzle and  
social games.

"These ad-supported titles take advantage of the advanced browser on  
the new G1 phone" said William Volk, president and CEO of PlayScreen.  
"Titles include solitaire, bowling, sudoku, solitaire, backgammon,  
darts, golf and other popular games."

“PlayScreen is applying its considerable experience in advanced mobile  
technology to bring these titles to consumers” commented PlayScreen  
President Sherri Cuono. “There are no installs required and these  
games are played instantly via the browser.  We're also going to make  
downloadable versions of these games available when Goggle’s App  
Market launches.”

“With all the excitement over this new phone and operating system we  
wanted to make sure consumers didn’t have to wait for their favorite  
games” added William Volk.

PlayScreen and the PlayScreen logo are trademarks of MyNuMo, LLC. All  
other trademarks are the property of their respective owners.

About PlayScreen: San Diego based PlayScreen is a social entertainment  
company delivering mobile social games, ringtones, wallpapers, videos,  
and text services on all major US Carriers.  More Details about  
PlayScreen at www.PlayScreen.com/g1/ .  (PlayScreen is a trademark of  
MyNuMo, LLC.)
Contact: [EMAIL PROTECTED] +1 858 692 1124
--~--~-~--~~~---~--~~
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: Market Place and Trial Software?

2008-10-23 Thread Ed Burnette

How about this idea: Call your program "Beta" for now and then in
February (or whenever) retire the Beta version and come out with a new
non-Beta version that has a charge. The only trick would be to prevent
people from auto-updating from Beta to the commercial version without
annoying them.

IMHO Google did the developer community a disservice by not allowing
for paid apps from day one. A lot of the developer energy on iPhone
comes from dreams of "riches" made in the App Store. If at all
possible, please get paid apps in place by this December at the
latest.

--Ed
"Hello, Android" - now in 7th beta
http://www.pragprog.com/titles/eband/hello-android

On Oct 22, 4:25 pm, atrus123 <[EMAIL PROTECTED]> wrote:
> Another thing I was wondering if it would be possible to simply start
> charging for the app once that becomes an option.  So we'd post our
> stuff now... free... and then go in and edit the price later on.  It
> might be a good option; by then we'd have feedback, and any popularity
> might drive future revenue.
>
> I'd love to hear from a Google employee about how they expect this to
> work.
>
> On Oct 22, 4:07 pm, cyntacks <[EMAIL PROTECTED]> wrote:
>
> > Hi Al,
>
> > Great stuuf, to be honest I'm not as adept at licensing as I should
> > be, given my job description and all! But there is def. a need for
> > licensing of some sort. I'm really surprised we have to wait until Q1
> > (which, as we all know could mean as late as March 31!). It just
> > really puts a damper on the whole thing and is going to create
> > headaches for most of us.
>
> > Time-to-Market is huge in this industry, and those of us who worked
> > very long days for too long toiling in the dark will not be able to
> > benefit (read "$") from the vacuum created when the new store goes
> > live on Monday. Just a shame, that's all... But then again, I guess we
> > could use the opportunity to perfect our products, or create more
> > apps.
>
> > Keep on coding, and def. let me know about the licensing idea, very
> > interested.
>
> > Kevin
>
> > On Oct 22, 3:57 pm, Al Sutton <[EMAIL PROTECTED]> wrote:
>
> > > Hi Kevin,
>
> > > I think you'll end up with two apps initially. I'm looking at working on
> > > a licensing solution because there seems to be a need. Do you have any
> > > tips as to what you'd like to see?
>
> > > Al.
>
> > > cyntacks wrote:
> > > > Hi Al,
>
> > > > I guess that is the question. Does Android support this type of
> > > > transaction (i.e. "lite" version)? I don't recall seeing anything in
> > > > the API about this. Of course I can just disable parts of the app, but
> > > > how would the user "upgrade" to the full version?
>
> > > > Am I making to much out of this, will it all make sense come Monday
> > > > morning?
>
> > > > Kevin
>
> > > > On Oct 22, 3:44 pm, Al Sutton <[EMAIL PROTECTED]> wrote:
>
> > > >> Can you not ship a cut down "lite" version with an option to pay for a
> > > >> fuller version?
>
> > > >> Al.
>
> > > >> atrus123 wrote:
>
> > > >>> I'm disappointed that we won't be able to charge until next quarter,
> > > >>> and it does put a slight dent in my plans.  I guess I'll just sigh and
> > > >>> deploy.
>
> > > >>> On Oct 22, 1:56 pm, cyntacks <[EMAIL PROTECTED]> wrote:
>
> > >  Ok, so the Market Place will be live on Monday, AWESOME! AWESOME!
> > >  AWESOME!
>
> > >  But here is a question for all you developers like us who are hoping
> > >  to make some revenue off months of hard work.
>
> > >  Does the API currently support a way to make our applications "trial
> > >  software"? That is, making them free until "March 1st" or some other
> > >  date, at which time the user will have to pay?
>
> > >  Obviously getting on the phone and receiving user reviews is 
> > >  extremely
> > >  important, but giving away all of our hard work "just seems wrong". I
> > >  have read that over 1 million people have pre-ordered the phone, that
> > >  is a lot of free software giveaways..
>
> > >  What is everyone else doing? Waiting? Sayhing the heck with it and
> > >  deploying? Just looking for some advice.
>
> > >  Kevin
--~--~-~--~~~---~--~~
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: ADB via USB

2008-10-23 Thread plusminus

Btw: I've compiled a list of steps to debug on Windows(Vista) with a
Driver-Download:

> http://href.to/Jo5

Regards, plusminus
http://anddev.org
#  Worlds largest Android Development Community / Tutorials

On 23 Okt., 11:48, Ed Burnette <[EMAIL PROTECTED]> wrote:
> I see the doc has been changed to say "Windows (32-bit only)". I tried
> it on a Win32 (XP) machine and it worked fine. Any tips on how to port
> the driver to Win64?
>
> On Oct 22, 4:20 pm, Ed Burnette <[EMAIL PROTECTED]> wrote:
>
> > It's not working for me. The device driver won't install, and I get
> > this error from Vista64:
>
> > Description:
> >   Windows detected a new device attached to your computer, but could
> > not find the driver software it needs to make the device usable. Each
> > device manufacturer typically includes driver software of a CD that
> > comes with the device, or as a download from its website. The hardware
> > ID of your device is USB\VID_0BB4&PID_0C02&REV_0100&MI_01.
>
> > Problem signature:
> >   Problem Event Name:   PnPDriverNotFound
> >   Architecture: x64
> >   Hardware Id:  USB\VID_0BB4&PID_0C02&REV_0100&MI_01
> >   OS Version:   6.0.6001.2.1.0.256.4
> >   Locale ID:    1033
>
> > On Oct 22, 3:03 pm, "Xavier Ducrohet" <[EMAIL PROTECTED]> wrote:
>
> > > Hi Mark,
>
> > > We just updated the doc regarding developing on devices, for all 
> > > platforms.
>
> > >http://code.google.com/android/intro/develop-and-debug.html#developin...
>
> > > Xav
>
>
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



  1   2   >