[android-developers] Text to Speech lib from Android Market

2008-10-29 Thread blues

There is a free lib can be downloaded from Android Market on the G1
phone. It's developed by a google developer.

Does anyone know how to use it? Any document about 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] Network Monitoring

2008-10-29 Thread blues

Is there a way to monitor the IP traffic? For example throughput?
If not in java, can it be done through native code? I have seen some
IP sniffer source code for linux.
--~--~-~--~~~---~--~~
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 embedded hardware

2008-10-29 Thread whitehexagon

I'm looking for some resouces/links for embedded hardware that runs
Android.  I've found a couple of hardware development boards such as
the dotphone offering and some custom projects across the web.  But
these are more directed towards phone development.  I'm looking for
something smaller/simpler that can be used in embeded systems.
Possibly an 'out-of-the-box' kit form that runs core android but has
axtra modules for optional touch display, optional digital/analogue
inputs, wireless g support etc.  So are there any such offererings
available now that we have real hardware out in the wild?

Cheers

Peter
--~--~-~--~~~---~--~~
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-29 Thread SR

I second this.  On the G1, it returns a bogus phone number (somewhat
similar to that on the emulator).

Here's the code:
TelephonyManager tm = (TelephonyManager)
activity.getSystemService(Context.TELEPHONY_SERVICE);

String phoneId = tm.getLine1Number();

I've got the following in the manifest file:
uses-permission
android:name=android.permission.READ_PHONE_STATE /

The value I receive is:
1 (857) 445-3609

which is _not_ the MSISDN or the phone number.

I'm guessing it's a bug that needs to be fixed ASAP?

Stan

On Oct 23, 6:59 pm, Mark Murphy [EMAIL PROTECTED] wrote:
 Danny wrote:
  I am trying to get the user'sphonenumberto 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] Re: ArrayAdapter

2008-10-29 Thread tauntz

Try notifyDataSetChanged() - it has no documentation but it seems to
do what you want.

Tauno

On Tue, Oct 28, 2008 at 9:21 PM, Emery [EMAIL PROTECTED] wrote:

 How does the ArrayAdapter know when the array has been modified? I am
 using my own adapter, and I want to add items as they come in while
 asynchronously updating the ListView displaying them.
 


--~--~-~--~~~---~--~~
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: Issue accessing DB from SDCARD

2008-10-29 Thread Thao

Hi,

Sorry for the mistake, I check again my launching option :  -sdcard E:
\_sources\android\filesystem\mySDCARD.ima

I created my image with winImage tool, and it was formatted to
FAT32.
I have also tried to create some text files on the sdcard, then read
it.
One thing is weird : When I create some text files on the SDCARD with
only Hello android for example. The cat shell command (adb shell)
prompt me with a invalid length message.
If I create the same file, with the same text in my application
folder, I can read Hello android with cat command.

Maybe all my problem come from the incorrect SDCARD format with
winImage ?
These are the parameters for the image creation :

File system : FAT 32
Bytes per sector ; 512
Sector per cluster (size in bytes) : 128
total number of sectors : 25545600 -- 121MB

What do you think ?
--~--~-~--~~~---~--~~
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: hanging up/terminating a call in an automated fashion

2008-10-29 Thread legerb

You can use a BroadcastReceiver to catch the Intent, and terminate it
with abortBroadcast().

On Oct 27, 8:50 pm, dreamerBoy [EMAIL PROTECTED] wrote:
 Hi -

 I am looking for a way to terminate a call in an automated fashion.
 (I realize it can be done manually - the application requires that it
 have control over the call so that it can hang up automatically.)

 To initiate a call, one starts an Activity with the ACTION_CALL
 Intent.

 However, there does not appear to be any corresponding way to end it
 with a corresponding Intent, or using the Telephony or
 TelephonyManager interface/package.

 The only thing I can thing of is calling finish() on the Activity used
 to start the call - but that doesn't seem right at all.

 Can anyone shed light on this issue?

 Thanks much.

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

2008-10-29 Thread Zhihong GUO
some questions about the email application in the source package.
1 Why there is no email providers like contacts and calendar applications.
The email application has to do everything, and make it very huge and
complicate.

2 The email application will start a email service that will synchronize
with the mail server, so that the push mail is actually done by a cycle pull
action, right?

--~--~-~--~~~---~--~~
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: Join via ContentProvider

2008-10-29 Thread for android
How can i create a customised Expandable list where the group identifer
image is different than the already given ones in the apis..

On Mon, Oct 27, 2008 at 6:46 PM, jtaylor [EMAIL PROTECTED] wrote:


 I'm just supposing that each class is a table. I don't know how
 android.provider is set up, though I guess one can now see from the
 source code.


 - Juan

 On Oct 27, 9:15 am, jtaylor [EMAIL PROTECTED] wrote:
  That looks like two tables.
 
  Contacts.People
  Contacts.People.Phones
 
  - Juan
 
  On Oct 26, 12:52 pm, Anm [EMAIL PROTECTED] wrote:
 
   jtaylor,
   Did you read the example?  It does not do a joint.  Instead it uses a
   Uri subpath notation for its child query, within the same table rather
   than joining multiple tables.  The references to group in the code
   are not contact group membership, but rather ExpandableList parent
   node/groups.
 
   On Oct 25, 11:51 am, jtaylor [EMAIL PROTECTED] wrote:
 
ExpandableList2.java has the getChildrenCursor() (in the
MyExpandableListAdapter inner class) which has the code for obviously
a contentprovider Join.
 
   
 http://code.google.com/android/samples/ApiDemos/src/com/example/andro...
 
- Juan
 
On Oct 25, 2:47 pm, jtaylor [EMAIL PROTECTED] wrote:
 
 ExpandableList2.
 http://code.google.com/android/samples/ApiDemos/src/com/example/andro...
 
 - Juan
 
 On Oct 24, 3:05 am, Anm [EMAIL PROTECTED] wrote:
 
  I'm struggling to understand how to do a join, if its possible,
 with
  the decomposed SQL arguments of the ContentProvider APIs.  Is
 there an
  example out there?
 
  Or if not, could some code up a quick example, say joining People
 with
  GroupMembership?
 


--~--~-~--~~~---~--~~
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: Lunar Lander game loop (was: Re: [android-developers] Re: How fast is the T-Mobile G1?)

2008-10-29 Thread Stoyan Damov

Thanks again, yes, something like that - I realize the question was
more for a game development forum, not here, sorry.
Basically I'd like the game loop to call updatePhysics, say, exactly
30 times/sec but render only when there's anything to render, sleep to
preserve battery otherwise.

Cheers

On Wed, Oct 29, 2008 at 4:10 AM, hackbod [EMAIL PROTECTED] wrote:

 If you want to throttle your updates to something less than the screen
 refresh rate, you can just use SystemClock.uptimeMillis() to find the
 time between each draw and Object.sleep() or Object.wait() to suspend
 the thread until it is next time to draw.  Is that what you are
 looking for?

 On Oct 28, 6:01 pm, Stoyan Damov [EMAIL PROTECTED] wrote:
 Thanks to you and Romain!

 So my follow up question is what is the maximum number of vertical
 syncs per second of a G1 phone?
 In other words, if the drawing code is really fast (e.g. if I don't
 invalidate the entire screen but just a tiny rectangle), what am I
 supposed to do in order to make an animation run at no more than N
 frames per second? The reason behind this is this: I don't wanna draw
 a frame that has already been drawn, so I'll keep a list of active
 or dirty objects (dirtyness determined in updatePhysics or
 whatever), but in this case, I'll just spin the CPU waiting for the
 next game update which will invalidate some objects. Hence the initial
 questioning of the game's loop - what if the game's scene has to be
 drawn in less than the max FPS for the device?

 I hope you'll understand what I mean - it's 3am here and I'm not a
 native speaker :)

 Cheers

 On Wed, Oct 29, 2008 at 2:46 AM, hackbod [EMAIL PROTECTED] wrote:

  A little more info (I missed that the app has been changed to use a
  SurfaceView) -- the call to lock will block if you are running faster
  than the maximum frame rate.  See here:

 http://code.google.com/android/reference/android/view/SurfaceHolder.h...()

  On Oct 28, 2:03 pm, Stoyan Damov [EMAIL PROTECTED] wrote:
  On Tue, Oct 28, 2008 at 7:44 PM, PorkChop [EMAIL PROTECTED] wrote:

   My emulator gives a result of 543.94 bogomips, better be careful
   coding games otherwise they are going to end up sucking on the actual
   device!

   Speaking of which, has anyone noticed Lunar Lander's game loop. It's a

  real WTF to me:

  while (running)
  {
  updatePhysics();
  draw();

  }

  No shit batman? At what FPS? The max possible on the device? Redrawing a
  frame possibly hundreds of times per second w/o the physics even being
  updated at all?
  I expected to see some sort of a game loop with constant game update rate
  and some target FPS (not precise of course) and some sleeping eventually 
  so
  CPU's not utilized at 100% because this is a MOBILE DEVICE for crying out
  loud, and this sucks battery, and the sample is supposed to be a 
  reference
  implementation with best CODING practices, etc. (i.e. fuck graphics,
  gameplay, etc.), *right*?

  Cheers
 


--~--~-~--~~~---~--~~
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: Issue accessing DB from SDCARD

2008-10-29 Thread Ludwig
I have no idea about the winimage tool, but Android provides the mksdcard
command in the tools directory of your SDK installation.
Make an SD card with that command, run your program and if that works, there
is some difference in the sd card image generated by winimage that Android
does not like (whatever it may be).

Always best to first stick with things that are known to work.

Ludwig



2008/10/29 Thao [EMAIL PROTECTED]


 Hi,

 Sorry for the mistake, I check again my launching option :  -sdcard E:
 \_sources\android\filesystem\mySDCARD.ima

 I created my image with winImage tool, and it was formatted to
 FAT32.
 I have also tried to create some text files on the sdcard, then read
 it.
 One thing is weird : When I create some text files on the SDCARD with
 only Hello android for example. The cat shell command (adb shell)
 prompt me with a invalid length message.
 If I create the same file, with the same text in my application
 folder, I can read Hello android with cat command.

 Maybe all my problem come from the incorrect SDCARD format with
 winImage ?
 These are the parameters for the image creation :

 File system : FAT 32
 Bytes per sector ; 512
 Sector per cluster (size in bytes) : 128
 total number of sectors : 25545600 -- 121MB

 What do you think ?
 


--~--~-~--~~~---~--~~
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: Issue accessing DB from SDCARD

2008-10-29 Thread Thao

Hey Guy,

good new for me! I have resolved my problem. All that think come from
the sdcard image that was not well formatted...
I don't use winimage anymore. I should have used mksdcard tool since
the beginning. I wouldn't have all these issue!

Thank all for helping me :- )

Bye. Next time on another android issue !
--~--~-~--~~~---~--~~
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: Issue accessing DB from SDCARD

2008-10-29 Thread Ludwig
Good luck.

2008/10/29 Thao [EMAIL PROTECTED]


 Hey Guy,

 good new for me! I have resolved my problem. All that think come from
 the sdcard image that was not well formatted...
 I don't use winimage anymore. I should have used mksdcard tool since
 the beginning. I wouldn't have all these issue!

 Thank all for helping me :- )

 Bye. Next time on another android issue !
 


--~--~-~--~~~---~--~~
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] howto debug apps with more than one process

2008-10-29 Thread Jakob Sachse

Hallo,

I am trying to write a Service thats runs in a seperate process.
I am willing to use the Service through IPC from an Activity.

thats how my section of the AndroidManifest looks like:
###
service android:name=MyService android:process=:remote
intent-filter
action android:name=com.smth.IRemoteService /
/intent-filter
/service

activity android:name=.UTI android:label=@string/app_name
intent-filter
action android:name=android.intent.action.MAIN /
category android:name=android.intent.category.LAUNCHER /
/intent-filter
/activity
###

Yet when I start the App (using eclipse: debug as - android app), i
can debug the Activity but not the Service. Switching to DDMS gives me
an overview of running processes, using the green bug for enabeling
debug for the services process results in:

no open project fround for com.smth:remote, Debug Session failed.

Anyway the project is open.

Have i forgotten do declare something in the debug configuration
dialog? Any hint is appreciated
--~--~-~--~~~---~--~~
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-29 Thread yasmin afrose
Hi,

I'm using HTC touch phone with Windows mobile 5.0 OS.

I've connected my mobile with Computer with USB.

1.  I've included debuggable = true within Manifest.xml file.
2.  How can I turn  on USB Debugging on HTC touch phone.
3. where is Device Chooser dialog box...when it will appears..

http://code.google.com/android/intro/develop-and-debug.html under this link
, I can't get step 2  3.

Please help me as soon as possible.

Thanks in advance.

Thanks,
Yasmin

On Fri, Oct 24, 2008 at 5:34 PM, nkijak [EMAIL PROTECTED] wrote:


 If I understand correctly, when you Run as... in eclipse this is
 making a release version and installing it on your phone.  Do you have
 an actual device or are you asking how to get the apk file itself?

 On Oct 24, 3:10 am, Sudha [EMAIL PROTECTED] wrote:
  thanks for your reply
  But this is for working in the debug mode..
  Suppose I had my certified apk and want to download into the device
  then ?
 



-- 
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: howto debug apps with more than one process

2008-10-29 Thread wescorp

Hi,

Try putting some code like this

String LOG_TAG = my service process =;
Log.d(LOG_TAG, myserviceprocess);

in your code to monitor whats happening.

The results are displayed in Debug LogCat.

Cheers,
Wes


On Oct 29, 4:00 am, Jakob Sachse [EMAIL PROTECTED] wrote:
 Hallo,

 I am trying to write a Service thats runs in a seperate process.
 I am willing to use the Service through IPC from an Activity.

 thats how my section of the AndroidManifest looks like:
 ###
 service android:name=MyService android:process=:remote
         intent-filter
                 action android:name=com.smth.IRemoteService /
         /intent-filter
 /service

 activity android:name=.UTI android:label=@string/app_name
         intent-filter
                 action android:name=android.intent.action.MAIN /
                 category android:name=android.intent.category.LAUNCHER /
         /intent-filter
 /activity
 ###

 Yet when I start the App (using eclipse: debug as - android app), i
 can debug the Activity but not the Service. Switching to DDMS gives me
 an overview of running processes, using the green bug for enabeling
 debug for the services process results in:

 no open project fround for com.smth:remote, Debug Session failed.

 Anyway the project is open.

 Have i forgotten do declare something in the debug configuration
 dialog? Any hint is appreciated
--~--~-~--~~~---~--~~
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 long does it take for ratings/reviews to return?

2008-10-29 Thread atrus123

So I've updated my app, and as warned, all my ratings and reviews are
gone.  How long does it take for those to return?
--~--~-~--~~~---~--~~
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: Network Monitoring

2008-10-29 Thread brs

You could try to read

/proc/self/net/dev
/proc/self/net/snmp

to get interface and protocol level stats. I guess since this is not
part of the public API, there is not guarantee that these formats
won't change, but for now at least this information might be what you
are looking for.

Bernhard

On Oct 29, 2:15 am, blues [EMAIL PROTECTED] wrote:
 Is there a way to monitor the IP traffic? For example throughput?
 If not in java, can it be done through native code? I have seen some
 IP sniffer source code for linux.
--~--~-~--~~~---~--~~
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: Available space in device?

2008-10-29 Thread Iroid

Thanks a lot for response!!!



