[android-developers] Your feedback on Samples/Tutorials/Articles

2010-03-18 Thread Megha Joshi
Hi everyone,

As many of you might have noticed by now, we have added a new
Resourcestab under
developer.android.com. It contains samples, tutorials and technical
articles. We want your feedback to add more samples and tutorials to
it.. Please add/vote topics for new samples and tutorials at the link
here.
Please be very specific (like mentioning API or package or feature or tool
names) when you submit a suggestion.

Thanks for your feedback in helping us improve our Android developer
resources.

-Megha

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

To unsubscribe from this group, send email to 
android-developers+unsubscribegooglegroups.com or reply to this email with the 
words "REMOVE ME" as the subject.


Re: [android-developers] Re: username and password for sample sync adapter

2010-02-22 Thread Megha Joshi
Hi,

I cleaned up the datastore, please do not add/delete users or friends on the
samplesyncadapter server. Now when you sync user1/test account, you should
see three friends user2,user3, and user4 synced down.
This sample only demonstrates one way sync for now. If you need to test with
any changes to the data, please host your own instance of server.

thanks,
Megha

On 19 February 2010 09:20, HCH  wrote:

> A few things:
>
> - The sample is for a one-way "read only" account.  Only server
> changes are synced to device.  You cannot edit them or create new ones
> on the device.
>
> - I used the sample server and although I authenticated no content
> synced down.
>
> - Don't forget to choose display options in contacts to make the new
> account visible (new accounts are off by default which requires the
> user to understand what is going on and to know how to configure the
> contacts app to display the new content).
>
> - There is no further information on enabling editing of contacts for
> a 2 way sync account.  This has been covered in other threads.  The
> built in contacts app does not allow proper editing of contacts
> outside of default, gmail and exchange.
>
>
> On Feb 18, 10:06 pm, Sameer AM  wrote:
> > Okay, I tried the user1/test on emulator and it added account
> > succesfully, and on the web side I added few handles and added few
> > friends on the same handle, and tried syncing the same on emulator,
> > and I am getting 500 internal server error, is there still something
> > wrong? I added one more user on the server and authenticated same from
> > emulator, it the accounts get added fine.
> >
> > As far as hosting the python files for personal contact server is
> > concerned I'm afraid it might take time for me, as I'd have get
> > approval from my manager. So I wished if I could see the working with
> > the already existing db on server.
> >
> > Thanks again
> >
> > On Feb 19, 4:18 am, Megha  wrote:
> >
> >
> >
> > > Hi,
> >
> > > I have uploaded the zipped source files for this sample at:
> http://code.google.com/p/apps-for-android/downloads/list
> >
> > > Sorry about the server related python source files not being visible
> > > on developer.android.com. We will fix it soon.
> > > This sample source will be available with the next sdk package, we are
> > > working on making zipped samples downloadable from
> > > developer.android.com itself in future.
> >
> > > Regardingpasswordissue, please use account user1/test on
> > > samplesyncadapter server.
> >
> > > I would recommend that to add new accounts, download the server code,
> > > modify it as you want and host it on a separate app engine instance.
> > > If you look at dashboard.py and app.yaml in server code it should be
> > > pretty clear how to do this..giving a short overview below:
> > > 1) Add a new Sample SyncAdapter account @:
> > > http://.appspot.com/add_user
> > > For example I have added user1:
> > > http://.appspot.com/edit_user?user=1
> > > 2) Enterusername/password@
> > > http://.appspot.com/add_credentials
> > > Thepasswordfor user1 is test.
> > > 3) Modify the android code to use your server instance.
> >
> > > Sorry for the confusion so far, please let me know if you have more
> > > questions.
> >
> > > Thanks,
> > > Megha
> >
> > > On Feb 18, 10:28 am, HCH  wrote:
> >
> > > > Could someone on the android team please tell us what we should use
> > > > for thepasswordwhen connecting to the SampleSyncAdapter server?
> >
> > > > On Feb 16, 4:19 pm, HCH  wrote:
> >
> > > > > as for 1)
> >
> > > > > - The source tree is not available for download that I can tell.
>  You
> > > > > have to cut and paste each individual file from the html and
> > > > > reconstruct the source tree locally.
> > > > > - The source to the server has a directory but is not actually
> there.
> > > > > - What to use as apasswordisn't clear and I can't find one (tried
> > > > > all values in the user account I created plus 'password', etc.).
> >
> > > > > So even though there is now an example months after the OS shipped
> > > > > with this feature it isn't complete and was seemingly put up
> without
> > > > > much care.
> >
> > > > > On Feb 16, 3:50 am, Sameer AM  wrote:
> >
> > > > > > Hello,
> >
> > > > > > I just got thesamplesyncadaptercode running on the emulator, but
> > > > > > how do I add account in it when it asks forusernameandpassword?
> >
> > > > > > And I have the following questions
> >
> > > > > > 1) SampleSyncAdapter is for 2.0 and in 2.0 emulator I don't see
> the
> > > > > > Accounts &Syncoptions in the Settings, am I missing anything?
> > > > > >  -- so for this I compiled this app in 2.1 and ran on 2.1
> emulator
> >
> > > > > > 2) In 2.0 emulator when I launch Accounts option from Contact
> app, it
> > > > > > crashes? I saw this a raised bug, is this solved?
>
> --
> 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@goog

[android-developers] This Week's office hours

2010-02-10 Thread Megha Joshi
Each week, we hold office hours in android-dev channel on
irc.freenode.netto get your Android application development related
questions answered.

They take place at the following time:

Thursdays 5pm to 6pm PST weekly.

You can use this tool to see what time it is in your timezone
http://www.timeanddate.com/worldclock/converter.html?month=2&day=11&year=2010&hour=17&min=0&sec=0&p1=224

Office hours are also listed on this calendar (which defaults to US
Pacific timezone):
http://code.google.com/events/calendar/

You can add it to your calendar from there, and if your calendar is
setup appropriately, it should show up at your local time.

See you there!

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

[android-developers] IRC office hours answers posted

2010-01-21 Thread Megha Joshi
Hi everyone,

We have posted answers to the previous office hours sessions here:
http://moderator.appspot.com/#15/e=120951&t=1286cf

A few still remain, they will be answered soon. For today's office hours
5pm-6pm 
PST
 you
could post your questions at Stack Overflow with tags "android", "from-irc".

Thanks,
Megha

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

[android-developers] Re: Reminder IRC office hours today 5:00- 6:00 PST

2010-01-07 Thread Megha Joshi
Answers to 12/17 office hours have been posted:
http://moderator.appspot.com/#15/e=120951&t=121ce5

2010/1/7 Megha Joshi 

>
> Office hours Thursday Jan 7th 5:00 - 6:00 PST, post questions @
> http://moderator.appspot.com/#15/e=120951&t=126bf1
>
> Thanks,
> Megha
>
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Reminder IRC office hours today 5:00- 6:00 PST

2010-01-07 Thread Megha Joshi
Office hours Thursday Jan 7th 5:00 - 6:00 PST, post questions @
http://moderator.appspot.com/#15/e=120951&t=126bf1

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

Re: [android-developers] Re: Reminder: IRC office hours tomorrow

2010-01-05 Thread Megha Joshi
Just a quick reminder for IRC office hours tomorrow at 9am PST, please
submit your questions at:

http://moderator.appspot.com/#15/e=120951&t=1286cf

thanks,
Megha

2010/1/4 Megha Joshi 

> Thanks ..we will be adding those answers in a few days.
>
> 2009/12/29 theSmith 
>
> Thanks for those Megha.
>>
>> Is there any plan to add responses to the 12/17 and 12/22 meetings?  I
>> find this an excellent resource issues/problems/insight that I think
>> should be available.
>>
>> -theSmith
>>
>> On Dec 18, 5:39 pm, Megha Joshi  wrote:
>> > Check out the answers to questions from the 12/15 office hours here:
>> http://moderator.appspot.com/#15/e=120951&t=11fd95
>> >
>> > 2009/12/17 Megha Joshi 
>> >
>> > > We are still considering whether to provide transcripts depending on
>> its
>> > > demand.
>> >
>> > > There is a list of questions asked during office hours here.We will be
>> > > updating it with answers soon:.
>> > >http://moderator.appspot.com/#15/e=120951&t=11fd95
>> >
>> > > For today's office hours at 5pm PST you could post your questions at:
>> > >http://moderator.appspot.com/#15/e=120951&t=121ce5&f=121ce6
>> >
>> > > Thanks,
>> > > Megha
>> >
>> > > 2009/12/16 theSmith 
>> >
>> > > Megha,
>> >
>> > >> Is there a transcript of previous office hours (just one I believe) /
>> > >> future office hours?
>> >
>> > >> By transcript I mean exactly what was said during the session,
>> > >> available for those who were unable to actually be on IRC at that
>> > >> time.
>> >
>> > >> Thanks,
>> >
>> > >> Chris
>> >
>> > >> On Dec 14, 7:02 pm, Megha Joshi  wrote:
>> > >> > Hi Everyone,
>> >
>> > >> > Just a quick reminder that our IRC office hour session is taking
>> place
>> > >> > tomorrow morning, 9:00-10:00 a.m. PST. Please join us with your
>> > >> technical
>> > >> > questions at:
>> >
>> > >> > irc://irc.freenode.net#android-dev <
>> > >>http://irc.freenode.net/#android-dev>
>> >
>> > >> > Thanks,
>> > >> > Megha
>> >
>> > >> --
>> > >> You received this message because you are subscribed to the Google
>> > >> Groups "Android Developers" group.
>> > >> To post to this group, send email to
>> android-developers@googlegroups.com
>> > >> To unsubscribe from this group, send email to
>> > >> android-developers+unsubscr...@googlegroups.com
>> 
>> >
>> > >> For more options, visit this group at
>> > >>http://groups.google.com/group/android-developers?hl=en
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>>
>
>
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: Reminder: IRC office hours tomorrow

2010-01-04 Thread Megha Joshi
Thanks ..we will be adding those answers in a few days.

2009/12/29 theSmith 

> Thanks for those Megha.
>
> Is there any plan to add responses to the 12/17 and 12/22 meetings?  I
> find this an excellent resource issues/problems/insight that I think
> should be available.
>
> -theSmith
>
> On Dec 18, 5:39 pm, Megha Joshi  wrote:
> > Check out the answers to questions from the 12/15 office hours here:
> http://moderator.appspot.com/#15/e=120951&t=11fd95
> >
> > 2009/12/17 Megha Joshi 
> >
> > > We are still considering whether to provide transcripts depending on
> its
> > > demand.
> >
> > > There is a list of questions asked during office hours here.We will be
> > > updating it with answers soon:.
> > >http://moderator.appspot.com/#15/e=120951&t=11fd95
> >
> > > For today's office hours at 5pm PST you could post your questions at:
> > >http://moderator.appspot.com/#15/e=120951&t=121ce5&f=121ce6
> >
> > > Thanks,
> > > Megha
> >
> > > 2009/12/16 theSmith 
> >
> > > Megha,
> >
> > >> Is there a transcript of previous office hours (just one I believe) /
> > >> future office hours?
> >
> > >> By transcript I mean exactly what was said during the session,
> > >> available for those who were unable to actually be on IRC at that
> > >> time.
> >
> > >> Thanks,
> >
> > >> Chris
> >
> > >> On Dec 14, 7:02 pm, Megha Joshi  wrote:
> > >> > Hi Everyone,
> >
> > >> > Just a quick reminder that our IRC office hour session is taking
> place
> > >> > tomorrow morning, 9:00-10:00 a.m. PST. Please join us with your
> > >> technical
> > >> > questions at:
> >
> > >> > irc://irc.freenode.net#android-dev <
> > >>http://irc.freenode.net/#android-dev>
> >
> > >> > Thanks,
> > >> > Megha
> >
> > >> --
> > >> You received this message because you are subscribed to the Google
> > >> Groups "Android Developers" group.
> > >> To post to this group, send email to
> android-developers@googlegroups.com
> > >> To unsubscribe from this group, send email to
> > >> android-developers+unsubscr...@googlegroups.com
> 
> >
> > >> For more options, visit this group at
> > >>http://groups.google.com/group/android-developers?hl=en
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

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

[android-developers] Reminder: IRC office hours starting in 30 mins

2009-12-22 Thread Megha Joshi
Irc office hours will begin in 30 mins at #android-dev irc channel.

Please post your questions at:
http://moderator.appspot.com/#15/e=120951&t=120e11

Thanks,
Megha

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

Re: [android-developers] Re: Reminder: IRC office hours tomorrow

2009-12-18 Thread Megha Joshi
Check out the answers to questions from the 12/15 office hours here:
http://moderator.appspot.com/#15/e=120951&t=11fd95

2009/12/17 Megha Joshi 

> We are still considering whether to provide transcripts depending on its
> demand.
>
> There is a list of questions asked during office hours here.We will be
> updating it with answers soon:.
> http://moderator.appspot.com/#15/e=120951&t=11fd95
>
> For today's office hours at 5pm PST you could post your questions at:
> http://moderator.appspot.com/#15/e=120951&t=121ce5&f=121ce6
>
> Thanks,
> Megha
>
> 2009/12/16 theSmith 
>
> Megha,
>>
>> Is there a transcript of previous office hours (just one I believe) /
>> future office hours?
>>
>> By transcript I mean exactly what was said during the session,
>> available for those who were unable to actually be on IRC at that
>> time.
>>
>> Thanks,
>>
>> Chris
>>
>> On Dec 14, 7:02 pm, Megha Joshi  wrote:
>> > Hi Everyone,
>> >
>> > Just a quick reminder that our IRC office hour session is taking place
>> > tomorrow morning, 9:00-10:00 a.m. PST. Please join us with your
>> technical
>> > questions at:
>> >
>> > irc://irc.freenode.net#android-dev <
>> http://irc.freenode.net/#android-dev>
>> >
>> > Thanks,
>> > Megha
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>>
>
>

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

Re: [android-developers] Re: IRC office hours Thursday 5:00-6:00 pm PST

2009-12-17 Thread Megha Joshi
You can subscribe to developer events calendar here, it includes our IRC
office hours.
http://code.google.com/events/calendar/

Please submit your questions for today's office hours at :
http://moderator.appspot.com/#15/e=120951&t=121ce5

Let me know if you have other office hours related questions.

Thanks,
Megha

2009/12/17 Bill Michaelson 

> Is there a Google calendar I can subscribe to for these events?
>
> On Dec 16, 6:17 pm, Megha Joshi  wrote:
> > Hi everyone,
> >
> > This is a quick reminder that we will be hosting IRC office hours
> tomorrow
> > 5:00-6:00 pm PST in the #android-dev IRC channel.
> >
> > Please post/vote your questions for tomorrow's office hours at the link
> > below and we will try to answer as many as we can in the hour:
> >
> > http://moderator.appspot.com/#15/e=120951&t=121ce5
> >
> > Thanks,
> > Megha
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

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

Re: [android-developers] Re: Reminder: IRC office hours tomorrow

2009-12-17 Thread Megha Joshi
We are still considering whether to provide transcripts depending on its
demand.

There is a list of questions asked during office hours here.We will be
updating it with answers soon:.
http://moderator.appspot.com/#15/e=120951&t=11fd95

For today's office hours at 5pm PST you could post your questions at:
http://moderator.appspot.com/#15/e=120951&t=121ce5&f=121ce6

Thanks,
Megha

2009/12/16 theSmith 

> Megha,
>
> Is there a transcript of previous office hours (just one I believe) /
> future office hours?
>
> By transcript I mean exactly what was said during the session,
> available for those who were unable to actually be on IRC at that
> time.
>
> Thanks,
>
> Chris
>
> On Dec 14, 7:02 pm, Megha Joshi  wrote:
> > Hi Everyone,
> >
> > Just a quick reminder that our IRC office hour session is taking place
> > tomorrow morning, 9:00-10:00 a.m. PST. Please join us with your technical
> > questions at:
> >
> > irc://irc.freenode.net#android-dev <http://irc.freenode.net/#android-dev
> >
> >
> > Thanks,
> > Megha
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

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

[android-developers] IRC office hours Thursday 5:00-6:00 pm PST

2009-12-16 Thread Megha Joshi
Hi everyone,

This is a quick reminder that we will be hosting IRC office hours tomorrow
5:00-6:00 pm PST in the #android-dev IRC channel.

Please post/vote your questions for tomorrow's office hours at the link
below and we will try to answer as many as we can in the hour:

http://moderator.appspot.com/#15/e=120951&t=121ce5


Thanks,
Megha

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

[android-developers] Reminder: IRC office hours tomorrow

2009-12-14 Thread Megha Joshi
Hi Everyone,

Just a quick reminder that our IRC office hour session is taking place
tomorrow morning, 9:00-10:00 a.m. PST. Please join us with your technical
questions at:

irc://irc.freenode.net#android-dev 

Thanks,
Megha

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

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

2009-09-08 Thread Megha Joshi
local file access from the browser will be available in one of the upcoming
sdk releases. thanks!

2009/9/8 riosalado 

> Hi Megha,
>
> Could you provide more details on:
>
> 1) Based on what kind of "security reason" consideration, Android does
> not allow Browser to access local html files?
> 2) Now Android includes an HTMLViewer application to view local HTML
> files. Does HTMLViewer avoid the "security reason" in the Browser?
> 3) What risks it may cause to open up the Browser's local HTML file
> access?
>
> Thanks,
>
> Miao
>
> On Aug 20 2008, 4:46 pm, "Megha Joshi"  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;
> }
> >
> > On Wed, Aug 20, 2008 at 4:34 PM, lucabellucc...@gmail.com <
> >
> > lucabellucc...@gmail.com> 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"  wrote:
> > > > Browser does not support viewing local files...
> >
> > > > On Tue, Aug 19, 2008 at 12:38 AM, Peli 
> 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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



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

2008-10-28 Thread Megha Joshi
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
>
> 
>
> 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: AlertDialog Question

2008-10-27 Thread Megha Joshi
Context should never be explicitly instantiated, Activity extends Context,
so you can use your Activity's "this" instance instead.

2008/10/27 disappearedng <[EMAIL PROTECTED]>

>
> Anyone?
> >
>

--~--~-~--~~~---~--~~
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: Loading application to actual device through Eclipse?

2008-10-22 Thread Megha Joshi
The driver is for Windows only. Settings are in the Menu on the home screen.


2008/10/22 Danny <[EMAIL PROTECTED]>

