[android-developers] Re: Driving Directions

2008-08-23 Thread Jeffrey Sharkey

Just a heads-up that I found a nice way of launching the Maps app in
driving-directions mode:

http://www.jsharkey.org/blog/2008/08/22/driving-directions-in-android-09-sdk/

j

On Aug 21, 7:26 am, marcel-182 <[EMAIL PROTECTED]> wrote:
> Hi,
>
> It would be nice if someone from Google could clarify what happened to
> it. It was never really part of the API 
> (Seehttp://groups.google.com/group/android-developers/browse_thread/threa...)
> but a lot of people made use of it and now it's just gone :-(.
>
> Also why is there a method MapView.isRouteDisplayed() we have to
> override when it's not even possible to display a route?
>
> Regards,
> Marcel
>
> On 21 Aug., 10:08, Peter Stevenson <[EMAIL PROTECTED]> wrote:
>
> > In part of my work I wrote some Android App which use a lot ofDriving
> > Direction and mutli -route Overlays
> > What happen to the Api for this egDrivingDirection
> > I look look though the code can not see it
>
> > Please Help
>
> > Thank you
> > 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]
Announcing the new Android 0.9 SDK beta!
http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: More camera misery with SDK 0.9 beta

2008-08-23 Thread blindfold

OK, I have filed issues 790, 821, 822 and 823.

Thanks.

On Aug 23, 2:13 am, "Megha Joshi" <[EMAIL PROTECTED]> wrote:
> On Fri, Aug 22, 2008 at 5:09 PM, blindfold <[EMAIL PROTECTED]>wrote:
>
> Could you please log bugs in the public issue tracker for both these issues?
>

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



[android-developers] Re: Game development

2008-08-23 Thread Peli

The best way to start is to look at the samples that come with your
SDK:
 * LunarLander
 * Snake

Try to modify them somehow. This should give you a good start. ( A
good general start on Android is in any case the notepad tutorial
http://code.google.com/android/intro/tutorial.html )

Peli

On 23 Aug., 08:13, Mitul Nakum <[EMAIL PROTECTED]> wrote:
> hi.
>
> i want to make simple game on Android.
>
> but i dont know the approach to start.
>
> so any 1 can help me from where i should start?
>
> and which particular API (package)
>
> 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]
Announcing the new Android 0.9 SDK beta!
http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Instrumentation failing with classnotfound on android.test.InstrumentationTestRunner

2008-08-23 Thread Carl H.

Hi Megha,

I did not notice that no, was looking at the site. I tried to add the
second androidManifest to my project under the "acceptance" folder
which is my test folder. When I try to compile and install the app
onto the device, I get the following error:

08-23 07:58:21.129: WARN/PackageParser(54): Unable to read
AndroidManifest.xml of /data/app/vmdl31345.tmp
08-23 07:58:21.129: WARN/PackageParser(54):
java.io.FileNotFoundException: AndroidManifest.xml

I did follow the instruction on changing the package name etc... I
have several questions:

1. Do I need to have the instrumentation in another app - thus
installing 2 different apps (signing them correctly I suppose)?
2. Why do you use the permission run_instrumentation? I thought there
was no need for it in 0.9?

More documentation here would be much appreciated indeed!

Thanks,
Car aka acsia