On Oct 28, 11:29 pm, Peli [EMAIL PROTECTED] wrote:
 Did anyone mention android.os.StatFs already? :-)

 Peli

 On Oct 28, 5:27 pm, Iroid [EMAIL PROTECTED] wrote:

  Hello Everyone,

  How can I find the available space in the device?
  I could not find any API for the same :(

  I would appreciate your help !!

  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] The UK Release and Internationalization

2008-10-29 Thread cyntacks

Hi,

Last I read here on the board Android did not yet fully support
internationalization (even though we have the directories for
different languages, etc).

1) Is this true?
2) Will the normal Java syntax involving Locales be a valid work
around?

I ask because our application needs to know whether to use metric
units or not. Just wondering what the best way to determine this may
be on Android for the UK release today.

Thanks for your help,

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: howto debug apps with more than one process

2008-10-29 Thread Jakob Sachse

Hi,

thanks for the answer. Though I didn't get your point.
myserviceprocess is expected to be some string, concluding the
content is the name of the process: What would be the adavantage
over the DDMS Device view, that lists all the running processes?

I do see the process that i want to debug, only i can't turn it on.
It has the same name as the activity (that is in debug mode) but
ends with :remote

On 29 Okt., 11:50, wescorp [EMAIL PROTECTED] wrote:
 Hi,

 Try putting some code like this

 String LOG_TAG = my service process =;
 Log.d(LOG_TAG, myserviceprocess);

 in your code to monitor whats happening.

 The results are displayed in Debug LogCat.

 Cheers,
 Wes

 On Oct 29, 4:00 am, Jakob Sachse [EMAIL PROTECTED] wrote:

  Hallo,

  I am trying to write a Service thats runs in a seperate process.
  I am willing to use the Service through IPC from an Activity.

  thats how my section of the AndroidManifest looks like:
  ###
  service android:name=MyService android:process=:remote
          intent-filter
                  action android:name=com.smth.IRemoteService /
          /intent-filter
  /service

  activity android:name=.UTI android:label=@string/app_name
          intent-filter
                  action android:name=android.intent.action.MAIN /
                  category android:name=android.intent.category.LAUNCHER /
          /intent-filter
  /activity
  ###

  Yet when I start the App (using eclipse: debug as - android app), i
  can debug the Activity but not the Service. Switching to DDMS gives me
  an overview of running processes, using the green bug for enabeling
  debug for the services process results in:

  no open project fround for com.smth:remote, Debug Session failed.

  Anyway the project is open.

  Have i forgotten do declare something in the debug configuration
  dialog? Any hint is appreciated
--~--~-~--~~~---~--~~
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] Need Help..... To install android package (.apk) on HTC Touch Mobile

2008-10-29 Thread AndroidKid

Hi All,

I've executed some sample application in android using emulator.

I bought HTC touch mobile which has Windows Mobile 5.0 OS.

I try to run my android application within HTC touch phone, But I
can't :(

I've done the following things,

(1) I have installed Microsoft Activesync 4.5. (To rectify the issue
while I'm connecting USB to my PC ).

(2) I've connected my mobile with PC using USB.

(3) Then I've modified my android project Manifest.xml file (Included
Debuggable=true).

(4) Then I've executed android application using eclipse. I got output
in Emulator only. Not in HTC Touch Phone.

I've gone through  the link  
http://code.google.com/android/intro/develop-and-debug.html.

With in the above link, I can't perform step 2  Step 3. Since Step 2
is based on T-Mobile G Phone. In Step 3, I can't find the Wizard (ie,
Found New Hardware wizard).

I think If I did Step 2  3, then only the Device Chooser Wizard will
appears while I'm running android.

Please help me... what I'm missing ...

Thanks in advance.

By,
Yasmin
--~--~-~--~~~---~--~~
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: GWT 1.5.2 with Android 1.0

2008-10-29 Thread Charlie Collins

Use GWT 1.5.3, which was released a few weeks ago and specifically
fixes RPC issues on Android.

http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/048413bdb6e5b292

On Oct 29, 7:00 am, Stefano Cannata [EMAIL PROTECTED]
wrote:
 Hallo everybody,
 since few months I am developing a chat web aplication with the Google
 Web Toolkit (now 1.5.2), to be applied to the 1.0 Android emulator.
 I see that  the listboxes on Android 1.0  can't be filled dynamically
 by a standard GWT remote procedure call.

 I attach a sample zip project file showing this problem.

 Can anybody help me, explaining why?

 Thank you in advance,
 Stefano

  TestAndroid.zip
 416KViewDownload
--~--~-~--~~~---~--~~
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: GWT 1.5.1 application on Android 1.0 emulator

2008-10-29 Thread Charlie Collins

See your other thread on this topic:
http://groups.google.com/group/android-developers/browse_thread/thread/3992944b54178.

GWT 1.5.3 fixes this.

On Oct 29, 6:04 am, Stefano Cannata [EMAIL PROTECTED]
wrote:
 On Fri, Oct 24, 2008 at 9:18 AM, Stefano [EMAIL PROTECTED] wrote:
  Hallo everybody,

  since few months I am developing a chat web aplication with the Google
  Web Toolkit (now 1.5.2), to be applied to the 1.0 Android emulator.

  I see that  the listboxes on Android 1.0  can't be filled dynamically
  by a standard GWT remote procedure call.
  I attach a sample zip project file showing this problem.
  Can anybody help me, explaining why?

  Thank you in advance,
  Stefano



  TestAndroid.zip
 416KViewDownload
--~--~-~--~~~---~--~~
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: howto debug apps with more than one process

2008-10-29 Thread Jakob Sachse

Hi,

thanks for the answer. Though I didn't get your point.
myserviceprocess is expected to be some string, concluding the
content is the name of the process: What would be the adavantage
over the DDMS Device view, that lists all the running processes?

I do see the process that i want to debug, only i can't turn it on.
It has the same name as the activity (that is in debug mode) but
tails :remote

On 29 Okt., 11:50, wescorp [EMAIL PROTECTED] wrote:
 Hi,

 Try putting some code like this

 String LOG_TAG = my service process =;
 Log.d(LOG_TAG, myserviceprocess);

 in your code to monitor whats happening.

 The results are displayed in Debug LogCat.

 Cheers,
 Wes

 On Oct 29, 4:00 am, Jakob Sachse [EMAIL PROTECTED] wrote:

  Hallo,

  I am trying to write a Service thats runs in a seperate process.
  I am willing to use the Service through IPC from an Activity.

  thats how my section of the AndroidManifest looks like:
  ###
  service android:name=MyService android:process=:remote
          intent-filter
                  action android:name=com.smth.IRemoteService /
          /intent-filter
  /service

  activity android:name=.UTI android:label=@string/app_name
          intent-filter
                  action android:name=android.intent.action.MAIN /
                  category android:name=android.intent.category.LAUNCHER /
          /intent-filter
  /activity
  ###

  Yet when I start the App (using eclipse: debug as - android app), i
  can debug the Activity but not the Service. Switching to DDMS gives me
  an overview of running processes, using the green bug for enabeling
  debug for the services process results in:

  no open project fround for com.smth:remote, Debug Session failed.

  Anyway the project is open.

  Have i forgotten do declare something in the debug configuration
  dialog? Any hint is appreciated
--~--~-~--~~~---~--~~
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] User Event trapping for Android Browser

2008-10-29 Thread Piyush

Hi,

I  am trying to develop an application that would like to receive
events like click, URL hit, etc from Android web browser.  Would this
be possible ?

What is the best possible way to get information about these user
activities on browser?

Thanks in advance !

~Piyush.

--~--~-~--~~~---~--~~
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] Setting Proxy on a Real Device

2008-10-29 Thread Piyush

Hi,

I would like to know if its possible to configure the real device to
change the proxy setting so that the browser goes through the
enterprise proxy.

Will this proxy setting/configuration be independent of service
provider?

Any help for this is highly appreciated

Thanks in advance

~Piyush.


--~--~-~--~~~---~--~~
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] map view problem

2008-10-29 Thread sami

Hi ,

I got mapview 3days before ,but from yesterday i am getting grid
instead of mapview.i got solution from our goups also but its still
not working .please help me.DATA_Preferences,DATA_Tiles was not
created automatically .i pushed those files manually also.please help
me .i am struggling ...


--~--~-~--~~~---~--~~
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] contacts.extensions

2008-10-29 Thread Stefan Selariu
Hi guys,
I'm trying to extend the contacts by adding additional fields to
contacts.people using contacts.extensions. My only problem is that have no
idea how to query the contacts.people using a join with contacts.extensions.
I'm not trying to modify/extend the contacts provider.

One very very ugly solution would be to query on contacts.extensions and
using the person ids to query the contacts.people (manual join) ... The idea
is to create an ListActivity which displays only the extended contacts.

I would like to be able to create a content provider that uses directly the
contacts.db (from the content provider) where i could use my join queries...
but from what I know this is not possible.

Do the content providers support joins? Or is there another way to create
this kind of joins?

One more thing... How can I use Contacts.People.Extensions?

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] startService() fails

2008-10-29 Thread donm

Hello,

I want to share an example Service in Android. The AIDL-file looks
like this:

package dom.da;
interface RNS {
int[] getRandomNumbers(int amount);
}

I created the RNS Interface and implemented it in RemoteService.java:

package dom.da;

import android.app.Service;
import android.content.Intent;
import android.os.IBinder;
import android.os.RemoteException;

public class RemoteService extends Service {
// implement the interface
private static final RNS.Stub mBinder = new RNS.Stub(){
@Override
public int[] getRandomNumbers(int amount) throws 
RemoteException {
if (amount  0)
return null;
int[] rc = new int[amount];
for (;amount  0; amount--)
rc[amount] = 0;
return rc;
}
};
// we only service one innterface, so return it
@Override
public IBinder onBind(Intent intent) {
return mBinder;
}
}

Now I try to start the service in RNS_Service.java:
package dom.da;

import android.app.Activity;
import android.content.ComponentName;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;

public class RNS_Service extends Activity {
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);

Intent i = new Intent();
i.setClassName(dom.da, RemoteService);
ComponentName compName = startService(i);
if (compName == null)
{
Log.e(RNS_Service, startService() failed!);
}
}
}

My AndroidManifest is as follows:
manifest
xmlns:android=http://schemas.android.com/apk/res/android;
package=dom.da
android:versionCode=1
android:versionName=1.0.0
application
android:icon=@drawable/icon
android:label=@string/app_name
activity
android:name=.RNS_Service
android:label=@string/app_name
intent-filter
action

android:name=android.intent.action.MAIN/
category

android:name=android.intent.category.LAUNCHER/
/intent-filter
/activity
service android:name=RemoteService android:exported=true
android:enabled=true/
/application
/manifest

This looks like pretty basic stuff, but startService allways returns
null. Is the way I set the component
of the service correct as in  i.setClassName(dom.da,
RemoteService)? Any other errors?

All AIDL examples I find on the net are either too complicated or
written for an older version
of the SDK.

Thanks,
Martin
--~--~-~--~~~---~--~~
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-29 Thread sami

hi ,

MapView was working for me ,After using the geocommand ,i also have
the same problem.can u please tell me what is the solution for this.i
have uninstalled my eclipse editor also and changed the eclipse
location also.

On Oct 17, 7:33 pm, Matthias [EMAIL PROTECTED] wrote:
 oh boy... I have figured out what went wrong...

 I used the geo command to send location fixes, but this thing takes
 GPS coordinates as lon/lat pairs, not as lat/lon (like any GEO-related
 API that I have ever seen does), so the map dropped me in some
 uncharted lands (which were gray...).

 Great, one more wasted day thanks to terrible user interface
 design. :-/

 On Oct 17, 4:08 pm, Matthias [EMAIL PROTECTED] wrote:



  darn, nevermind... the Maps demo in ApiDemos is also missing that
  file, produces the same error, but it does show a map.

  this is getting more obscure with every minute.

  On Oct 17, 3:56 pm, Matthias [EMAIL PROTECTED] wrote:

   Yes, I do have a location set.

   I think I know where the problem originates from though. As has
   appeared in the log traces before, the gray map thing seems to happen
   when the error Couldn't find file /data/data/your-app-package/
   DATA_Tiles occurs; from my understanding, this file holds the map
   tile data from which a map is constructed. If that file is missing,
   well, then no map will be rendered of course.

   I don't know why my application package is missing that file. This
   should be handled by the runtime of course. I will now try to manually
   copy that file over from another (working) package to my package and
   check if that'll fix it.

   On Oct 17, 3:10 pm, Ludwig [EMAIL PROTECTED] wrote:

Do you actually have a location set? I vaguely remember that I once had 
the
grey screen, where it was not the permission to get the data off the 
net,
but the fact that the view did not know what/where to view.
Ludwig

2008/10/17 Matthias [EMAIL PROTECTED]

 That didn't work for me. I am still getting a grey plane where the map
 should be. :-/

 Any other ideas?

 On Aug 20, 9:32 pm, Megha Joshi [EMAIL PROTECTED] wrote:
  Move the uses-permission tags above the application tag:

   uses-permission
 android:name=android.permission.ACCESS_COARSE_LOCATION
  /
     uses-permission android:name=android.permission.INTERNET /

      application android:icon=@drawable/icon
  android:label=@string/app_name
       uses-library android:name=com.google.android.maps /

  On Wed, Aug 20, 2008 at 3:44 AM, dapper [EMAIL PROTECTED] wrote:

   Hi there,

   I am just starting out with android and for my first app after the
   tutorial I would like to display a Map. I have basically taken the
   Sample code and put it into my own project. However I only seem 
   to get
   the grey grid and no map. Can anyone help (banging my head here). 
   I am
   using 0.9.

   I know it is something stupid but can't see it.

   Thanks

   This is my main.xml

   ?xml version=1.0 encoding=utf-8?
   LinearLayout xmlns:android=http://schemas.android.com/apk/res/
   android
          android:layout_width=fill_parent
      android:layout_height=fill_parent
      com.google.android.maps.MapView
          android:id=@+id/map
          android:layout_width=fill_parent
          android:layout_height=fill_parent
          android:enabled=true
          android:clickable=true
          android:apiKey=mymapkey
          /
   /LinearLayout

   My code

   public class HotelCompanion extends MapActivity {

          MapView mMapView;

     [EMAIL PROTECTED]
      public void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.main);
          MapView map = (MapView) findViewById(R.id.map);
          MapController mc = map.getController();
          mc.setZoom(9);
      }

         [EMAIL PROTECTED]
          protected boolean isRouteDisplayed() {
                  return false;
          }
   }

   and my manifest

   ?xml version=1.0 encoding=utf-8?
   manifest 
   xmlns:android=http://schemas.android.com/apk/res/android;
      package=dharmesh.android.hotel
      application android:icon=@drawable/icon 
   android:label=@string/
   app_name
      uses-library android:name=com.google.android.maps /

      uses-permission
   android:name=android.permission.ACCESS_COARSE_LOCATION /
      uses-permission android:name=android.permission.INTERNET /

          activity android:name=.HotelCompanion
   android:label=@string/app_name
              intent-filter
                  action android:name=android.intent.action.MAIN 
   /
                  category
   android:name=android.intent.category.LAUNCHER /
              

[android-developers] Re: call a soap web service from an android application

2008-10-29 Thread GasBot
Hey CJ, can you give an example of how to include that into a project
and how to call a web service method with it?  I'm really struggling
with this ksoap stuff.