>
> I have just found out how, there is a new driver out that you will
> need to use before Eclipse can see your device.. more info is located
> at this link
>
> http://groups.google.com/group/android-developers/browse_thread/thread/af53210a9c41ec37/dc899a42705b0a79?show_docid=dc899a42705b0a79
>
>
> On Oct 22, 11:43 am, "B Sreen" <[EMAIL PROTECTED]> wrote:
> > Thanks for writing.. great help.
> > But I can find "Settings > Applications > Development."
> > I do not know what I am missing. Please help. - Thanks
> >
> > On Wed, Oct 22, 2008 at 11:39 AM, Rob Franz <[EMAIL PROTECTED]> wrote:
> > > That would make sense.  I don't have the G1 yet (not available in my
> non-3G
> > > area at the moment) so i can't test.
> >
> > > On Wed, Oct 22, 2008 at 2:29 PM, Romain Guy <[EMAIL PROTECTED]>
> wrote:
> >
> > >> You can deploy your application to your phone using the Android
> > >> Eclipse plugin. All you need is the phone plugged in USB (make sure
> > >> you have enabled USB debugging in Settings > Applications >
> > >> Development.) When you "run" your application, it will send it to the
> > >> phone, or ask you what target you want if you already have an emulator
> > >> running.
> >
> > >> On Wed, Oct 22, 2008 at 11:27 AM, Rob Franz <[EMAIL PROTECTED]>
> wrote:
> > >> > As far as loading over USB from your machine to your phone, I don't
> > >> know.
> > >> >  THat would be great as an extension to Eclipse - perhaps as an
> option
> > >> to
> > >> > the 'Export' menu (deploy to phone...)
> > >> > But from what I'm reading, the easiest way is to post it to a web
> server
> > >> and
> > >> > download it to your phone.
> >
> > >> > On Wed, Oct 22, 2008 at 1:58 PM, Danny <[EMAIL PROTECTED]> wrote:
> >
> > >> >> I have created an application and would like to know how to load
> the
> > >> >> application onto an actual device through Eclipse.
> >
> > >> --
> > >> Romain Guy
> > >>www.curious-creature.org
> >
>

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



[android-developers] Re: How do I update my activity on receiving intent in BroadcastReceiver

2008-10-21 Thread Megha Joshi
One of the options is to make your BroadcastReceiver an inner class of your
Activity. It also makes sense to make BroadCasterReceiver as  Activity's
inner class if its just going to update your Activity's UI.



2008/10/20 Abraham <[EMAIL PROTECTED]>

>
> HI ,
>
> I'm trying the understand how an application can receive intent in
> BroadcastReceiver & how it can inform the Activity abt the information
> received in the intent.
>
> For this purpose I have created an activity which has a TextView. In
> OnCreate of the Activity I'm using AlarmManager to start sending
> intents every 10 sec to broadcast receiver of my application. On
> receiving this intent I would like to update the text view with the
> current time.
>
> From the documention I understand that we need to be using the
> NotificationManager instead of trying to directly updating the UI.
>
> Can some one pls let me know how I can achieve this.
>
> Code snippets:
> public class myFaves extends Activity
> {
> public void onCreate(Bundle savedInstanceState)
>{
>super.onCreate(savedInstanceState);
>setContentView(R.layout.main);
>mCurrentTime = (TextView) findViewById(R.id.curtime_label);
>   startUpdatingCurrentTime();
>}
>
> protected void onPause()
>{
>super.onPause();
>cancelUpdatingCurrentTime();
>}
>
> private void startUpdatingCurrentTime()
> {
>Intent intent = new Intent(MyTimer.this, MyTimerReceiver.class);
>PendingIntent sender = PendingIntent.getBroadcast(MyTimer.this, 0,
> intent, 0);
>
> // We want the alarm to go off every second from now.
> long firstTime = SystemClock.elapsedRealtime();
> firstTime += 1;
>
> // Schedule the alarm!
> AlarmManager am = (AlarmManager)getSystemService(ALARM_SERVICE);
> am.setRepeating(AlarmManager.ELAPSED_REALTIME_WAKEUP, firstTime,
> 1, sender);
>
> Calendar calendar = Calendar.getInstance();
> calendar.setTimeInMillis(System.currentTimeMillis());
> mCurrentTime.setText( calendar.getTime().toString());
> }
>
> public void cancelUpdatingCurrentTime()
> {
>Intent intent = new Intent(MyTimer.this, MyTimerReceiver.class);
>PendingIntent sender = PendingIntent.getBroadcast(MyTimer.this, 0,
> intent, 0);
>
>// And cancel the alarm.
>AlarmManager am = (AlarmManager)getSystemService(ALARM_SERVICE);
>am.cancel(sender);
> }
> }
>
>
> public class MyTimerReceiver extends BroadcastReceiver
> {
>protected static final String LOG_TAG = "MyTimer";
>
>
>@Override
>public void onReceive(Context context, Intent intent)
>{
>Log.d(LOG_TAG, "onReceive");
>// How do I update the TextView with
> current time in my activity?
>}
>
> }
> >
>

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



[android-developers] Re: Examples vs. Docs vs. Reality

2008-10-20 Thread Megha Joshi
2008/10/20 Megha Joshi <[EMAIL PROTECTED]>

>
>
> 2008/10/19 ScottG <[EMAIL PROTECTED]>
>
>>
>> Folks, there is a serious disconnect between the examples that are
>> provided, what the documentation says, and what the Version 1.0 SDK
>> actually implements.
>>
>> For openers, it'd be of great help to get rid of examples posted on
>> this forum and in Android docs that only work on m5.  I gotta believe
>> this is causing a lot of grief. I can understand old m5 code on the
>> Web but not on code.google.com.
>
>
> These  samples from this forum are not removed. Sorry about that. I don't
> think there is any m5 code on code.google.com.
> Let us know if you know of any.
>

I meant these samples are now removed  :)

>
>
>>
>> Second, there are a number of m5 entry points that are implemented as
>> NOPs in v1.0.  This is NOT helpful.
>
>
>>
>> Lots of good thinking as gone into V1.0.  It's a pity that it's so
>> hard to find.
>>
>
> We will be releasing a set of stepwise Hello World tutorials for V1.0
> shortly. I hope that would help.
>
>
>> IMHO, as always.
>>
>> Cheers, Scott
>>
>>
>> >>
>>
>

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



[android-developers] Re: Examples vs. Docs vs. Reality

2008-10-20 Thread Megha Joshi
2008/10/19 ScottG <[EMAIL PROTECTED]>

>
> Folks, there is a serious disconnect between the examples that are
> provided, what the documentation says, and what the Version 1.0 SDK
> actually implements.
>
> For openers, it'd be of great help to get rid of examples posted on
> this forum and in Android docs that only work on m5.  I gotta believe
> this is causing a lot of grief. I can understand old m5 code on the
> Web but not on code.google.com.


These  samples from this forum are not removed. Sorry about that. I don't
think there is any m5 code on code.google.com.
Let us know if you know of any.

>
>
> Second, there are a number of m5 entry points that are implemented as
> NOPs in v1.0.  This is NOT helpful.


>
> Lots of good thinking as gone into V1.0.  It's a pity that it's so
> hard to find.
>

We will be releasing a set of stepwise Hello World tutorials for V1.0
shortly. I hope that would help.


> IMHO, as always.
>
> Cheers, Scott
>
>
> >
>

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



[android-developers] Re: How to setting alarm clock in my app.

2008-10-17 Thread Megha Joshi
You can use the AlarmManager:
http://code.google.com/android/reference/android/app/AlarmManager.html

ApiDemos/app has an example of how to use it:
http://code.google.com/android/samples/ApiDemos/src/com/example/android/apis/app/

2008/10/17 Featheast Lee <[EMAIL PROTECTED]>

>
> anybody can help me that i want to invoke the Alarm Clock from my
> application, any method to do this?
>
> or simply just use a timepicker to setting the alarm time? how to do
> this?
>
> thank you
>
> >
>

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



[android-developers] Re: file that is wriiten on an SDCard not visible

2008-10-16 Thread Megha Joshi
2008/10/15 guru <[EMAIL PROTECTED]>

>
> I needed to download a file and store it in my sdcard.I first save it
> by writing in the output stream(by using openFileOutput) in the
> application package.From here I copy it to my SDCard and its written
> on my SDCard.But when i see my SDCard in the file in the DDMS mode i
> am able to see that file,


If you see the file on your sdcard in the ddms file explorer  it should be
there.


> but in the SDCard i was not able to see that
> file.


Its not clear how you are viewing the sdcard in this case.



> Please could anyone tell how can this be acheived.
>
>
> heres the code snippet i use.
>
> String fileName = "myFileName";
> File bufferedFile = new File("/sdcard/"+fileName);
> copyFiletoSDCard(downloadingMediaFile,bufferedFile.getAbsolutePath());
>
> private void copyFiletoSDCard(File fromFile, String fileName) {
>FileInputStream from = null;
>FileOutputStream to = null;
>try {
>from = context.openFileInput(fromFile.getName());
>to = new FileOutputStream(fileName);
>byte[] buffer = new byte[4096];
>int bytesRead;
>
>while ((bytesRead = from.read(buffer)) != -1)
>to.write(buffer, 0, bytesRead); // write
>} catch(IOException ioException){
>Log.i(getClass().getName(),"ioException Msg");
>
>  Log.i(getClass().getName(),ioException.getMessage());
>ioException.printStackTrace();
>}finally {
>if (from != null)
>try {
>from.close();
>} catch (IOException e) {
>;
>}
>if (to != null)
>try {
>to.close();
>} catch (IOException e) {
>;
>}
>}
>
>}
> >
>

--~--~-~--~~~---~--~~
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: MediaPlayer streaming playback

2008-10-15 Thread Megha Joshi
MediaPlayer can only be used to play progressive streaming media. The thread
below has more details on how to check if your files are progressive
streamable and how to create progressive streamable content:
http://groups.google.com/group/android-developers/msg/2175bba33a09b262

2008/10/15 Jason Proctor <[EMAIL PROTECTED]>

>
> can you stream video?
>
> has anyone managed to stream video? if so which formats did you use?
>
> tx
>
>
> >Jason,
> >
> >What do you mean by stream is out.I am able to stream an Mp3 from an
> >uri and get it in my local device.
> >
> >
> >RTSP is not supported
> >
> >
> >
> >On Fri, Oct 10, 2008 at 3:47 AM, Jason Proctor
> ><[EMAIL PROTECTED]> wrote:
> >
> >
> >OK i found the answer in the 1.0 release notes. seems like streaming
> >is out for the time being.
> >
> >
> >
> >
> >>i've been trying to play 3gp and mp4 movies off an HTTP server with
> >>MediaPlayer without success. i know the movie files are OK because i
> >>can play them locally off the sdcard.
> >>
> >>the errors i'm getting include the now famous unknown errors
> >>0x and 0xfffc.
> >>
> >>from googling i know that RTSP isn't currently supported in the
> >>emulator due to UDP issues, but is streaming supported over HTTP? and
> >>if so, do i need to hack regular 3gp or mp4 files so that they can be
> >>streamed?
> >>
> >>thanks muchly.
> >
> >
> >
> >
> >
>
> >
>

--~--~-~--~~~---~--~~
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: polite request for better error messages

2008-10-09 Thread Megha Joshi
 Thanks for your feedback Jason...those error messages aren't meaningful
enough. The engineers are working on improving the error messages in
general..

It would be helpful though if you can log specific package/class or API
related error message issues in the public issue tracker...in that way it
will be easy to keep track of.

2008/10/9 Jason Proctor <[EMAIL PROTECTED]>

>
> i'd never have thought of that ;-)
>
> in the socket case, the actual exception message is as i posted.
> prior to me logging the exception, OSNetworkSystem logs "unknown
> socket error -1".
>
> in the MediaPlayer.create() case, no exception is thrown. the method
> returns null to signify the error. however, the internal exception is
> logged in the DDMS window, and it's exactly the message i posted.
>
> in both cases, some piece of Android SDK knew what the problem was,
> and decided not to tell.
>
> i hope that nobody is going to argue *against* informative error
> messages? they are a hallmark of java development - i have written
> countless Swing applications with not even one question posted on a
> list.
>
> opaque error messages just lead to endless list FAQs and delayed
> applications. biggest problem with the computer industry as a whole
> IMHO.
>
>
>
>
> >Wrap the issue in a try catch block and log the exception.  You'll get
> >much more detailed info.
> >
> >On Wed, Oct 8, 2008 at 4:32 PM, Jason Proctor <[EMAIL PROTECTED]> wrote:
> >>
> >>  dear google, any chance of better error messages from the android
> >>  classes? usually, the java frameworks have nice developer-friendly
> >>  (as opposed to user-friendly) messages in exceptions when things go
> >>  wrong. but it seems that with the android.* packages, errors are
> >>  unexpected and the message is invariably some variation on --
> >>
> >>  error code -1: unknown error
> >>
> >>  -- which isn't very helpful. that's the actual error message when an
> >>  application tries to open a socket and doesn't have internet
> >>  permission. this led to numerous list threads etc which could have
> >>  been avoided if the piece of code discovering the problem and
> >>  throwing the exception had included a better message. then the
> >>  solution would have been obvious.
> >>
> >>  i'm running into another one at the moment. if MediaPlayer doesn't
> >>  like the data it's presented with, it will throw during prepare().
> >>  the error message i'm looking at is --
> >>
> >>  error: Prepare failed: status=0x
> >>
> >>  -- which is, you guessed it, error code -1 again. there are numerous
> >>  possible error cases here, and the code which threw the exception
> >>  knew what the problem was, so why didn't it tell us? i'm going to
> >>  have to start another list thread on streaming http, because i can't
> >>  tell what the problem is. i *know* prepare() failed, how about
> >>  telling me WHY??
> >>
> >>  thanks in advance.
> >>
> >>  j
> >>
> >>
> >>  >
> >>
> >
> >
> >
> >--
> >~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]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: compatibility between Android (beta version) and GWT 1.5.1

2008-10-07 Thread Megha Joshi
I remember facing the same issue earlier with my GWT app on Android, but
this bug has been fixed since then.

For a quick demo, try
http://gwt.google.com/samples/Showcase/Showcase.html#CwListBox in the
Emulator's browser. The GWT listbox will be converted to Android's ListView
and you can select items as expected. Make sure that your WebView has
Javascript enabled. Let us know if you still face issues...perhaps post your
relevant GWT code..

2008/10/7 Mark Murphy <[EMAIL PROTECTED]>

>
> Stefano Cannata wrote:
> > Actually I haven't published yet my webapp on a url,
>
> Hopefully, somebody on this list both has your version of GWT installed
> and the time to build a test app.
>
> --
> Mark Murphy (a Commons Guy)
> http://commonsware.com
>
> Android Training on the Ranch! -- Mar 16-20, 2009
> http://www.bignerdranch.com/schedule.shtml
>
> >
>

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



[android-developers] Re: mail.jar activation.jar problem in android

2008-10-06 Thread Megha Joshi
Any details of what you are trying to do would be good...


2008/10/3 mpredosin <[EMAIL PROTECTED]>

>
> I am having the same problem.  The activation.jar can't find the
> required classes in the android jar.  It occurs with both Android 1.0
> & 0.9 sdks.
>
> 10-03 23:24:49.891: DEBUG/SSLSocketFactory(378): Using factory
> [EMAIL PROTECTED]
> 10-03 23:24:49.979: DEBUG/OpenSSLSocketImpl(378): SSL_OP_NO_SSLv3 is
> set
> 10-03 23:24:56.080: INFO/global(378): Oct 3, 2008 11:24:55 PM
> java.io.BufferedOutputStream 
> 10-03 23:24:56.080: INFO/global(378): INFO: Default buffer size used
> in BufferedOutputStream constructor. It would be better to be explicit
> if a 8k buffer is required.
> 10-03 23:24:56.320: DEBUG/dalvikvm(378): GC freed 7012 objects /
> 347816 bytes in 91ms
> 10-03 23:24:56.460: INFO/dalvikvm(378): Failed resolving Ljavax/
> activation/DataHandler; interface 175 'Ljava/awt/datatransfer/
> Transferable;'
> 10-03 23:24:56.470: WARN/dalvikvm(378): Link of class 'Ljavax/
> activation/DataHandler;' failed
> 10-03 23:24:56.480: WARN/dalvikvm(378): VFY: unable to find class
> referenced in signature (Ljavax/activation/DataHandler;)
> 10-03 23:24:56.491: INFO/dalvikvm(378): Failed resolving Ljavax/
> activation/DataHandler; interface 175 'Ljava/awt/datatransfer/
> Transferable;'
> 10-03 23:24:56.501: WARN/dalvikvm(378): Link of class 'Ljavax/
> activation/DataHandler;' failed
> 10-03 23:24:56.511: WARN/dalvikvm(378): VFY: unable to resolve virtual
> method 1729: Ljavax/activation/DataHandler;.getName ()Ljava/lang/
> String;
> 10-03 23:24:56.520: WARN/dalvikvm(378): VFY:  rejecting opcode 0x6e at
> 0x0006
> 10-03 23:24:56.520: WARN/dalvikvm(378): VFY:  rejected Ljavax/mail/
> internet/MimeUtility;.getEncoding (Ljavax/activation/
> DataHandler;)Ljava/lang/String;
> 10-03 23:24:56.520: WARN/dalvikvm(378): Verifier rejected class Ljavax/
> mail/internet/MimeUtility;
>
>
> On Oct 3, 8:33 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> > Hi Everybody,
> >I have problem in getting gmail folder in android for using
> > mail.jar(1.4.1 version) and activition.jar(1.1 version). Following is
> > the exception. Does somebody have the good solution?
> >
> > Thanks,
> >
> > AndroidSue
> >
> > I/global  (  654): INFO: Default buffer size used in
> > BufferedOutputStream constructor. It would be better to be explicit if
> > a 8k buffer is required.
> > I/dalvikvm(  654): Failed resolving Ljavax/activation/DataHandler;
> > interface 175 'Ljava/awt/datatransfer/Transferable;'
> > W/dalvikvm(  654): Link of class 'Ljavax/activation/DataHandler;'
> > failed
> > W/dalvikvm(  654): VFY: unable to find class referenced in signature
> > (Ljavax/activation/DataHandler;)
> > I/dalvikvm(  654): Failed resolving Ljavax/activation/DataHandler;
> > interface 175 'Ljava/awt/datatransfer/Transferable;'
> > W/dalvikvm(  654): Link of class 'Ljavax/activation/DataHandler;'
> > failed
> > W/dalvikvm(  654): VFY: unable to resolve virtual method 1736: Ljavax/
> > activation/DataHandler;.getName ()Ljava/lang/String;
> > W/dalvikvm(  654): VFY:  rejecting opcode 0x6e at 0x0006
> > W/dalvikvm(  654): VFY:  rejected Ljavax/mail/internet/
> > MimeUtility;.getEncoding (Ljavax/activation/DataHandler;)Ljava/lang/
> > String;
> > W/dalvikvm(  654): Verifier rejected class Ljavax/mail/internet/
> > MimeUtility;
> > D/AndroidRuntime(  654): Shutting down VM
> > W/dalvikvm(  654): threadid=3: thread exiting with uncaught exception
> > (group=0x40010e28)
> > E/AndroidRuntime(  654): Uncaught handler: thread main exiting due to
> > uncaught exception
> > E/AndroidRuntime(  654): java.lang.VerifyError:
> > javax.mail.internet.MimeUtility
> > E/AndroidRuntime(  654):at
> > com.sun.mail.imap.protocol.IMAPProtocol.(IMAPProtocol.java:117)
> > E/AndroidRuntime(  654):at
> > com.sun.mail.imap.IMAPStore.protocolConnect(IMAPStore.java:538)
> > E/AndroidRuntime(  654):at
> javax.mail.Service.connect(Service.java:
> > 288)
> > E/AndroidRuntime(  654):at
> javax.mail.Service.connect(Service.java:
> > 169)
> > E/AndroidRuntime(  654):at
> javax.mail.Service.connect(Service.java:
> > 118)
> > E/AndroidRuntime(  654):at
> > com.foxconn.android.app.EmailApp.getInbox(EmailApp.java:95)
> > E/AndroidRuntime(  654):at
> > com.foxconn.android.app.EmailApp.onCreate(EmailApp.java:44)
> > E/AndroidRuntime(  654):at
> > android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:
> > 1122)
> > E/AndroidRuntime(  654):at
> > android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
> > 2103)
> > E/AndroidRuntime(  654):at
> > android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:
> > 2156)
> > E/AndroidRuntime(  654):at android.app.ActivityThread.access
> > $1800(ActivityThread.java:112)
> > E/AndroidRuntime(  654):at android.app.ActivityThread
> > $H.handleMessage(ActivityThread.java:1580)
> > E/AndroidRuntime(  654):at
> > an