On Aug 22, 11:05 pm, "Megha Joshi" <[EMAIL PROTECTED]> wrote:
> Did you notice there is one more AndroidManifest.xml file under the /tests
> folder in ApiDemos...perhaps you are missing that...
> We will add more information to the docs ...
>
> On Fri, Aug 22, 2008 at 4:50 AM, Carl H. <[EMAIL PROTECTED]> wrote:
>
> > Note that the cmd line is:
>
> > adb shell am instrument -e class com.novoda.runbuddy.AllTests -w
> > com.novoda.runbuddy/android.test.InstrumentationTestRunner
>
> > and not as previously stated:
> >  adb shell am instrument -e class com.android.samples.AllTests -w
> > com.novoda.runbuddy/android.test.InstrumentationTestRunner
>
> > The error is still apparent
>
> > On Aug 22, 12:18 pm, "Carl H." <[EMAIL PROTECTED]> wrote:
> > > Hello,
>
> > > I am trying to follow the post on ApplicationInstrumentation:
> >http://code.google.com/android/samples/ApiDemos/tests/src/com/android
> > ..
>
> > > My setup is very similar then the example. I have the following in my
> > > manifest:
> > >         http://schemas.android.com/apk/res/
> > > android"
> > >                 android:targetPackage="com.novoda.runbuddy"
> > > android:name="android.test.InstrumentationTestRunner"
> > >                 android:label="testInst" />
>
> > > And I start the instrumentation like this:
> > >  adb shell am instrument -e class com.android.samples.AllTests -w
> > > com.novoda.runbuddy/android.test.InstrumentationTestRunner
>
> > > I get the following error message:
> > > INSTRUMENTATION_RESULT: shortMsg=Unable to instantiate instrumentation
> > > ComponentInfo{com.novoda.runbuddy/
> > > android.test.InstrumentationTestRunner}:
> > > java.lang.ClassNotFoundException:
> > > android.test.InstrumentationTestRunner in loader
> > > [EMAIL PROTECTED]
> > > INSTRUMENTATION_RESULT: longMsg=java.lang.RuntimeException: Unable to
> > > instantiate instrumentation ComponentInfo{com.novoda.runbuddy/
> > > android.test.InstrumentationTestRunner}:
> > > java.lang.ClassNotFoundException:
> > > android.test.InstrumentationTestRunner in loader
> > > [EMAIL PROTECTED]
> > > INSTRUMENTATION_CODE: 0
>
> > > I tried different combination and can not make the above work. The
> > > documentation is sparse so I am not sure where I am going wrong. Why
> > > would I get a class not found on android.test? There is no need for
> > > permission from what I take with the new SDK.
>
> > > Any ideas?
> > > ./Acsia
>
>
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new Android 0.9 SDK beta!
http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Text2Speech now hosted at google code

2008-08-23 Thread Peli

Good idea to go open source!

In what state is the code? Does it work already?

Is it necessary to create a separate Android branch (which may
complicate future development), or could one contribute code changes
back to the FreeTTS project so that it becomes compatible with
Android?

Peli


On 22 Aug., 21:31, l1ghtm4n <[EMAIL PROTECTED]> wrote:
> I've decided to open source the Text2Speech project for Android. The
> code can be found athttp://code.google.com/p/android-text2speech/.
> The ultimate goal of the project is to become the standard for
> Text2Speech services on the Android platform.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new Android 0.9 SDK beta!
http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: alwaysRetainTaskState - Some questions

2008-08-23 Thread code_android_festival_way

Something new to this topic?

On 22 Aug., 15:05, code_android_festival_way
<[EMAIL PROTECTED]> wrote:
> I came across the parameter "alwaysRetainTaskState" 
> athttp://code.google.com/android/reference/android/R.attr.html#alwaysRe...
> and don't really know how to use it the right way. I've got several
> activities in my application and want to persist the state of my
> activity UI so that the user can press the home button and after
> starting my application again he will come back to the last opened
> activity.
> When I understand the parameter in the right way I think that he
> should do what I want. Now I've added the parameter to all activities
> in my AndroidManifest but after restarting my application from the
> home screen (after pressing the home button in my app) I'm always
> getting back to my initial screen.
>
> Here is one sample from my AndroidManifest:
>
>                                    android:alwaysRetainTaskState="true">
>         
>
> What am I doing wrong? In addition I'd like to ask what state in
> detail will be presisted. (the complete UI state?)
>
> Regards!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new Android 0.9 SDK beta!
http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Contact database – Group crea tion ?

2008-08-23 Thread Yalcin

Howto create a group (like clients, team, etc.) in contact database
from  an application?
Which tables and columns to modify? I looked at the documentation but
I'm not clear about it.
Thanks, Yalcin

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