On Oct 17, 12:14 pm, CJ [EMAIL PROTECTED] wrote:
 go get thishttp://www.tuxpan.com/android-soap/android-ksoap2-build.zip

 On Oct 17, 11:25 am, opengl es [EMAIL PROTECTED] wrote:

  Hi,

  I can't find AndroidHttpTransport...
  (I'm using android-sdk-windows-1.0_r1)

  Franck

  On Oct 17, 6:26 am, shailesh prakash [EMAIL PROTECTED] wrote:

   Hi christian110011,

   for kSOAP, you have to do something like this :
   // you have to download ksoap for j2me and extend it's
   org.ksoap2.transport.Transport  and implement ServiceConnection, coz
   it is built
   // for j2me not Android, you can eaisly find these two on other android 
   group

   Thread t = new Thread()
                                   {
                                           private static final String 
   SOAP_ACTION = addition;
                                           private static final String 
   METHOD_NAME = addition;
                                           private static final String 
   NAMESPACE = http://ws.apache.org/axis2;;

                                           // This is for service
   deployed on Tomcat, for JBOSS Android is not working on my emulator

                                           private static final String URL =
   http://yourIP:8080/Axis2ServiceServer/services/CalcService;;
                                           Integer a = null;
                                           Integer b = null;

                                           @Override
                                           public void run()
                                           {
                                                   String stA = ((EditText)
   findViewById(R.id.EditText01)).getText().toString();
                                                   String stB = ((EditText)
   findViewById(R.id.EditText02)).getText().toString();
                                                   SoapSerializationEnvelope 
   envelope = null;
                                                   try
                                                   {
                                                           a = 
   Integer.valueOf(stA);
                                                           b = 
   Integer.valueOf(stB);
                                                           SoapObject 
   request = new SoapObject(NAMESPACE,METHOD_NAME);
                                                           
   request.addProperty(a, a);
                                                           
   request.addProperty(b, b);
                                                           envelope = new 
   SoapSerializationEnvelope(SoapEnvelope.VER11);
                                                           
   envelope.setOutputSoapObject(request);
                                                           
   AndroidHttpTransport androidHttpTransport = new
   AndroidHttpTransport(URL);
                                                           
   androidHttpTransport.call(SOAP_ACTION, envelope);
                                                           Object result = 
   envelope.getResponse();
                                                           KSoapClient.res = 
   result.toString();
                                                   }
                                                   catch 
   (NumberFormatException nfe)
                                                   {
                                                           KSoapClient.res = 
   Only Integer numbers ;
                                                           Log.e(Input 
   Error: , nfe.getMessage());
                                                   }
                                                   catch (SoapFault sf)
                                                   {
                                                           Log.e(Service 
   Response Error, + sf.faultcode+:,
   sf.faultstring);
                                                   }
                                                   catch (IOException ioe)
                                                   {
                                                           Log.e(Service 
   Response Error: , ioe.getMessage());
                                                   }
                                                   catch 
   (XmlPullParserException xppe)
                                                   {
                                                           Log.e(Service 
   Response Error: , xppe.getMessage());
                                                   }
                                           }
                                   };
                                   t.start();

   And if you like to create your own SOAP Engine(Custom Parser will do),
   you may do,

       public String 

[android-developers] Android Emulator

2008-10-29 Thread [EMAIL PROTECTED]


Hi Pals,
I have a problem with the Android Emulator.
When I trying to redirect the netware traffic as follow

adb shell
# redir 

I got a message the following message in the console:

redir: not found

I need to redirect all the requests that my java client executes
through specific port to the port which my java server implementation
is listening on the Android Emulator.

It seems to me that something is missing from the installation because
on window it does work.

Thanks in advance Pals

Douglas

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

2008-10-29 Thread parani kumar
Hi Everyone,

I am new to android development, Can anyone suggest me, how to display the
OS details in Emulator?

This would help me to get a great step in android development.

-- 
Thanks,
parani

--~--~-~--~~~---~--~~
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: MapActivity - Couldn't get connection factory client

2008-10-29 Thread Prakash

Hi ,

I am getting the same exception.

Were you able to solve it?

Pls let me know if there is a solution.

Thanks
Prakash

On Oct 7, 5:48 am, Ricardo [EMAIL PROTECTED] wrote:
 Hi all,

 I´m trying to create a application using MapView with GPS... but the
 following error appears in LogCat:

 MapActivity(8287):Couldn'tgetconnectionfactoryclient. And it
 shows a strange screen in the emulator instead of the Maps...

 The problem is that sometimes it works.. But 90% of the times it doesn
 ´t work. I used the MapView with GPS in previous releases and I never
 had problem...

 My Manifest has the permissions set.. does anybody please know what I
 ´m doing wrong?

 thank you

 ?xml version=1.0 encoding=utf-8?
 manifest xmlns:android=http://schemas.android.com/apk/res/android;
   package=br.livro.android.gps
   android:versionCode=1
   android:versionName=1.0.0

 uses-permission
 android:name=android.permission.ACCESS_FINE_LOCATION /
 uses-permission
 android:name=android.permission.ACCESS_COARSE_LOCATION /
 uses-permission android:name=android.permission.INTERNET /

 application android:icon=@drawable/icon android:label=@string/
 app_name

 uses-library android:name=com.google.android.maps /

 activity android:name=.MenuGPS
   android:label=@string/app_name
 intent-filter
 action android:name=android.intent.action.MAIN /
 category
 android:name=android.intent.category.LAUNCHER /
 /intent-filter
 /activity

 /application
 /manifest

--~--~-~--~~~---~--~~
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] Monitoring Browser activities

2008-10-29 Thread Piyush

Hi,

I would like to know if its possible to sit between Android browser
and the network layer so that I can monitor the activities of user
through browser.  It could be something similar to on-device-proxy.
What is the best way to get this done ?

Thanks in advance !

~Piyush.

--~--~-~--~~~---~--~~
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] Animation Between Tabs

2008-10-29 Thread Chatur

Hi All,

I wish to add make-in/make/out animation from AnimationUtils between
tabs as i scroll(left/right) through them.Each of the tabs represent
an activity having different layout files as their content view.The
tab that i scroll to  should slide into the screen through makein and
the previous tab must slide out of the screen through makeout.


I tried this using simple tabs that have a common layout file as
their
content view,and invoked startanimation on the individual views that
i
wish to animate.I was successful in doing so.but now,since there are
going to be multiple layout files,I cannot go about using this
approach.I have an idea about it.I guess LayoutAnimationController
has
to be used to enable the same.


Could anyone help me to get started with this problem?



--~--~-~--~~~---~--~~
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: Updating Imageviews During functions

2008-10-29 Thread Mark Hansen

I've been doing some more research and it seems like what I'm doing is
working in the UI thread for example this project had a similar issue:

http://blogs.webtide.com/dyu/entry/android_chat_using_jetty_cometd

Is there something I'm missing as far as the update in the UI thread?

On Oct 28, 11:01 am, Mike Reed [EMAIL PROTECTED] wrote:
 ImageView, like all subclass of View, cannot be called from any thread  
 other than the UI thread.

 That said, what is the update you are try to do?

 On Oct 28, 2008, at 10:24 AM, Mark Hansen wrote:

 Opps.. I start the Runnable with the following:

 mHandler.post(mUpdateTimeTask);

 forgot to add that..

 On Oct 28, 10:12 am, Mark Hansen [EMAIL PROTECTED] wrote:

  Some more info:

  I declared a handler in my class:

  private Handler mHandler = new Handler();

  Then added my runnable

  private Runnable mUpdateTimeTask = new Runnable() {
                     public void run() {
                      updateDisplay.sendEmptyMessage(0);
                     }
                  };

  and have a handler that does my update...

          private Handler updateDisplay = new Handler() {
                  public void handleMessage(Message msg) {
                          // ImageView update is here...
                  }
          };

  The image views are still not updating from what I can tell until the
  rest of the activity completes.

  I've tried variations implementing runnable and spawning threads
  (which works well with progress dialogs) and still can't get it to
  work.

  Basically I want to quickly change some ImageViews almost like an
  animation or a clock in with an activity.. is there a better method of
  doing this?

  Thanks,
  Mark

  On Oct 27, 5:44 pm, Mark Hansen [EMAIL PROTECTED] wrote:

  I have some image views I'd like to update as somethings change in a
  function in an activity.

  I can't seem to get them to refresh, at least not in away that  
  appears
  visible on the phone.

  I've tried running them in a seperate thread, and even from that
  thread using a custom handler to do the image update, but still no
  dice.

  Anyone have any tips for doing 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: Lunar Lander game loop (was: Re: [android-developers] Re: How fast is the T-Mobile G1?)

2008-10-29 Thread Robert Green

Actually the correct way is not to lock in the number of updates to
physics at a constant rate but instead to have the physics themselves
be defined as a rate.  For example, if you want to have a player
moving at a rate of 1 virtual foot per second (let's say that's 5
pixels on screen for a 2d game), you would have the physics update
take into account the last position at the last update time and then
figure out where they should be given the current update time.  That
way if there are more or less calls to updatePhysics, the player will
continue moving at a predictable, constant rate based on time, not
tics.  More tics at this point will only smooth out the movement and
this is the preferred way to handle different processor speeds.

I used tic-rate on my game which tries to lock the game in at 20 tics
per second but if for my next one I will be using time-based movement
rates like I discussed.

Also - Action games are going to suck 100% of the CPU.  There really
isn't enough CPU to do simple physics and redraws and cap out at the
refresh rate.  Unless you want a choppy game, you're going to want to
get as many updates in as possible.

On Oct 29, 4:28 am, Stoyan Damov [EMAIL PROTECTED] wrote:
 Thanks again, yes, something like that - I realize the question was
 more for a game development forum, not here, sorry.
 Basically I'd like the game loop to call updatePhysics, say, exactly
 30 times/sec but render only when there's anything to render, sleep to
 preserve battery otherwise.

 Cheers

 On Wed, Oct 29, 2008 at 4:10 AM, hackbod [EMAIL PROTECTED] wrote:

  If you want to throttle your updates to something less than the screen
  refresh rate, you can just use SystemClock.uptimeMillis() to find the
  time between each draw and Object.sleep() or Object.wait() to suspend
  the thread until it is next time to draw.  Is that what you are
  looking for?

  On Oct 28, 6:01 pm, Stoyan Damov [EMAIL PROTECTED] wrote:
  Thanks to you and Romain!

  So my follow up question is what is the maximum number of vertical
  syncs per second of a G1 phone?
  In other words, if the drawing code is really fast (e.g. if I don't
  invalidate the entire screen but just a tiny rectangle), what am I
  supposed to do in order to make an animation run at no more than N
  frames per second? The reason behind this is this: I don't wanna draw
  a frame that has already been drawn, so I'll keep a list of active
  or dirty objects (dirtyness determined in updatePhysics or
  whatever), but in this case, I'll just spin the CPU waiting for the
  next game update which will invalidate some objects. Hence the initial
  questioning of the game's loop - what if the game's scene has to be
  drawn in less than the max FPS for the device?

  I hope you'll understand what I mean - it's 3am here and I'm not a
  native speaker :)

  Cheers

  On Wed, Oct 29, 2008 at 2:46 AM, hackbod [EMAIL PROTECTED] wrote:

   A little more info (I missed that the app has been changed to use a
   SurfaceView) -- the call to lock will block if you are running faster
   than the maximum frame rate.  See here:

  http://code.google.com/android/reference/android/view/SurfaceHolder.h...()

   On Oct 28, 2:03 pm, Stoyan Damov [EMAIL PROTECTED] wrote:
   On Tue, Oct 28, 2008 at 7:44 PM, PorkChop [EMAIL PROTECTED] wrote:

My emulator gives a result of 543.94 bogomips, better be careful
coding games otherwise they are going to end up sucking on the actual
device!

Speaking of which, has anyone noticed Lunar Lander's game loop. 
It's a

   real WTF to me:

   while (running)
   {
       updatePhysics();
       draw();

   }

   No shit batman? At what FPS? The max possible on the device? Redrawing a
   frame possibly hundreds of times per second w/o the physics even being
   updated at all?
   I expected to see some sort of a game loop with constant game update 
   rate
   and some target FPS (not precise of course) and some sleeping 
   eventually so
   CPU's not utilized at 100% because this is a MOBILE DEVICE for crying 
   out
   loud, and this sucks battery, and the sample is supposed to be a 
   reference
   implementation with best CODING practices, etc. (i.e. fuck graphics,
   gameplay, etc.), *right*?

   Cheers


--~--~-~--~~~---~--~~
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 add a ImageButton from layout(xml)

2008-10-29 Thread Arun Mankad
Can anybody tell me How to add a ImageButton from layout(xml), I tried
ImageButton

ImageButton
android:id=@+id/continue_button
android:src=@drawable/sms
/


but a white background is there, how can I remove that.
Plz help

Thanks in advance


-- 
Arun Mankad

--~--~-~--~~~---~--~~
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: Audio recorder format

2008-10-29 Thread Guillaume Perrot

This is the audio codec for catpured sounds.
Default is the same as AMR_NB, this is the audio codec generally used
in 3gp videos.

On Oct 29, 4:47 am, april [EMAIL PROTECTED] wrote:
 So there is no body doing Audio related coding on Android?

 On Oct 28, 10:41 am, april [EMAIL PROTECTED] wrote:

  In AudioEncorder class (http://code.google.com/android/reference/
  android/media/MediaRecorder.AudioEncoder.html#DEFAULT)
  there are 2 attribute, DEFAULT and AMR_NB. What is DEFAULT? What is
  the bandwidth for DEFAULT and AMR_NB?

  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: OS Details

2008-10-29 Thread Ludwig
There is a package android.os (RTFM), but generally speaking Android is not
a general purpose hand-held computer, but a quite shielded application
environment that happens to sit on a Linux OS.
You might get more help if you ask a more specific question.

Ludwig

2008/10/29 parani kumar [EMAIL PROTECTED]

 Hi Everyone,

 I am new to android development, Can anyone suggest me, how to display the
 OS details in Emulator?

 This would help me to get a great step in android development.

 --
 Thanks,
 parani

 


--~--~-~--~~~---~--~~
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 add a ImageButton from layout(xml)

2008-10-29 Thread Mark Murphy

Arun Mankad wrote:
 Can anybody tell me How to add a ImageButton from layout(xml), I tried 
 ImageButton
 
 ImageButton
 android:id=@+id/continue_button
 android:src=@drawable/sms
 /

android:background

-- 
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] G1 still image capture question

2008-10-29 Thread blindfold

Do the hard-coded SDK 1.0 r1 kCannedJpegWidth (=213) and
kCannedJpegHeight (=350) restrictions at

http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob;f=camera/libcameraservice/CannedJpeg.h
http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob;f=camera/libcameraservice/CameraHardwareStub.cpp

for a still image size of 213 x 350 also apply to the T-Mobile G1
camera? So, can one only take 213 x 350 still image snapshots with the
G1? Or can one (only) apply G1's native 2048 x 1536 for its 3.2
megapixel camera? In other words, what works with the G1? I have to
know what to hard-code for lack of camera querying methods in Android.

(Strictly speaking one can fool the check if (w != kCannedJpegWidth
 h != kCannedJpegHeight) a little bit by changing one of the two
image dimensions, e.g., using 400 x 350, but in the emulator this does
not take effect because the captured image is built-in.)

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: howto debug apps with more than one process

2008-10-29 Thread wescorp

For myself, I will put a series of these debug statements in code as
it executes, reporting in near real time what is happening as the code
executes.
If the code crashes, Android displays its error messages in the LogCat
also so I can watch what is happening at the point I'm interested in.

Wes