[android-developers] Re: Decoding Reverse Geocoding HTTP Response

2008-10-03 Thread Megha Joshi
Okay...now I understand what you are trying to do...sorry I can't be of much
help...you may want to post your question the android-internals forum.

2008/10/3 vern <[EMAIL PROTECTED]>

>
> Hello,
>
>  The code is simply and works perfectly:
>
>  Geocoder g = new Geocoder(this);
>  List la = g.getFromLocation(-25.809 , -49.153, 1);
>
> When I run it with the Wireshark (or tcpdump) turned on, I can see an
> HTTP Request to
>
>  http://www.google.com/loc/m/api
>
> The Content Type is Binary, the method is POST, and the posted
> parameter I've managed to understand, and now I can make requests to
> that site OUTSIDE THE ANDROID ENVIROMENT, and that's my goal.
>
> But, the problem is, I don't know how Android.jar reads the Response.
> If I knew how to decompile it, it would be easy. Here's a sample
> decoded response:
>
> Cunene Angola AO -16.285444, 15.4088245
> (City, Coutry, Lat, Lng)
>
> But the binary Response was:
>
>  00 01 00  00 00 70 81 00 00 00
> 00 ... ..p.
> c8 00 01 67 00 00 00 65  1f 8b 08 00 00 00 00 00   ...g...e 
> 00 00 e3 60 10 4a e4 60  10 8a e5 e2 e2 65 98 51   ...`.J.` .e.Q
> f6 4d 94 21 a3 93 53 cb  83 8b cd b9 34 2f 35 2f   .M.!..S. 4/5/
> 55 80 59 ca 00 c6 e6 62  73 cc 4b cf cf 49 14 e2   U.Yb s.K..I..
> 82 b1 04 18 85 d8 b8 98  1c fd 05 98 40 62 30 1d    [EMAIL PROTECTED]
> 5a 5c bc 37 38 bd bf 89  9a 1a eb 73 1a ec 78 d7   Z\.78... ...s..x.
> f5 fe b0 32 00 5f e0 0f  0b 65 00 00 00...2._.. .e...
>
> From the beggining of the file, it seems to be a DEX file. But it
> doesn't fits the following specs:
> http://www.retrodev.com/android/dexformat.html
>
> Please, see if you can help me to decode it.
>
> By the way my blog is at
> hourlyapps.blogspot.com
>
>
> On 3 out, 17:25, "Megha Joshi" <[EMAIL PROTECTED]> wrote:
> > Could you post a link to your blog...and some code..so that I can get an
> > idea of what you are doing :)
> >
> > 2008/10/3 vern <[EMAIL PROTECTED]>
> >
> >
> >
> > > As I posted at my blog, I'm trying to decode the Google site response
> > > to an Android's reverse geocoding request. But as I don't know how to
> > > decompile the Android libraries to see how it's done, I'm stuck.
> > > Anyone can help me?
> >
>

--~--~-~--~~~---~--~~
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: PNG issue with 1.0 Release 1

2008-10-03 Thread Megha Joshi
Could you attach a test image and the code that you are using to load this
image?

2008/10/3 tberthel <[EMAIL PROTECTED]>

>
> I get the following error loading some images that loaded in .9 Beta:
>
> D/skia(  226): xxx jpeg error 53 Not a JPEG file: starts
> with 0x%02x 0x%02x
>
> Is this a bug or something that will stay in the next release?
> >
>

--~--~-~--~~~---~--~~
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: Default the Spinner Selection

2008-10-03 Thread Megha Joshi
You could use Spinner's setSelection(int position) method.

2008/10/3 Lonzo1968 <[EMAIL PROTECTED]>

>
> I feel almost embarrassed to ask this.. But how do you default the
> selection in a Spinner Widget? I have a Spinner that uses an
> ArrayAdapter to fill the Selections. I get the value of the
> Spinner from a database, and now I want to set the Spinner to that
> selection when the user creates the Activity..
>
> This seems like it should be simple, but I just don't see a method to
> do this??
>
> Thanks,
>
> LA
> >
>

--~--~-~--~~~---~--~~
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: Decoding Reverse Geocoding HTTP Response

2008-10-03 Thread Megha Joshi
Could you post a link to your blog...and some code..so that I can get an
idea of what you are doing :)

2008/10/3 vern <[EMAIL PROTECTED]>

>
> As I posted at my blog, I'm trying to decode the Google site response
> to an Android's reverse geocoding request. But as I don't know how to
> decompile the Android libraries to see how it's done, I'm stuck.
> Anyone can help me?
>
> >
>

--~--~-~--~~~---~--~~
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: mail.jar activation.jar problem in android

2008-10-03 Thread Megha Joshi
Could you give some more details on what you are trying to do...

2008/10/3 [EMAIL PROTECTED] <[EMAIL PROTECTED]>

>
> Hi Everybody,
>   I have problem in getting gmail folder in android for using
> mail.jar(1.4.1 version) and activition.jar(1.1 version). Following is
> the exception. Does somebody have the good solution?
>
> Thanks,
>
> AndroidSue
>
>
>
> I/global  (  654): INFO: Default buffer size used in
> BufferedOutputStream constructor. It would be better to be explicit if
> a 8k buffer is required.
> I/dalvikvm(  654): Failed resolving Ljavax/activation/DataHandler;
> interface 175 'Ljava/awt/datatransfer/Transferable;'
> W/dalvikvm(  654): Link of class 'Ljavax/activation/DataHandler;'
> failed
> W/dalvikvm(  654): VFY: unable to find class referenced in signature
> (Ljavax/activation/DataHandler;)
> I/dalvikvm(  654): Failed resolving Ljavax/activation/DataHandler;
> interface 175 'Ljava/awt/datatransfer/Transferable;'
> W/dalvikvm(  654): Link of class 'Ljavax/activation/DataHandler;'
> failed
> W/dalvikvm(  654): VFY: unable to resolve virtual method 1736: Ljavax/
> activation/DataHandler;.getName ()Ljava/lang/String;
> W/dalvikvm(  654): VFY:  rejecting opcode 0x6e at 0x0006
> W/dalvikvm(  654): VFY:  rejected Ljavax/mail/internet/
> MimeUtility;.getEncoding (Ljavax/activation/DataHandler;)Ljava/lang/
> String;
> W/dalvikvm(  654): Verifier rejected class Ljavax/mail/internet/
> MimeUtility;
> D/AndroidRuntime(  654): Shutting down VM
> W/dalvikvm(  654): threadid=3: thread exiting with uncaught exception
> (group=0x40010e28)
> E/AndroidRuntime(  654): Uncaught handler: thread main exiting due to
> uncaught exception
> E/AndroidRuntime(  654): java.lang.VerifyError:
> javax.mail.internet.MimeUtility
> E/AndroidRuntime(  654):at
> com.sun.mail.imap.protocol.IMAPProtocol.(IMAPProtocol.java:117)
> E/AndroidRuntime(  654):at
> com.sun.mail.imap.IMAPStore.protocolConnect(IMAPStore.java:538)
> E/AndroidRuntime(  654):at javax.mail.Service.connect(Service.java:
> 288)
> E/AndroidRuntime(  654):at javax.mail.Service.connect(Service.java:
> 169)
> E/AndroidRuntime(  654):at javax.mail.Service.connect(Service.java:
> 118)
> E/AndroidRuntime(  654):at
> com.foxconn.android.app.EmailApp.getInbox(EmailApp.java:95)
> E/AndroidRuntime(  654):at
> com.foxconn.android.app.EmailApp.onCreate(EmailApp.java:44)
> E/AndroidRuntime(  654):at
> android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:
> 1122)
> E/AndroidRuntime(  654):at
> android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
> 2103)
> E/AndroidRuntime(  654):at
> android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:
> 2156)
> E/AndroidRuntime(  654):at android.app.ActivityThread.access
> $1800(ActivityThread.java:112)
> E/AndroidRuntime(  654):at android.app.ActivityThread
> $H.handleMessage(ActivityThread.java:1580)
> E/AndroidRuntime(  654):at
> android.os.Handler.dispatchMessage(Handler.java:88)
> E/AndroidRuntime(  654):at android.os.Looper.loop(Looper.java:123)
> E/AndroidRuntime(  654):at
> android.app.ActivityThread.main(ActivityThread.java:3742)
> E/AndroidRuntime(  654):at
> java.lang.reflect.Method.invokeNative(Native Method)
> E/AndroidRuntime(  654):at
> java.lang.reflect.Method.invoke(Method.java:515)
> E/AndroidRuntime(  654):at com.android.internal.os.ZygoteInit
> $MethodAndArgsCaller.run(ZygoteInit.java:739)
> E/AndroidRuntime(  654):at
> com.android.internal.os.ZygoteInit.main(ZygoteInit.java:497)
> E/AndroidRuntime(  654):at dalvik.system.NativeStart.main(Native
> Method)
> I/Process (   51): Sending signal. PID: 654 SIG: 3
> I/dalvikvm(  654): threadid=7: reacting to signal 3
> I/dalvikvm(  654): Wrote stack trace to '/data/anr/traces.txt'
> W/ActivityManager(   51): Launch timeout has expired, giving up wake
> lock!
> W/ActivityManager(   51): Activity idle timeout for
> HistoryRecord{434f3058 {com.foxconn.android.app/
> com.foxconn.android.app.EmailApp}}
> D/dalvikvm(  392): GC freed 68 objects / 2800 bytes in 91ms
>
>
>
> >
>

--~--~-~--~~~---~--~~
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: Documentation Blues

2008-09-29 Thread Megha Joshi
2008/9/27 jtaylor <[EMAIL PROTECTED]>

>
> Hello Android Team,
>
> Consider this a helpful criticism. But this sentence is still on the
> very front of the Documentation. - "A beta version of the Android SDK
> is available for download." and it's been a few days since the 1.0 SDK
> has been released.
>

Thanks for the pointer...this text will be updated with the next docs
release.


> This means that the Documentation hasn't been updated.


No, certainly it does not mean that. The docs are updated generally on a
biweekly basis and with every sdk release.

Also the
> samples.


Again, the samples have been updated, let us know if you have anything
specific in mind.

No Gears documentation.


There is no support for Gears with Android yet.

apps-for-android apps wasn't updated
> right away though I haven't checked recently.


app-for-android is an on-going project, its updated with new apps
frequently.  Most of them would work on 1.0. If something does not, please
file a issue in the apps-for-android project page itself.

Classes mixed up.


Could you be more specific here...

>
> Mention of Android-coding-style-standards in the docs but these coding
> standards are nowhere to be found, yet they are used in the sample
> apps.


and here...

>
>
> My suggestion is that in an update to the SDK, everything should be
> updated at the same exact time. Since Android is a new contraption,
> then one needs a manual. And if the contraption is new and the manual
> is beta, then that's a bug. To a developer, the docs are inseparable
> from the SDK.
>

Thats true, and that is how its done with Android.  Thanks for your
feedback..always appreciated :)


> "There are a few new permissions related to the "subscribed feeds
> ContentProvider", yet there does not appear to be any documentation of
> such a provider. The quoted phrase suggests it handles RSS/Atom feeds
> on behalf of client applications, and as such would be a handy
> addition to the framework. But, without a documented list of available
> properties and such, it would be difficult to use."
> http://androidguys.com/?p=1785
>

>
> From what Mark said here, it wouldn't be difficult but impossible to
> use. :)
>
>
> - Juan t.
>
>
> >
>

--~--~-~--~~~---~--~~
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: Documentation Blues

2008-09-29 Thread Megha Joshi
Good point Mark.
Yes, it comes with the Browser in 1.0. But Gears plugin cannot be installed
to work with the WebView in user apps as there is no support for installing
native plugins in Android.
Also...there is a plan to replace it in future..with an alternative which
would be more easier to integrate in user apps...

2008/9/29 Mark Murphy <[EMAIL PROTECTED]>

>
> Megha Joshi wrote:
> > No Gears documentation.
> >
> > There is no support for Gears with Android yet.
>
> Sure there is. Ed Burnette even wrote up some samples:
>
> http://blogs.zdnet.com/Burnette/?p=662
>
> --
> Mark Murphy (a Commons Guy)
> http://commonsware.com
>
> Android Training on the Ranch! -- Mar 16-20, 2009
> http://www.bignerdranch.com/schedule.shtml
>
> >
>

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



[android-developers] Re: Activity Lifecycle Question

2008-09-28 Thread Megha Joshi
When setting the Notification intent, are you using the Flags CLEAR_TOP and
SINGLE_TASK?
ie. Intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP |
Intent.FLAG_ACTIVITY_NEW_TASK)

More explanation about these launch modes is given in the docs below:
http://code.google.com/android/reference/android/content/Intent.html#FLAG_ACTIVITY_CLEAR_TOP

2008/9/28 Gil <[EMAIL PROTECTED]>

>
> I have an activity which is started by the intent set by my app in the
> status bar. My activity uses the singleTop launchMode. I go through
> the following sequence of events:
>
> 1) My activity is initially not visible.
> 2) I get a notification in the status bar. I click on the new
> notification which starts my activity.
> 3) While my activity is still visible I get a new notification in the
> status bar. I click on the new notification again.
>
> My question is the following: What method should I override to learn
> that my activity is being "started" when the user clicks on the
> notification the second time?
>
> I thought that onNewIntent should be called but it is not. onNewIntent
> does get called each time I click on the notification if my activity
> is initially started from the home screen (but not if it is initially
> started by clicking on the notification).
>
> >
>

--~--~-~--~~~---~--~~
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: Best practise for naming intent extras

2008-09-28 Thread Megha Joshi
Dianne recommended:

You should use names that are fully qualified in your own domain.  You
-must- do this if the extra is being used in conjunction with some action or
such that you haven't yourself defined (such as android.intent.action.VIEW)
so that you do not conflict with someone else.  If you are defining your own
action with extras that go along with it, you can skip the fully qualified
names for the extras since you are making your own overall intent protocol.
But still, it is better to just consistently fully qualify things.

In these cases, the platform is not a good example of what to do, since the
platform is special in that it is the first one defining everything.  Just
like the use of "android.*" is not a good example of how a normal
application should make its own namespace.


- Show quoted text -


2008/9/27 Peli <[EMAIL PROTECTED]>

>
> Is there some (informal) guideline of how to name intent extras, that
> is, their defining string?
>
> Even within the SDK this seems to be controversial:
>
> * Single word in small letters: SearchManager.QUERY = "query"
>
> http://code.google.com/android/reference/android/app/SearchManager.html#QUERY
>
> * fully qualified string with capital letters:
> Intent.EXTRA_SHORTCUT_ICON = "android.intent.extra.shortcut.ICON"
>
> http://code.google.com/android/reference/android/content/Intent.html#EXTRA_SHORTCUT_ICON
>
> Looking at the Google project ZXing, there is also the single word in
> capital letters: com.android.barcodes.Intents.MODE = "SCAN_MODE"
>
> http://code.google.com/p/zxing/source/browse/trunk/android/src/com/android/barcodes/Intents.java
>
> This inconsistency becomes quite apparent when looking at a list of
> various extras: http://www.openintents.org/en/extras
>
> I understand that much of this may be historically based, but I wonder
> if the Android developers can provide some guidelines of what worked
> well or how they would prefer to name future intent extras?
>
> Peli
> www.openintents.org
>
>
>
> >
>

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



[android-developers] Re: one line EditText

2008-09-28 Thread Megha Joshi
You are using android:layout_weight = "1" for both TextView and EditText,
which makes them occupy the screen space equally. Instead you should use
something like "0.1" for the EditText and "0.9" for TextView.

You should also set android:multiline="true" for EditText, otherwise
everything that the user types will remain in just one line.

Your parent LinearLayout's layout_height is "fill_parent" which will still
make the EditText stretch a bit if you want it to be strictly just one
line then you could:

1) set the EditText's android:layout_height to 1dip, instead of
wrap_content, but then it wont expand when the user types more than 1 line
2) set the parent LinearLayout's layout_height to "wrap_content"

But again that wouldn't look too good, your UI will look a bit
squished...its good to leave some padding.

2008/9/28 Christine <[EMAIL PROTECTED]>

>
> Hi,
> I'm struggling with the following. I have an EditText and a TextView
> in a LinearLayout, like this:
>
> http://schemas.android.com/apk/res/
> android"
>android:orientation="vertical"
>android:layout_width="fill_parent"
>android:layout_height="fill_parent">
>  android:layout_width="fill_parent"
>android:layout_height="wrap_content"
>android:singleLine="true"
>android:gravity="top"
>android:paddingLeft="3dip"
>android:paddingRight="3dip"
>android:layout_weight="1"/>
>  android:layout_width="fill_parent"
>android:layout_height="wrap_content"
>android:layout_weight="1"
>android:gravity="top"
>android:paddingLeft="3dip"
>android:paddingRight="3dip"
>android:scrollbars="vertical" />
> 
>
> I want the EditExt to be one line, the TextView to fill up the rest of
> the screen. Ideally, the EditText would still grow with the number of
> lines the user types. I've tried android:height, android:maxHeight,
> android:singleLine, but nothing seems to work. I'm sure I'm
> overlooking something simple.
>
>
> >
>