[android-developers] Re: Text2Speech now hosted at google code

2008-08-23 Thread blindfold

Great! Looking forward to see Text2Speech complement my Image2Sound
project http://www.seeingwithsound.com/android.htm (The vOICe Android)
through a speech API for blind users. How functional is Text2Speech at
this stage, and what is still missing?

Thanks.

On Aug 22, 9:31 pm, l1ghtm4n <[EMAIL PROTECTED]> wrote:
> I've decided to open source the Text2Speech project for Android. The
> code can be found athttp://code.google.com/p/android-text2speech/.
> The ultimate goal of the project is to become the standard for
> Text2Speech services on the Android platform.

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



[android-developers] Re: New gmail account cannot use gtalk service?

2008-08-23 Thread Kasas

I don't know why it is, but I think you should introduce the JID at
the end of the email address. Just like this:


mGTalkBilliardSession.sendDataMessage(dest+"/
androidwCxwXphYj3JM", intent);

This JID is the same for every acount, so just put it at the end, and
the error will disappear.

I hope this helps!

On 19 jul, 06:34, Kevin Tan <[EMAIL PROTECTED]> wrote:
> Just to follow up on this.
>
> I still don't understand why my new gmail account cannot send message
> to itself via the gtalk data message sender sample while my old
> account can. Thinking of borrowing a friend's gmail account if i can't
> find the answer tonight.
>
> But, I was able to run two emulators and at least get both to send
> message to my old account.
> I started both emulators using command line.
>
> While in the below scenario, I started an emulator from eclipse in
> debug mode and one from the command line. The command line emulator
> just doesn't work quite right for some reason.
>
> On Jul 18, 3:22 pm, Kevin Tan <[EMAIL PROTECTED]> wrote:
>
> > hi,
>
> > I want setup two emulators communicating with each other on the same
> > Windows Vista machine. So I setup a new gmail account
> > [EMAIL PROTECTED]
> > yesterday and put both as contacts to each other.
>
> > I was able to send a message to myself  with my old gmail account
> > in the same emulator.
>
> > But when I use the new account to send message to myself, log cat
> > shows this:
>
> > "sendDataMessage: can't find the full JID for [EMAIL PROTECTED],
> > failed to send message"
>
> > Does anyone knows what is the deal here?
>
> > A seperate question, in vista, do I need to setup my second emulator
> > differently
> > to communicate with the first emulator? I just copied the
> > userdata.img
> > file in androidhome\tools\lib and rename it to newdata.img. then use
> > "emulator -data newdata.img" to start the second emulator. I could
> > not
> > even send a message to myself with my old gmail account.
>
> > I followed the instructions 
> > here.http://groups.google.com/group/android-developers/browse_thread/threa...
>
> > I have some  server-client code that i would like to test with two
> > emulators on the same vista laptop (which is the only machine I have
> > right now). Any help will be greatly appreciated.
>
> > Regards,
> > ky
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new Android 0.9 SDK beta!
http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Driving Directions

2008-08-23 Thread chris

Hi,

Nice , but it doesn't let you build maps with driving directions
inside your app.

For anyone  , i would recommand using the enhanced Driving Directions
from Nicolas here :

http://www.anddev.org/route_-_improved_google_driving_directions-t1892.html

Regards

Chris

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



[android-developers] Re: text color won't change for TextView.setEnabled(false)

2008-08-23 Thread samlu

If I remove the line of "android:textColor", it backs to normal.

But I think the current scheme is still having a big problem for
developer.
For example, I created a TextView object with



Then, I set the text using

tv.setText(Html.fromHtml("This is a
test."));

You can see that the colors of TextView won't be changed to dim color.
It does not have this problem in m5.

Is there any API for me to call for graying a TextView?

On Aug 23, 10:01 am, samlu <[EMAIL PROTECTED]> wrote:
> This is the TextView object defined in layout file.
>
>android:layout_width="fill_parent"
>   android:layout_height="fill_parent"
>   android:background="#A0"
>   android:textColor="#FF" />
>
> In addition, no theme specified for activity in Manifest.xml. I only
> use the default theme.
> Sam
>
> On Aug 23, 5:29 am, "Jeff Hamilton" <[EMAIL PROTECTED]> wrote:
>
> > How did you define the TextView in your layout file? Are you using one
> > of the standard textAppearance values?
>
> > -Jeff
>
> > On Fri, Aug 22, 2008 at 2:17 AM, samlu <[EMAIL PROTECTED]> wrote:
>
> > > When I called setEnabled(false) for a TextView object on m5-rc15, the
> > > text color will be changed to gray (or dim).
>
> > > After switching to v0.9, it seems that all view object won't change
> > > color when I call setEnabled(false).
>
> > > Does anyone know how to fix 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]
Announcing the new Android 0.9 SDK beta!
http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Error inserting count=1 tag=HTTP_STATUS:AndroidHttpConnectionFactory/70597:Error sum=0.009 using INSERT INTO stats(count, tag, sum) VALUES(?, ?, ?);

2008-08-23 Thread 6real

Dear all,

Since I migrate my code under 0.9.
I met this warning message - among others - when I try to connect the
website : www.google.com. :

Error inserting count=1 tag=HTTP_STATUS:AndroidHttpConnectionFactory/
70597:Error sum=0.009 using INSERT INTO stats(count, tag, sum)
VALUES(?, ?, ?);

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]
Announcing the new Android 0.9 SDK beta!
http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Overlay never displayed in MapView

2008-08-23 Thread 6real

Dear all,

I am facing an issue with an overlay display (again while migrating to
0.9).

I add an verlay this way

Log.d("MAP", "add overlay");
myMapOverlay = new MyStationsOverlay(this, nearestFullStations);
mapViewFromXML.getOverlays().add(myMapOverlay);
mapViewFromXML.postInvalidate();

But the draw (I have specific process during the draw)  method inside
my Overlay is never called ! SO the overlay never displays what I
expect.

Thanks for your help.

PS : the running code on the previous SDK was like :

Log.d("MAP", "add
OverlayController myOC = mapViewFromXML.createOverlayController();
myMapOverlay = new MyMapOverlay (this, nearestFullStations);
myOC.add(veloidMapOverlay, true);
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new Android 0.9 SDK beta!
http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Android Test-driven Development

2008-08-23 Thread jtaylor

It looks like android.test is basically an extension of the JUnit
Framework for android specific cases. Is test-driven development the
way to go? Should this be a standard in Android development?

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



[android-developers] bindService / unbindService - Recognized some pretty wired behavior

2008-08-23 Thread code_android_festival_way

While trying to safe my threads I recognized something pretty wired
which I don't really understand.

1) I'm binding to my service with bindService(..) in onCreate()
2) onServiceConnected() gets called
3) Inside the method onServiceConnected I'm calling unbindService()
(just for testing)
4) Directly after unbindService() I'm starting a new background thread
5) Inside the thread I'm calling methods with my service object inside
the service