On Oct 29, 5:32 am, Jakob Sachse [EMAIL PROTECTED] wrote:
 Hi,

 thanks for the answer. Though I didn't get your point.
 myserviceprocess is expected to be some string, concluding the
 content is the name of the process: What would be the adavantage
 over the DDMS Device view, that lists all the running processes?

 I do see the process that i want to debug, only i can't turn it on.
 It has the same name as the activity (that is in debug mode) but
 ends with :remote

 On 29 Okt., 11:50, wescorp [EMAIL PROTECTED] wrote:

  Hi,

  Try putting some code like this

  String LOG_TAG = my service process =;
  Log.d(LOG_TAG, myserviceprocess);

  in your code to monitor whats happening.

  The results are displayed in Debug LogCat.

  Cheers,
  Wes

  On Oct 29, 4:00 am, Jakob Sachse [EMAIL PROTECTED] wrote:

   Hallo,

   I am trying to write a Service thats runs in a seperate process.
   I am willing to use the Service through IPC from an Activity.

   thats how my section of the AndroidManifest looks like:
   ###
   service android:name=MyService android:process=:remote
           intent-filter
                   action android:name=com.smth.IRemoteService /
           /intent-filter
   /service

   activity android:name=.UTI android:label=@string/app_name
           intent-filter
                   action android:name=android.intent.action.MAIN /
                   category android:name=android.intent.category.LAUNCHER 
   /
           /intent-filter
   /activity
   ###

   Yet when I start the App (using eclipse: debug as - android app), i
   can debug the Activity but not the Service. Switching to DDMS gives me
   an overview of running processes, using the green bug for enabeling
   debug for the services process results in:

   no open project fround for com.smth:remote, Debug Session failed.

   Anyway the project is open.

   Have i forgotten do declare something in the debug configuration
   dialog? Any hint is appreciated
--~--~-~--~~~---~--~~
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: User Event trapping for Android Browser

2008-10-29 Thread Ludwig
I think you can only get events for your own activities. (Just imagine that
any application could just listen in while you do some on-line banking...)
Ludwig

2008/10/29 Piyush [EMAIL PROTECTED]


 Hi,

 I  am trying to develop an application that would like to receive
 events like click, URL hit, etc from Android web browser.  Would this
 be possible ?

 What is the best possible way to get information about these user
 activities on browser?

 Thanks in advance !

 ~Piyush.

 


--~--~-~--~~~---~--~~
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: Lunar Lander game loop (was: Re: [android-developers] Re: How fast is the T-Mobile G1?)

2008-10-29 Thread Stoyan Damov

Let me try to explain again - I don't want the # of updates to be ==
the # of redraws, and I'm fine with a variable # of game updates/sec,
provided that this number is greater than the fastest movement of a
sprite (e.g. 100 updates/sec for a sprite which moves at 100 px/sec).
updatePhysics will surely take the elapsed time between the last game
tick and this one, *but* then, after updatePhysics exits, if there's
no object to be redrawn (e.g. no sprite moved), I don't want to draw,
and then again I don't want to enter the next game loop either because
I don't need more than N game updates/sec.
It's OK though, I have an idea of the game loop.

Thanks to everyone who replied this thread.

Cheers

On Wed, Oct 29, 2008 at 3:25 PM, Robert Green [EMAIL PROTECTED] wrote:

 Actually the correct way is not to lock in the number of updates to
 physics at a constant rate but instead to have the physics themselves
 be defined as a rate.  For example, if you want to have a player
 moving at a rate of 1 virtual foot per second (let's say that's 5
 pixels on screen for a 2d game), you would have the physics update
 take into account the last position at the last update time and then
 figure out where they should be given the current update time.  That
 way if there are more or less calls to updatePhysics, the player will
 continue moving at a predictable, constant rate based on time, not
 tics.  More tics at this point will only smooth out the movement and
 this is the preferred way to handle different processor speeds.

 I used tic-rate on my game which tries to lock the game in at 20 tics
 per second but if for my next one I will be using time-based movement
 rates like I discussed.

 Also - Action games are going to suck 100% of the CPU.  There really
 isn't enough CPU to do simple physics and redraws and cap out at the
 refresh rate.  Unless you want a choppy game, you're going to want to
 get as many updates in as possible.

 On Oct 29, 4:28 am, Stoyan Damov [EMAIL PROTECTED] wrote:
 Thanks again, yes, something like that - I realize the question was
 more for a game development forum, not here, sorry.
 Basically I'd like the game loop to call updatePhysics, say, exactly
 30 times/sec but render only when there's anything to render, sleep to
 preserve battery otherwise.

 Cheers

 On Wed, Oct 29, 2008 at 4:10 AM, hackbod [EMAIL PROTECTED] wrote:

  If you want to throttle your updates to something less than the screen
  refresh rate, you can just use SystemClock.uptimeMillis() to find the
  time between each draw and Object.sleep() or Object.wait() to suspend
  the thread until it is next time to draw.  Is that what you are
  looking for?

  On Oct 28, 6:01 pm, Stoyan Damov [EMAIL PROTECTED] wrote:
  Thanks to you and Romain!

  So my follow up question is what is the maximum number of vertical
  syncs per second of a G1 phone?
  In other words, if the drawing code is really fast (e.g. if I don't
  invalidate the entire screen but just a tiny rectangle), what am I
  supposed to do in order to make an animation run at no more than N
  frames per second? The reason behind this is this: I don't wanna draw
  a frame that has already been drawn, so I'll keep a list of active
  or dirty objects (dirtyness determined in updatePhysics or
  whatever), but in this case, I'll just spin the CPU waiting for the
  next game update which will invalidate some objects. Hence the initial
  questioning of the game's loop - what if the game's scene has to be
  drawn in less than the max FPS for the device?

  I hope you'll understand what I mean - it's 3am here and I'm not a
  native speaker :)

  Cheers

  On Wed, Oct 29, 2008 at 2:46 AM, hackbod [EMAIL PROTECTED] wrote:

   A little more info (I missed that the app has been changed to use a
   SurfaceView) -- the call to lock will block if you are running faster
   than the maximum frame rate.  See here:

  http://code.google.com/android/reference/android/view/SurfaceHolder.h...()

   On Oct 28, 2:03 pm, Stoyan Damov [EMAIL PROTECTED] wrote:
   On Tue, Oct 28, 2008 at 7:44 PM, PorkChop [EMAIL PROTECTED] wrote:

My emulator gives a result of 543.94 bogomips, better be careful
coding games otherwise they are going to end up sucking on the actual
device!

Speaking of which, has anyone noticed Lunar Lander's game loop. 
It's a

   real WTF to me:

   while (running)
   {
   updatePhysics();
   draw();

   }

   No shit batman? At what FPS? The max possible on the device? Redrawing 
   a
   frame possibly hundreds of times per second w/o the physics even being
   updated at all?
   I expected to see some sort of a game loop with constant game update 
   rate
   and some target FPS (not precise of course) and some sleeping 
   eventually so
   CPU's not utilized at 100% because this is a MOBILE DEVICE for crying 
   out
   loud, and this sucks battery, and the sample is supposed to be a 
   reference
   implementation with best CODING practices, etc. (i.e. fuck 

[android-developers] Re: first Map app getting stopped unexpectedly error - how to get more info? - resolved

2008-10-29 Thread Brian

Thanks for your reply.  I was able to view the log and see 'Error
inflating class com.google.android.view.MapView'.  Did a little more
searching and realized I had the wrong package for MapView in my
layout sml.  IMmst have copied it wrong or from an outdated source.
Once I used the right package of com.google.android.maps.MapView it
started working!

Thanks!


On Oct 28, 6:19 pm, Megha Joshi [EMAIL PROTECTED] wrote:
 You could try a few things:

 - Try launching the emulator with -wipe-data
 - check that the permissions and uses-library tags are in the correct place
 (ie. permissions under manifest tag and uses-library under  application
 tag..) in AndroidManifest.xml,
 - check the log output to get more details on your 
 error:http://code.google.com/android/reference/adb.html#logcat

 2008/10/28 Brian [EMAIL PROTECTED]



  I finally got my Map APIKey and added it to the MapView properties in
  the layout xml  I've added the

  uses-library android:name=com.google.android.maps /

  to the manifest xml.  I'm developing with Eclipse/ADT and from the
  Signing and Publishing reference doc, I think I've got the basic setup
  for signing in debug mode, with JAVA_HOME pointing to a 1.6 JDK.

  I've also got the uses-permissions android.permission.INTERNET and
  android.permission.ACCESS_COARSE_LOCATION.

  Anything obvious I'm missing?  Is there any way to get more
  information as to why it's failing?
--~--~-~--~~~---~--~~
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: ThumbKeyboard.com / Alternative Input for Android

2008-10-29 Thread Nico Aguilar

Congrats
wich method Android support ?

On Sep 26, 4:29 pm, James Burrell [EMAIL PROTECTED]
wrote:
 Google, I have invented the fastest methods of text messaging in the history 
 of world.A few of them are demonstrated 
 onwww.phonekeyboard.com.ThePhoneKeyboard.com invention is faster than Tegic's 
 T9 multi-tap method, Motorola's iTAP multi-tap method and ZI Corp's eZiText 
 multi-tap method.Look at thewww.phonekeyboard.com/Statistics.htmlpage to see 
 the statistics.Tegic's T9, Motorola's iTAP and ZI Corp's eZiText all use only 
 one method of text messaging. The PhoneKeyboard.com invention has 13 methods 
 of text messaging:Press [*] key to enter Upper-Case Alphabet Mode:1) 
 Sequential Key Presses2) Sequential Middle-Mode Key Presses3) Sequential 
 Most-Use-Mode Key Presses4) Simultaneous Key Presses5) Simultaneous 
 Middle-Mode Key Presses6) Simultaneous Most-Use-Mode Key PressesPress [*] key 
 2 times to enter Shiftable Alphabet Mode:7) Sequential Key Presses8) 
 Sequential Middle-Mode Key Presses9) Sequential Most-Use-Mode Key Presses10) 
 Simultaneous Key Presses11) Simultaneous Middle-Mode Key Presses12) 
 Simultaneous Most-Use-Mode Key PressesPress [*] key 3 times to enter 
 Multi-Tap Mode:13) Sequential Key PressesI have also invented the smallest 
 keyboards in the history of world.They are 
 onwww.thumbkeyboard.com.TheThumbKeyboard.com invention can be used on a cell 
 phone menu key, a camera menu key or an iPod / MP3 menu key, making it the 
 world's smallest data entry keyboard. I am now the inventor of the smallest 
 keyboards in the history of world for producing alphabetic characters, a 
 space, numbers, punctuation or symbols.Inventors Digest is planning on doing 
 an January 2009 article on me for being the inventor of the smallest 
 keyboards in the history of world.Text messaging while driving is 
 dangerous.Most people who use the Navigator service have to text while 
 driving.On Sep 15, 2008, at 4:22 p.m., in Los Angeles, California, Metrolink 
 train engineer Robert Sanchez died while text messaging, killing 25 people 
 and 135 people were injured.The ThumbKeyboard.com invention can be used on a 
 cell phone menu key and the blind community, the deaf-blind community and any 
 individual needing to enter data into a device without looking at the phone 
 keyboard entry device can use it.This technology would have saved the lives 
 of 26 people on Sep 15, 2008 and countless numbers of other people.I am 
 approaching your company to have you recommend to at least one of your cell 
 phone manufacturers to license the ThumbKeyboard.com invention technology 
 from me for the production of future cell phone devices.For the Intellectual 
 Property departments I have placed both patents are on 
 the:www.thumbkeyboard.com/Nine_Sensor_Data_Entry_Keyboard_and_Control_Mea...andwww.thumbkeyboard.com/Worlds_Smallest_Keyboard_and_Control_Means.html...pages.The
  World's Smallest Keyboard and Control Means patent was written to cover a 
 method of text messaging using the cursor control track ball pointing device 
 on all BlackBerry devices.If your company can produce a prototype or be ready 
 to go into production with a new product using my ThumbKeyboard.com invention 
 by the time Inventors Digest does an article on me, your company will be able 
 to have free advertising from thewww.InventorsDigest.commagazine and all the 
 future publicity I will receive for inventing the smallest keyboards in the 
 history of world.James Burrell Date: Thu, 25 Sep 2008 11:54:47 -0700 
 Subject: [android-developers] MediaPlayer.getFrameAt() is gone in V1.0. 
 Alternatives in the meantime? From: [EMAIL PROTECTED] To: 
 android-developers@googlegroups.com   
 android.media.MediaPlayer.getFrameAt() is gone on 1.0.  The release notes 
 for 1.0 reads: Method android.media.MediaPlayer.getFrameAt() is not 
 supported in this release.  But one thing is not supported and one thing 
 is totally removing it from the API i.e. making previous build breaks. I 
 guess that is an explicit way to let developers note that it just doesn't 
 work.  What are the plans on bringing back that API? and in the meantime, 
 was is the alternative? Is View.getDrawingCache() an alternative? the doc 
 says that only works if caching is enabled, but can my app force caching to 
 the current view used by the MediaPlayer?  ceo  
 _
 See how Windows connects the people, information, and fun that are part of 
 your life.http://clk.atdmt.com/MRT/go/msnnkwxp1020093175mrt/direct/01/

--~--~-~--~~~---~--~~
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 get image file from Google Chart API

2008-10-29 Thread AlBasha

I'm trying to get image file from Google Chart API.
Image link (strURL) =
http://chart.apis.google.com/chart?cht=pchd=t:37,0,50,12,1,0,0chs=300x200chl=Agriculture||Shrub/Grass|Trees|Built|Bare/Ice|Waterchco=66,ff,99FF66,006600,cc,66,76A4FBchf=bg,s,d3d3d3chdl=Agriculture||Shrubs
and Grass|Trees|Built|Bare or Ice|Waterchdlp=b

Here is my java code:
URL url = new URL(strURL);
BufferedImage original = ImageIO.read(url); --- Error when reach here
byte[] data = write(original, png);

Here is the error  :
javax.imageio.IIOException: Can't get input stream from URL!
at javax.imageio.ImageIO.read(Unknown Source)

Any idea?



--~--~-~--~~~---~--~~
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: OS Details

2008-10-29 Thread parani kumar
Dear Ludwig,

Thanks for the quick response and reply. I will direct you what i need,

I am trying with windows android emulator to display the OS version,memory
space available, memory usage like some of basic system properties of the
mobile phone.

When i use *android.provider.Settings* I am getting the constant values
printed in the Emulator. i don't have any clue to proceed more. I hopes I
would explain my position, Kindly advice me on this, how to proceed further.

Thanks Again,
Parani.

On Wed, Oct 29, 2008 at 7:17 PM, Ludwig [EMAIL PROTECTED] wrote:

 There is a package android.os (RTFM), but generally speaking Android is not
 a general purpose hand-held computer, but a quite shielded application
 environment that happens to sit on a Linux OS.
 You might get more help if you ask a more specific question.

 Ludwig

 2008/10/29 parani kumar [EMAIL PROTECTED]

 Hi Everyone,

 I am new to android development, Can anyone suggest me, how to display the
 OS details in Emulator?

 This would help me to get a great step in android development.

 --
 Thanks,
 parani




 



-- 
Thanks,
parani

--~--~-~--~~~---~--~~
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] No resource identifier found for attribute 'versionCode' in package 'android'

2008-10-29 Thread Christine

Does anyone know what this error means? I have these lines in my
manifest file
manifest ...
android:versionCode=3
android:versionName=1.01 

and the error I get is
ERROR No resource identifier found for attribute 'versionCode' in
package 'android'

and same for versionName. I have the latest SDK on linux.
--~--~-~--~~~---~--~~
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: howto debug apps with more than one process

2008-10-29 Thread Andrew Stadler

Jakob-

It may be possible to do this with the SDK, but I am not enough of an
SDK expert to know for sure.

However, you might find it easier to simply develop/debug your Service
in the same process.  Once it's running and is fairly stable, you can
try making it remote.