--~--~-~--~~~---~--~~
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: MediaRecorder recording video?

2008-09-28 Thread Megha Joshi
Hi Filipe,

There is certainly a plan to support video recording...however I do not have
an ETA on when it would be supported.


2008/9/28 Filipe Abrantes <[EMAIL PROTECTED]>

>
> Hi Mega,
>
> Is there a plan regarding this, that is, does Google know when (or if)
> Android will support Video Recording?
>
> What held up this feature (licensing, simple lack of time, too complex,
> etc)?
>
> Cheers,
> Filipe
>
>
> Megha Joshi wrote:
> > The video recording feature is not supported in 1.0.  We will fix the
> > docs. You could also file the doc bugs directly in the public issue
> > tracker.
> >
> > 2008/9/27 haig <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>>
> >
> >
> > I am looking for help on how to record video with sdk 1.0
> >
> > In MediaRecorder, setVideoSource is no longer there.  The
> > documentation (
> http://code.google.com/android/reference/android/media/
> > MediaRecorder.html
> > <
> http://code.google.com/android/reference/android/media/MediaRecorder.html
> >)
> > still references setVideoSource in the diagram
> > even though its no longer available.
> >
> > Ideas?
> >
> >
> >
> >
> > >
>
>
> >
>

--~--~-~--~~~---~--~~
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: MediaRecorder recording video?

2008-09-28 Thread Megha Joshi
The video recording feature is not supported in 1.0.  We will fix the docs.
You could also file the doc bugs directly in the public issue tracker.

2008/9/27 haig <[EMAIL PROTECTED]>

>
> I am looking for help on how to record video with sdk 1.0
>
> In MediaRecorder, setVideoSource is no longer there.  The
> documentation (http://code.google.com/android/reference/android/media/
> MediaRecorder.html)
> still references setVideoSource in the diagram
> even though its no longer available.
>
> Ideas?
>
> >
>

--~--~-~--~~~---~--~~
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: Transparent Buttons & Focus

2008-09-24 Thread Megha Joshi
You can use ColorStateList to set the Button background on focus. The post
below has a nice example on using it:
http://groups.google.com/group/android-developers/msg/0714e077e25d63a6

2008/9/24 Shaun <[EMAIL PROTECTED]>

>
>
> I have some buttons without backgrounds ( produced either by
> setBackgroundDrawable(null) or setBackgroundColor(0x) ) --
> that part works fine. However, when the button does not have a
> background it never gets the orange focus highlight and hence is not
> navigable via trackball. It does actually get focus since my focus
> callback is invoked.
>
> My question is: is there some method I can use to cause the button to
> highlight when it's focused or alternatively what's the
> android.R.drawable resource for the orange background highlighting (I
> can do the focus-handling myself with that).
>
> Thanks.
>
> SPT
>
> >
>

--~--~-~--~~~---~--~~
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: replacing incoming call and outgoing call screens

2008-09-24 Thread Megha Joshi
2008/9/24 kingkung <[EMAIL PROTECTED]>

>
> The incoming call and outgoing call screens (when you call someone/
> receive someone's call) are currently default screens launched by the
> Dialer, or some other built-in Android app.  Is it possible to replace
> these screens?


You cannot change the default call screens. They are part of the inbuilt
Phone app.

>
> >
>

--~--~-~--~~~---~--~~
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: Developing Wi-Fi applications in the emulator

2008-09-24 Thread Megha Joshi
The emulator doesn't support Wi-Fi, so WifiManager won't tell you anything
useful.

2008/9/15 Bradley Kite <[EMAIL PROTECTED]>

>
> On 13/09/2008, Bradley Kite <[EMAIL PROTECTED]> wrote:
> > On 11/09/2008, Bradley Kite <[EMAIL PROTECTED]> wrote:
> >  > Hi all,
> >  >
> >  >  I would like to develop an application that makes use of the wifi API
> >  >  (android.net.wifi.*).
> >  >
> >  >  Is there any way that I can test my application within the emulator?
> >  >
> >  >  At the moment I am getting this error:
> >  >
> >  >  E/WifiService(   46): Failed to load Wi-Fi driver.
> >  >
> >  >  Which I kind of expected, as the emulator doesn't actually contain
> any
> >  >  wifi "hardware".
> >  >
> >  >  Are there any hacks/tweaks I can make to QEMU that can make it
> present
> >  >  an emulated piece of wifi hardware to the android device driver?
> >  >
> >  >  Is any body else also trying to use the wifi API's and has solved
> this problem?
> >  >
> >  >  Many thanks in advance
> >  >
> >  > --
> >  >  Brad
> >
> >
> > Hi all,
> >
> >  I've come to the assumption that I wont be able to get wifi working
> >  within the emulator, so I'm trying to come up with some dummy data to
> >  "pretend" that its come from the wpa_supplicant.
> >
> >  With this in mind, I'm trying to spoof some ScanResult structures, as
> >  returned by the WifiManager.getScanResult().
> >
> >  However, it would seem like this API is still in a state of flux - for
> >  example ScanResult.capabilities is documented as returning a String,
> >  but with a TODO note saying that it should be parsed into a
> >  WifiConfiguration object. Does this mean that the API will change so
> >  that it returns the WifiConfiguration object, or is it expected of the
> >  user to parse the string?
> >
> >  Would any body be able to clarify the situation with regards to how I
> >  should be able to detect the parameters of a wifi network?
> >
> >  If somebody has access to a real device, could they please send me
> >  some example strings  as returned by ScanResult.capabilities? In
> >  particular, what would a free/open-access wifi network capabilities
> >  string look like?
> >
> >  I'd really appreciate the help/guidance that any one has to offer.
> >
> >  Kind Regards
> >
> > --
> >  Brad.
> >
>
> Guys, I'm really having trouble with the wifi API - even to the point
> where I am unable to create any dummy data to work with.
>
> My code is as follows:
>
> WifiManager wm = (WifiManager) getSystemService(Context.WIFI_SERVICE);
> Log.d(TAG, "Scanning for WIFI Networks");
>
> List scan = wm.getScanResults();
>
> WifiConfiguration apConfigs[] = new WifiConfiguration[3];
>
> if (scan == null)
> {
>Log.d(TAG, "No Networks Found. Falling back to debug mode");
>// Set up the dummy AP Configurations (WifiConfiguration classes)
>Log.d(TAG, "About to set BSSID");
>apConfigs[0].BSSID = "00:40:05:a5:88:0d";
>Log.d(TAG, "BSSID is now set");
>[...snip...]
>return;
> }
>
> The only output I get from this, however, is as shown below:
>
> D/HotSpotWatcher(  596): Scanning for WIFI Networks
> D/HotSpotWatcher(  596): No Networks Found. Falling back to debug mode
> D/HotSpotWatcher(  596): About to set BSSID
> D/dalvikvm(  116): GC freed 3 objects / 72 bytes in 66ms
> D/dalvikvm(   90): GC freed 1138 objects / 55512 bytes in 82ms
>
> It would seem like attempting to set the BSSID is making the function
> return early, because it never actually prints out "BSSID is now set".
>
> Can any body help please?
>
> Kind regards
> --
> Brad.
>
> >
>

--~--~-~--~~~---~--~~
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: Camera questions for SDK 1.0 R1

2008-09-23 Thread Megha Joshi
Unfortunately, these issues have not been fixed for 1.0 r1.

http://code.google.com/p/android/issues/detail?id=790
http://code.google.com/p/android/issues/detail?id=821
http://code.google.com/p/android/issues/detail?id=823

Everything that is fixed will be marked as "Released" in the issue tracker
by tomorrow.

2008/9/23 blindfold <[EMAIL PROTECTED]>

>
> The release notes read under Significant API Changes, "Improvements to
> the Camera API". However, I upgraded my app from SDK 0.9 beta to 1.0
> R1, and it runs OK again, but it seems that concerning implementation
> of APIs little has improved for using the camera:
>
> 1. The camera still cannot be queried for a list of supported
> resolutions?
>
> 2. The camera preview image still cannot be positioned? Always stuck
> at top left.
>
> 3. setPreviewSize() still does not take any effect?
>
> 4. setPreviewFormat() does not yield data[] in onPreviewFrame() that
> can be decoded with BitmapFactory.decodeByteArray()? Always returns
> null, and even when setting JPEG, complaining with DEBUG/skia(774):
> xxx jpeg error 53 Not a JPEG file: starts with 0x%02x 0x%02x.
> No such problems occur with onPictureTaken() for taking full
> snapshots.
>
> Is there a list of previously reported open issues (with their #) that
> have been fixed after SDK 0.9 beta? After all, if they simply have not
> been fixed then I do not need to spend time on trying time and again
> whether something has improved.
>
> Please correct me where I am wrong.
>
> Thanks and 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]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: How to import a new CA certificate

2008-09-23 Thread Megha Joshi
It is recommended to build an application-specific keystore with only the
needed certificate(s) in it. If you have a specific server
certificate you want to trust, even if it isn't part of a complete chain,
put in into this store. Same for client certificates that might
be need for authenticating the client. In the client application, configure
the SSLContext appropriately. You  could point either the key manager or the
trust manager to your application store. There's a method that allows to
load the keystore contents from a stream.


2008/9/8 maennel <[EMAIL PROTECTED]>

>
> Hi all,
> I am trying to connect with Android to a server which I develop
> myself. Now it should be possible to connect to that server using an
> encrypted connection (namely HTTPS).
> As I do not use this application in a commercial way I don't want to
> invest money to buy a real certificate. So, I try to test the system
> using a test certificate from thawte on server side.
>
> What happens:
> Because the CA that signed this test certificate is not stored on
> Android, it simply rejects the certificate and does not connect to the
> server by stopping the handshake procedure by a TCP-Fin-Ack. I tried
> to connect to other, public secured servers and there the connection
> is established without any problem (tests done with HttpClient and
> HttpMethod).
>
>
> Is there any possibility to add the two certificates (test
> intermediate CA & test root CA) to the Android keystore in order to
> have an effect as if the certificate I use was a real one?
> Or does anybody knows if there are other possibilities to connect to
> test servers?
>
> Thank you for responding,
> maennel
>
> >
>

--~--~-~--~~~---~--~~
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: Internet proxy setting in R1.0

2008-09-23 Thread Megha Joshi
 To use proxy connection, you must launch the emulator with -http-proxy
flag.
 Usage:
 http://code.google.com/android/reference/emulator.html#startup-options

2008/9/23 Glen Wang <[EMAIL PROTECTED]>

> Does anyone know how to set the proxy in R1.0.  Thanks!
> Glen
>
> >
>

--~--~-~--~~~---~--~~
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 1.0 SDK Released

2008-09-23 Thread Megha Joshi
Hi everyone,

We're pleased to announce the release of the Android 1.0 SDK, release 1.

For full information, please see Dan Morrill's blog post:


http://android-developers.blogspot.com/2008/09/announcing-android-10-sdk-release-1.html

SDK Download:

http://code.google.com/android/download.html

Overview of Changes since 0.9 SDK:

 http://code.google.com/android/migrating/0.9-1.0/changes-overview.html

Android Developer Guide:

http://code.google.com/android/documentation.html

Thanks for using the Android SDK and Happy coding!

Cheers,
The Android Team.

--~--~-~--~~~---~--~~
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: Links to API demos broken

2008-09-23 Thread Megha Joshi
Thanks for reporting this issue...it will be fixed soon.

2008/9/23 xtrawurst <[EMAIL PROTECTED]>

>
> for example this one when I click on 'Graphics':
>
> http://code.google.com/android/samples/ApiDemos/src/com/android/samples/graphics/
>
> Going manually to
> http://code.google.com/android/samples/ApiDemos/src/com/
> I can navigate to the above site, which apparently changed to
>
> http://code.google.com/android/samples/ApiDemos/src/com/example/android/apis/graphics/
>
> but here, again, links are broken, for example to the surface view
> overlay layout file:
>
> http://code.google.com/android/samples/ApiDemos/src/com/example/android/apis/graphics/[EMAIL
>  
> PROTECTED]/ApiDemos/res/layout/surface_view_overlay.html  PROTECTED]/ApiDemos/res/layout/surface_view_overlay.html>
>
> Thanks in advance for fixing this quickly,
> Rafael
>
> >
>

--~--~-~--~~~---~--~~
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 when running SoundRecordingAPISample of Megha

2008-09-22 Thread Megha Joshi
Yes...the sample is intended to be used for 0.9 sdk, it wont work correct
for m5.

2008/9/22 De San Nicolas Jean Philippe <[EMAIL PROTECTED]>

> me again...
>
> I think Ive resolved the problem with sdcard but I have another problem...
>
> the error message in red
>
>
> ERROR/AudioHardware(518): Error 16 opening record channel
> ERROR/AudioFlinger(518): openRecord returned error 16
> ERROR/AudioHardware(518): Attempt to close without open
>
>
> I run the sample with the m5 version of the emulator. Could it be the
> reason of the  failure?
>
> regards
>
>
> 2008/9/22 jphdsn <[EMAIL PROTECTED]>
>
>
>> Hello,
>> I try the same sample and I have nearly the same result.
>> have you installed an sdcard and try another time? Have you a positive
>> result?
>> I try to install an sdcard but I've always the same line In the
>> logcat: "sdcard access error"
>> I think I've an error in the path but don't arrive to resolve it.
>>
>> If you have the solution can you guide me. Thank's
>>
>>
>>
>> On Sep 17, 11:18 am, ZIN <[EMAIL PROTECTED]> wrote:
>> > I have downloaded this project, and try running it in Android
>> > Emulator.
>> > When i click on the StopRecording Button, an alert appears :" process
>> > com.android.samples.audio has stopped unexpectedly ".
>> > I wonder there is a problem in this project.
>> > Can someone help me to fix that?
>> >
>> > Thanks,
>>
>>
>
> >
>

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



[android-developers] Re: Determining if an Activity is visible

2008-09-22 Thread Megha Joshi
 It seems like you want to check if any Activity from your app is visible to
the user. There is no easy way to do this except for checking in each
Activity. Or you can do what the Messaging app does, and show the
notification regardless of whether the Activity is visible to the user or
not.

2008/9/22 Tauno T <[EMAIL PROTECTED]>

>
> Hi all!
>
> A quick question - is there a way to determine if an activity is
> visible to the user or not? I'd like to display a notification to the
> user but only then when the user is not seeing any of my Activities.
>
> I figure that one possibility is to raise a flag in onResume() and
> lower it in onPause() but it's not the best solution for me (since the
> app has  way too much Activities in total and implementing this in
> every one of them "manually" seems like a silly thing to do)
>
> Tauno
>
> >
>

--~--~-~--~~~---~--~~
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: Menu Font

2008-09-19 Thread Megha Joshi
For the regular menus, this isn't possible for 1.0.

You can try to return a custom menu view in the onCreatePanelView.  This
will still use the menu decor and animations.  Phone app actually does this
to fit the 8 items in.
You can handle the MENU button yourself.


2008/9/15 rajesh <[EMAIL PROTECTED]>

>
> I have created an options menu with only one value
>
> @Override
>public boolean onCreateOptionsMenu(Menu menu) {
> super.onCreateOptionsMenu(menu);
> menu.add(0, 0, 0,  "Exit");
> return true;
>}
>
> The layout with which the emulator displays the menu is quite big. Is
> there any way, with which I can control the menu font, style etc.
>
> Thanks,
>
> Cheers,
> Shashank
> >
>

--~--~-~--~~~---~--~~
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: *** TCP connect() time out ***

2008-09-18 Thread Megha Joshi
setSoTimeout() is a read timeout (which is also used when negotiating ssl,
if an SSLSocket).

from the javadoc:

"Enable/disable SO_TIMEOUT with the specified timeout, in milliseconds. With
this option set to a non-zero timeout, a read() call on the InputStream
associated with this Socket will block for only this amount of time. If the
timeout expires, a *java.net.SocketTimeoutException* is raised, though the
Socket is still valid. The option *must* be enabled prior to entering the
blocking operation to have effect. The timeout must be > 0. A timeout of
zero is interpreted as an infinite timeout. "

for connection timeouts, you probably want to use Socket.connect(endpoint,
timeout):

"Connects this socket to the server with a specified timeout value. A
timeout of zero is interpreted as an infinite timeout. The connection will
then block until established or an error occurs."

Apache HttpClient, etc., should have params that let you control these
timeouts for HTTP/S requests.

2008/9/17 Nickname <[EMAIL PROTECTED]>

>
> *** please help ***
>
> On Sep 16, 10:32 am, Nickname <[EMAIL PROTECTED]> wrote:
> > How to control the length of time to time out a TCP connect() attempt?
> >
> > Socket.setSoTimeout() seems not working on connect().
> >
> > In my test, it takes 3 minutes for connect() to time out. That is not
> > acceptable to system redundancy!!!
>
> >
>

--~--~-~--~~~---~--~~
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 in Android Application

2008-09-18 Thread Megha Joshi
Did you check your logcat output? It will give you more details on the
error.
If you aren't able to resolve it from there, please post again with the
logcat output.

2008/9/18 rukesh <[EMAIL PROTECTED]>