And this is working. But why is this working? After unbindService(...)
onServiceDisconnected gets called and the IMyService object is set to
null. So why can I use the object in my background thread?

In addition I recognized some different behaviour and that's what I
was doing:

1) I'm binding to my service with bindService(..) in onCreate()
2) onServiceConnected() gets called, inside the method I'm starting a
background thread
3) I'm communicating with my service through the object obtained in
onServiceConnected
4) I'm trying to call unbindService() from inside my backrgound thread
but also from outside

Result:

When unbindService(..) gets called I'm getting a "service not
registered" exception. But why?

I thought that I'm understanding the picture but that left me with a
wired felling. I don't really know whats happening.

I'm looking forward reading your thoughts.

Regards!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new Android 0.9 SDK beta!
http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: I'd like to modify the Dialer program

2008-08-23 Thread Romain Guy

In the Contacts list you can type letters to search for contacts.

On Sat, Aug 23, 2008 at 12:18 PM, MrSnowflake <[EMAIL PROTECTED]> wrote:
>
> I am interested in a dialer which finds contacts for me by their name
> by the number I enter (like the Windows Mobile 6 Dialer). I NEVER use
> the address book, I just type their names using the numbers which
> represent the letters in their name.
>
> On 21 aug, 21:55, towlie <[EMAIL PROTECTED]> wrote:
>> What I'd like to do is give the user the option of how they want to
>> dial someone.
>> ex service provider, yahoo voice, skype, vonage.  Why stop there?  You
>> could bind
>> phone numbers from several service providers as well if you wanted
>> to.  Also I want
>> each protocol to play nice with each other when incoming calls come
>> in.  I'd like the
>> dialer to accept a plug-in for each service.
>>
>> I know the scope of this project would be pretty big.  Most protocols
>> are not available
>> to the public and I think most companies don't want users to have this
>> kind of flexibility
>> on a phone.  It would be nice to start off with maybe just one other
>> option besides
>> service provider.  Hopefully the most simple.  Any suggestions?
>>
>> I'd also be interested in knowing if the dialer source code is
>> available.  I downloaded
>> the SDK 0.9 code and did a grep for dialer but found nothing.  If it's
>> not open then
>> what kind of views were used to make the custom buttons and text
>> boxes?
>
> >
>