The calling conventions are essentially the same for local  remote
processes;  The primary difference is that you have more restrictions
with a remote process, since everything has to go through a binder (no
direct object references or method calls, and all data has to be
parcelable).  But you can make calls to your local service using the
binder-based interface and it will still work properly.

Hope this helps.

--~--~-~--~~~---~--~~
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: Join via ContentProvider

2008-10-29 Thread jtaylor

I looked at the Hierarchy Viewer and it just shows two id/tex1 views
below the ExpandableListView. So it must be interior to Android.


- Juan

On Oct 29, 5:00 am, for android [EMAIL PROTECTED] wrote:
 How can i create a customised Expandable list where the group identifer
 image is different than the already given ones in the apis..

 On Mon, Oct 27, 2008 at 6:46 PM, jtaylor [EMAIL PROTECTED] wrote:

  I'm just supposing that each class is a table. I don't know how
  android.provider is set up, though I guess one can now see from the
  source code.

  - Juan

  On Oct 27, 9:15 am, jtaylor [EMAIL PROTECTED] wrote:
   That looks like two tables.

   Contacts.People
   Contacts.People.Phones

   - Juan

   On Oct 26, 12:52 pm, Anm [EMAIL PROTECTED] wrote:

jtaylor,
Did you read the example?  It does not do a joint.  Instead it uses a
Uri subpath notation for its child query, within the same table rather
than joining multiple tables.  The references to group in the code
are not contact group membership, but rather ExpandableList parent
node/groups.

On Oct 25, 11:51 am, jtaylor [EMAIL PROTECTED] wrote:

 ExpandableList2.java has the getChildrenCursor() (in the
 MyExpandableListAdapter inner class) which has the code for obviously
 a contentprovider Join.

 http://code.google.com/android/samples/ApiDemos/src/com/example/andro...

 - Juan

 On Oct 25, 2:47 pm, jtaylor [EMAIL PROTECTED] wrote:

  ExpandableList2.
 http://code.google.com/android/samples/ApiDemos/src/com/example/andro...

  - Juan

  On Oct 24, 3:05 am, Anm [EMAIL PROTECTED] wrote:

   I'm struggling to understand how to do a join, if its possible,
  with
   the decomposed SQL arguments of the ContentProvider APIs.  Is
  there an
   example out there?

   Or if not, could some code up a quick example, say joining People
  with
   GroupMembership?
--~--~-~--~~~---~--~~
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: G1 still image capture question

2008-10-29 Thread blindfold

Guess what is really needed is documentation of whatever the G1 has
under $(BOARD_CAMERA_LIBRARIES) in

http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob;f=camera/libcameraservice/Android.mk

in order to know what replaces the (emulator's) camera hardware stubs
on G1. Some help from Google or T-Mobile is needed here, I think.
Help!

On Oct 29, 2:58 pm, blindfold [EMAIL PROTECTED] wrote:
 Do the hard-coded SDK 1.0 r1 kCannedJpegWidth (=213) and
 kCannedJpegHeight (=350) restrictions at

 http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob;...http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob;...

 for a still image size of 213 x 350 also apply to the T-Mobile G1
 camera? So, can one only take 213 x 350 still image snapshots with the
 G1? Or can one (only) apply G1's native 2048 x 1536 for its 3.2
 megapixel camera? In other words, what works with the G1? I have to
 know what to hard-code for lack of camera querying methods in Android.

 (Strictly speaking one can fool the check if (w != kCannedJpegWidth
  h != kCannedJpegHeight) a little bit by changing one of the two
 image dimensions, e.g., using 400 x 350, but in the emulator this does
 not take effect because the captured image is built-in.)

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

2008-10-29 Thread shyamal


On Oct 28, 11:03 pm, craig3353 [EMAIL PROTECTED] wrote:
 I have been unable to connect to a device on Gentoo, and none of the
 advice above helped. Here's what worked for me:

 1. Get rid of the udev rules. They cause the device node to be created
 as a block device for USB storage, and this is incorrect (as I have
 not mounted the SD card). It also prevents the creation of a character
 device node in /dev/bus/usb. Correct result:

Mounting of the device as a USB storage device is not incorrect.
You can mount the device and use it via the debug connection. I do
this all the time.

[EMAIL PROTECTED]:~$ df
Filesystem   1K-blocks  Used Available Use% Mounted on
/dev/mapper/dallas-root
  73594096  38562644  31293036  56% /
tmpfs   517180 0517180   0% /lib/init/rw
udev 1024096 10144   1% /dev
tmpfs   517180 0517180   0% /dev/shm
/dev/sda1   241116 21532207136  10% /boot
/dev/sdb1   991488 69200922288   7% /media/disk
[EMAIL PROTECTED]:~$ ls /media/disk/
albumthumbs  Music
[EMAIL PROTECTED]:~$ adb devices
List of devices attached
HT841GZ04678device

Each distribution seems to use different udev rules and configuration.
If this works for you, great. But it should be possible to get udev to
do
the right thing.

Cheers!
Shyamal
--~--~-~--~~~---~--~~
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] OnApplicationStart ?

2008-10-29 Thread zl25drexel

Hi all

My app has some logics to check the gps status and shows an message
when its disabled. Currently i put those logics in the onCreate()
method of my apps's main activity. However, it turns out that this
onCreate() method is called very frequently rather than once per
application startup. That makes the notification message quite
annoying.

Is there any life cycle call back method that is only call once on
application start 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: Join via ContentProvider

2008-10-29 Thread jtaylor

I should have said I looked at the Hierarchy Viewer for
ExpandableList2 demo.
http://code.google.com/android/samples/ApiDemos/src/com/example/android/apis/view/ExpandableList2.html


- Juan


On Oct 29, 11:18 am, jtaylor [EMAIL PROTECTED] wrote:
 I looked at the Hierarchy Viewer and it just shows two id/tex1 views
 below the ExpandableListView. So it must be interior to Android.

 - Juan

 On Oct 29, 5:00 am, for android [EMAIL PROTECTED] wrote:

  How can i create a customised Expandable list where the group identifer
  image is different than the already given ones in the apis..

  On Mon, Oct 27, 2008 at 6:46 PM, jtaylor [EMAIL PROTECTED] wrote:

   I'm just supposing that each class is a table. I don't know how
   android.provider is set up, though I guess one can now see from the
   source code.

   - Juan

   On Oct 27, 9:15 am, jtaylor [EMAIL PROTECTED] wrote:
That looks like two tables.

Contacts.People
Contacts.People.Phones

- Juan

On Oct 26, 12:52 pm, Anm [EMAIL PROTECTED] wrote:

 jtaylor,
 Did you read the example?  It does not do a joint.  Instead it uses a
 Uri subpath notation for its child query, within the same table rather
 than joining multiple tables.  The references to group in the code
 are not contact group membership, but rather ExpandableList parent
 node/groups.

 On Oct 25, 11:51 am, jtaylor [EMAIL PROTECTED] wrote:

  ExpandableList2.java has the getChildrenCursor() (in the
  MyExpandableListAdapter inner class) which has the code for 
  obviously
  a contentprovider Join.

  http://code.google.com/android/samples/ApiDemos/src/com/example/andro...

  - Juan

  On Oct 25, 2:47 pm, jtaylor [EMAIL PROTECTED] wrote:

   ExpandableList2.
  http://code.google.com/android/samples/ApiDemos/src/com/example/andro...

   - Juan

   On Oct 24, 3:05 am, Anm [EMAIL PROTECTED] wrote:

I'm struggling to understand how to do a join, if its possible,
   with
the decomposed SQL arguments of the ContentProvider APIs.  Is
   there an
example out there?

Or if not, could some code up a quick example, say joining 
People
   with
GroupMembership?
--~--~-~--~~~---~--~~
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] new version of 1.0?

2008-10-29 Thread Christine

Are there two versons of sdk 1.0? I had 1.0, I've never had an older
version, but I still had to replace my sdk with a new version in order
to allow for versionCode and versionName.
--~--~-~--~~~---~--~~
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: OnApplicationStart ?

2008-10-29 Thread Ludwig
Classes derived from Application have an onCreate() method that gets called
when the application (as opposed to any individual activity) gets started.
You will need to create a derived class and declare it in the manifest,
e.g.:
application android:name=MyApplication android:icon=@drawable/icon
android:label=@string/app_name

HTH
Ludwig

2008/10/29 zl25drexel [EMAIL PROTECTED]


 Hi all

 My app has some logics to check the gps status and shows an message
 when its disabled. Currently i put those logics in the onCreate()
 method of my apps's main activity. However, it turns out that this
 onCreate() method is called very frequently rather than once per
 application startup. That makes the notification message quite
 annoying.

 Is there any life cycle call back method that is only call once on
 application start 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: new version of 1.0?

2008-10-29 Thread Nanard

When is planned a new SDK ?

(or at least a SDK 1.xxx with bug fixes, and a few more features, TTS
for instance :-)
--~--~-~--~~~---~--~~
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: OS Details

2008-10-29 Thread Ludwig
Something like this will give you the available space on the SD card:

StatFs stats = new StatFs(/sdcard);
int space = stats.getAvailableBlocks() * stats.getBlockSize();

Looking at the Build class will give you some information on the Android
build and device, e.g.:

String buildInfo() {
StringBuilder builder = new StringBuilder();
builder.append(BOARD: ); builder.append(Build.BOARD);
builder.append(\nBRAND: ); builder.append(Build.BRAND);
builder.append(\nDEVICE: ); builder.append(Build.DEVICE);
builder.append(\nID: ); builder.append(Build.ID);
builder.append(\nMODEL: ); builder.append(Build.MODEL);
return builder.toString();
}

(Not so much use on the emulator)

The /proc file system will give you a range of (undocumented and
subject-to-change) info on OS activity.

HTH

Ludwig

2008/10/29 parani kumar [EMAIL PROTECTED]

 Dear Ludwig,

 Thanks for the quick response and reply. I will direct you what i need,

 I am trying with windows android emulator to display the OS version,memory
 space available, memory usage like some of basic system properties of the
 mobile phone.

 When i use *android.provider.Settings* I am getting the constant values
 printed in the Emulator. i don't have any clue to proceed more. I hopes I
 would explain my position, Kindly advice me on this, how to proceed further.

 Thanks Again,
 Parani.


 On Wed, Oct 29, 2008 at 7:17 PM, Ludwig [EMAIL PROTECTED]wrote:

 There is a package android.os (RTFM), but generally speaking Android is
 not a general purpose hand-held computer, but a quite shielded application
 environment that happens to sit on a Linux OS.
 You might get more help if you ask a more specific question.

 Ludwig

 2008/10/29 parani kumar [EMAIL PROTECTED]

 Hi Everyone,

 I am new to android development, Can anyone suggest me, how to display
 the OS details in Emulator?

 This would help me to get a great step in android development.

 --
 Thanks,
 parani








 --
 Thanks,
 parani

 


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

2008-10-29 Thread hackbod

You really shouldn't do this kind of thing in Application.onCreate().
This is called the first time your process is created...  so after the
first time your activity is run, there is really no defined time it
will be called again.  It may be called a lot (if there is lots going
on in the device, every time the user goes another app your app gets
killed, so upon returning to your app in whatever its last state was
will have it called), it could be called almost never (if your process
can be left in the background for a long time).

You should use Activity to drive all of your UI.

When exactly are you wanting to show the message?

On Oct 29, 8:55 am, Ludwig [EMAIL PROTECTED] wrote:
 Classes derived from Application have an onCreate() method that gets called
 when the application (as opposed to any individual activity) gets started.
 You will need to create a derived class and declare it in the manifest,
 e.g.:
     application android:name=MyApplication android:icon=@drawable/icon
 android:label=@string/app_name

 HTH
 Ludwig

 2008/10/29 zl25drexel [EMAIL PROTECTED]



  Hi all

  My app has some logics to check the gps status and shows an message
  when its disabled. Currently i put those logics in the onCreate()
  method of my apps's main activity. However, it turns out that this
  onCreate() method is called very frequently rather than once per
  application startup. That makes the notification message quite
  annoying.

  Is there any life cycle call back method that is only call once on
  application start 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: Monitoring Browser activities

2008-10-29 Thread hackbod

Sorry, this is not possible with the SDK.

On Oct 29, 2:39 am, Piyush [EMAIL PROTECTED] wrote:
 Hi,

 I would like to know if its possible to sit between Android browser
 and the network layer so that I can monitor the activities of user
 through browser.  It could be something similar to on-device-proxy.
 What is the best way to get this done ?

 Thanks in advance !

 ~Piyush.
--~--~-~--~~~---~--~~
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] Any Android Suggestion Page

2008-10-29 Thread Oberox

Hi,

Can anyone tell me if there is any Android Suggestion Page where I can
post suggestions.
I'm a member of AndroidForums.com and there are many very good ideas
in there.
It would be sad if the Android Developers don't get to know them.

Thanks to all that helped make Android be like it is now!

kind regards,

Oberox

--~--~-~--~~~---~--~~
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: startService() fails

2008-10-29 Thread hackbod

Whatever is going on has nothing to do with AIDL, since apparently you
aren't even connecting to the service.  There are two service examples
in API demos that you can look at for help.

You should always look in the log when getting errors to see if there
are more details printed about what happened.

Btw, the package name dom.da is probably not correct for you to
use.  You need to use a package name for some domain you have control
over.

On Oct 29, 5:44 am, donm [EMAIL PROTECTED] wrote:
 Hello,

 I want to share an example Service in Android. The AIDL-file looks
 like this:

 package dom.da;
 interface RNS {
                 int[] getRandomNumbers(int amount);

 }

 I created the RNS Interface and implemented it in RemoteService.java:

 package dom.da;

 import android.app.Service;
 import android.content.Intent;
 import android.os.IBinder;
 import android.os.RemoteException;

 public class RemoteService extends Service {
         // implement the interface
         private static final RNS.Stub mBinder = new RNS.Stub(){
                 @Override
                 public int[] getRandomNumbers(int amount) throws 
 RemoteException {
                         if (amount  0)
                                 return null;
                         int[] rc = new int[amount];
                         for (;amount  0; amount--)
                                 rc[amount] = 0;
                         return rc;
                 }
         };
         // we only service one innterface, so return it
         @Override
         public IBinder onBind(Intent intent) {
                 return mBinder;
         }

 }

 Now I try to start the service in RNS_Service.java:
 package dom.da;

 import android.app.Activity;
 import android.content.ComponentName;
 import android.content.Intent;
 import android.os.Bundle;
 import android.util.Log;

 public class RNS_Service extends Activity {
         @Override
         public void onCreate(Bundle savedInstanceState) {
                 super.onCreate(savedInstanceState);
                 setContentView(R.layout.main);

                 Intent i = new Intent();
                 i.setClassName(dom.da, RemoteService);
                 ComponentName compName = startService(i);
                 if (compName == null)
                 {
                         Log.e(RNS_Service, startService() failed!);
                 }
         }

 }

 My AndroidManifest is as follows:
 manifest
         xmlns:android=http://schemas.android.com/apk/res/android;
         package=dom.da
         android:versionCode=1
         android:versionName=1.0.0
         application
                 android:icon=@drawable/icon
                 android:label=@string/app_name
                 activity
                         android:name=.RNS_Service
                         android:label=@string/app_name
                         intent-filter
                                 action
                                         
 android:name=android.intent.action.MAIN/
                                 category
                                         
 android:name=android.intent.category.LAUNCHER/
                         /intent-filter
                 /activity
                 service android:name=RemoteService android:exported=true
 android:enabled=true/
         /application
 /manifest

 This looks like pretty basic stuff, but startService allways returns
 null. Is the way I set the component
 of the service correct as in  i.setClassName(dom.da,
 RemoteService)? Any other errors?

 All AIDL examples I find on the net are either too complicated or
 written for an older version
 of the SDK.

 Thanks,
 Martin