>
> I m Rupesh Kumar.
> I m trying to build a   simple android application by sing eclips. The
> java code for that project is as below
>
> x.java
>
> package x.y.z;
>
> import x.y.z.R;
> import android.app.Activity;
> import android.os.Bundle;
> import android.view.View;
> import android.widget.Button;
> import android.widget.EditText;
> import android.widget.TextView;
>
>
> public class z extends Activity {
>/** Called when the activity is first created. */
>
>private EditText inputbox;
>private TextView ans;
>public void onCreate(Bundle savedInstanceState) {
>super.onCreate(savedInstanceState);
>setTheme(android.R.style.Theme_Dialog);
>inputbox=(EditText)findViewById(R.id.editor);
>inputbox.setText("");
>ans=(TextView)findViewById(R.id.msg);
>Button b = (Button)findViewById(R.id.b);
>
>b.setOnClickListener(new Button.OnClickListener()
>{
>public void onClick(View v)
> {
>ans.setText("WelCome"+inputbox.getText());
>inputbox.setText("");
> }
>});
>setContentView(R.layout.main);
> }
>
> }
>
>
>
> and
> main. xml file is  as below
> 
> http://schemas.android.com/apk/res/android";
>android:orientation="vertical"
>android:layout_width="fill_parent"
>android:layout_height="wrap_content"
>android:paddingLeft="8px"
>android:paddingRight="8px"
>>
>android:layout_width="wrap_content"
>android:layout_height="wrap_content"
>android:orientation="vertical">
> android:layout_width="fill_parent"
>android:layout_height="wrap_content"
>android:text="Enter Your Name:-"
>/>
>  android:layout_width="fill_parent"
>android:layout_height="50px"
>android:capitalize="sentences"
>android:layout_weight="1" >
>   
> 
>
>  android:layout_width="wrap_content"
> android:layout_height="wrap_content"
> android:layout_weight="10"
> android:layout_alignParentRight="false"
> android:layout_marginLeft="100px"
> android:text="Display" />
>   android:text="HelloRupesh"
>  android:layout_width="wrap_content"
>  android:layout_height="wrap_content" />
>android:layout_width="wrap_content"
> android:layout_height="wrap_content"
> android:layout_below="@id/b"
> android:layout_toLeftOf="@id/b"
> android:layout_alignTop="@id/b"
> android:src="@android:drawable/sym_action_call" />
>
>  android:src="@drawable/x"
>   android:adjustViewBounds="true"
>   android:maxWidth="30mm"
>   android:maxHeight="600mm"
>   android:layout_width="wrap_content"
>   android:layout_height="wrap_content" />
>  android:layout_width="fill_parent"
> android:layout_height="0dip"
> android:layout_weight="1" >
>android:layout_width="fill_parent"
>android:layout_height="fill_parent"
>android:drawSelectorOnTop="true"/>
>   android:layout_width="fill_parent"
>android:layout_height="fill_parent"
>android:text="dfgffhg"/>
>
>  
> 
>
>
> But when we run the project it gives the error as ::: This application
> has stopped nexpectedly. plese try again.
>
> I want soltion of this problem plz help me.
>
> >
>

--~--~-~--~~~---~--~~
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: Image listing

2008-09-18 Thread Megha Joshi
Check out the sample code for ListView with Photos and ListView with
checkboxes at ApiDemos/Views/Lists/Single choice list,
ApiDemos/Views/Lists/Photos.
Perhaps you can merge the two to display images in list format with
checkbox.


2008/9/18 Pratik Goswami <[EMAIL PROTECTED]>

>
> Hello friends.
> I have to develop an application in which user can upload to their
> photos to social networks. But i m facing problem, I will have to show
> all images from phone memory and from sd card in list format with
> checkbox, thumbnail and paging facility. I m new to android. Can any
> one give me sample code or link for that?
>
> Thanks...
> Pratik
>
> >
>

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

2008-09-18 Thread Megha Joshi
Unfortunately, the GTalkService APIs have been removed from the sdk for
security reasons.

2008/9/18 Song <[EMAIL PROTECTED]>

> Hi
>  I plan to develop a GTalk client base on Android SDK 0.9 Bata, but I
> can not find the document about GTalkService in the sdk. When I look
> backward the earlier sdk, I found the GTalkService API have changed a lot.
> So there is anyone can give me a suggestion? Where can I find more document
> or reference to GTalkService?
>
> --
> Best 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]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Recorder Sound

2008-09-18 Thread Megha Joshi
You can use the various MediaRecorder.setXXX() methods.
http://code.google.com/android/reference/android/media/MediaRecorder.html

Only audio recording APIs are available in the sdk. For sample code check
out the SoundRecordingDemo in Files section.


2008/9/18 ZIN <[EMAIL PROTECTED]>

>
> I want to control some recording parameters. Can anyone tell me more
> detail about the function of this Anroid SDK.
> 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: Notifications from file system

2008-09-17 Thread Megha Joshi
This feature is not implemented, please log a feature request in the public
issue tracker.
As a workaround, you could use a ContentProvider for the files you are
interested in.
Set ContentObserver on the ContentProvider. Every time the file is
added/deleted, add/delete the corresponding _data entry in the
ContentProvider.

2008/9/17 indra <[EMAIL PROTECTED]>

>
> Hi,
>
> Is there any way out by which we can get the change/modify
> notifications on file system.
> I want to get notifications from SD CARD, like we do on the databases
> applying ContentObservers.
> Pls help.
>
> Thanks and Regards,
> Indra
>
> >
>

--~--~-~--~~~---~--~~
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 when running SoundRecordingAPISample of Megha

2008-09-17 Thread Megha Joshi
Seems like you haven't installed sdcard on the emulator before trying this
demo. You must be seeing a sdcard access error in the logcat.
Please install the sdcard and try again. For instructions on how to do that
see below:
http://code.google.com/android/reference/emulator.html#sdcard

2008/9/17 ZIN <[EMAIL PROTECTED]>

>
> I have downloaded this project, and try running it in Android
> Emulator.
> When i click on the StopRecording Button, an alert appears :" process
> com.android.samples.audio has stopped unexpectedly ".
> I wonder there is a problem in this project.
> Can someone help me to fix that?
>
> Thanks,
>
> >
>

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



[android-developers] Re: Intercept incoming call

2008-09-17 Thread Megha Joshi
2008/9/17 friedger <[EMAIL PROTECTED]>

>
> I could imagine an application that accepts a call when the user
> presses a button like "I am rushing out of the meeting, hang on
> another second." Instead of me wispering into the phone, the caller
> gets a proper response.
>
> So there is no way to do that, currently?


Unfortunately, no, because you can't intercept an incoming call . Could you
log a feature  request in the public issue tracker? Thanks!

>
>
> Friedger
>
> On 17 Sep., 20:22, kstamm <[EMAIL PROTECTED]> wrote:
> > Now now, we were told the Android was the first open source phone all
> > the way down to the hardware.  I expect call reception capability!
> > It's the only thing that sets it apart from other smartphones.
> >
> > On Sep 17, 10:35 am, Charlie Collins <[EMAIL PROTECTED]>
> > wrote:
> >
> > > I would disagree with the statement that this "should be" possible.
> > > User's expect a call to work like a call which works like a call and
> > > that would be sort of like a call ;).
> >
> > > I think the idea is that certain key functions of the phone - calling,
> > > and going to the home screen - usurp other functions. All non built-in
> > > key functions, e.g. applications, are still equal, but yes a few key
> > > functions have a higher priority - by design (and I think a good
> > > design, it would get really confusing for users if every app was
> > > allowed to intercept calls and do different things with them, IMO).
> >
> > > On Sep 17, 3:45 am, Tauno T <[EMAIL PROTECTED]> wrote:
> >
> > > > I wonder if this will be possible on real devices? It should be
> > > > according to the "All applications are equal" statement but has
> anyone
> > > > further info regarding this?
> >
> > > > On Sep 17, 8:01 am, "Megha Joshi" <[EMAIL PROTECTED]> wrote:
> >
> > > > > Unfortunately, you cannot intercept incoming calls in the sdk.
> >
> > > > > 2008/9/16 sectrean <[EMAIL PROTECTED]>
> >
> > > > > > Hi,
> >
> > > > > > I'm trying to figure out how to intercept an incoming call, but
> I'm
> > > > > > not able to find much documentation on how I would do this.
> >
> > > > > > I would like to be able to display a custom dialog to accept or
> reject
> > > > > > the call.
> >
> >
> >
>

--~--~-~--~~~---~--~~
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: Preloading map in MapView

2008-09-17 Thread Megha Joshi
No, this isn't going to be supported in the final version for legal reasons.

2008/9/17 <[EMAIL PROTECTED]>

>
> Is there any chance that it's gonna be supported in the final sdk?
> Think there are many applications that would profit from this
> feature...
>
>
>
> On Sep 16, 9:58 pm, "Megha Joshi" <[EMAIL PROTECTED]> wrote:
> > 2008/9/16 <[EMAIL PROTECTED]>
> >
> >
> >
> > > Hi, I want to preload a part of a map in MapView so that I can do e.g.
> > > routing in an area without data connection. The preloaded area should
> > > have the size of an average downtown area... I know that there's the
> > > preload() function, which preloads the map at the current center, but
> > > I don't think that it has the desired coverage I need. Is there any
> > > other way to preload larger map areas in detail?
> >
> > Unfortunately, this feature is not supported in the sdk.
> >
> >
> >
> > > 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: Video playback in Android emulator

2008-09-17 Thread Megha Joshi
Could you send your 3gp file and the logcat output to debug this further?

2008/9/17 Anil Sasidharan <[EMAIL PROTECTED]>

> Hi,
>I'm getting the following exception when a 3gp file playback is
> attempted from /sdcard using the MediaPlayer sample application (part of
> ApiDemos).
>
> error: Prepare failed.: status=0xFFFC
> java.io.IOException: Prepare failed.: status=0xFFFC
>
>
> Android emulator has been invoked using the following command:
>
> emulator -sdcard lib/images/sdcard.img -shell
>
> The image "sdcard.img" has been created using the mksdcard tool. The video
> file "output.3gp" is placed under the /sdcard directory (adb-pushed to
> /sdcard). The variable "path" in MediaPlayerdemo_Video.java is set as
> "/sdcard/output.3gp" and the method "setDataSource" is invoked with this
> parameter.
>
> However the application throws error while trying to palyback the video
> file. Please share your thoughts on this.
>
> Warm Regards,
> Anil
>
>
>
> On Wed, Sep 17, 2008 at 2:21 PM, Megha Joshi <[EMAIL PROTECTED]> wrote:
>
>>
>>
>> 2008/9/17 Megha Joshi <[EMAIL PROTECTED]>
>>
>>> Set the path to  /sdcard/
>>>
>>> 2008/9/17 Anil <[EMAIL PROTECTED]>
>>>
>>>
>>>> I've done this, how about the path to be given to MediaPlayer's
>>>> setMediaSource() method?
>>>
>>>
>> Perhaps you meant setDataSource(path), not setMediaSource()...
>>
>>>
>>>>
>>>> On Sep 17, 10:36 am, "Megha Joshi" <[EMAIL PROTECTED]> wrote:
>>>> > You should install a sdcard on the emulator and then push the file to
>>>> > /sdcard dir.
>>>> >
>>>> > 2008/9/16 Anil <[EMAIL PROTECTED]>
>>>> >
>>>> >
>>>> >
>>>> > > Hi,
>>>> >
>>>> > > Can someone briefly explain the method to playback a 3GP
>>>> > > video in the Android emulator. Where should I push this file using
>>>> > > adb? What should be the path given in the VideoViewDemo.java file?
>>>> >
>>>> > > Warm Regards,
>>>> > > Anil
>>>>
>>>>
>>>
>>
>>
>>
>
> >
>

--~--~-~--~~~---~--~~
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: SqlLite!!???

2008-09-17 Thread Megha Joshi
To add, for an example of using SQLite, you can refer to how NotePad
tutorial uses SQLiteDB.
http://code.google.com/android/intro/tutorial.html

2008/9/17 Peli <[EMAIL PROTECTED]>

>
> > Beside Sqlite... any alternative way to store data???
>
> Here are some alternatives:
> http://code.google.com/android/devel/data.html
>
> If you want other applications to access your data, the best way is
> still to use ContentProviders on top of an sql database.
>
> 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]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Video playback in Android emulator

2008-09-17 Thread Megha Joshi
2008/9/17 Megha Joshi <[EMAIL PROTECTED]>

> Set the path to  /sdcard/
>
> 2008/9/17 Anil <[EMAIL PROTECTED]>
>
>
>> I've done this, how about the path to be given to MediaPlayer's
>> setMediaSource() method?
>
>
Perhaps you meant setDataSource(path), not setMediaSource()...

>
>>
>> On Sep 17, 10:36 am, "Megha Joshi" <[EMAIL PROTECTED]> wrote:
>> > You should install a sdcard on the emulator and then push the file to
>> > /sdcard dir.
>> >
>> > 2008/9/16 Anil <[EMAIL PROTECTED]>
>> >
>> >
>> >
>> > > Hi,
>> >
>> > > Can someone briefly explain the method to playback a 3GP
>> > > video in the Android emulator. Where should I push this file using
>> > > adb? What should be the path given in the VideoViewDemo.java file?
>> >
>> > > Warm Regards,
>> > > Anil
>> >>
>>
>

--~--~-~--~~~---~--~~
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: Video playback in Android emulator

2008-09-17 Thread Megha Joshi
Set the path to  /sdcard/

2008/9/17 Anil <[EMAIL PROTECTED]>

>
> I've done this, how about the path to be given to MediaPlayer's
> setMediaSource() method?
>
> On Sep 17, 10:36 am, "Megha Joshi" <[EMAIL PROTECTED]> wrote:
> > You should install a sdcard on the emulator and then push the file to
> > /sdcard dir.
> >
> > 2008/9/16 Anil <[EMAIL PROTECTED]>
> >
> >
> >
> > > Hi,
> >
> > > Can someone briefly explain the method to playback a 3GP
> > > video in the Android emulator. Where should I push this file using
> > > adb? What should be the path given in the VideoViewDemo.java file?
> >
> > > Warm Regards,
> > > Anil
> >
>

--~--~-~--~~~---~--~~
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: Video playback in Android emulator

2008-09-16 Thread Megha Joshi
You should install a sdcard on the emulator and then push the file to
/sdcard dir.

2008/9/16 Anil <[EMAIL PROTECTED]>

>
> Hi,
>
> Can someone briefly explain the method to playback a 3GP
> video in the Android emulator. Where should I push this file using
> adb? What should be the path given in the VideoViewDemo.java file?
>
> Warm Regards,
> Anil
> >
>

--~--~-~--~~~---~--~~
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: Intercept incoming call

2008-09-16 Thread Megha Joshi
Unfortunately, you cannot intercept incoming calls in the sdk.

2008/9/16 sectrean <[EMAIL PROTECTED]>

>
> Hi,
>
> I'm trying to figure out how to intercept an incoming call, but I'm
> not able to find much documentation on how I would do this.
>
> I would like to be able to display a custom dialog to accept or reject
> the call.
>
> >
>

--~--~-~--~~~---~--~~
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 set Gallery align property?

2008-09-16 Thread Megha Joshi
Sorry I read center instead of left earlier...its seems android:gravity and
android:layout_gravity don't have much effect to get the effect you are
trying to get.
However setting android:scrollX = 100dp, achieves the desired effect, ie.
moves the first gallery item towards the left end.

2008/9/16 dailyLife <[EMAIL PROTECTED]>

>  My Style is below. Is  right?
> http://schemas.android.com/apk/res/android";
>  android:orientation="vertical" android:layout_width="fill_parent"
>  android:layout_height="fill_parent">
> android:layout_width="fill_parent"
>   android:layout_height="wrap_content" android:text="@string/weather"
>   android:paddingTop="6dip" android:paddingBottom="2dip"
>   android:paddingLeft="3dp" android:paddingRight="3dp"
>   android:gravity="center" />
> android:layout_width="fill_parent" android:paddingTop="1dip"
>   android:paddingBottom="1dip" android:paddingLeft="10dp"
>   android:paddingRight="10dp" android:layout_gravity="left"
>   android:layout_height="wrap_content" android:gravity="left" />
> android:layout_width="fill_parent"
>   android:layout_height="wrap_content" android:paddingTop="6dip"
>   android:paddingBottom="3dip" android:paddingLeft="3dp"
>   android:paddingRight="3dp" android:text="@string/hot_message" />
>     android:layout_width="fill_parent" android:paddingTop="6dip"
>   android:paddingBottom="3dip" android:paddingLeft="3dp"
>   android:paddingRight="3dp" android:layout_height="wrap_content"
>   android:text="@string/below_message" />
> 
>
>
> [EMAIL PROTECTED]<[EMAIL PROTECTED]>
> 2008年9月17日
>
> - Original Message -
> *From: *Megha Joshi <[EMAIL PROTECTED]>
> *To: *android-developers 
> *Sent: *2008-09-17, 05:41:20
> *Subject: *[android-developers] Re: How to set Gallery align property?
>
>
> Are you setting android:layout_gravity = "center_horizontal" for your
> Gallery view?
>
> 2008/9/16 dailyLife <[EMAIL PROTECTED]>
>
>>  Hi,All.
>>   When l set the Gallery align left,But Result is also in center.please
>> look at the E-mail attachments.
>>   I will be obliged by your help.
>> Thanks.
>> Goto
>>
>>
>>
>>
>>
> >
>

--~--~-~--~~~---~--~~
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: Incoming Call Event

2008-09-16 Thread Megha Joshi
Unfortunately, these features are not supported in the sdk. Though you will
be able to intercept outgoing calls in sdk 1.0 using
ACTION_NEW_OUTGOING_CALL.

2008/9/16 Pulkit Arora <[EMAIL PROTECTED]>

>
> I am searching of, How to inject an audio file's (which is stored in
> the SD Card) content into an active call ( like if i have some part of
> my earlier conversation stored in my phone somewhere, how can i play
> it in the call on runtime so that the person at the other side of the
> call can listen it )
>

> Also, can i override the incoming call event and show customized
> dialog box ( made by me ) on the screen ? ( it could contain the
> Reject or Answer buttons with some backend functionalities )
>
> I will be obliged by your help.
>
> Pulkit Arora
>
> >
>

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



[android-developers] Re: How to set Gallery align property?

2008-09-16 Thread Megha Joshi
Are you setting android:layout_gravity = "center_horizontal" for your
Gallery view?

2008/9/16 dailyLife <[EMAIL PROTECTED]>

>  Hi,All.
>   When l set the Gallery align left,But Result is also in center.please
> look at the E-mail attachments.
>   I will be obliged by your help.
> Thanks.
> Goto
>
>
>
> >
>

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



[android-developers] Re: eclipse project opening problem

2008-09-16 Thread Megha Joshi
2008/9/16 Jeff <[EMAIL PROTECTED]>

>
> Sorry for the question but I still don't get it and no one replied on
> the beginners site.
>
> I can create a project, build all, run the project, but I can not open
> a project.  Most of the time both the open/close project menu are
> disabled. Sometimes I can close the project, but not always.  I don't
> get it.


This seems like a problem in your eclipse installation, and is not specific
to android. Can you close/open non-android projects?
You won't be able to open a project, unless you closed it previously.


>
> Is there a good manual on this tool??
>
> running Version: 3.3.2
> Build id: M20080221-1800
>
> Thanks for the help!!!
>
> >
>

--~--~-~--~~~---~--~~
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: Preloading map in MapView

2008-09-16 Thread Megha Joshi
2008/9/16 <[EMAIL PROTECTED]>

>
> Hi, I want to preload a part of a map in MapView so that I can do e.g.
> routing in an area without data connection. The preloaded area should
> have the size of an average downtown area... I know that there's the
> preload() function, which preloads the map at the current center, but
> I don't think that it has the desired coverage I need. Is there any
> other way to preload larger map areas in detail?


Unfortunately, this feature is not supported in the sdk.

>
>
> 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: Is it possible to tell OS that Activity behind a translucent activity no longer needs to be drawn?

2008-09-16 Thread Megha Joshi
2008/9/15 Gary <[EMAIL PROTECTED]>