-- 
Romain Guy
www.curious-creature.org

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



[android-developers] Sensor values returned by tricorder

2008-08-23 Thread Peli

Hi,

I've seen excitedly that the improved sensor classes SensorManager and
SensorListener allow for a fully functional Tricorder.
http://code.google.com/android/reference/android/hardware/SensorManager.html#SENSOR_TRICORDER

I'm so thankful that it returns values in SI units :-) but would be
happy to know the order of the various sensor data returned. Also,
there seem to be two general types: a standard tricorder and a medical
one ( http://en.wikipedia.org/wiki/Tricorder ). Can I assume the
standard one is implemented?

Would the tricorder also work correctly if gravity is as low as on the
death star ( 
http://code.google.com/android/reference/android/hardware/SensorManager.html#GRAVITY_DEATH_STAR_I
)?

Thanks,
Peli :-)

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



[android-developers] Re: Sensor values returned by tricorder

2008-08-23 Thread Mark Murphy

Peli wrote:
> I've seen excitedly that the improved sensor classes SensorManager and
> SensorListener allow for a fully functional Tricorder.
> http://code.google.com/android/reference/android/hardware/SensorManager.html#SENSOR_TRICORDER
> 
> I'm so thankful that it returns values in SI units :-) but would be
> happy to know the order of the various sensor data returned. Also,
> there seem to be two general types: a standard tricorder and a medical
> one ( http://en.wikipedia.org/wiki/Tricorder ). Can I assume the
> standard one is implemented?
> 
> Would the tricorder also work correctly if gravity is as low as on the
> death star ( 
> http://code.google.com/android/reference/android/hardware/SensorManager.html#GRAVITY_DEATH_STAR_I
> )?

I also like GRAVITY_THE_ISLAND. The value almost works out, if the units 
are semi-meters per second squared.

Of course, that depends on where The Island is.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
_The Busy Coder's Guide to Android Development_ Version 1.1 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]
Announcing the new Android 0.9 SDK beta!
http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Sensor values returned by tricorder

2008-08-23 Thread Mark Murphy

Peli wrote:
>> I also like GRAVITY_THE_ISLAND. The value almost works out, if the units
>> are semi-meters per second squared.
>>
>> Of course, that depends on where The Island is.
> 
> Hm, if it refers to THE island ( 
> http://en.wikipedia.org/wiki/The_Island_(2005_film)
> ) the value should still be identical to GRAVITY_EARTH. Unless there
> is a low-gravity island somewhere else, we should probably file a bug
> report?

Given the value, I suspect you have the wrong island. At the moment, the 
island matching the listed value is, um, lost.

On a related note, I wonder if Google gets some of their hires through 
Octagon:

http://www.octagonglobalrecruiting.com/

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
Warescription: All titles, revisions, & ebook formats, just $35/year

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



[android-developers] Re: How to display a local file in the browser?

2008-08-23 Thread Megha Joshi
In that case you should use the content provider option mentioned
earlier...Using a content provider would allow images as the content
provider would be used for image loading too. Another alternative is to put
the image inline, using the data:// scheme.

On Fri, Aug 22, 2008 at 4:47 AM, [EMAIL PROTECTED] <
[EMAIL PROTECTED]> wrote:

>
> I already done that but there's another limit: data rendered via
> loadData are not able to load remote resources ( src="http://...";>).
>
> On 21 Ago, 22:21, "Megha Joshi" <[EMAIL PROTECTED]> wrote:
> > On Wed, Aug 20, 2008 at 4:46 PM, Megha Joshi <[EMAIL PROTECTED]> wrote:
> > > For security reasons, WebView does not allow "file:" access any more.
> >
> > > If you want the link to be loaded in your activity, you should provide
> a
> > > WebViewClient and implement shouldOverrideUrlLoading with { return
> false; }
> >
> > This option does not work anymore, sorry for the confusion!
> >
> > So the only way to load local file contents into WebView, is as Gil
> pointed
> > out ...by loading the contents with loadData()/
> >
> > Sample code:
> >  static final int MAXFILESIZE = 8096;
> >  String path = uri.getPath();
> > File f = new File(path);
> > final long length = f.length();
> > if (!f.exists() || length > MAXFILESIZE) {
> > return;
> > }
> >
> > // typecast to int is safe as long as MAXFILESIZE < MAXINT
> > byte[] array = new byte[(int)length];
> >
> > try {
> > InputStream is = new FileInputStream(f);
> > is.read(array);
> > is.close();
> > } catch (FileNotFoundException ex) {
> > // Checked for file existance already, so this should not
> happen
> > return;
> > } catch (IOException ex) {
> > // read or close failed
> > Log.e(LOGTAG, "Failed to access file: " + path, ex);
> > return;
> > }
> > mWebView.loadData(new String(array), mimeType, null);
> >
> > There is a 8KB limit on the file size. So if your data is more that 8KB,
> you
> > should create a content provider
> > for your files and then the use the ContentResolver.openContentURI()...
> >
> >
> >
> > > On Wed, Aug 20, 2008 at 4:34 PM, [EMAIL PROTECTED] <
> > > [EMAIL PROTECTED]> wrote:
> >
> > >> I used WebView to display rich content emails (I'm writing a mail
> > >> client). It worked well loading URI such as
> > >> file://sdcard/filewhateveryouwant.xxx
> > >> ...
> > >> Now I upgraded to 0.9 and Android OS is displaying me a page with "The
> > >> requested file was not found."
> >
> > >> Maybe a PERMISSION issue?
> >
> > >> On 19 Ago, 20:36, "Megha Joshi" <[EMAIL PROTECTED]> wrote:
> > >> > Browser does not support viewing local files...
> >
> > >> > On Tue, Aug 19, 2008 at 12:38 AM, Peli <[EMAIL PROTECTED]>
> wrote:
> >
> > >> > > Is it possible to open a local file in the browser?
> >
> > >> > > In the Android browser, I tried menu / go to:
> > >> > > file:///sdcard/test.html
> >
> > >> > > I always receive the error message:
> > >> > > "Web page not available.
> > >> > > The web page at file:///sdcard/test.html could not be loaded as:
> > >> > > The requested file was not found."
> >
> > >> > > even though the files exist in /sdcard/test.html.
> > >> > > Do I have to use a different URL, or put files into a different
> > >> > > folder?
> >
> > >> > > Peli
> >
> > >> > > PS: From within an application, there seems to be a way to load
> local
> > >> > > files:
> >
> > >> > > "The prefix "file:///android_asset/" will cause WebView to load
> > >> > > content from the current application's assets folder."
> > >> > >
> http://code.google.com/android/reference/android/webkit/WebView.html
> >
>

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



[android-developers] Re: Trouble with 0.9 beta and MapActivity

2008-08-23 Thread Casey Borders

> How are you trying to "register touches"?

Gah!  I didn't call setClickable!  Nevermind, it was REALLY late!
Thanks for your help!

On Sat, Aug 23, 2008 at 5:34 AM, woodm <[EMAIL PROTECTED]> wrote:
>
> How are you trying to "register touches"?
>
> Are you using Overlay's and overriding the onTap / onTouchEvent
> methods?
>
> On Aug 23, 4:50 am, "Casey Borders" <[EMAIL PROTECTED]> wrote:
>> Now I am having another weird problem.  If I define the MapView in a
>> layout xml file, everything works like you would expect.  If I create
>> it programmatically like I show above, then it doesn't register
>> touches.  Any idea what's up with that?
>>
>> On Fri, Aug 22, 2008 at 3:20 AM, Casey Borders <[EMAIL PROTECTED]> wrote:
>> > That did it!!  Thank you!!
>>
>> > On Fri, Aug 22, 2008 at 3:05 AM, woodm <[EMAIL PROTECTED]> wrote:
>>
>> >> I was having this same problem yesterday but managed to solve it.
>>
>> >> It's just a case of fixing your AndroidManifest.xml file. It needs to
>> >> use the correct permissions and contain a > >> android:name="com.google.android.maps" /> tag.
>>
>> >> This post:
>> >>http://groups.google.com/group/android-developers/browse_thread/threa...
>>
>> >> was a great help to me, and shows the permissions you need to use.
>>
>> >> On Aug 22, 6:45 am, "Casey Borders" <[EMAIL PROTECTED]> wrote:
>> >>> I have and application that was running fine under m5, but it fails in
>> >>> 0.9.  I tried to nail down what was causing it to fail and I have an
>> >>> extremely simple MapActivity that is failing too.  Here's the code:
>>
>> >>> package org.moo.android.Test;
>>
>> >>> import com.google.android.maps.MapActivity;
>> >>> import com.google.android.maps.MapView;
>>
>> >>> import android.os.Bundle;
>> >>> import android.view.Window;
>>
>> >>> public class MapTest extends MapActivity
>> >>> {
>> >>> private MapView mMap;
>>
>> >>> @Override
>> >>> public void onCreate(Bundle icicle)
>> >>> {
>> >>> super.onCreate(icicle);
>> >>> requestWindowFeature(Window.FEATURE_NO_TITLE);
>>
>> >>> mMap = new MapView(this, "MapAPIKey");
>> >>> setContentView(mMap);
>>
>> >>> }
>>
>> >>> @Override
>> >>> protected boolean isRouteDisplayed()
>> >>> {
>> >>> return false;
>> >>> }
>>
>> >>> }
>>
>> >>> Here's the logcat output:
>>
>> >>> 08-22 05:36:30.274: WARN/dalvikvm(263): Unable to resolve superclass
>> >>> of Lorg/moo/android/Test/MapTest; (4)
>> >>> 08-22 05:36:30.284: WARN/dalvikvm(263): Link of class
>> >>> 'Lorg/moo/android/Test/MapTest;' failed
>> >>> 08-22 05:36:30.294: DEBUG/AndroidRuntime(263): Shutting down VM
>> >>> 08-22 05:36:30.304: WARN/dalvikvm(263): threadid=3: thread exiting
>> >>> with uncaught exception (group=0x40010e28)
>> >>> 08-22 05:36:30.304: ERROR/AndroidRuntime(263): Uncaught handler:
>> >>> thread main exiting due to uncaught exception
>> >>> 08-22 05:36:30.334: ERROR/AndroidRuntime(263):
>> >>> java.lang.RuntimeException: Unable to instantiate activity
>> >>> ComponentInfo{org.moo.android.Test/org.moo.android.Test.MapTest}:
>> >>> java.lang.ClassNotFoundException: org.moo.android.Test.MapTest in
>> >>> loader [EMAIL PROTECTED]
>> >>> 08-22 05:36:30.334: ERROR/AndroidRuntime(263): at
>> >>> android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2060)
>> >>> 08-22 05:36:30.334: ERROR/AndroidRuntime(263): at
>> >>> android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2147)
>> >>> 08-22 05:36:30.334: ERROR/AndroidRuntime(263): at
>> >>> android.app.ActivityThread.access$1800(ActivityThread.java:112)
>> >>> 08-22 05:36:30.334: ERROR/AndroidRuntime(263): at
>> >>> android.app.ActivityThread$H.handleMessage(ActivityThread.java:1572)
>> >>> 08-22 05:36:30.334: ERROR/AndroidRuntime(263): at
>> >>> android.os.Handler.dispatchMessage(Handler.java:88)
>> >>> 08-22 05:36:30.334: ERROR/AndroidRuntime(263): at
>> >>> android.os.Looper.loop(Looper.java:123)
>> >>> 08-22 05:36:30.334: ERROR/AndroidRuntime(263): at
>> >>> android.app.ActivityThread.main(ActivityThread.java:3708)
>> >>> 08-22 05:36:30.334: ERROR/AndroidRuntime(263): at
>> >>> java.lang.reflect.Method.invokeNative(Native Method)
>> >>> 08-22 05:36:30.334: ERROR/AndroidRuntime(263): at
>> >>> java.lang.reflect.Method.invoke(Method.java:492)
>> >>> 08-22 05:36:30.334: ERROR/AndroidRuntime(263): at
>> >>> com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:734)
>> >>> 08-22 05:36:30.334: ERROR/AndroidRuntime(263): at
>> >>> com.android.internal.os.ZygoteInit.main(ZygoteInit.java:492)
>> >>> 08-22 05:36:30.334: ERROR/AndroidRuntime(263): at
>> >>> dalvik.system.NativeStart.main(Native Method)
>> >>> 08-22 05:36:30.334: ERROR/AndroidRuntime(263): Caused by:
>> >>> java.lang.ClassNotFoundException: org.moo.android.Test.MapTest in
>> >>> loader [EMAIL PROTECTED]
>> >>> 08-22 05:36:30.334: ERROR/AndroidRuntime(263): at
>> >>> dalvik.system.PathClassL