--~--~-~--~~~---~--~~
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: OnApplicationStart ?

2008-10-29 Thread zl25drexel

how do i make the custom application avaiable in the manifest? Do you
have any examples?

On Oct 29, 11:55 am, Ludwig [EMAIL PROTECTED] wrote:
 Classes derived from Application have an onCreate() method that gets called
 when the application (as opposed to any individual activity) gets started.
 You will need to create a derived class and declare it in the manifest,
 e.g.:
     application android:name=MyApplication android:icon=@drawable/icon
 android:label=@string/app_name

 HTH
 Ludwig

 2008/10/29 zl25drexel [EMAIL PROTECTED]



  Hi all

  My app has some logics to check the gps status and shows an message
  when its disabled. Currently i put those logics in the onCreate()
  method of my apps's main activity. However, it turns out that this
  onCreate() method is called very frequently rather than once per
  application startup. That makes the notification message quite
  annoying.

  Is there any life cycle call back method that is only call once on
  application start 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] SDCard and SQLiteOpenHelper problem

2008-10-29 Thread wescorp

Hello,

I need to be able to work with databases on the sdcard.

I've been using the following code snippet from the NotePad
application and works perfectly on the emulator without using the
sdcard.

private static class DatabaseHelper extends SQLiteOpenHelper {
DatabaseHelper(Context context) {
super(context, mydb.sqlite, null, 2);
}

When I include the path to the db as
 /sdcard/application/mydb.sqlite

the following error occurs
 10-29 09:57:04.798: ERROR/AndroidRuntime(200): Caused by:
java.lang.IllegalArgumentException: File /sdcard/application/
mydb.sqlite contains a path separator

The sdcard is properly emulated.
The path exists.

I've looked around but no obvious solution to me.

Any help greatly appreciated.

Cheers,
Wes

--~--~-~--~~~---~--~~
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: Need Help..... To install android package (.apk) on HTC Touch Mobile

2008-10-29 Thread Azatoth

...mmm...
The only missing thing is that you don't run Android application in a
windows mobile OS-based pda...
...

On 29 Ott, 13:10, AndroidKid [EMAIL PROTECTED] wrote:
 Hi All,

 I've executed some sample application in android using emulator.

 I bought HTC touch mobile which has Windows Mobile 5.0 OS.

 I try to run my android application within HTC touch phone, But I
 can't :(

 I've done the following things,

 (1) I have installed Microsoft Activesync 4.5. (To rectify the issue
 while I'm connecting USB to my PC ).

 (2) I've connected my mobile with PC using USB.

 (3) Then I've modified my android project Manifest.xml file (Included
 Debuggable=true).

 (4) Then I've executed android application using eclipse. I got output
 in Emulator only. Not in HTC Touch Phone.

 I've gone through  the link  
 http://code.google.com/android/intro/develop-and-debug.html.

 With in the above link, I can't perform step 2  Step 3. Since Step 2
 is based on T-Mobile G Phone. In Step 3, I can't find the Wizard (ie,
 Found New Hardware wizard).

 I think If I did Step 2  3, then only the Device Chooser Wizard will
 appears while I'm running android.

 Please help me... what I'm missing ...

 Thanks in advance.

 By,
 Yasmin
--~--~-~--~~~---~--~~
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: Lunar Lander game loop (was: Re: [android-developers] Re: How fast is the T-Mobile G1?)

2008-10-29 Thread Robert Green

Why redraw if nothing has changed?  Also - how do you know if nothing
has changed if you don't check for it?  :)

These are the reasons the main loop is the way it is.

My main loop currently looks like this:

private void update() {
if (!isPaused) {
long now = System.currentTimeMillis();
if (now - lastTick  tickDelay) {
lastTick = now;
if (gameState == STATE_RUNNING) {
// key input was captured 
already
updateAI();
updatePhysics();
}
updatePaths();
updateAnimation();
updateState();
updateSound();
}
}
}

On Oct 29, 9:43 am, Stoyan Damov [EMAIL PROTECTED] wrote:
 Let me try to explain again - I don't want the # of updates to be ==
 the # of redraws, and I'm fine with a variable # of game updates/sec,
 provided that this number is greater than the fastest movement of a
 sprite (e.g. 100 updates/sec for a sprite which moves at 100 px/sec).
 updatePhysics will surely take the elapsed time between the last game
 tick and this one, *but* then, after updatePhysics exits, if there's
 no object to be redrawn (e.g. no sprite moved), I don't want to draw,
 and then again I don't want to enter the next game loop either because
 I don't need more than N game updates/sec.
 It's OK though, I have an idea of the game loop.

 Thanks to everyone who replied this thread.

 Cheers

 On Wed, Oct 29, 2008 at 3:25 PM, Robert Green [EMAIL PROTECTED] wrote:

  Actually the correct way is not to lock in the number of updates to
  physics at a constant rate but instead to have the physics themselves
  be defined as a rate.  For example, if you want to have a player
  moving at a rate of 1 virtual foot per second (let's say that's 5
  pixels on screen for a 2d game), you would have the physics update
  take into account the last position at the last update time and then
  figure out where they should be given the current update time.  That
  way if there are more or less calls to updatePhysics, the player will
  continue moving at a predictable, constant rate based on time, not
  tics.  More tics at this point will only smooth out the movement and
  this is the preferred way to handle different processor speeds.

  I used tic-rate on my game which tries to lock the game in at 20 tics
  per second but if for my next one I will be using time-based movement
  rates like I discussed.

  Also - Action games are going to suck 100% of the CPU.  There really
  isn't enough CPU to do simple physics and redraws and cap out at the
  refresh rate.  Unless you want a choppy game, you're going to want to
  get as many updates in as possible.

  On Oct 29, 4:28 am, Stoyan Damov [EMAIL PROTECTED] wrote:
  Thanks again, yes, something like that - I realize the question was
  more for a game development forum, not here, sorry.
  Basically I'd like the game loop to call updatePhysics, say, exactly
  30 times/sec but render only when there's anything to render, sleep to
  preserve battery otherwise.

  Cheers

  On Wed, Oct 29, 2008 at 4:10 AM, hackbod [EMAIL PROTECTED] wrote:

   If you want to throttle your updates to something less than the screen
   refresh rate, you can just use SystemClock.uptimeMillis() to find the
   time between each draw and Object.sleep() or Object.wait() to suspend
   the thread until it is next time to draw.  Is that what you are
   looking for?

   On Oct 28, 6:01 pm, Stoyan Damov [EMAIL PROTECTED] wrote:
   Thanks to you and Romain!

   So my follow up question is what is the maximum number of vertical
   syncs per second of a G1 phone?
   In other words, if the drawing code is really fast (e.g. if I don't
   invalidate the entire screen but just a tiny rectangle), what am I
   supposed to do in order to make an animation run at no more than N
   frames per second? The reason behind this is this: I don't wanna draw
   a frame that has already been drawn, so I'll keep a list of active
   or dirty objects (dirtyness determined in updatePhysics or
   whatever), but in this case, I'll just spin the CPU waiting for the
   next game update which will invalidate some objects. Hence the initial
   questioning of the game's loop - what if the game's scene has to be
   drawn in less than the max FPS for the device?

   I hope you'll understand what I mean - it's 3am here and I'm not a
   native speaker :)

   Cheers

   On Wed, Oct 29, 2008 at 2:46 AM, hackbod [EMAIL PROTECTED] wrote:

A little more info (I missed that the app has been changed to use a
 

[android-developers] Re: OnApplicationStart ?

2008-10-29 Thread Ludwig
I agree with hackbod that the Application is probably the wrong place to put
a user notification on any sort - I had just picked up on the general issue
of doing something at application start.
If you are after the status of the location provider you might want to
implement the LocationListener onStatusChanged() method, which will give you
timely notifications of provider change (e.g. GPS enabled)

 how do i make the custom application avaiable in the manifest? Do you have
any examples?

 You will need to create a derived class and declare it in the manifest,
 e.g.:
application android:name=MyApplication
android:icon=@drawable/icon
 android:label=@string/app_name

Ludwig

2008/10/29 zl25drexel [EMAIL PROTECTED]


 how do i make the custom application avaiable in the manifest? Do you
 have any examples?

 On Oct 29, 11:55 am, Ludwig [EMAIL PROTECTED] wrote:
  Classes derived from Application have an onCreate() method that gets
 called
  when the application (as opposed to any individual activity) gets
 started.
  You will need to create a derived class and declare it in the manifest,
  e.g.:
  application android:name=MyApplication
 android:icon=@drawable/icon
  android:label=@string/app_name
 
  HTH
  Ludwig
 
  2008/10/29 zl25drexel [EMAIL PROTECTED]
 
 
 
   Hi all
 
   My app has some logics to check the gps status and shows an message
   when its disabled. Currently i put those logics in the onCreate()
   method of my apps's main activity. However, it turns out that this
   onCreate() method is called very frequently rather than once per
   application startup. That makes the notification message quite
   annoying.
 
   Is there any life cycle call back method that is only call once on
   application start 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] Ad supported applications

2008-10-29 Thread Al Sutton

I've had a quick chat with someone at OpenX and it would appear that if 
you're willing to use XML-RPC to get your ads you can develop something 
which can make use OpenX Market to offer ad slots in your app (they have 
an example of using Java and XML-RPC to get ads at 
https://developer.openx.org/wiki/display/API/OpenX+API+Tutorial#OpenXAPITutorial-Javaexample

The OpenX Market is in an Alpha stage at the moment, which means that if 
you get involved you get a good chance of steering development. I've 
floated the idea about grouping accounts so that one advertiser could 
share their ads amongst multiple apps, so that ball is rolling, but it's 
could be a way off yet.

More details about OpenX Market is available from 
http://www.openx.org/en/market

Hope it's useful.

Al.
http://andappstore.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: Any Android Suggestion Page

2008-10-29 Thread Disconnect
http://code.google.com/p/android/issues/list


On Wed, Oct 29, 2008 at 11:09 AM, Oberox [EMAIL PROTECTED] wrote:


 Hi,

 Can anyone tell me if there is any Android Suggestion Page where I can
 post suggestions.
 I'm a member of AndroidForums.com and there are many very good ideas
 in there.
 It would be sad if the Android Developers don't get to know them.

 Thanks to all that helped make Android be like it is now!

 kind regards,

 Oberox

 


--~--~-~--~~~---~--~~
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] Playing Audio in web apps on Android

2008-10-29 Thread BikingBill

Is there a Javascript command to play audio (MP3?) on the Android
Browser (T-Mobile G1).  I'd like to have some sound effects on our web
apps.

Thank you,

Bill
--~--~-~--~~~---~--~~
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: Text to Speech lib from Android Market

2008-10-29 Thread plusminus

I cannot see the T2S-library on the market... am I blind?

On Oct 29, 4:11 am, blindfold [EMAIL PROTECTED] wrote:
 You give yet another reason why access to the Android Market apps
 outside the G1 phone environment is needed. One needs such libraries
 on the PC to do Android software development based on such libraries,
 testing results on the emulator and so on. In other words, one should
 be able to get Android Market apps and libs through a regular browser
 on a PC, in addition to getting developer documentation for use of
 libraries downloaded from Android Market.

 I don't have a G1 myself, but am interested in Android text-to-speech
 (TTS) libraries to supplement my self-voicing app for general
 accessibility. I bet that the TTS library that you refer to is the one
 by Charles L. Chen. He has a private website athttp://www.clcworld.net
 but as far as I can tell it does not yet discuss or document TTS for
 Android there.

 Regards

 On Oct 29, 7:12 am, blues [EMAIL PROTECTED] wrote:

  There is a free lib can be downloaded from Android Market on the G1
  phone. It's developed by a google developer.

  Does anyone know how to use it? Any document about 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: OnApplicationStart ?

2008-10-29 Thread zl25drexel

I am in fact using a locationListener, i was overriding the
onProviderDisabled method rather than onStatusChange because
onStatusChange is not called when my app starts up. On the other hand,
onProviderDisabled was being called too frequently (it's called every
time the view is brought to foreground, such as when the user click
'back' to return to previous screen)

Right now I am using onCreate() to create a boolean variable which
make the notification appear only when onCreate() sets the boolean
flag. That is fine mostly, my only problem with it is that onCreate()
is called when the orientation changes, which is kind of annoying.


On Oct 29, 12:37 pm, Ludwig [EMAIL PROTECTED] wrote:
 I agree with hackbod that the Application is probably the wrong place to put
 a user notification on any sort - I had just picked up on the general issue
 of doing something at application start.
 If you are after the status of the location provider you might want to
 implement the LocationListener onStatusChanged() method, which will give you
 timely notifications of provider change (e.g. GPS enabled)

  how do i make the custom application avaiable in the manifest? Do you have

 any examples?

  You will need to create a derived class and declare it in the manifest,
  e.g.:
     application android:name=MyApplication

 android:icon=@drawable/icon

  android:label=@string/app_name

 Ludwig

 2008/10/29 zl25drexel [EMAIL PROTECTED]



  how do i make the custom application avaiable in the manifest? Do you
  have any examples?

  On Oct 29, 11:55 am, Ludwig [EMAIL PROTECTED] wrote:
   Classes derived from Application have an onCreate() method that gets
  called
   when the application (as opposed to any individual activity) gets
  started.
   You will need to create a derived class and declare it in the manifest,
   e.g.:
       application android:name=MyApplication
  android:icon=@drawable/icon
   android:label=@string/app_name

   HTH
   Ludwig

   2008/10/29 zl25drexel [EMAIL PROTECTED]

Hi all

My app has some logics to check the gps status and shows an message
when its disabled. Currently i put those logics in the onCreate()
method of my apps's main activity. However, it turns out that this
onCreate() method is called very frequently rather than once per
application startup. That makes the notification message quite
annoying.

Is there any life cycle call back method that is only call once on
application start 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: Need Help..... To install android package (.apk) on HTC Touch Mobile

2008-10-29 Thread gs_cmans

android SDK != J2ME

-g

On Oct 29, 12:10 pm, AndroidKid [EMAIL PROTECTED] wrote:
 Hi All,

 I've executed some sample application in android using emulator.

 I bought HTC touch mobile which has Windows Mobile 5.0 OS.

 I try to run my android application within HTC touch phone, But I
 can't :(

 I've done the following things,

 (1) I have installed Microsoft Activesync 4.5. (To rectify the issue
 while I'm connecting USB to my PC ).

 (2) I've connected my mobile with PC using USB.

 (3) Then I've modified my android project Manifest.xml file (Included
 Debuggable=true).

 (4) Then I've executed android application using eclipse. I got output
 in Emulator only. Not in HTC Touch Phone.

 I've gone through  the link  
 http://code.google.com/android/intro/develop-and-debug.html.

 With in the above link, I can't perform step 2  Step 3. Since Step 2
 is based on T-Mobile G Phone. In Step 3, I can't find the Wizard (ie,
 Found New Hardware wizard).

 I think If I did Step 2  3, then only the Device Chooser Wizard will
 appears while I'm running android.

 Please help me... what I'm missing ...

 Thanks in advance.

 By,
 Yasmin
--~--~-~--~~~---~--~~
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 get image file from Google Chart API

2008-10-29 Thread Ludwig
I am surprised you got that far. I thought that javax.imageio was not part
of Android.
You should be able to do what you want like this (pseudo code):

inputstream = url.openStream()
bitmap = BitmapFactory.decodeStream(inputstream)