>
> I am using translucent activities in my app
> (windowIsTranslucent=true).  However, the android OS always assumes
> that every activity behind the translucent activity is visible.  As
> the programmer, I know that some activities are not actually visible
> and can be safely be stopped and not redrawn.
>
> It would be nice if there was a mechanism for me to programmatically
> set an Activity to the stopped state.  This allows the system to
> reclaim resources that it otherwise could not (such as the surface for
> a MapActivity).


Did you try calling finish() on the Activity that you want to stop?


>
>
> Any help would be much appreciated.  Thanks!
>
> >
>

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



[android-developers] Re: what the hell is these errors to my emulator bootup every time??

2008-09-14 Thread Megha Joshi
2008/9/14 Nickname <[EMAIL PROTECTED]>

>
> Thanks, Megha & God!
>
> Is it reasonable to make these non-critical scary errors as warnings?
>

Yes, could you please log a bug in the public issue tracker for this.

>
> On Sep 13, 5:39 pm, "Megha Joshi" <[EMAIL PROTECTED]> wrote:
> > 2008/9/13 Nickname <[EMAIL PROTECTED]>
> >
> >
> >
> > > And, what is /etc/gps.conf stuff? is it critical? how to fix the
> > > problem?
> >
> > > Looks scary
> >
> > gps.conf error is not critical...this file is not needed for the mock gps
> > feature on emulator. So you can ignore this error.
> >
> >
> >
> > > (attached error log)
> >
> > >
> ---
> >
> > > 09-13 17:28:03.009: ERROR/mountd(20): could not read initial mass
> > > storage state
> > > 09-13 17:29:47.819: ERROR/MemoryHeapBase(52): error opening /dev/pmem:
> > > No such file or directory
> > > 09-13 17:29:48.050: ERROR/SurfaceFlinger(52): Couldn't open /sys/
> > > android_power/wait_for_fb_sleep or /sys/android_power/wait_for_fb_wake
> > > 09-13 17:29:48.369: ERROR/GLLogger(52): couldn't load 
> > > library (Cannot find library)
> > > 09-13 17:29:49.910: ERROR/GLLogger(52): couldn't load 
> > > library (Cannot find library)
> > > 09-13 17:30:51.270: ERROR/BatteryService(52): Could not open '/sys/
> > > class/power_supply/usb/online'
> > > 09-13 17:30:51.339: ERROR/BatteryService(52): Could not open '/sys/
> > > class/power_supply/battery/batt_vol'
> > > 09-13 17:30:51.358: ERROR/BatteryService(52): Could not open '/sys/
> > > class/power_supply/battery/batt_temp'
> > > 09-13 17:30:54.029: ERROR/EventHub(52): could not get driver version
> > > for /dev/input/mouse0, Not a typewriter
> > > 09-13 17:30:54.099: ERROR/EventHub(52): could not get driver version
> > > for /dev/input/mice, Not a typewriter
> > > 09-13 17:30:55.030: ERROR/System(52): Failure starting core service
> > > 09-13 17:30:55.030: ERROR/System(52): java.lang.SecurityException
> > > 09-13 17:30:55.030: ERROR/System(52): at
> > > android.os.BinderProxy.transact(Native Method)
> > > 09-13 17:30:55.030: ERROR/System(52): at
> > > android.os.ServiceManagerProxy.addService(ServiceManagerNative.java:
> > > 146)
> > > 09-13 17:30:55.030: ERROR/System(52): at
> > > android.os.ServiceManager.addService(ServiceManager.java:72)
> > > 09-13 17:30:55.030: ERROR/System(52): at
> > > com.android.server.ServerThread.run(SystemServer.java:151)
> > > 09-13 17:30:55.219: ERROR/AndroidRuntime(52): Crash logging skipped,
> > > no checkin service
> > > 09-13 17:31:01.809: ERROR/GpsLocationProvider(52): Could not open GPS
> > > configuration file /etc/gps.conf
> > > 09-13 17:31:01.809: ERROR/GpsLocationProvider(52):
> > > java.io.FileNotFoundException: /etc/gps.conf
> > > 09-13 17:31:01.809: ERROR/GpsLocationProvider(52): at
> > > org.apache.harmony.luni.platform.OSFileSystem.open(OSFileSystem.java:
> > > 227)
> > > 09-13 17:31:01.809: ERROR/GpsLocationProvider(52): at
> > > java.io.FileInputStream.(FileInputStream.java:76)
> > > 09-13 17:31:01.809: ERROR/GpsLocationProvider(52): at
> >
> > >
> com.android.internal.location.GpsLocationProvider.(GpsLocationProvider.java:
> > > 179)
> > > 09-13 17:31:01.809: ERROR/GpsLocationProvider(52): at
> >
> > >
> com.android.server.LocationManagerService._loadProvidersNoSync(LocationManagerService.java:
> > > 312)
> > > 09-13 17:31:01.809: ERROR/GpsLocationProvider(52): at
> >
> > >
> com.android.server.LocationManagerService.loadProvidersNoSync(LocationManagerService.java:
> > > 296)
> > > 09-13 17:31:01.809: ERROR/GpsLocationProvider(52): at
> >
> > >
> com.android.server.LocationManagerService.loadProviders(LocationManagerService.java:
> > > 289)
> > > 09-13 17:31:01.809: ERROR/GpsLocationProvider(52): at
> >
> > >
> com.android.server.LocationManagerService.(LocationManagerService.java:
> > > 403)
> > > 09-13 17:31:01.809: ERROR/GpsLocationProvider(52): at
> > > com.android.server.ServerThread.run(SystemServer.java:225)
> > > 09-13 17:31:01.919: ERROR/AndroidRuntime(52): Crash logging skipped,
> > > no checkin service
> > > 09-13 17:31:31.380: ERROR/jdwp(94): Failed sending reply to debugger:
> > > Broken pipe
> > > 09-13 17:31:32.089: ERROR/jdwp(94): ERROR: bad handshake ''
> >
> >
>
> >
>

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



[android-developers] Re: what the hell is these errors to my emulator bootup every time??

2008-09-13 Thread Megha Joshi
2008/9/13 Nickname <[EMAIL PROTECTED]>

>
> And, what is /etc/gps.conf stuff? is it critical? how to fix the
> problem?
>
> Looks scary


gps.conf error is not critical...this file is not needed for the mock gps
feature on emulator. So you can ignore this error.



>
> (attached error log)
>
> ---
>
> 09-13 17:28:03.009: ERROR/mountd(20): could not read initial mass
> storage state
> 09-13 17:29:47.819: ERROR/MemoryHeapBase(52): error opening /dev/pmem:
> No such file or directory
> 09-13 17:29:48.050: ERROR/SurfaceFlinger(52): Couldn't open /sys/
> android_power/wait_for_fb_sleep or /sys/android_power/wait_for_fb_wake
> 09-13 17:29:48.369: ERROR/GLLogger(52): couldn't load 
> library (Cannot find library)
> 09-13 17:29:49.910: ERROR/GLLogger(52): couldn't load 
> library (Cannot find library)
> 09-13 17:30:51.270: ERROR/BatteryService(52): Could not open '/sys/
> class/power_supply/usb/online'
> 09-13 17:30:51.339: ERROR/BatteryService(52): Could not open '/sys/
> class/power_supply/battery/batt_vol'
> 09-13 17:30:51.358: ERROR/BatteryService(52): Could not open '/sys/
> class/power_supply/battery/batt_temp'
> 09-13 17:30:54.029: ERROR/EventHub(52): could not get driver version
> for /dev/input/mouse0, Not a typewriter
> 09-13 17:30:54.099: ERROR/EventHub(52): could not get driver version
> for /dev/input/mice, Not a typewriter
> 09-13 17:30:55.030: ERROR/System(52): Failure starting core service
> 09-13 17:30:55.030: ERROR/System(52): java.lang.SecurityException
> 09-13 17:30:55.030: ERROR/System(52): at
> android.os.BinderProxy.transact(Native Method)
> 09-13 17:30:55.030: ERROR/System(52): at
> android.os.ServiceManagerProxy.addService(ServiceManagerNative.java:
> 146)
> 09-13 17:30:55.030: ERROR/System(52): at
> android.os.ServiceManager.addService(ServiceManager.java:72)
> 09-13 17:30:55.030: ERROR/System(52): at
> com.android.server.ServerThread.run(SystemServer.java:151)
> 09-13 17:30:55.219: ERROR/AndroidRuntime(52): Crash logging skipped,
> no checkin service
> 09-13 17:31:01.809: ERROR/GpsLocationProvider(52): Could not open GPS
> configuration file /etc/gps.conf
> 09-13 17:31:01.809: ERROR/GpsLocationProvider(52):
> java.io.FileNotFoundException: /etc/gps.conf
> 09-13 17:31:01.809: ERROR/GpsLocationProvider(52): at
> org.apache.harmony.luni.platform.OSFileSystem.open(OSFileSystem.java:
> 227)
> 09-13 17:31:01.809: ERROR/GpsLocationProvider(52): at
> java.io.FileInputStream.(FileInputStream.java:76)
> 09-13 17:31:01.809: ERROR/GpsLocationProvider(52): at
>
> com.android.internal.location.GpsLocationProvider.(GpsLocationProvider.java:
> 179)
> 09-13 17:31:01.809: ERROR/GpsLocationProvider(52): at
>
> com.android.server.LocationManagerService._loadProvidersNoSync(LocationManagerService.java:
> 312)
> 09-13 17:31:01.809: ERROR/GpsLocationProvider(52): at
>
> com.android.server.LocationManagerService.loadProvidersNoSync(LocationManagerService.java:
> 296)
> 09-13 17:31:01.809: ERROR/GpsLocationProvider(52): at
>
> com.android.server.LocationManagerService.loadProviders(LocationManagerService.java:
> 289)
> 09-13 17:31:01.809: ERROR/GpsLocationProvider(52): at
>
> com.android.server.LocationManagerService.(LocationManagerService.java:
> 403)
> 09-13 17:31:01.809: ERROR/GpsLocationProvider(52): at
> com.android.server.ServerThread.run(SystemServer.java:225)
> 09-13 17:31:01.919: ERROR/AndroidRuntime(52): Crash logging skipped,
> no checkin service
> 09-13 17:31:31.380: ERROR/jdwp(94): Failed sending reply to debugger:
> Broken pipe
> 09-13 17:31:32.089: ERROR/jdwp(94): ERROR: bad handshake ''
>
> >
>

--~--~-~--~~~---~--~~
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 re-use the photo picker activity in my application

2008-09-12 Thread Megha Joshi
2008/9/12 Nickname <[EMAIL PROTECTED]>

>
> More thanks, Megha.
>
> One more problem: when i try to push a photo file from my XP directory
> to /sdcard directory where taken photos seem have been stored, the
> following errors show up. Could you please take time to elaborate them
> and instruct me how to fix it, because i need to add a few "non-
> factory" photos there so that i can take some screen shots of my
> application to convice potential investors ^_^


Please include the steps /commands you used and the  errorlog.