[android-developers] Does anyone has the slide bar code used in music player ?

2008-08-23 Thread april

In music players, there always a sliding bar  with a moving small ball
to indicate how long is the music and how many minutes music has been
played?

Is there any sample code for that?

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]
Announcing the new Android 0.9 SDK beta!
http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Color or Formatting portions of a TextView Text

2008-08-23 Thread Mark Hansen

I'm looking for the best practice regarding displaying portions of a
TextView texts as say a color or for instance bolding certain words?

I was looking at HTML.fromHTML(text) as a method of doing this, this
doesn't seem to work if I wrap a font tag say around my block of text?

Thanks for any suggestions.

Mark
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new Android 0.9 SDK beta!
http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Does anyone has the slide bar code used in music player ?

2008-08-23 Thread Josh Guilfoyle

Yes.  It's a new widget in 0.9r1 called a "seek bar".  There is an API
demo for it.

On Aug 23, 6:42 pm, april <[EMAIL PROTECTED]> wrote:
> In music players, there always a sliding bar  with a moving small ball
> to indicate how long is the music and how many minutes music has been
> played?
>
> Is there any sample code for that?
>
> 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]
Announcing the new Android 0.9 SDK beta!
http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] android.os.StatFs still private?

2008-08-23 Thread Josh Guilfoyle

Was this done intentionally?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new Android 0.9 SDK beta!
http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---