Using the url
http://chart.apis.google.com/chart?cht=pchd=t:37,0,50,12,1,0,0chs=300x200
worked, but your longer posted one did not work then. I have not
investigated this further, might have to do with some of the special chars
not correctly encoded.

HTH
Ludwig

2008/10/29 AlBasha [EMAIL PROTECTED]


 I'm trying to get image file from Google Chart API.
 Image link (strURL) =

 http://chart.apis.google.com/chart?cht=pchd=t:37,0,50,12,1,0,0chs=300x200chl=Agriculture||Shrub/Grass|Trees|Built|Bare/Ice|Waterchco=66,ff,99FF66,006600,cc,66,76A4FBchf=bg,s,d3d3d3chdl=Agriculture||Shrubshttp://chart.apis.google.com/chart?cht=pchd=t:37,0,50,12,1,0,0chs=300x200chl=Agriculture%7C%7CShrub/Grass%7CTrees%7CBuilt%7CBare/Ice%7CWaterchco=66,ff,99FF66,006600,cc,66,76A4FBchf=bg,s,d3d3d3chdl=Agriculture%7C%7CShrubs
 and Grass|Trees|Built|Bare or Ice|Waterchdlp=b

 Here is my java code:
 URL url = new URL(strURL);
 BufferedImage original = ImageIO.read(url); --- Error when reach here
 byte[] data = write(original, png);

 Here is the error  :
 javax.imageio.IIOException: Can't get input stream from URL!
 at javax.imageio.ImageIO.read(Unknown Source)

 Any idea?



 


--~--~-~--~~~---~--~~
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: chmod unexpected permission error when logged into an actual device

2008-10-29 Thread kooscar

Justin,

Thanks for your reply, I really appreciate that.

However, based on your responses, is it safe to assume that Android
does not allow user manipulation of the file system and admin. related
behaviors aside from in/through application?

Practically speaking, something as simple as chmod 777 /data or ls /
data can only be done through an application?

Thank you,

Oscar




On Oct 29, 8:31 am, Justin (Google Employee) [EMAIL PROTECTED]
wrote:
  Google/HTC/T-Mobile needs to
  give us a way of loading our own build on thedevice

 This already exists. Just run 'adb install YOUR_APP.apk'.

 Cheers,
 Justin
 Android Team @ Google

 On Oct 28, 6:00 pm, surferdude [EMAIL PROTECTED] wrote:

  This is ridiculous, I boughtintowhat I thought was a completely open
  platform only to find out that its not. Google/HTC/T-Mobile needs to
  give us a way of loading our own build on thedeviceor else any hope
  google had of making android mainstream will fail.
  On Oct 28, 8:24 pm, Justin (Google Employee) [EMAIL PROTECTED]
  wrote:

   You can't do this on adevice. On devices root is disabled.

   Cheers,
   Justin
   Android Team @ Google

   On Oct 28, 4:42 pm, kooscar [EMAIL PROTECTED] wrote:

$ ls
ls
sqlite_stmt_journals
cache
sdcard
etc
init
default.prop
logo.rle
init.trout.rc
data
system
sys
proc
init.goldfish.rc
init.rc
sbin
root
dev
$ ls /data/
ls /data/
opendir failed,Permissiondenied
$chmod777 /data/
   chmod777 /data/
Unable tochmod/data/: Operation not permitted
$

I want to change thepermissionsettings for the /data dir, but it
won't let me- 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] Re: How to add a ImageButton from layout(xml)

2008-10-29 Thread Arun Mankad
Thank you mark it worked, but those buttons cannot be highlighted with that
orange shade as in Normal Button, how can i achive that

On Wed, Oct 29, 2008 at 7:19 PM, Mark Murphy [EMAIL PROTECTED]wrote:


 Arun Mankad wrote:
  Can anybody tell me How to add a ImageButton from layout(xml), I tried
  ImageButton
 
  ImageButton
  android:id=@+id/continue_button
  android:src=@drawable/sms
  /

 android:background

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

 



-- 
Arun Mankad

--~--~-~--~~~---~--~~
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] OpenGL light strange behaviour

2008-10-29 Thread Steff

Hi

I am playing with OpenGL and especially light in OpenGL. I have tried
to set light in the GLSurfaceView application in ApiDemos (Under
Graphics / OpenGL ES).

I just try to set the light as simple as I can. Therefore I just add a
few lines to CubeRenderer.drawFrase so that it looks as shown below. I
get some light effect, but it does not look like the light is
constantly comming from one direction. I looks like the light source
is also flying around. Why is that?

public void drawFrame(GL10 gl) {
/*
 * Usually, the first thing one might want to do is to clear
 * the screen. The most efficient way of doing this is to use
 * glClear().
 */

gl.glClear(GL10.GL_COLOR_BUFFER_BIT |
GL10.GL_DEPTH_BUFFER_BIT);

/*
 * Now we're ready to draw some 3D objects
 */

gl.glMatrixMode(GL10.GL_MODELVIEW);
gl.glLoadIdentity();


// Here start of lines I have added to get light
gl.glEnable(gl.GL_LIGHTING);
gl.glEnable(gl.GL_LIGHT0);

float ambientLight[] = { 0.0f, 0.0f, 0.0f, 1.0f };
float diffuseLight[] = { 1.0f, 1.0f, 1.0f, 1.0f };
float specularLight[] = { 1.0f, 1.0f, 1.0f, 1.0f };
float position[] = { 3.0f, 3.0f, 3.0f };

gl.glLightfv(gl.GL_LIGHT0, gl.GL_POSITION, position, 0);
gl.glLightfv(gl.GL_LIGHT0, gl.GL_AMBIENT, ambientLight, 0);
gl.glLightfv(gl.GL_LIGHT0, gl.GL_DIFFUSE, diffuseLight, 0);
gl.glLightfv(gl.GL_LIGHT0, gl.GL_SPECULAR, specularLight, 0);
// Here end of lines I have added to get light

gl.glTranslatef(0, 0, -3.0f);
gl.glRotatef(mAngle,0, 1, 0);
gl.glRotatef(mAngle*0.25f,  1, 0, 0);

gl.glEnableClientState(GL10.GL_VERTEX_ARRAY);
gl.glEnableClientState(GL10.GL_COLOR_ARRAY);

mCube.draw(gl);

gl.glRotatef(mAngle*2.0f, 0, 1, 1);
gl.glTranslatef(0.5f, 0.5f, 0.5f);

mCube.draw(gl);

mAngle += 1.2f;
}

--~--~-~--~~~---~--~~
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: OpenGL light strange behaviour

2008-10-29 Thread Steff

I also use:
gl.glEnable(gl.GL_COLOR_MATERIAL);


On Oct 29, 6:31 pm, Steff [EMAIL PROTECTED] wrote:
 Hi

 I am playing with OpenGL and especially light in OpenGL. I have tried
 to set light in the GLSurfaceView application in ApiDemos (Under
 Graphics / OpenGL ES).

 I just try to set the light as simple as I can. Therefore I just add a
 few lines to CubeRenderer.drawFrase so that it looks as shown below. I
 get some light effect, but it does not look like the light is
 constantly comming from one direction. I looks like the light source
 is also flying around. Why is that?

     public void drawFrame(GL10 gl) {
         /*
          * Usually, the first thing one might want to do is to clear
          * the screen. The most efficient way of doing this is to use
          * glClear().
          */

         gl.glClear(GL10.GL_COLOR_BUFFER_BIT |
 GL10.GL_DEPTH_BUFFER_BIT);

         /*
          * Now we're ready to draw some 3D objects
          */

         gl.glMatrixMode(GL10.GL_MODELVIEW);
         gl.glLoadIdentity();

         // Here start of lines I have added to get light
         gl.glEnable(gl.GL_LIGHTING);
         gl.glEnable(gl.GL_LIGHT0);

         float ambientLight[] = { 0.0f, 0.0f, 0.0f, 1.0f };
         float diffuseLight[] = { 1.0f, 1.0f, 1.0f, 1.0f };
         float specularLight[] = { 1.0f, 1.0f, 1.0f, 1.0f };
         float position[] = { 3.0f, 3.0f, 3.0f };

         gl.glLightfv(gl.GL_LIGHT0, gl.GL_POSITION, position, 0);
         gl.glLightfv(gl.GL_LIGHT0, gl.GL_AMBIENT, ambientLight, 0);
         gl.glLightfv(gl.GL_LIGHT0, gl.GL_DIFFUSE, diffuseLight, 0);
         gl.glLightfv(gl.GL_LIGHT0, gl.GL_SPECULAR, specularLight, 0);
         // Here end of lines I have added to get light

         gl.glTranslatef(0, 0, -3.0f);
         gl.glRotatef(mAngle,        0, 1, 0);
         gl.glRotatef(mAngle*0.25f,  1, 0, 0);

         gl.glEnableClientState(GL10.GL_VERTEX_ARRAY);
         gl.glEnableClientState(GL10.GL_COLOR_ARRAY);

         mCube.draw(gl);

         gl.glRotatef(mAngle*2.0f, 0, 1, 1);
         gl.glTranslatef(0.5f, 0.5f, 0.5f);

         mCube.draw(gl);

         mAngle += 1.2f;
     }
--~--~-~--~~~---~--~~
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 firmware update thro OTA works?

2008-10-29 Thread mahadevan v

Has anyone figured out how the firmware update thro OTA works?

1) A pending intent is triggered in android_root/packages/apps/
Updater/
src/com/android/updater/PesterActivity.java where there is an overdue
OTA update pending.

2) android_root/recovery/recovery.c (resides as /system/bin/recovery)
handles send_intent as argument and updates the boot command field (--
send_intent=send_intent) and reboots the phone. On reboot, the
bootloader will read the bootloader_message from flash and check the
command field and updates firmware.

So, the question is where is 1+2 happening? I dont see the connection
anywhere. How/Where does  the framework trigger the recovery program
to do this. Has anyone figured this out?

Thanks,
M
--~--~-~--~~~---~--~~
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: Text to Speech lib from Android Market

2008-10-29 Thread blindfold

I don't have G1 to check, but reports mention something called Text-
To-Speech Translator.

On Oct 29, 6:01 pm, plusminus [EMAIL PROTECTED] wrote:
 I cannot see the T2S-library on the market... am I blind?

--~--~-~--~~~---~--~~
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] OpenGL light strange behaviour

2008-10-29 Thread Steff

Hi

I am playing with OpenGL and especially light in OpenGL. I have tried
to set light in the GLSurfaceView application in ApiDemos (Under
Graphics / OpenGL ES).

I just try to set the light as simple as I can. Therefore I just add a
few lines to CubeRenderer.drawFrase so that it looks as shown below. I
get some light effect, but it does not look like the light is
constantly comming from one direction. I looks like the light source
is also flying around. Why is that?

public void drawFrame(GL10 gl) {
/*
 * Usually, the first thing one might want to do is to clear
 * the screen. The most efficient way of doing this is to use
 * glClear().
 */

gl.glClear(GL10.GL_COLOR_BUFFER_BIT |
GL10.GL_DEPTH_BUFFER_BIT);

/*
 * Now we're ready to draw some 3D objects
 */

gl.glMatrixMode(GL10.GL_MODELVIEW);
gl.glLoadIdentity();


// Here start of lines I have added to get light
gl.glEnable(gl.GL_LIGHTING);
gl.glEnable(gl.GL_LIGHT0);

float ambientLight[] = { 0.0f, 0.0f, 0.0f, 1.0f };
float diffuseLight[] = { 1.0f, 1.0f, 1.0f, 1.0f };
float specularLight[] = { 1.0f, 1.0f, 1.0f, 1.0f };
float position[] = { 3.0f, 3.0f, 3.0f };

gl.glLightfv(gl.GL_LIGHT0, gl.GL_POSITION, position, 0);
gl.glLightfv(gl.GL_LIGHT0, gl.GL_AMBIENT, ambientLight, 0);
gl.glLightfv(gl.GL_LIGHT0, gl.GL_DIFFUSE, diffuseLight, 0);
gl.glLightfv(gl.GL_LIGHT0, gl.GL_SPECULAR, specularLight, 0);
// Here end of lines I have added to get light

gl.glTranslatef(0, 0, -3.0f);
gl.glRotatef(mAngle,0, 1, 0);
gl.glRotatef(mAngle*0.25f,  1, 0, 0);

gl.glEnableClientState(GL10.GL_VERTEX_ARRAY);
gl.glEnableClientState(GL10.GL_COLOR_ARRAY);

mCube.draw(gl);

gl.glRotatef(mAngle*2.0f, 0, 1, 1);
gl.glTranslatef(0.5f, 0.5f, 0.5f);

mCube.draw(gl);

mAngle += 1.2f;
}

--~--~-~--~~~---~--~~
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: chmod unexpected permission error when logged into an actual device

2008-10-29 Thread surferdude

You misunderstood me. I want to take the source code from
source.android.com, build it and flash it on to my device, so I can
have superuser privileges instead of being restricted by Google/T-
Mobile. Telling your developers that root access is disabled and still
calling the platform open is unacceptable.

On Oct 29, 11:31 am, Justin (Google Employee) [EMAIL PROTECTED]
wrote:
  Google/HTC/T-Mobile needs to
  give us a way of loading our own build on thedevice

 This already exists. Just run 'adb install YOUR_APP.apk'.

 Cheers,
 Justin
 Android Team @ Google

 On Oct 28, 6:00 pm, surferdude [EMAIL PROTECTED] wrote:

  This is ridiculous, I boughtintowhat I thought was a completely open
  platform only to find out that its not. Google/HTC/T-Mobile needs to
  give us a way of loading our own build on thedeviceor else any hope
  google had of making android mainstream will fail.
  On Oct 28, 8:24 pm, Justin (Google Employee) [EMAIL PROTECTED]
  wrote:

   You can't do this on adevice. On devices root is disabled.

   Cheers,
   Justin
   Android Team @ Google

   On Oct 28, 4:42 pm, kooscar [EMAIL PROTECTED] wrote:

$ ls
ls
sqlite_stmt_journals
cache
sdcard
etc
init
default.prop
logo.rle
init.trout.rc
data
system
sys
proc
init.goldfish.rc
init.rc
sbin
root
dev
$ ls /data/
ls /data/
opendir failed,Permissiondenied
$chmod777 /data/
   chmod777 /data/
Unable tochmod/data/: Operation not permitted
$

I want to change thepermissionsettings for the /data dir, but it
won't let me- 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] Re: Implementing a custom Suggestions Provider

2008-10-29 Thread shotwave

Thank you!
I will totally try it

On Oct 28, 6:29 am, skink [EMAIL PROTECTED] wrote:
 On 28 Paź, 11:15, skink [EMAIL PROTECTED] wrote:



  On 26 Paź, 23:41, shotwave [EMAIL PROTECTED] wrote:

   Hi, I am trying to implemente a customsuggestionproviderwhich will
   allow to promt user in selecting email addresses. Unfortunately no
   matter what I do I keep getting the

   '10-26 22:22:02.871: WARN/SearchDialog(565): Suggestions cursor
   discarded due to missing required columns.'

   message in console, though looks like I have specified all the
   possible columns in the resulting cursor...

   final MatrixCursor result = new MatrixCursor(new String[] {
                                   SearchManager.SUGGEST_COLUMN_FORMAT,
                                   SearchManager.SUGGEST_COLUMN_TEXT_1,
                                   SearchManager.SUGGEST_COLUMN_TEXT_2,
                                   SearchManager.SUGGEST_COLUMN_ICON_1,
                                   SearchManager.SUGGEST_COLUMN_ICON_2,
                                   
   SearchManager.SUGGEST_COLUMN_INTENT_ACTION,
                                   SearchManager.SUGGEST_COLUMN_INTENT_DATA,
                                   
   SearchManager.SUGGEST_COLUMN_INTENT_DATA_ID,
                                   SearchManager.SUGGEST_COLUMN_QUERY,
                                   SearchManager.SUGGEST_MIME_TYPE,
                                   SearchManager.SUGGEST_URI_PATH_QUERY});
   // fill the cursor using addRow(Object[])
   return result;

   what am I doing wrong?

  i think you missed column _id

 i mean android.provider.BaseColumns._ID

 skink



  skink