>
>
>
> On Sep 12, 12:05 pm, "Megha Joshi" <[EMAIL PROTECTED]> wrote:
> > 2008/9/12 Nickname <[EMAIL PROTECTED]>
> >
> >
> >
> > > Thanku, Megha!
> >
> > > One more question: does that mean camera cannot work without sdcard
> > > installed?
> >
> > Yes, you cannot use camera to capture pictures without installing sdcard.
> >
> >
> >
> > > On Sep 11, 10:23 am, "Megha Joshi" <[EMAIL PROTECTED]> wrote:
> > > > 2008/9/11 Nickname <[EMAIL PROTECTED]>
> >
> > > > > *** HELP ***
> >
> > > > > I followed Cheryl Sedota's sample code to reuse photo picker
> activity.
> > > > > The activity showed up, but... there is no photos to verify it.
> >
> > > > > Can anyone please teach me WHERE and HOW to MAUNUALLY add photos to
> > > > > Android repository so that Android photo pick activity can pick??
> >
> > > > One of the ways to test this manually..is to launch the emulator with
> > > > sdcard. Then launch the  camera app, hit the center dpad button to
> take a
> > > > picture.
> > > > Then you will see this picture in the photo picker.
> >
> > > > > Thanks! Thanks!!!
> >
> > > > > On Sep 10, 2:41 pm, Nickname <[EMAIL PROTECTED]> wrote:
> > > > > > It seems I have missed this stuff, which is what i desperately
> need!
> >
> > > > > > Where can I find the documentation on this photo picker activity?
> >
> > > > > > Thanks for any information!!
> >
> > > > > > On Aug 29, 12:49 pm, Cheryl Sedota <[EMAIL PROTECTED]>
> wrote:
> >
> > > > > > > Hi, I have some code that attempts to invoke
> thephotopickeractivity
> > > > > > > for result.  I can successfully launch thephotopickeractivity,
> but
> > > > > > > my activity does not receive a result at all
> (onActivityResult() is
> > > > > > > never called).  Can anyone help?  Thanks!!! - Cheryl
> >
> > > > > > > @Override
> > > > > > > public void onCreate(Bundle savedInstanceState)
> > > > > > > {
> > > > > > > super.onCreate(savedInstanceState);
> > > > > > > setContentView(R.layout.main);
> >
> > > > > > > Button button = (Button)
> findViewById(R.id.pick_button);
> > > > > > > button.setOnClickListener(new View.OnClickListener()
> > > > > > > {
> >
> > > > > > > @Override
> > > > > > > public void onClick(View view)
> > > > > > > {
> > > > > > > Log.i(TAG, "Trying to start thephotopicker
> > > > > > > activity");
> >
> > > > > > > Intent photoPickerIntent = new
> > > > > > > Intent(Intent.ACTION_PICK);
> > > > > > > // Intent photoPickerIntent = new
> > > > > > > // Intent(Intent.ACTION_GET_CONTENT);
> > > > > > > photoPickerIntent.setType("image/*");
> > > > > > > startActivityForResult(photoPickerIntent, 1);
> >
> > > > > > > }
> > > > > > > });
> > > > > > >  }
> >
> > > > > > > @Override
> > > > > > > protected void onActivityResult(int i, int j, Intent
> intent)
> > > > > > > {
> > > > > > > super.onActivityResult(i, j, intent);
> >
> > > > > > > // TODO: figure out why this method never gets invoked
> > > > > > > Log.i(TAG, "Got the result: " +
> intent.getDataString());
> > > > > > > }
> >
> >
>
> >
>

--~--~-~--~~~---~--~~
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 change data in emulator, which is set in android:label in AndroidManifest.xml file.

2008-09-12 Thread Megha Joshi
Use setTitle():
http://code.google.com/android/reference/android/app/Activity.html#setTitle(int)

2008/9/12 Billsen <[EMAIL PROTECTED]>

>
> Hi,
>
> As an Android application is started in emulator, The text specified
> in android:label of AndroidManifest.xml file will be displayed in the
> top-right corner of emulator. I need to change the text dynamically,
> meaning as clicking a button, the text will be changed. How to do
> this.
>
> Thanks,
> Senshan
>
> >
>

--~--~-~--~~~---~--~~
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: SoundRecordingAPISample to save audio in Internal Storage

2008-09-12 Thread Megha Joshi
2008/9/12 blindfold <[EMAIL PROTECTED]>

>
> Hi Megha,
>
> Yes, by generated media content I mean content that is not some fixed
> material that is already stored somewhere on the device or on some
> remote server, but that is created on-the-fly in response to user
> actions or sensor inputs (e.g., camera input). One may typically think
> of a byte array or its corresponding stream being filled with
> calculated (synthesized) content, meant to played by MediaPlayer. This
> is not possible with the MediaPlayer APIs in Android SDK 0.9 beta. The
> problem was reported and discussed as issue 739. Additionally, I have
> today on android-internals posted concern about possible detrimental
> effects on device lifetime for media-intensive processing of generated
> content that currently requires this temporary storage on (flash) SD
> card or (flash) internal memory.
>

The sdcard access might be faster, but it depends on the particular sdcard.
Only way to know for sure is to measure it.


> Regards
>
> On Sep 12, 8:36 pm, "Megha Joshi" <[EMAIL PROTECTED]> wrote:
> > 2008/9/12 blindfold <[EMAIL PROTECTED]>
> >
> >
> >
> > > Which is expected to be faster: internal storage or sdcard?
> > > I'm currently temporarily saving content to internal storage
> > > because MediaPlayer cannot play generated content from memory,
> >
> > Could you clarify what you count as generated content and memory?
>
> >
>

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



[android-developers] Re: create map

2008-09-12 Thread Megha Joshi
2008/9/12 Peterman <[EMAIL PROTECTED]>

>
> Hi
>
> I was working with the old sdk of android but when I updated my sdk I
> have problems to draw maps. When I execute the line setContentView to
> show the map I have the follow error :
>
> 09-12 10:19:57.213: ERROR/MapActivity(732): Couldn't get connection
> factory client


Check out the tips to fix MapView crashes in the porting m5->0.9 doc:
http://groups.google.com/group/android-developers/web/m5-to-0-9-porting-and-migration-tips
*

*

>
>
>
> Somebody Knows what's the problem?
> Can somebody give me a piece of code of example ?
>
> 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: WebView display nothing with TabHost

2008-09-12 Thread Megha Joshi
It seems like you won't get the proper hook into the WebView for changing
its contents on load, if you load tab's content by id.
I was able to make this work using TabContentFactory. For sample code see
the ApiDemos/Views/Tabs sample.
On subsequent tab clicks you could change the content dynamically using
OnTabChangeListener.

2008/9/12 elephantbug <[EMAIL PROTECTED]>

>
> Hi,
>
> The LoadAllLegalText is not a blocking call or different thread.  The
> TOC has been initialized when it is loaded.
>
> I tried following code even:
> legalText = (WebView)findViewById(R.id.legal_view);
> legalText.loadData("boo",
> mimeType,
> encoding);
>
> Still nothing displayed..
>
>
> On Sep 11, 8:56 pm, "Megha Joshi" <[EMAIL PROTECTED]> wrote:
> > 2008/9/11 elephantbug <[EMAIL PROTECTED]>
> >
> >
> >
> >
> >
> > > Hi,
> >
> > > The WebView shows nothing the very first time, however, if you switch
> > > to other TAB and return back, everything is displayed.
> >
> > > Here is my XML file:
> > > ++
> > > 
> >
> > > http://schemas.android.com/apk/res/
> > > android"
> > >android:layout_width="fill_parent"
> > >android:layout_height="fill_parent"
> > >android:orientation="vertical"
> > >android:gravity="center">
> >
> > > > >android:id="@android:id/tabhost"
> > >android:layout_width="fill_parent"
> > >android:layout_height="wrap_content">
> >
> > > > >android:id="@android:id/tabs"
> > >android:layout_width="wrap_content"
> > >android:layout_height="wrap_content"/>
> >
> > > > >android:id="@android:id/tabcontent"
> > >android:layout_width="fill_parent"
> > >android:layout_height="450px"
> > >android:paddingTop="60px">
> >
> > > > >android:id="@+id/legal_layout"
> > >android:orientation="vertical"
> > >android:layout_width="fill_parent"
> > >android:layout_height="400px">
> >
> > > > >android:id="@+id/scroll"
> > >android:layout_width="fill_parent"
> > >android:layout_height="350px"
> > >android:background="@drawable/silver">
> >
> > > > >android:id="@+id/legal_view"
> > >android:layout_width="fill_parent"
> > >android:layout_height="350px"
> > >android:minHeight="350dp"
> > >android:textColor="@drawable/dark"
> > >android:padding = "3dip"
> > >android:paddingLeft = "3dip"
> > >android:paddingRight = "3dip"
> > >android:paddingTop = "3dip"
> > >android:paddingBottom = "3dip"
> > >android:text="test"/>
> > >
> >
> > > > >android:orientation="horizontal"
> > >android:layout_width="fill_parent"
> > >android:layout_height="wrap_content"
> > >android:paddingTop = "3dip"
> > >android:gravity="center">
> >
> > > > >android:id = "@+id/button_accept"
> > >android:layout_width="wrap_content"
> > >android:layout_height="wrap_content"
> > >android:text="@string/button_accept_text"/>
> >

[android-developers] Re: How to re-use the photo picker activity in my application

2008-09-12 Thread Megha Joshi
2008/9/12 Nickname <[EMAIL PROTECTED]>

>
> Thanku, Megha!
>
> One more question: does that mean camera cannot work without sdcard
> installed?


Yes, you cannot use camera to capture pictures without installing sdcard.

>
>
>
> On Sep 11, 10:23 am, "Megha Joshi" <[EMAIL PROTECTED]> wrote:
> > 2008/9/11 Nickname <[EMAIL PROTECTED]>
> >
> >
> >
> > > *** HELP ***
> >
> > > I followed Cheryl Sedota's sample code to reuse photo picker activity.
> > > The activity showed up, but... there is no photos to verify it.
> >
> > > Can anyone please teach me WHERE and HOW to MAUNUALLY add photos to
> > > Android repository so that Android photo pick activity can pick??
> >
> > One of the ways to test this manually..is to launch the emulator with
> > sdcard. Then launch the  camera app, hit the center dpad button to take a
> > picture.
> > Then you will see this picture in the photo picker.
> >
> >
> >
> > > Thanks! Thanks!!!
> >
> > > On Sep 10, 2:41 pm, Nickname <[EMAIL PROTECTED]> wrote:
> > > > It seems I have missed this stuff, which is what i desperately need!
> >
> > > > Where can I find the documentation on this photo picker activity?
> >
> > > > Thanks for any information!!
> >
> > > > On Aug 29, 12:49 pm, Cheryl Sedota <[EMAIL PROTECTED]> wrote:
> >
> > > > > Hi, I have some code that attempts to invoke thephotopickeractivity
> > > > > for result.  I can successfully launch thephotopickeractivity, but
> > > > > my activity does not receive a result at all (onActivityResult() is
> > > > > never called).  Can anyone help?  Thanks!!! - Cheryl
> >
> > > > > @Override
> > > > > public void onCreate(Bundle savedInstanceState)
> > > > > {
> > > > > super.onCreate(savedInstanceState);
> > > > > setContentView(R.layout.main);
> >
> > > > > Button button = (Button) findViewById(R.id.pick_button);
> > > > > button.setOnClickListener(new View.OnClickListener()
> > > > > {
> >
> > > > > @Override
> > > > > public void onClick(View view)
> > > > > {
> > > > > Log.i(TAG, "Trying to start thephotopicker
> > > > > activity");
> >
> > > > > Intent photoPickerIntent = new
> > > > > Intent(Intent.ACTION_PICK);
> > > > > // Intent photoPickerIntent = new
> > > > > // Intent(Intent.ACTION_GET_CONTENT);
> > > > > photoPickerIntent.setType("image/*");
> > > > > startActivityForResult(photoPickerIntent, 1);
> >
> > > > > }
> > > > > });
> > > > >  }
> >
> > > > > @Override
> > > > > protected void onActivityResult(int i, int j, Intent intent)
> > > > > {
> > > > > super.onActivityResult(i, j, intent);
> >
> > > > > // TODO: figure out why this method never gets invoked
> > > > > Log.i(TAG, "Got the result: " + intent.getDataString());
> > > > > }
> >
> >
>
> >
>

--~--~-~--~~~---~--~~
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: SoundRecordingAPISample to save audio in Internal Storage

2008-09-12 Thread Megha Joshi
2008/9/12 blindfold <[EMAIL PROTECTED]>

>
> Which is expected to be faster: internal storage or sdcard?
> I'm currently temporarily saving content to internal storage
> because MediaPlayer cannot play generated content from memory,


Could you clarify what you count as generated content and memory?


> but the speed and power penalty of doing so on physical phones
> remains unclear.
>
> On Sep 12, 1:35 am, "Megha Joshi" <[EMAIL PROTECTED]> wrote:
> > The recommended practice is to only store : ringtones, alarm and
> > notification sound audio files in internal storage. Rest of the media
> files
> > should be stored on sdcard.
>
> >
>

--~--~-~--~~~---~--~~
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: MediaRecord Audio - working example? / raw data stream onPictureTaken()? / Bug in Pictures application?

2008-09-12 Thread Megha Joshi
Is the file being modified after its added to the database? That can lead to
lose of meta data. We are adding all the fields  to the contentvalues while
adding this file, except for modification date. I don't think adding that
should change much...but please try that too...

Make sure that the file is not modified after being added to the database.
If you get the same results, you may want to log a bug in the public issue
tracker.

2008/9/12 code_android_festival_way <[EMAIL PROTECTED]>

>
> I've added it now to a playlist and restarted the emulator which leads
> me to the same result. The songs inside the new playlist lost its meta
> data again.
>
> Regards!
>
> On 12 Sep., 00:26, "Megha Joshi" <[EMAIL PROTECTED]> wrote:
> > 008/9/9 code_android_festival_way <[EMAIL PROTECTED]>
> >
> >
> >
> > > Thank you for you answer. I've added the additional parameter to the
> > > values and this works now. But the problem with the restart and the
> > > lose of meta information is still there. At the moment I am recording
> > > something and the meta information is added to the database which can
> > > be seen in the music app. But after restarting the emulator the meta
> > > information is gone and I dont really know why.
> >
> > Could you try adding the file to a playlist before restarting the
> emulator ?
> >
> >
> >
> > > Regards!
> >
> > > On 8 Sep., 23:09, "Megha Joshi" <[EMAIL PROTECTED]> wrote:
> > > > You need to add this to the contentvalues:
> >
> > > > values.put(MediaStore.Audio.Media.IS_MUSIC, "1");
> >
> > > > if you want the newly added files to appear in the Album, Artists
> > > sections
> > > > of the Music app.
> >
> > > > 2008/9/8 code_android_festival_way <[EMAIL PROTECTED]>
> >
> > > > > I got a problem with the audio recording. I am able to record audio
> > > > > and play the recorded file with the music app.
> >
> > > > > This looks like this:
> >
> > > > >http://img.skitch.com/20080908-m5yaiyqh7jugcub5p5pmmna2ee.jpg
> >
> > > > > You can see that the meta information is available. But the only
> point
> > > > > where the audio file shows up is in the recently added music
> playlist.
> > > > > In the artist or album section I cant find anything.
> >
> > > > > Now I'm restarting the emulator and get the following result in the
> > > > > music app:
> >
> > > > >http://img.skitch.com/20080908-825exr6mcqt82dm2idkwpwa7xh.jpg
> >
> > > > > You can see that the recorded file is showing up now in the Artist
> > > > > column but without the meta information. I am able to play the file
> > > > > which looks like this:
> >
> > > > >http://img.skitch.com/20080908-jsgf8yghnkdg8241rsqyweje78.jpg
> >
> > > > > But even there the meta information is lost.
> >
> > > > > Here is my code for adding the values:
> >
> > > > >http://paste.pocoo.org/show/fMHzaLRCwEG49qAkpvYh/
> >
> > > > > Here is my code for recording:
> >
> > > > >http://paste.pocoo.org/show/P6UWFE2rtj0qIB1dh9vQ/
> >
> > > > > So I dont really know what I'm doing wrong here.
> >
> > > > > I'm really looking forward getting some kind of help from you.
> >
> > > > > Regards!
> >
> > > > > 09-08 11:09:29.035: ERROR/MediaPlayerService(25): Couldn't open fd
> for
> > > > > content://media/external/audio/media/33
> >
> > > > > On 2 Sep., 22:35, code_android_festival_way
> > > > > <[EMAIL PROTECTED]> wrote:
> > > > > > Thank you very much for offering the sample code.
> >
> > > > > > On 2 Sep., 22:16, "Megha Joshi" <[EMAIL PROTECTED]> wrote:
> >
> > > > > > >  Please refer to theaudioRecording sample code at the link
> below:
> > > > > > >  http://groups.google.com/group/android-developers/files
> >
> > > > > > > 2008/8/31 code_android_festival_way <
> [EMAIL PROTECTED]>
> >
> > > > > > > > Did you get theAudiorecording managed right now?
> >
> > > > > > > > I'm getting the same error again after adding all the fields.
> It
> > > > > would
> > > > > > > > be pret

[android-developers] Re: WebView display nothing with TabHost

2008-09-11 Thread Megha Joshi
2008/9/11 elephantbug <[EMAIL PROTECTED]>

>
> Hi,
>
> The WebView shows nothing the very first time, however, if you switch
> to other TAB and return back, everything is displayed.
>
> Here is my XML file:
> ++
> 
>
> http://schemas.android.com/apk/res/
> android"
>android:layout_width="fill_parent"
>android:layout_height="fill_parent"
>android:orientation="vertical"
>android:gravity="center">
>
>android:id="@android:id/tabhost"
>android:layout_width="fill_parent"
>android:layout_height="wrap_content">
>
>android:id="@android:id/tabs"
>android:layout_width="wrap_content"
>android:layout_height="wrap_content"/>
>
>android:id="@android:id/tabcontent"
>android:layout_width="fill_parent"
>android:layout_height="450px"
>android:paddingTop="60px">
>
>android:id="@+id/legal_layout"
>android:orientation="vertical"
>android:layout_width="fill_parent"
>android:layout_height="400px">
>
>android:id="@+id/scroll"
>android:layout_width="fill_parent"
>android:layout_height="350px"
>android:background="@drawable/silver">
>>
>android:id="@+id/legal_view"
>android:layout_width="fill_parent"
>android:layout_height="350px"
>android:minHeight="350dp"
>android:textColor="@drawable/dark"
>android:padding = "3dip"
>android:paddingLeft = "3dip"
>android:paddingRight = "3dip"
>android:paddingTop = "3dip"
>android:paddingBottom = "3dip"
>android:text="test"/>
>
>
>android:orientation="horizontal"
>android:layout_width="fill_parent"
>android:layout_height="wrap_content"
>android:paddingTop = "3dip"
>android:gravity="center">
>
>android:id = "@+id/button_accept"
>android:layout_width="wrap_content"
>android:layout_height="wrap_content"
>android:text="@string/button_accept_text"/>
>
>android:id = "@+id/button_cancel"
>android:layout_width="wrap_content"
>android:layout_height="wrap_content"
>android:text="@string/button_cancel_text"/>
>
>
>
>
>
>
>
>
>
>
> 
> here is part of my code for onCreate:
>
>//load gloabl asset
>loadAllLegalText();


If loadAllLegalText() is something that puts data into TOC below, is it a
blocking call?  You may want to check if TOC actually contains data when you
call loadData()..

>
>
>//init the view
>setContentView(R.layout.legal);
>
>tabHost = (TabHost) findViewById(android.R.id.tabhost);
>tabHost.setup();
>
>legalText = (WebView)findViewById(R.id.legal_view);
>legalText.getSettings().setJavaScriptEnabled(true);
>legalText.loadData(TOC, mimeType, encoding);
>
>Resources rs = getResources();
>tabHost.addTab(tabHost.newTabSpec(TAG_LEGAL_TOC)
>
>  .setIndicator(rs.getText(R.string.legal_tab_indicator_toc))
>.setContent(R.id.legal_layout));
>
>tabHost.addTab(tabHost.newTabSpec(TAG_LEGAL_NOTICE)
>
>  .setIndicator(rs.getText(R.string.legal_tab_indicator_legal))
>.setContent(R.id.legal_layout));
>
>tabHost.addTab(tabHost.newTabSpec(TAG_LEGAL_PRIVACY)
>
>  .setIndicator(rs.getText(R.string.legal_tab_indicator_privacy))
>.setContent(R.id.legal_layout));
>
>..
>//set focus
>tabHost.setOnTabChangedListener(this);
>tabHost.setCurrentTabByTag(TAG_LEGAL_TOC);
>
>
> +++
>
> There is one thread about WebView display nothing and I tried their
> suggestion, none works...
>
> Anyone has any clue? or it is Android's bug.
>
> http://code.google.com/p/android/issues/detail?id=678
>
> http://

[android-developers] Re: apps

2008-09-11 Thread Megha Joshi
2008/9/11 beflok <[EMAIL PROTECTED]>

>
>
> > Can you explain a bit more, its not clear what you are trying to do. Do
> you
> > have a website that you want to view on android?
> > Or do you have an exe? You can't run a non-android exe ..you will have to
> > port your code to android.
>
> well it would be just a regular exe. a regular windows xp exe. not
> sure if thats even possible but im new to this just started using
> eclipse too.
>

You cannot run windows exe on android.

>
> >
>

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

2008-09-11 Thread Megha Joshi
2008/9/11 beflok <[EMAIL PROTECTED]>

>
> I wanted to make an application to run a poker site but im not sure
> even where to start. Is there maybe a template you would know that
> could run just an exe file through adroid?


Can you explain a bit more, its not clear what you are trying to do. Do you
have a website that you want to view on android?
Or do you have an exe? You can't run a non-android exe ..you will have to
port your code to android.


>
> >
>

--~--~-~--~~~---~--~~
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: SoundRecordingAPISample to save audio in Internal Storage

2008-09-11 Thread Megha Joshi
The recommended practice is to only store : ringtones, alarm and
notification sound audio files in internal storage. Rest of the media files
should be stored on sdcard.

2008/9/11 haig <[EMAIL PROTECTED]>

>
> I have looked at the SoundRecording API example, and it can save audio
> to an sdcard.
>
> I would like to save the audio in internal storage, like /data/data/
> /files/.
>
> Is there a reason why this might not be possible? Any tips will help
>
> >
>

--~--~-~--~~~---~--~~
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: MediaRecord Audio - working example? / raw data stream onPictureTaken()? / Bug in Pictures application?

2008-09-11 Thread Megha Joshi
008/9/9 code_android_festival_way <[EMAIL PROTECTED]>

>
> Thank you for you answer. I've added the additional parameter to the
> values and this works now. But the problem with the restart and the
> lose of meta information is still there. At the moment I am recording
> something and the meta information is added to the database which can
> be seen in the music app. But after restarting the emulator the meta
> information is gone and I dont really know why.


Could you try adding the file to a playlist before restarting the emulator ?


>
> Regards!
>
> On 8 Sep., 23:09, "Megha Joshi" <[EMAIL PROTECTED]> wrote:
> > You need to add this to the contentvalues:
> >
> > values.put(MediaStore.Audio.Media.IS_MUSIC, "1");
> >
> > if you want the newly added files to appear in the Album, Artists
> sections
> > of the Music app.
> >
> > 2008/9/8 code_android_festival_way <[EMAIL PROTECTED]>
> >
> >
> >
> > > I got a problem with the audio recording. I am able to record audio
> > > and play the recorded file with the music app.
> >
> > > This looks like this:
> >
> > >http://img.skitch.com/20080908-m5yaiyqh7jugcub5p5pmmna2ee.jpg
> >
> > > You can see that the meta information is available. But the only point
> > > where the audio file shows up is in the recently added music playlist.
> > > In the artist or album section I cant find anything.
> >
> > > Now I'm restarting the emulator and get the following result in the
> > > music app:
> >
> > >http://img.skitch.com/20080908-825exr6mcqt82dm2idkwpwa7xh.jpg
> >
> > > You can see that the recorded file is showing up now in the Artist
> > > column but without the meta information. I am able to play the file
> > > which looks like this:
> >
> > >http://img.skitch.com/20080908-jsgf8yghnkdg8241rsqyweje78.jpg
> >
> > > But even there the meta information is lost.
> >
> > > Here is my code for adding the values:
> >
> > >http://paste.pocoo.org/show/fMHzaLRCwEG49qAkpvYh/
> >
> > > Here is my code for recording:
> >
> > >http://paste.pocoo.org/show/P6UWFE2rtj0qIB1dh9vQ/
> >
> > > So I dont really know what I'm doing wrong here.
> >
> > > I'm really looking forward getting some kind of help from you.
> >
> > > Regards!
> >
> > > 09-08 11:09:29.035: ERROR/MediaPlayerService(25): Couldn't open fd for
> > > content://media/external/audio/media/33
> >
> > > On 2 Sep., 22:35, code_android_festival_way
> > > <[EMAIL PROTECTED]> wrote:
> > > > Thank you very much for offering the sample code.
> >
> > > > On 2 Sep., 22:16, "Megha Joshi" <[EMAIL PROTECTED]> wrote:
> >
> > > > >  Please refer to theaudioRecording sample code at the link below:
> > > > >  http://groups.google.com/group/android-developers/files
> >
> > > > > 2008/8/31 code_android_festival_way <[EMAIL PROTECTED]>
> >
> > > > > > Did you get theAudiorecording managed right now?
> >
> > > > > > I'm getting the same error again after adding all the fields. It
> > > would
> > > > > > be pretty nice to have a working example. Because from the docs I
> > > > > > can't decide which fields are required and which are just
> optional.
> >
> > > > > > Regards!
> >
> > > > > > On 28 Aug., 07:16, Reto Meier <[EMAIL PROTECTED]> wrote:
> > > > > > > Hi Justin,
> > > > > > >   I've tried explicitly including the display name (and artist
> and
> > > > > > > album) into the new ContentValue but still end up with exactly
> the
> > > > > > > same error on the ContentResolver.insert call.
> >
> > > > > > > On Aug 27, 10:56 pm, "Justin (Google Employee)" <
> [EMAIL PROTECTED]>
> > > > > > > wrote:
> >
> > > > > > > > > Error:
> >
> > > > > > > > > 08-24 19:27:18.675: ERROR/Database(178): Error inserting
> > > > > > title=Content
> > > > > > > > > Creation No.5 date_added=1219598838 _display_name=
> album_id=2
> > > > > > > > > title_key=  -  E  C  O  1  C  O -
> > > > > > > > > K  1  )  O  9  E  C C  E  &„   artist_id=3 using INSE

[android-developers] Re: Eclipse Emulator Question

2008-09-11 Thread Megha Joshi
Can you post your logcat output?

2008/9/11 Rich Tretola <[EMAIL PROTECTED]>

> I have the samples setup within Eclipse 3.4 and the emulator will launch on
> the samples but it doesn't do anything except show ANDROID_ on screen. I
> have tried it on both my Mac and PC and get the same results. Any ideas?
>
> Rich
>
> >
>

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

2008-09-11 Thread Megha Joshi
2008/9/11 Ed Burnette <[EMAIL PROTECTED]>

>
> I tried taking the /system/bin/sqlite3 from the M5 version and
> installing it into 0.9_beta but it didn't work. I ran the M5-rc15
> emulator with -wipe-data, used adb pull to get the program, ran the
> 0.9_beta emulator with -wipe-data, ran adb remount to make /system
> read write, used adb push to upload sqlite3 to /system/bin, used adb
> shell chmod 777 /system/bin/sqlite3 to make it executable, and then
> tried to run it in an adb shell. Unfortunately it just returned
> immediately with no errors or output.
>

I don't think you can upload sqlite3 to adb shell and make it work.
But you should be able to add sqlite3 in tools dir to 0.9 windows sdk from
the previous m5 sdk.
Or you could download sqlite3 windows binary from the web.


> When you say this "will be fixed in the next release" do you mean (a)
> that the Android system image will include a working /system/bin/
> sqlite3 that you can run with adb shell (like M5 had), or do you mean
> (b) that there will be a Windows (or Linux or Mac) binary installed on
> the development computer as part of the SDK?
>


Yes both.  Sorry for not being specific enough.


> Also... is there an issue number for tracking this? A quick search
> didn't turn up one.


There is an internal bug for tracking this... it will be fixed in the next
release.


> Thanks,
> --Ed
>
> On Aug 19, 11:09 pm, "Megha Joshi" <[EMAIL PROTECTED]> wrote:
> > It seems windows sdk is missing tools/sqlite3 which will be fixed in the
> > next release. For the time being if you use Linux, you will find
> > tools/sqlite3.
> >
> > On Tue, Aug 19, 2008 at 7:31 PM, Brad Larson <[EMAIL PROTECTED]> wrote:
> >
> > > I'm using windows, although I have access to a linux box if that is
> > > needed
> >
> > > On Aug 19, 5:27 pm, "Megha Joshi" <[EMAIL PROTECTED]> wrote:
> > > > Which OS are you using?
> >
> > > > On Tue, Aug 19, 2008 at 3:15 PM, Brad Larson <[EMAIL PROTECTED]>
> wrote:
> >
> > > > > Thank you for the reply Magha.  I can't find anything related to
> > > > > sqlite in the tools directory.  Could you please provide more
> > > > > information?
> >
> > > > > Thanks!
> > > > > -Brad
> >
> > > > > On Aug 19, 4:52 pm, "Megha Joshi" <[EMAIL PROTECTED]> wrote:
> > > > > > You cab use sqlite3 from the sdk tools directory directly...
> >
> > > > > > On Tue, Aug 19, 2008 at 2:26 PM, Brad Larson <[EMAIL PROTECTED]
> >
> > > wrote:
> >
> > > > > > > Has the sqlite3 command line tool been removed from 0.9beta?  I
> > > > > > > haven't been able to find anything in the documentation, but I
> do
> > > get
> > > > > > > sqlite3: not found from the shell.  This was a useful debug
> tool...
> > > if
> > > > > > > it has been removed, is there anything to replace it?
> >
> > > > > > > Thanks,
> > > > > > > Brad
> >
>

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

2008-09-11 Thread Megha Joshi
2008/9/11 EMA <[EMAIL PROTECTED]>

>
> Hi,
>
> I've an application whose flow should be like this:
>
> 1) Start Activity to listen to some telephony events
> 2) On receive of these events, display a menu to
> 3) get user input on the menu
> 4) perform some action
> 5) done go back to 1
>
> I do this by creating a listener of events in Activity A. On receipt
> of Events I start a new activity for
> showing Menu. But I find that menu doesn't wait for user inputs and
> goes off immediately.


Its difficult to find what is going wrong...could you post your code?


>
> I've not implemented any onPause() or onResume().
>
> May I know what should be done?
>
>
>
> >
>

--~--~-~--~~~---~--~~
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 re-use the photo picker activity in my application

2008-09-11 Thread Megha Joshi
2008/9/11 Nickname <[EMAIL PROTECTED]>

>
> *** HELP ***
>
> I followed Cheryl Sedota's sample code to reuse photo picker activity.
> The activity showed up, but... there is no photos to verify it.
>
> Can anyone please teach me WHERE and HOW to MAUNUALLY add photos to
> Android repository so that Android photo pick activity can pick??


One of the ways to test this manually..is to launch the emulator with
sdcard. Then launch the  camera app, hit the center dpad button to take a
picture.
Then you will see this picture in the photo picker.


>
> Thanks! Thanks!!!
>
> On Sep 10, 2:41 pm, Nickname <[EMAIL PROTECTED]> wrote:
> > It seems I have missed this stuff, which is what i desperately need!
> >
> > Where can I find the documentation on this photo picker activity?
> >
> > Thanks for any information!!
> >
> > On Aug 29, 12:49 pm, Cheryl Sedota <[EMAIL PROTECTED]> wrote:
> >
> > > Hi, I have some code that attempts to invoke thephotopickeractivity
> > > for result.  I can successfully launch thephotopickeractivity, but
> > > my activity does not receive a result at all (onActivityResult() is
> > > never called).  Can anyone help?  Thanks!!! - Cheryl
> >
> > > @Override
> > > public void onCreate(Bundle savedInstanceState)
> > > {
> > > super.onCreate(savedInstanceState);
> > > setContentView(R.layout.main);
> >
> > > Button button = (Button) findViewById(R.id.pick_button);
> > > button.setOnClickListener(new View.OnClickListener()
> > > {
> >
> > > @Override
> > > public void onClick(View view)
> > > {
> > > Log.i(TAG, "Trying to start thephotopicker
> > > activity");
> >
> > > Intent photoPickerIntent = new
> > > Intent(Intent.ACTION_PICK);
> > > // Intent photoPickerIntent = new
> > > // Intent(Intent.ACTION_GET_CONTENT);
> > > photoPickerIntent.setType("image/*");
> > > startActivityForResult(photoPickerIntent, 1);
> >
> > > }
> > > });
> > >  }
> >
> > > @Override
> > > protected void onActivityResult(int i, int j, Intent intent)
> > > {
> > > super.onActivityResult(i, j, intent);
> >
> > > // TODO: figure out why this method never gets invoked
> > > Log.i(TAG, "Got the result: " + intent.getDataString());
> > > }
>
> >
>

--~--~-~--~~~---~--~~
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: getFromLocation not returning street names

2008-09-11 Thread Megha Joshi
2008/9/7 Huebi <[EMAIL PROTECTED]>

>
> I am just wondering why the Geocoder does not return street names if I
> do reverse geocoding. Will that be added somewhen? Will it be
> available in the final version used on the phones?


The street names will be added soon to the resultsmostly they be added
by the time devices launched.

>
> >
>

--~--~-~--~~~---~--~~
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: Incomming Call

2008-09-10 Thread Megha Joshi
2008/9/10 Jose María González <[EMAIL PROTECTED]>

>
> The class PhoneStateIntentReceiver has been removed from the 0.9
> version, but it is possible to detect an incomming call:
>
> MyPhoneStateListener phoneListener=new MyPhoneStateListener();
> TelephonyManager telephonyManager
> =(TelephonyManager)getSystemService(TELEPHONY_SERVICE);
> telephonyManager.listen(phoneListener,
> PhoneStateListener.LISTEN_CALL_STATE);
>
> public class MyPhoneStateListener extends PhoneStateListener {
>Context context;
>@Override
>public void onCallStateChanged(int state,String incomingNumber){
> Log.e("PhoneCallStateNotified", "Incoming number
> "+incomingNumber);
>}
> }
>
> In the Incoming Call screen I would like to paint some picture, show
> some extra content.
> I don't want to intercept the incoming call, I just want to change the
> spash screen.
>

The screen is a part of Phone app and I don't think it is possible to change
that...because it is a inbuilt app.

>
> On 8 sep, 23:34, "Megha Joshi" <[EMAIL PROTECTED]> wrote:
> > 2008/9/8 Jose María González <[EMAIL PROTECTED]>
> >
> >
> >
> > > I want to make an application which recognices an incomming call and
> > > displays a CallerID and some usefull information.
> > > But haven't been able to find an intet-filter action which will call
> > > the correspond BroadCastReciver.
> > > Is it possible to intercept an incomming call from an application?
> >
> > For security reasons, you cannot intercept the incoming call in any way,
> > except for getting notified of an incoming call through
> > PhoneStateIntentReceiver.
> >
> > > I already have done it with SMS and it works.
> >
> > > Thanks.
> >
>

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



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

2008-09-09 Thread Megha Joshi
2008/9/9 [EMAIL PROTECTED] <[EMAIL PROTECTED]>

>
> Yes... I was trying to do that.
> I am creating ContentProvider which stores data in a table with (for
> now) only 2 fields:
> _id (unique identifier)
> _data (a String which stores the full path of the file)
> I was unable to call openInputStream or openOutputStream on the Uri
> cause of documentation was not notifying that it is necessary to
> override openFile method into ContentProvider.


Thanks for the pointer ...we will add this to the docs..

>
> Within the openFile method, I am manually executing a query to get the
> path of the file associated to the requested content and returning the
> ParcelFileDescriptor.


Yes that is the correct way ...

>
> Now it is working... Maybe I made something wrong with database
> declaration.
> That would be perfect if Google releases MediaProvider sources...
> I hope so.


I am not sure how  MediaProvider is relevant here...

>
>
> Resume:
> Create a content provider having _data field.
> Implement all the required methods.
> [* I don't know if I made something wrong with query method
> implementation] Override openFile method.
> You'll be able to load your content via
> WebViewElement.loadUrl("content://yourcontentprovider/#");


It will be helpful to everyone facing the same issue with displaying local
files in WebView,
if you could share your sample code.


> >
>

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



[android-developers] Re: send SMS

2008-09-09 Thread Megha Joshi
2008/9/9 De San Nicolas Jean Philippe <[EMAIL PROTECTED]>

> hello,
>
> no I using the m. Is it the reason?
>

Yes, please use the latest sdk and ADT plugin.

>
>
> thank's for the response...
>
> 2008/9/8 Megha Joshi <[EMAIL PROTECTED]>
>
>> Are you using the latest sdk 0.9?
>>
>> 2008/9/7 jphdsn <[EMAIL PROTECTED]>
>>
>>>
>>> hello, I'm a new french developer on android.
>>>
>>>
>>> I try the "SMSAPISample" but it doesn't work.
>>>
>>> "import android.app.PendingIntent" is not recognize.
>>>
>>> I 've take a look to the documentation and It seems that there is no
>>> other way to send SMS.
>>>
>>> Someone have tried and succeed with the sample or with another method?
>>>
>>> Someone have a response?  thank's
>>>
>>>
>>>
>>>
>>>
>>
>>
>>
>
> >
>

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

2008-09-08 Thread Megha Joshi
2008/9/8 [EMAIL PROTECTED] <[EMAIL PROTECTED]>

>
> At least the CameraAPISample.zip is broken.
>
> Unlike every other sample I have tried so far, this one does not
> correctly import into ADT-enabled Eclipse.
> It does not even get recognized as containing a project at all.
>
> Please Justin could you fix that?;-)


It works on my machine...are you using the latest 0.9 sdk?

>
>
> >
>

--~--~-~--~~~---~--~~
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: send SMS

2008-09-08 Thread Megha Joshi
Are you using the latest sdk 0.9?

2008/9/7 jphdsn <[EMAIL PROTECTED]>

>
> hello, I'm a new french developer on android.
>
>
> I try the "SMSAPISample" but it doesn't work.
>
> "import android.app.PendingIntent" is not recognize.
>
> I 've take a look to the documentation and It seems that there is no
> other way to send SMS.
>
> Someone have tried and succeed with the sample or with another method?
>
> Someone have a response?  thank's
>
>
>
> >
>

--~--~-~--~~~---~--~~
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: Open Browser from application with POST data attached.

2008-09-08 Thread Megha Joshi
2008/9/8 Baran <[EMAIL PROTECTED]>

>
> Hi,
>
> Any idea about how we can open a web browser through our android
> appoication with POST data attached to the requested uri.
>
> I am able to open a web page on the browser from the application using
> the Intent feature, but now I am wondering if this is possible to have
> POST data attached to the requested uri.


I am not clear on what you intend to do here...how can POST data be attached
to a URI? Do you mean GET data?

>
>
> Thanks in advance!!
> >
>

--~--~-~--~~~---~--~~
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: Incomming Call

2008-09-08 Thread Megha Joshi
2008/9/8 Jose María González <[EMAIL PROTECTED]>

>
> I want to make an application which recognices an incomming call and
> displays a CallerID and some usefull information.
> But haven't been able to find an intet-filter action which will call
> the correspond BroadCastReciver.
> Is it possible to intercept an incomming call from an application?


For security reasons, you cannot intercept the incoming call in any way,
except for getting notified of an incoming call through
PhoneStateIntentReceiver.


> I already have done it with SMS and it works.
>
> 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: Map synch problem

2008-09-08 Thread Megha Joshi
Not in 1.0, as per the MapActivity docs, only one MapActivity is supported
per process for now.


2008/9/8 Huebi <[EMAIL PROTECTED]>

>
> In the old SDK I already had the issue that if I call a subactivity
> displaying a map and the parent activity also displaying a map, after
> returning from the sub activity the map in the parent is not updated
> correctly (tiles are not loaded). This bug seems to be still existent.
> Any info on that? Will that be solved until 1.0 ?
> >
>

--~--~-~--~~~---~--~~
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: MediaRecord Audio - working example? / raw data stream onPictureTaken()? / Bug in Pictures application?

2008-09-08 Thread Megha Joshi
You need to add this to the contentvalues:

values.put(MediaStore.Audio.Media.IS_MUSIC, "1");

if you want the newly added files to appear in the Album, Artists sections
of the Music app.

2008/9/8 code_android_festival_way <[EMAIL PROTECTED]>

>
> I got a problem with the audio recording. I am able to record audio
> and play the recorded file with the music app.
>
> This looks like this:
>
> http://img.skitch.com/20080908-m5yaiyqh7jugcub5p5pmmna2ee.jpg
>
> You can see that the meta information is available. But the only point
> where the audio file shows up is in the recently added music playlist.
> In the artist or album section I cant find anything.
>
> Now I'm restarting the emulator and get the following result in the
> music app:
>
> http://img.skitch.com/20080908-825exr6mcqt82dm2idkwpwa7xh.jpg
>
> You can see that the recorded file is showing up now in the Artist
> column but without the meta information. I am able to play the file
> which looks like this:
>
> http://img.skitch.com/20080908-jsgf8yghnkdg8241rsqyweje78.jpg
>
> But even there the meta information is lost.
>
> Here is my code for adding the values:
>
> http://paste.pocoo.org/show/fMHzaLRCwEG49qAkpvYh/
>
> Here is my code for recording:
>
> http://paste.pocoo.org/show/P6UWFE2rtj0qIB1dh9vQ/
>
> So I dont really know what I'm doing wrong here.
>
> I'm really looking forward getting some kind of help from you.
>
> Regards!
>
>
>
> 09-08 11:09:29.035: ERROR/MediaPlayerService(25): Couldn't open fd for
> content://media/external/audio/media/33
>
> On 2 Sep., 22:35, code_android_festival_way
> <[EMAIL PROTECTED]> wrote:
> > Thank you very much for offering the sample code.
> >
> > On 2 Sep., 22:16, "Megha Joshi" <[EMAIL PROTECTED]> wrote:
> >
> > >  Please refer to theaudioRecording sample code at the link below:
> > >  http://groups.google.com/group/android-developers/files
> >
> > > 2008/8/31 code_android_festival_way <[EMAIL PROTECTED]>
> >
> > > > Did you get theAudiorecording managed right now?
> >
> > > > I'm getting the same error again after adding all the fields. It
> would
> > > > be pretty nice to have a working example. Because from the docs I
> > > > can't decide which fields are required and which are just optional.
> >
> > > > Regards!
> >
> > > > On 28 Aug., 07:16, Reto Meier <[EMAIL PROTECTED]> wrote:
> > > > > Hi Justin,
> > > > >   I've tried explicitly including the display name (and artist and
> > > > > album) into the new ContentValue but still end up with exactly the
> > > > > same error on the ContentResolver.insert call.
> >
> > > > > On Aug 27, 10:56 pm, "Justin (Google Employee)" <[EMAIL PROTECTED]>
> > > > > wrote:
> >
> > > > > > > Error:
> >
> > > > > > > 08-24 19:27:18.675: ERROR/Database(178): Error inserting
> > > > title=Content
> > > > > > > Creation No.5 date_added=1219598838 _display_name= album_id=2
> > > > > > > title_key=  -  E  C  O  1  C  O -
> > > > > > > K  1  )  O  9  E  C C  E  &„   artist_id=3 using INSERT
> INTO
> > > > > > > audio_meta(title, date_added, _display_name, album_id,
> title_key,
> > > > > > > artist_id) VALUES(?, ?, ?, ?, ?, ?);
> >
> > > > > > From the error it jumps out at me that you're not setting
> > > > > > MediaStore.Audio.Media.DISPLAY_NAME, which seems like its
> required.
> > > > > > Also, are you setting the ALBUM_ID and ARTIST_ID somehow or are
> they
> > > > > > encoded in the URI you're using?
> >
> > > > > > Cheers,
> > > > > > Justin
> > > > > > Android Team @ Google
> >
> > > > > > On Aug 24, 3:20 pm, code_android_festival_way
> >
> > > > > > <[EMAIL PROTECTED]> wrote:
> > > > > > > I've got two questions.
> >
> > > > > > > 1)
> > > > > > > Is there a working example for recordingaudiowith the
> > > > MediaRecorder?
> > > > > > > At the moment I'm using the following setup but it doesnt work:
> >
> > > > > > >http://paste.pocoo.org/show/83242/
> >
> > > > > > > Error:
> >
> > > > > > > 08-24 19:27:1

  1   2   3   4   5   >