--~--~-~--~~~---~--~~
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] Spinner setSelection(int) problem

2008-10-29 Thread bryan

Hi all,
I have a spinner in a dialog. Calling spinner.setSelection(int)
correctly sets the spinner just after opening the app. If I reopen the
dialog after making another spinner.setSelection(int) call, the
spinner shows the first item regardless of the selection being set,
BUT...

clicking on the spinner shows that the correct value is selected in
the list of options (green dot next to the item). Weird huh? Sometimes
when this happens, the spinner is cutting off parts of the text. Has
anyone else seen this happen?
--~--~-~--~~~---~--~~
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: chmod unexpected permission error when logged into an actual device

2008-10-29 Thread Mark Murphy

surferdude wrote:
 I want to take the source code from
 source.android.com, build it and flash it on to my device, so I can
 have superuser privileges instead of being restricted by Google/T-
 Mobile.

Whether the G1 accepts replacement firmware, and the process for doing 
them, is a hardware question. HTC has a decent track record in this 
regard, though I haven't seen a definitive statement one way or another 
on the G1.

  Telling your developers that root access is disabled and still
 calling the platform open is unacceptable.

By your definition, Linux is not an open platform.

It is eminently possible to take Linux and install it on a device that 
does not grant root access and is not designed to have its firmware 
replaced by end users.

Take, for example, the TiVo. Getting root access on a TiVo, where 
possible, is a royal pain, and replacing the TiVo software appears tor 
require physically dismantling the unit, AFAIK. Yet, TiVo runs Linux. 
Linux is open -- the TiVo is not. Similarly, Android is open -- the G1 
may not be.

The Android distro that is installed by HTC on the G1 has root access 
locked down. It is eminently likely that mainstream Android distros on 
other devices distributed by major carriers will have root access locked 
down. This should not preclude other device makers from offering Android 
devices with root access, via their own patch to the Android source to 
lift that restriction.

So, rolling all the way back to your statement of what you want, the 
questions you'll need answers for are:

1. Which pieces of Android hardware will allow flashing of replacement 
firmware, and is the G1 one of them?

2. Where in the Android source is the no-root lockdown implemented and, 
if it's not configurable today as a build option, will the core Android 
team accept a patch that *does* make it a build-time configuration 
option, so those interested in root access can easily make firmware that 
offers it?

#1 will determine how you can do it at all on hardware; #2 will 
determine if this is perpetually a non-mainstream patch or if your 
wishes and OHA's wishes can be met simultaneously.

-- 
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] Re: Android Emulator

2008-10-29 Thread Douglas Oviche
Hi David,
thanks a lot for your answer but the solution was differen, in fact I am
thinking to put an issue about this, here is the solution to my problem.

Because I am running Android on Linux Ubuntu, for us to be able to redirect
traffic from one port to another you cannot use the redir within the
emulator console on Linux as we might do on Windows, for some reason Google
has released to different commands to the problem.

For example if you want to redirect a traffic from port to port in Windows
you have to use adb shell redir tcp:4848:4854 or udp:4848:4854 instead
in Linux is as follow:

 adb forward tcp:4545 tcp:5554

this is something I don't really understand because commands that are part
of a specific tool or application should not vary from OS to OS as they are
part of a tool and that's why they should not be related to the Operating
System.

please spread this issue across you know

Thanks


2008/10/29 David Turner [EMAIL PROTECTED]

 you must use the 'redir' command from the emulator console (which is
 specific to the emulator program),
 i.e. with telnet localhost 5554 then redir etc...

 adb shell command is used to run a command within the emulated system,
 and this is something very different


 On Wed, Oct 29, 2008 at 12:28 PM, [EMAIL PROTECTED] 
 [EMAIL PROTECTED] wrote:



 Hi Pals,
 I have a problem with the Android Emulator.
 When I trying to redirect the netware traffic as follow

 adb shell
 # redir 

 I got a message the following message in the console:

 redir: not found

 I need to redirect all the requests that my java client executes
 through specific port to the port which my java server implementation
 is listening on the Android Emulator.

 It seems to me that something is missing from the installation because
 on window it does work.

 Thanks in advance Pals

 Douglas




 


--~--~-~--~~~---~--~~
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-29 Thread Hong

i got my real number, u sure u running it in your real G1, not the emulator?
with android.permission.READ_PHONE_STATE permission of course.

On Wed, Oct 29, 2008 at 3:16 AM, SR [EMAIL PROTECTED] wrote:

 I second this.  On the G1, it returns a bogus phone number (somewhat
 similar to that on the emulator).

 Here's the code:
 TelephonyManager tm = (TelephonyManager)
 activity.getSystemService(Context.TELEPHONY_SERVICE);

 String phoneId = tm.getLine1Number();

 I've got the following in the manifest file:
uses-permission
 android:name=android.permission.READ_PHONE_STATE /

 The value I receive is:
 1 (857) 445-3609

 which is _not_ the MSISDN or the phone number.

 I'm guessing it's a bug that needs to be fixed ASAP?

 Stan

 On Oct 23, 6:59 pm, Mark Murphy [EMAIL PROTECTED] wrote:
 Danny wrote:
  I am trying to get the user'sphonenumberto 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] Re: Network Monitoring

2008-10-29 Thread blues

Can we read from Java? Any permission is required?

Blues

On Oct 29, 4:34 am, brs [EMAIL PROTECTED] wrote:
 You could try to read

 /proc/self/net/dev
 /proc/self/net/snmp

 to get interface and protocol level stats. I guess since this is not
 part of the public API, there is not guarantee that these formats
 won't change, but for now at least this information might be what you
 are looking for.

 Bernhard

 On Oct 29, 2:15 am, blues [EMAIL PROTECTED] wrote:



  Is there a way to monitor the IP traffic? For example throughput?
  If not in java, can it be done through native code? I have seen some
  IP sniffer source code for linux.- 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] contacts.extensions

2008-10-29 Thread Tughi

Hi guys,
I'm trying to extend the contacts by adding additional fields to
contacts.people using contacts.extensions. My only problem is that
have no idea how to query the contacts.people using a join with
contacts.extensions. I'm not trying to modify/extend the contacts
provider.

One very very ugly solution would be to query on contacts.extensions
and using the person ids to query the contacts.people (manual
join) ... The idea is to create an ListActivity which displays only
the extended contacts.

I would like to be able to create a content provider that uses
directly the contacts.db (from the content provider) where i could use
my join queries... but from what I know this is not possible.

Do the content providers support joins? Or is there another way to
create this kind of joins?

One more thing... How can I use Contacts.People.Extensions?

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: Text to Speech lib from Android Market

2008-10-29 Thread blues

I don't have the G1 yet.
But from many sources, the T2S lib is on the market. If I am not
wrong, your website anddev.com is one of the source.

Blues

On Oct 29, 10:01 am, plusminus [EMAIL PROTECTED] wrote:
 I cannot see the T2S-library on the market... am I blind?

 On Oct 29, 4:11 am, blindfold [EMAIL PROTECTED] wrote:



  You give yet another reason why access to the Android Market apps
  outside the G1 phone environment is needed. One needs such libraries
  on the PC to do Android software development based on such libraries,
  testing results on the emulator and so on. In other words, one should
  be able to get Android Market apps and libs through a regular browser
  on a PC, in addition to getting developer documentation for use of
  libraries downloaded from Android Market.

  I don't have a G1 myself, but am interested in Android text-to-speech
  (TTS) libraries to supplement my self-voicing app for general
  accessibility. I bet that the TTS library that you refer to is the one
  by Charles L. Chen. He has a private website athttp://www.clcworld.net
  but as far as I can tell it does not yet discuss or document TTS for
  Android there.

  Regards

  On Oct 29, 7:12 am, blues [EMAIL PROTECTED] wrote:

   There is a free lib can be downloaded from Android Market on the G1
   phone. It's developed by a google developer.

   Does anyone know how to use it? Any document about it?- 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] Re: Text to Speech lib from Android Market

2008-10-29 Thread plusminus

Yes, there had been one up, while the market was 'private'. It could
be seen in some screenshots.
But now I cannot find it.

On Oct 29, 3:00 pm, blues [EMAIL PROTECTED] wrote:
 I don't have the G1 yet.
 But from many sources, the T2S lib is on the market. If I am not
 wrong, your website anddev.com is one of the source.

 Blues

 On Oct 29, 10:01 am, plusminus [EMAIL PROTECTED] wrote:

  I cannot see the T2S-library on the market... am I blind?

  On Oct 29, 4:11 am, blindfold [EMAIL PROTECTED] wrote:

   You give yet another reason why access to the Android Market apps
   outside the G1 phone environment is needed. One needs such libraries
   on the PC to do Android software development based on such libraries,
   testing results on the emulator and so on. In other words, one should
   be able to get Android Market apps and libs through a regular browser
   on a PC, in addition to getting developer documentation for use of
   libraries downloaded from Android Market.

   I don't have a G1 myself, but am interested in Android text-to-speech
   (TTS) libraries to supplement my self-voicing app for general
   accessibility. I bet that the TTS library that you refer to is the one
   by Charles L. Chen. He has a private website athttp://www.clcworld.net
   but as far as I can tell it does not yet discuss or document TTS for
   Android there.

   Regards

   On Oct 29, 7:12 am, blues [EMAIL PROTECTED] wrote:

There is a free lib can be downloaded from Android Market on the G1
phone. It's developed by a google developer.

Does anyone know how to use it? Any document about it?- 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] Simple game menu implementation help

2008-10-29 Thread AaronBC

I'm writing a simple game so I can learn more about android
development.  I need a little help designing the menu system.  When
you start the application you will see a simple menu:

Start New Game
Resume Game (Dynamically shown after a game has been started)
Scoreboard
Instructions
About

When you click on Start New Game it starts a new Play activity
(This works fine)

The Resume Game option should only be visible when a game has
already been started and the user returns to the main menu.  How do I
determine whether the Play activity has been started or not in order
to display this menu item?  Also, how do I handle the back button
press when in the Play activity so that the game state is paused and
not lost when returning to the main menu?

Example:
The game application is started and the user sees the following screen

New Game
Scoreboard
Instructions
About

The user then taps New Game and starts to play. In the middle of the
game the user hits the back button (or receives a phone call, starts
another app, etc.) and sees the following screen when returning to the
game app:

New Game
Resume Game
Scoreboard
Instructions
About

The user either taps New Game and starts a new game or taps Resume
Game and continues where he left off.

How should I approach this using multiple Activities?

Thx,
Aaron

--~--~-~--~~~---~--~~
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: jchat4android 1.2 released!

2008-10-29 Thread alberto

Hi. I'm having problems with the visibility in jChat by using the
android emulator. I can connect 2 instances of android through the
jChat application to the JADE platform, but I can not be able to see
that those instances are online in the jChat. They always appear as
offline. I don't know if there is a problem with the JADE-Leap or
maybe I have to set some variable in the emulator in order to enable
the communications of the emulator devices.
Additional Information  I tried to change the telephone number of the
devices, and add them in the contact list of each device, but they
just appear as offline in the jChat screen of the emulator, even if I
can see that both of them are in the JADE platform.

On 21 oct, 09:59, Semeria Stefano
[EMAIL PROTECTED] wrote:
 Dear Android developers,

 We are proud to announce the release of jChat4Android 1.2 working with ANDROID
 SDK 1.0

 jChat4Android is a chat application for the Android platform based on Jade
 agent framework.

 It shows how Jade can effectively be used in a  peer-to-peer context on
 mobile devices.

 In our opinion JADE, thanks to the expressiveness of its communication model
 based on FIPA specifications (http://www.fipa.org), brings strong added

 value to ANDROID SDK platform in the development of innovative applications
 based on social models and peer-to-peer paradigm.

 jChat relies on Jade4AndroidAddOn 1.1, a JADE add-on that enables Jade
 capabilities on the Android platform and provides a good example of how
 Android developers can use JADE agents in their own applications.

 For any information regarding Jade and Jade4Android, please refer to Jade
 project official site at

 *http://jade.tilab.com*.

 These are the main features of jChat:

 ·       *Contacts management*  (contacts are read from the phone contacts
 database)

 ·       *Persistence*  (you can see the status of all contacts connected to
 your own JADE platform)

 ·       *Real time localization* (you can see the position of the contacts
 on the map and the distance from your current position. Localization uses
 the Android mocked GPS provider for tracking contacts position. You are able
 to import new custom tracks if you wish.)

 ·       *Multiple chat sessions handling*  ( you can open multiple chat
 sessions with different contacts and switch between them)

 ·       *Support for chat with many contacts in a single session*

 ·       *Mocked SMS sending and phone call to contacts*

 jChat4Android 1.2 is released as open source software according to the LGPL
 2.1.

 Main Features of the new released:

 1.     Support for Android 1.0 SDK

 2.     New ddms-like tool for sending mocked location updates to different 
 emulators at the same time loading from kml.

 You can find out source code, binaries and documentation at the
 jChat4android project site here :http://code.google.com/p/jchat4android/

 * *

 *Have fun with jchat4android*

 Stefano Semeria

 Marco Ughetti

 Danilo Gotta

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

2008-10-29 Thread Michael

 Right now I am using onCreate() to create a boolean variable which
 make the notification appear only when onCreate() sets the boolean
 flag. That is fine mostly, my only problem with it is that onCreate()
 is called when the orientation changes, which is kind of annoying.

You *can* disable this in AndroidManifest, with the
android:configChanges attribute of your application.  However... you
have to be aware of what this means.

I'm with the other guys, you probably want to do that some other way.
Perhaps another thread or some kind of static class?


- Michael

--~--~-~--~~~---~--~~
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: USB socket

2008-10-29 Thread j

I would also like to know if there is such API (public or private).

On Oct 28, 1:13 pm, Emery [EMAIL PROTECTED] wrote:
 Can I open a TCP connection across a USB connection with the G1? My
 guess is no, since someone could use that totether. I just want the
 option to use a laptop as an input device.
--~--~-~--~~~---~--~~
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: The UK Release and Internationalization

2008-10-29 Thread cyntacks

Hi Everyone,

I just wanted to give this a bump.

Has anyone successfully internationalized their application? For
example, I want to determine what region the user is in (UK or US) so
I can provide English or Metric units on the backend for calculations.
Is this as simple as using Java's locale, or does Android provide
another type of support on top that I should be implementing?

The API says this is coming soon: 
http://code.google.com/android/devel/resources-i18n.html#i18n

I realize I can provide different languages using the values-en,
values-xx, etc. But what about determining that region in the java
code?

Thanks for your help,

Kevin


On Oct 29, 7:07 am, cyntacks [EMAIL PROTECTED] wrote:
 Hi,

 Last I read here on the board Android did not yet fully support
 internationalization (even though we have the directories for
 different languages, etc).

 1) Is this true?
 2) Will the normal Java syntax involving Locales be a valid work
 around?

 I ask because our application needs to know whether to use metric
 units or not. Just wondering what the best way to determine this may
 be on Android for the UK release today.

 Thanks for your help,

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



  1   2   >