[android-developers] Re: How to test if app is shown on Market for all screensizes

2009-12-18 Thread Justin (Google Employee)
The problem of some Milestone devices not seeing copy protected apps
is one we continue to work on addressing. We are working with the OEM
to resolve the root cause.

> You guys are funny. Android Market on HTC Tattoo does not show
> applications that do not implicitly declare that they support its
> screen. It definitely has nothing to do with CAMERA permission or
> whatsoever

This is false. As previously stated, *if* the app requires the
android.permission.CAMERA manifest, it *must* state that it does not
require autofocus in  in order to show on Tattoo. This
is because the camera permission, if granted, implies access to an
autofocus camera. The request must be modified to not require
autofocus with . Admittedly this is not as developer-
friendly as it could be, its the result of a lack of foresight in our
original design.

A separate issue is that apps that do not explicitly support
sdkVersion 4 or above will not be shown to Tattoo because it contains
a "small" screen. "small" screen devices did not exist before Android
1.6 (sdkVersion 4) and apps may break when shrunk to fit the smaller
screen. Apps declaring support for sdkVersion 4 or above will be
assumed to support small screens, unless stated otherwise in the
 element.

Regards,
Justin
Android Team @ Google

On Dec 9, 3:38 pm, Paul Turchenko  wrote:
> You guys are funny. AndroidMarketon HTC Tattoo does not show
> applications that do not implicitly declare that they support its
> screen. It definitely has nothing to do with CAMERA permission or
> whatsoever. I do agree that Google could post some clear explanations
> what exactly AndroidMarkettakes into account when he decides that
> application should not show up (I'm pretty sure that it's a server
> side of AndroidMarketwho makes these decisions). And it has nothing
> to do with device vendor since it just includes AndroidMarketin
> their firmwares.
>
> Please stop blaming phone vendors. Google is the only one to blame for
> Android Market behavior.
>
> On Nov 18, 11:58 am, blindfold  wrote:
>
> > Same thing with me, I have copy protection turned off in Android
> >Market.
>
> > It would be good now to get some feedback from Google or HTC on
> > whether it is a bug.
>
> > On Nov 18, 9:54 am, Klaus Kartou  wrote:
>
> > > We haven't turned copy protection on for ourapp, and it is still not
> > > visible on HTC Tattoo/HTC Dragon.
> > > Please, Google is this a known issue?
>
> > > On Tue, Nov 17, 2009 at 11:02 AM, Aspidoff  wrote:
> > > > I noticed this problem when the new Droid Eris came out. At first, i
> > > > started messing with minsdk and even lowered it to "2" but that didnt
> > > > fix it, the apps didnt show up in themarket. I ran through Verizon
> > > > and Sprint stores for days to try to get this to work.
>
> > > > I dont think Google people even know the problem exist. I am surprised
> > > > that this problem hasnt been fixed for such a long time now. Anyway,
> > > > the reason why you can 't see yourappon HTC Hero/Eris or any other
> > > > 1.5 phones is because you have copy protection set to "On". You can
> > > > turn this off in your developer console when logged in to your Android
> > > >Marketaccount and editing your application description/title
>
> > > > cheers!
>
> > > > On Nov 17, 1:19 am, Klaus Kartou  wrote:
> > > > > Is there any Google people that can shed some light on this issue?
>
> > > > > On Mon, Nov 16, 2009 at 4:42 PM, blindfold  > > > >wrote:
>
> > > > > > Thanks Phil!
>
> > > > > > Indeed this is very strange. As I understand it,allAndroid 1.6 apps
> > > > > > should by default be visible to HTC Tattoo on the AndroidMarket, and
> > > > > > use of the camera should not matter. I had even tested myappto show
> > > > > > OK on a 240x320 screen using the emulator, and cannot think of
> > > > > > anything else to correct. I was thinking of trying an empty 
> > > > > >  > > > > > screens> element in case documentation is ambiguous, but even so it
> > > > > > would not seem to make sense to have the CAMERA dependency. 
> > > > > > Hopefully
> > > > > > HTC or Android developers (Romain?) will figure it out soon, because
> > > > > > this kind ofmarketfragmentation seems unnecessary.
>
> > > > > > On Nov 16, 9:55 am, phil  wrote:
> > > > > > > Hi Blindfold,
>
> > > > > > > We were not able to find The vOICE for Android in theMarketon the
> > > > > > > Tattoo. But we found it on the HTC Magic in theMarket.
>
> > > > > > > Hope there will be a solution for this issue soon.
>
> > > > > > > On Nov 15, 8:21 am, blindfold  wrote:
>
> > > > > > > > OK, I didn't know that. My curiosity was triggered by Phil with 
> > > > > > > > the
> > > > > > > > suggested role of the CAMERA permission in having apps be 
> > > > > > > > visible
> > > > on
> > > > > > > > theMarket, which AFAIK should not have made any difference. 
> > > > > > > > Also,
> > > > > > > > android:minSdkVersion="4" (Android 1.6) according to 
> > > > > > > > documentation
> > > > > > > > implies thatallscreensizesa

[android-developers] Re: How to test if app is shown on Market for all screensizes

2009-12-01 Thread Justin (Google Employee)
To return to the original topic of apps with the CAMERA permission not
showing to Tattoo users, this is because you need to specify



in your manifest as per 
http://developer.android.com/guide/topics/manifest/uses-feature-element.html
. Tattoo does not include autofocus unlike all previous Android
devices. For this reason, you need to opt-in to being shown to devices
without autofocus. Likewise you can use uses-feature to specify that
you require autofocus.

The issue with Milestone not seeing copy protected apps is completely
separate. There may be some Milestone configurations that Market
doesn't know about yet and as they are foreign Market assumes they may
be unsafe to show copy protected apps to. We'll look into this. If
posters can respond with what carriers the users seeing issues are on,
that would be helpful.

Cheers,
Justin
Android Team @ Google

On Nov 27, 8:08 am, blindfold  wrote:
> Are you talking about Droid, Milestone or HTC Tattoo here?
>
> Thus far there seem to be 2 separate patterns: apps can be invisible
> on the Market for Droid and Milestone when copy protection is on, OR
> apps can be invisible on the Market for HTC Tattoo when the CAMERA
> permission is used.
>
> On Nov 27, 3:48 pm, Marcus  wrote:
>
>
>
> > Same with me.
>
> > App uses Camera, but is not copy protected.
>
> > supports-screens entries in manifest are there and "true".
>
> > minSDK=3
> > targetSDK=4

-- 
You received this message because you are subscribed to the Google
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: Can anyone tell me ONE app that shows up in Android Market on HTC Tattoo

2009-12-01 Thread Justin (Google Employee)
Sorry about that, I misspoke, the  tag is properly
placed. In that case your app should be presented to Tattoo users,
what's the name of it?

Cheers,
Justin
Android Team @ Google

On Dec 1, 12:50 pm, "Justin (Google Employee)" 
wrote:
> The issue is that your manifest file structure is incorrect.  screens> should be a child of . Does the SDK throw a compile-
> time warning? We should probably throw an error here though.
>
> Cheers,
> Justin
> Android Team @ Google
>
> On Nov 30, 9:29 pm, "tomei.ninge...@gmail.com"
>
>
>
>  wrote:
> > Hi Nemat,
>
> > Thanks a lot for your help!
>
> > I have an app that shows up on other Android phones but don't show up
> > on Android Market inTattoo. I tried following the Google
> > documentation as well as HTCs
>
> >      
> > http://android-developers.blogspot.com/2009/10/support-for-additional...
> >      http://developer.htc.com/htc_tattoo_developer.html
>
> > I already have
>
> >      >               android:targetSdkVersion="4" />
> >      >           android:largeScreens="true"
> >           android:normalScreens="true"
> >           android:smallScreens="true"
> >           android:anyDensity="true" />
> >      > uses- permission>
> >      > android:name="android.permission.WRITE_EXTERNAL_STORAGE"> > permission>
> >      > android:name="android.permission.ACCESS_NETWORK_STATE"> > permission>
>
> > but still my users report that they can't see my app. It's very
> > frustrating for me because I don't have aTattoophone.
>
> > If you have time, could you tell me the names of a few apps that show
> > up on yourTattoophone? I will download them on my own G1 phone and
> > examine their AndroidManifest file, to see what their "success story"
> > is. I didn't want to go down this path, but I really can't afford to
> > buy every phone out there to test compatibility.
>
> > Thanks!
>
> > On Nov 30, 9:01 pm, Nemat  wrote:
>
> > > Hi,
>
> > > I havetattoo.But I dont understand your problem.How can I help
> > > you
>
> > > Regards
> > > Nemat
>
> > > On Dec 1, 9:55 am, Dan Sherman  wrote:
>
> > > > Never bored, always working on new apps :)
>
> > > > On Mon, Nov 30, 2009 at 11:36 PM, tomei.ninge...@gmail.com <
>
> > > > tomei.ninge...@gmail.com> wrote:
> > > > > Why is this group full of people who want to make a statement about
> > > > > everything when they don't have anything to contribute? Are you really
> > > > > bored? Go get a life!
>
> > > > > On Nov 30, 8:10 pm, Dan Sherman  wrote:
> > > > > > But if you're switching your development efforts, why would you 
> > > > > > need the
> > > > > > names of apps?
>
> > > > > > Also, blatently stating that you're planning to pirate apps might 
> > > > > > not be
> > > > > the
> > > > > > best of ways to get help...
>
> > > > > > On Mon, Nov 30, 2009 at 11:06 PM, tomei.ninge...@gmail.com <
>
> > > > > > tomei.ninge...@gmail.com> wrote:
> > > > > > > My app is now showing up on HTCtattoo. Many people have complained
> > > > > > > about this and I don't see ANY response from Google.
>
> > > > > > > Google, you are PATHETIC!
>
> > > > > > > Could anyone who has aTattoopost the name of ONE (or preferably a
> > > > > > > few :-)  apps that can show up on HTCTattoo? I will pirate them 
> > > > > > > and
> > > > > > > copy their AndroidManifest file.
>
> > > > > > > My app uses only these 3 permissions:
>
> > > > > > >     > > > > > > android:name="android.permission.INTERNET"> > > > > > > permission>
> > > > > > >     > > > > > > android:name="android.permission.WRITE_EXTERNAL_STORAGE"> > > > > > > permission>
> > > > > > >     > > > > > > android:name="android.permission.ACCESS_NETWORK_STATE"> > > > > > > permission>
>
> > > > > > > And I say it again, Google, you are PATHETIC! Thank you for you 
> > > > > > > non-
> > > &

[android-developers] Re: Can anyone tell me ONE app that shows up in Android Market on HTC Tattoo

2009-12-01 Thread Justin (Google Employee)
The issue is that your manifest file structure is incorrect.  should be a child of . Does the SDK throw a compile-
time warning? We should probably throw an error here though.

Cheers,
Justin
Android Team @ Google

On Nov 30, 9:29 pm, "tomei.ninge...@gmail.com"
 wrote:
> Hi Nemat,
>
> Thanks a lot for your help!
>
> I have an app that shows up on other Android phones but don't show up
> on Android Market inTattoo. I tried following the Google
> documentation as well as HTCs
>
>      http://android-developers.blogspot.com/2009/10/support-for-additional...
>      http://developer.htc.com/htc_tattoo_developer.html
>
> I already have
>
>                    android:targetSdkVersion="4" />
>                android:largeScreens="true"
>           android:normalScreens="true"
>           android:smallScreens="true"
>           android:anyDensity="true" />
>      uses- permission>
>      android:name="android.permission.WRITE_EXTERNAL_STORAGE"> permission>
>      android:name="android.permission.ACCESS_NETWORK_STATE"> permission>
>
> but still my users report that they can't see my app. It's very
> frustrating for me because I don't have aTattoophone.
>
> If you have time, could you tell me the names of a few apps that show
> up on yourTattoophone? I will download them on my own G1 phone and
> examine their AndroidManifest file, to see what their "success story"
> is. I didn't want to go down this path, but I really can't afford to
> buy every phone out there to test compatibility.
>
> Thanks!
>
> On Nov 30, 9:01 pm, Nemat  wrote:
>
>
>
> > Hi,
>
> > I havetattoo.But I dont understand your problem.How can I help
> > you
>
> > Regards
> > Nemat
>
> > On Dec 1, 9:55 am, Dan Sherman  wrote:
>
> > > Never bored, always working on new apps :)
>
> > > On Mon, Nov 30, 2009 at 11:36 PM, tomei.ninge...@gmail.com <
>
> > > tomei.ninge...@gmail.com> wrote:
> > > > Why is this group full of people who want to make a statement about
> > > > everything when they don't have anything to contribute? Are you really
> > > > bored? Go get a life!
>
> > > > On Nov 30, 8:10 pm, Dan Sherman  wrote:
> > > > > But if you're switching your development efforts, why would you need 
> > > > > the
> > > > > names of apps?
>
> > > > > Also, blatently stating that you're planning to pirate apps might not 
> > > > > be
> > > > the
> > > > > best of ways to get help...
>
> > > > > On Mon, Nov 30, 2009 at 11:06 PM, tomei.ninge...@gmail.com <
>
> > > > > tomei.ninge...@gmail.com> wrote:
> > > > > > My app is now showing up on HTCtattoo. Many people have complained
> > > > > > about this and I don't see ANY response from Google.
>
> > > > > > Google, you are PATHETIC!
>
> > > > > > Could anyone who has aTattoopost the name of ONE (or preferably a
> > > > > > few :-)  apps that can show up on HTCTattoo? I will pirate them and
> > > > > > copy their AndroidManifest file.
>
> > > > > > My app uses only these 3 permissions:
>
> > > > > >     > > > > > android:name="android.permission.INTERNET"> > > > > > permission>
> > > > > >     > > > > > android:name="android.permission.WRITE_EXTERNAL_STORAGE"> > > > > > permission>
> > > > > >     > > > > > android:name="android.permission.ACCESS_NETWORK_STATE"> > > > > > permission>
>
> > > > > > And I say it again, Google, you are PATHETIC! Thank you for you non-
> > > > > > existence development support! I will switch my app to dead OSes 
> > > > > > like
> > > > > > Windows Mobile and Symbian, instead of wasting my time on a pile of
> > > > > > crap like yours!
>
> > > > > > --
> > > > > > You received this message because you are subscribed to the Google
> > > > > > 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 > > > > >  ­­cr...@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 > > >  ­­cr...@googlegroups.com>
> > > > For more options, visit this group at
> > > >http://groups.google.com/group/android-developers?hl=en-Hidequoted text -
>
> > > - Show quoted text -

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


[android-developers] Re: Is there a limit in the rtsp redirect

2009-11-23 Thread Justin (Google Employee)
Yes, there is a limit in order to prevent redirect loops. In 1.5 there
was no limit. After 1.5 I think the limit was set at 3 redirects, this
limit will be raised in future releases to 8 I believe.

Cheers,
Justin
Android Team @ Google

On Nov 4, 10:52 am, mjavadi  wrote:
> I am seeing an issue when usingrtspbased URLs on a wap site. If the
> rstp link has oneredirect, then it works and default video player
> plays the stream. If thertsplink redirects to anotherrtspserver
> and that server redirects to the final destination, then it does not
> play. Is there a limit in the # ofrtspredirects?

-- 
You received this message because you are subscribed to the Google
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: Unexpected Resumes Running Under 2.0

2009-11-12 Thread Justin (Google Employee)
Alexey,

Does that drawable exist for the configuration you're running on? (For
example, do you see the same behavior when running 2.0 on an HVGA,
mdpi browser).

Regards,
Justin
Android Team @ Google

On Nov 11, 7:08 pm, Alexey Volovoy  wrote:
> I have same issue cause by this line of code i onCreate();
> iconView.setImageResource(R.drawable.mylogor);
>
> On Oct 29, 9:18 pm, Nmix  wrote:
>
>
>
> > Ok, I found it -- it's my bug. Mark, you were partly right, and that
> > helped. It was related to the configuration. Here is the guilty code,
> > which is in onCreate():
>
> > mRes = getResources();
> > mConfig = mRes.getConfiguration();
> > mConfig.setToDefaults();      //Error here.
>
> > There should not be a call to setToDefaults(). I don't remember now
> > what I was thinking at the time, and the Android doc is very
> > uninformative for this method. Possibly I copied an example from
> > somewhere. Removing this line solved the problem.
>
> > Funny thing is that the bad code works fine pre-2.0 releases. However,
> > once I found it I carefully scoured the logcat on a 1.6 AVD and I did
> > find the same warning log spit out from the system process. Of course,
> > since nothing was broken and there was no way to relate the log to my
> > process, I had no idea.
>
> > I know now because it breaks in 2.0 by forcing a restart of the
> > activity that resembles a config change. I don't know if the 2.0
> > behavior is right or wrong since the write-up for setToDefaults() says
> > very little.
>
> > fadden: I did consider filing a bug, but that seemed premature when I
> > wasn't able to localize the problem. I didn't want to simply point to
> > the app on Android Market. Now the point is moot. Thanks.
>
> > On Oct 29, 7:04 pm, Nmix  wrote:
>
> > > Apart from a Log.d() that I just added to produce the logcat trace and
> > > the super call, there was just one line of code (an 'if' with a
> > > condition which isn't satisfied) which is pretty boring. Regardless, I
> > > commented that out. No change in behavior. Thanks for the suggestion,
> > > Mark, but I am beginning to think that something quite a bit more
> > > subtle is going on.
>
> > > Now I'm getting quite worried about when 2.0 shows up in OTA updates
> > > because it may/will break my app and I have no idea what to do. Up to
> > > 1.6 the app is solid as a rock.
>
> > > On Oct 29, 5:30 pm, Mark Murphy  wrote:
>
> > > > Nmix wrote:
> > > > > I did some additional testing on the 2.0 AVD, including numerous
> > > > > project cleans, compiling with 1.5, 1.6 and 2.0, and cutting out large
> > > > > swaths of code. The problem persists. Yet other apps I have work fine
> > > > > on 2.0.
>
> > > > > I peppered logs in each of the major life cycle methods I implement,
> > > > > and this is what I get:
> > > > > 10-29 20:33:23.561: DEBUG/tag(502): onCreate
> > > > > 10-29 20:33:24.271: DEBUG/tag(502): onResume
> > > > > 10-29 20:33:26.101: DEBUG/tag(502): onSaveInstanceState
> > > > > 10-29 20:33:26.214: DEBUG/tag(502): onPause
> > > > > 10-29 20:33:26.311: DEBUG/tag(502): onCreate
> > > > > 10-29 20:33:26.561: DEBUG/tag(502): onRestoreInstanceState
> > > > > 10-29 20:33:26.571: DEBUG/tag(502): onResume
> > > > > 10-29 20:33:27.081: DEBUG/tag(502): onSaveInstanceState
> > > > > 10-29 20:33:27.130: DEBUG/tag(502): onPause
> > > > > 10-29 20:33:27.211: DEBUG/tag(502): onCreate
> > > > > 10-29 20:33:27.601: DEBUG/tag(502): onRestoreInstanceState
> > > > > 10-29 20:33:27.611: DEBUG/tag(502): onResume
> > > > > 10-29 20:33:28.162: DEBUG/tag(502): onSaveInstanceState
> > > > > 10-29 20:33:28.201: DEBUG/tag(502): onPause
> > > > > 10-29 20:33:28.541: DEBUG/tag(502): onCreate
> > > > > 10-29 20:33:28.951: DEBUG/tag(502): onRestoreInstanceState
> > > > > 10-29 20:33:28.960: DEBUG/tag(502): onResume
> > > > > 10-29 20:33:29.631: DEBUG/FatCalc(502): onPause
>
> > > > > I finally kill it with the back key, though it sometimes takes a few
> > > > > tries because the timing is critical.
>
> > > > > Elsewhere in the log, I found something in the logs put out by the
> > > > > system process that from their timestamp may be correlated with the
> > > > > uninstall/install process initiated by ADB:
>
> > > > > 10-29 20:33:14.391: WARN/ResourceType(55): Resources don't contain
> > > > > package for resource number 0x7f06
> > > > > 10-29 20:33:14.461: WARN/ResourceType(55): Resources don't contain
> > > > > package for resource number 0x7f060001
>
> > > > > These correspond to string resources in the app, both of which appear
> > > > > to display normally when the app runs, in the momentary glimpses of
> > > > > the app's UI display before it gets destroyed.
>
> > > > > This really has me puzzled. Any help appreciated.
>
> > > > Something in your onResume() would appear to be triggering behavior
> > > > reminiscent of a screen rotation or other configuration change.
>
> > > > I'd start by commenting out everything in onResume() and seeing if the
> > > > problem persists.
>
> > > > --

[android-developers] Re: How to create multi-language application?

2009-09-24 Thread Justin (Google Employee)

Its actually not quite that bad, although nearly. You can create a new
create a new resources object, passing in the proper configuration
object to access all the resources for whatever configuration you
want. However, you'll then need to write the code to swap out the
appropriate resources. So, if you inflate a TextView that has
android:text set to a resource string, you'll need to load the
corresponding string from your custom Resources object.

Cheers,
Justin
Android Team @ Google

On Sep 18, 10:25 am, "tomei.ninge...@gmail.com"
 wrote:
> I readhttp://developer.android.com/guide/topics/resources/resources-i18n.html.
> But it shows how to localize your app for the currently selected
> locale of the phone. However, I want to add a "language" option into
> my own app, and allow the user to switch the UI language independent
> of the phone's locale setting.
>
> My currently solution is to manage a string table myself, and
> dynamically edit the text string of every UI element. However, this is
> rather tedious. Is there a better way?
>
> 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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Android append 2 image source files

2009-09-24 Thread Justin (Google Employee)

The general algorithm would be to load both images into Bitmaps, then
get the pixels of each Bitmap. Determine the image size you need to
combine the two and create a new Bitmap with these dimensions. Then
use setPixels to write the combined image into the Bitmap object and
finally write the combined image back to disk.

Cheers,
Justin
Android Team @ Google

On Sep 24, 7:40 am, Streets Of Boston  wrote:
> What is 'append'?
>
> Two images stitched together? One on the right, the other on the left?
> Or one above the other?
> Or one merged inside the other (overlay)
> What if they are of different size?
>
> You have to be more specific about what you ask :)
>
> On Sep 24, 4:51 am, Isuru danagalle  wrote:
>
> > Hi All,
> >      Anybody tried to append 2 jpeg files in android?
> > i.e: a.jpeg and b.jpeg sd be appended and sd give one c.jpeg image file
> > consist of both images.
>
> > Any idea?
>
> > Thanks
> > Isuru
>
>
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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 launch my app if some one browses any xml file

2009-09-24 Thread Justin (Google Employee)

Yes, you just need to define an ACTION_VIEW Intent filter for the
appropriate MIME type. Be **sure** to include the correct type(s) so
as to not improperly intercept content that you can't handle.

Cheers,
Justin
Android Team @ Google

On Sep 24, 5:33 am, Sujay Krishna Suresh 
wrote:
> On Thu, Sep 24, 2009 at 5:00 PM, manoj  wrote:
>
> > HI all,
>
> > I want your help for my app. The following is my new requirement.
>
> > I have written a rss reader app. Now my requirement is to launch the
> > app when we browse any xml/rss link. I mean if I type the xml/rss link
> > in the phone browser, then instead of showing the content, my app
> > should be launched.
>
> I think wat u r speakin abt is wat a plugin can do.
> I'm not sure if plugin development is even possible for android's browser.
> But wat u can try is have an intent-filer in your manifest consisting of
> action ACTION_VIEW and content-type application/xml.
> But 'm not very sure tat it'd work.
> U could chk its workin by using a file-browser(like the OI file manager)
> app, trying to view a xml/rss file stored in ur phone/sdcard.
>
>
>
> > can you please suggest me how to achieve it?
>
> > Thanks,
> > Manoj.
>
> --
> Regards,
> Sujay
> Jonathan 
> Swift
> - "May you live every day of your life."
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: ACTION_GET_CONTENT and Gallery

2009-09-24 Thread Justin (Google Employee)

Take a look at 
http://developer.android.com/reference/android/media/MediaScannerConnection.html

Cheers,
Justin
Android Team @ Google

On Sep 24, 6:55 am, Christine  wrote:
> My app takes a picture and stores it either on the flash card or in
> the MediaStore. When retreiving the gallery content with an
> ACTION_GET_CONTENT intent doesn't show the new picture in either case.
> However, after switching the phone off and on again, they do show up.
> How do I force the Gallery to show my new pic?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: activity is destroyed when press home key

2009-09-24 Thread Justin (Google Employee)

>From http://developer.android.com/guide/topics/fundamentals.html#acttask

"As noted above, there's never more than one instance of a
"singleTask" or "singleInstance" activity, so that instance is
expected to handle all new intents. A "singleInstance" activity is
always at the top of the stack (since it is the only activity in the
task), so it is always in position to handle the intent. However, a
"singleTask" activity may or may not have other activities above it in
the stack. If it does, it is not in position to handle the intent, and
the intent is dropped. (Even though the intent is dropped, its arrival
would have caused the task to come to the foreground, where it would
remain.)"

Cheers,
Justin
Android Team @ Google

On Sep 24, 11:45 am, justinh  wrote:
> When users press on your icon again to "come back" they are launching
> your activity, not the settings activity. Where do you start the
> settings activity in your code? If it's outside of the onCreate/
> onStart/onResume methods then the user will have to repeat that action
> to get back there.
>
> On Sep 24, 2:58 am, play_net  wrote:
>
> > My manifest:
> >         > android:name="MainUI" android:screenOrientation="landscape"
> >                         android:configChanges="orientation|keyboardHidden"
> > android:launchMode="singleTask">
> >             
> >                 
> >                  > android:name="android.intent.category.LAUNCHER" />
> >             
> >         
> >         > android:name=".view.Settings"  android:configChanges="orientation|
> > keyboardHidden">
> >         
>
> >    I press program's icon to start my program,and then open the
> > Settings activity through startActivityForResult(intent, SETTINGS).
> > Now i press the  home key  and start my program through program's
> > icon, at this time the Settings actitity will run OnDestroy() and be
> > destroyed. I can't understand why Settings activity is be destroyed
> > automatically? How can I make Settings activity still focus when users
> > come back.
>
> > Thank all.
>
>
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: Is there any Android Handset which CDMA based?

2009-09-24 Thread Justin (Google Employee)

No CDMA handsets will ship with 1.5, because 1.5 doesn't support CDMA.
CDMA support is added in 1.6.

Cheers,
Justin
Android Team @ Google

On Sep 13, 10:38 pm, javame_android  wrote:
> Hi,
>
> The API that you pointed out has not been included in Android SDK
> 1.5_r3. Will the current handsets be able to use this API if I include
> this in my project.
>
> Anyways thanx a lot for replying.
>
> Regards
> Sunil
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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] Using a TouchDelegate

2009-08-27 Thread Justin (Google Employee)

I was recently asked about how to use a TouchDelegate. I was a bit
rusty myself on this and I couldn't find any good documentation on it.
Here's the code I wrote after a little trial and error.
touch_delegate_view is a simple RelativeLayout with the id
touch_delegate_root. I defined with a single, child of the layout, the
button delegated_button. In this example I expand the clickable area
of the button to 200 pixels above the top of my button.

public class TouchDelegateSample extends Activity {

  Button mButton;
  @Override
  protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.touch_delegate_view);
mButton = (Button)findViewById(R.id.delegated_button);
View parent = findViewById(R.id.touch_delegate_root);

// post a runnable to the parent view's message queue so its run
after
// the view is drawn
parent.post(new Runnable() {
  @Override
  public void run() {
Rect delegateArea = new Rect();
Button delegate = TouchDelegateSample.this.mButton;
delegate.getHitRect(delegateArea);
delegateArea.top -= 200;
TouchDelegate expandedArea = new TouchDelegate(delegateArea,
delegate);
// give the delegate to an ancestor of the view we're
delegating the
// area to
if (View.class.isInstance(delegate.getParent())) {
  ((View)delegate.getParent()).setTouchDelegate(expandedArea);
}
  }
});
  }
}

Cheers,
Justin
Android Team @ Google
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: Reading Calendar?

2009-08-18 Thread Justin (Google Employee)

Well, Android 2.0 doesn't exist, so its impossible to tell where this
feature will be in relation to 2.0 whenever it does arrive. More
directly, I don't have a timeline for when calendar might be exposed.

Cheers,
Justin
Android Team @ Google

On Aug 14, 1:01 am, Kaj Bjurman  wrote:
> Ok. Thanks.
>
> Do you know roughly when it will be available? In 2.0 or later?
>
> On 14 Aug, 00:36, "Justin (Google Employee)"  wrote:
>
> > Thecalendardata provider is not currently exposed. Your best, albeit
> > not simple, bet is to use the GoogleCalendarweb API to access the
> > user'scalendardata.
>
> > Cheers,
> > Justin
> > Android Team @ Google
>
> > On Aug 10, 7:43 am, Kaj Bjurman  wrote:
>
> > > Hi,
>
> > > I think I've seen somewhere that it's still not possible to read
> > > GoogleCalendarentries? I tried to search the forum, but didn't find
> > > any relevant threads. They mostly contain questions on
> > > java.util.Calendar.
>
> > > Can I read entries? I understand that it might be fragile if it still
> > > isn't in the public API, but I don't mind updating my code when the
> > > API becomes public.
>
> > > (I don't need to modify or create new entries)
>
> > > Thanks
> > > Kaj
>
>
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: list with multiple selection

2009-08-13 Thread Justin (Google Employee)

Can you define "not working", this will help indicate the solution.

Cheers,
Justin
Android Team @ Google

On Aug 11, 5:18 am, Honest  wrote:
> I tried same code in my application but it is not working. Please
> suggest me something.
>
> On Aug 10, 8:05 pm, Jack Ha  wrote:
>
> > Take a look at List11.java in ApiDemos.
>
> > --
> > Jack Ha
> > Open Source Development Center
> > ・T・ ・ ・Mobile・ stick together
>
> > The views, opinions and statements in this email are those of
> > the author solely in their individual capacity, and do not
> > necessarily represent those of T-Mobile USA, Inc.
>
> > On Aug 10, 4:36 am, Honest  wrote:
>
> > > Hello,
>
> > > I want to create list with multiple selection. Can some one tell me
> > > how can i create it ? code snippt will be much useful.
>
>
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: id specify

2009-08-13 Thread Justin (Google Employee)

Sorry, I misspoke, the tutorial is correct, in Step 4 the two id's
specified are special id's defined by the platform. The syntax in Step
5 (and specified in the previous) post is how to define your own IDs.

Cheers,
Justin
Android Team @ Google

On Aug 13, 3:42 pm, "Justin (Google Employee)" 
wrote:
> It looks like our notepad tutorial is a little rusty.
>
> 
>
> Is what you want.
>
> Cheers,
> Justin
> Android Team @ Google
>
> On Aug 10, 6:59 am, Honest  wrote:
>
> > Hello,
>
> > Can some one tell me how can i specify I.D in android ? acutlly i want
> > to create List . I add the following code in main.xml file. But i do
> > not know where i should specify @android:id /list. Can some one tell
> > me where i should specify it ?
>
> >  >                android:layout_width="fill_parent"
> > android:layout_height="wrap_content"
> >                android:scrollbars="none"/>
>
>
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: id specify

2009-08-13 Thread Justin (Google Employee)

It looks like our notepad tutorial is a little rusty.



Is what you want.

Cheers,
Justin
Android Team @ Google

On Aug 10, 6:59 am, Honest  wrote:
> Hello,
>
> Can some one tell me how can i specify I.D in android ? acutlly i want
> to create List . I add the following code in main.xml file. But i do
> not know where i should specify @android:id /list. Can some one tell
> me where i should specify it ?
>
>                 android:layout_width="fill_parent"
> android:layout_height="wrap_content"
>                android:scrollbars="none"/>
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: Reading Calendar?

2009-08-13 Thread Justin (Google Employee)

The calendar data provider is not currently exposed. Your best, albeit
not simple, bet is to use the Google Calendar web API to access the
user's calendar data.

Cheers,
Justin
Android Team @ Google

On Aug 10, 7:43 am, Kaj Bjurman  wrote:
> Hi,
>
> I think I've seen somewhere that it's still not possible to read
> Google Calendar entries? I tried to search the forum, but didn't find
> any relevant threads. They mostly contain questions on
> java.util.Calendar.
>
> Can I read entries? I understand that it might be fragile if it still
> isn't in the public API, but I don't mind updating my code when the
> API becomes public.
>
> (I don't need to modify or create new entries)
>
> Thanks
> Kaj
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: Simply touching screen reduces fps

2009-08-13 Thread Justin (Google Employee)

The recommendation for this is to sleep in the touch event handler.
The system will send you touch events as fast as you can process them.
If you artificially decrease this by sleeping in the handler, you will
allow more processing time for other threads which are theoretically
running your computations for screen updates.

Cheers,
Justin
Android Team @ Google

On Aug 10, 9:38 am, sahn0  wrote:
> Yes, it is.
>
> Try SpriteMethodTest, set 100 sprites, select OpenGL / Use VBO,  let
> it run for a while. You will get something around 20ms / 50 fps. Now
> run it second time, and simply touch screen while test is running. You
> will get something around 35ms / 29 fps. So it is 15 ms difference.
>
> As I understand, the answer is simple - it is that dispatcher thread
> running with THREAD_PRIORITY_URGENT_DISPLAY priority.
>
> Setting THREAD_PRIORITY_URGENT_DISPLAY priority (will it work on non-
> ADP firmware?) on renderer thread yields 30 ms / 33 fps.
>
> Are there any other workarounds?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: audio video inconsistency

2009-08-12 Thread Justin (Google Employee)

Yes, this is inconsistent, but there is a way to do what you want with
audio. Take a look at
http://developer.android.com/reference/android/provider/MediaStore.Audio.Media.html#RECORD_SOUND_ACTION

Cheers,
Justin
Android Team @ Google

On Aug 12, 7:32 am, Christine  wrote:
> In my app, a user picks video content with
>    Intent i = new Intent(Intent.ACTION_GET_CONTENT);
>    i.setType("video/*");
>    startActivityForResult(i, MEDIA_SELECTED);
>
> and they start recording video with
>    Intent i = new Intent(MediaStore.ACTION_VIDEO_CAPTURE);
>    startActivityForResult(i, MEDIA_SELECTED);
>
> Now, I want to do the same for audio, but I can't:
>    Intent i = new Intent(Intent.ACTION_GET_CONTENT);
>    i.setType("audio/*");
>    startActivityForResult(i, MEDIA_SELECTED);
> doesn't start audio selection, but it triggers a chooser with which a
> user can select audio capture or selection. There's no
> ACTION_AUDIO_CAPTURE intent.
>
> Why is the behavior for video and audio different?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: Does cupcake support Webview with Gears ?

2009-08-12 Thread Justin (Google Employee)

So, Gears, is not support in a WebView, but if you really *need* Gears
features they're easily addable. WebView.addJavascriptInterface will
allow you to add arbitrary functionality to a given WebView instance.
You can add an interface to Javascript which accesses a Java object
you specify. Gears' storage and geolocation features can be mimicked
in this way. Obviously great caution needs to be taken here so that
malicious Javascript isn't allowed to impact the native system.

Certainly it would be easier if we just offered this as part of
WebView, but for now this is the only way I know to accomplish this
goal.

Cheers,
Justin
Android Team @ Google

On Aug 12, 3:28 am, Samuel Michelot  wrote:
> I really need this feature also !
>
> On 17 juin, 12:05, "jfcog...@gsyc.es"  wrote:
>
>
>
> > Yeah, what's the reason, is there anyone in this task? co's it will be
> > great if this works in the next version, till then I think I have to
> > look up a provisional solution.
>
> > thanks ;)
>
> > On 6 mayo, 23:33, j  wrote:
>
> > > What is the reasoning behind not supportingGearswithin awebview?
> > > Is there a security reason?
>
> > > Thanks
>
> > > On Apr 14, 3:42 pm, Grace Kloba  wrote:
>
> > > > Still only forbrowser.
>
> > > > Grace
>
> > > > On Monday, April 13, 2009, Kumaravel Kandasami
>
> > > >  wrote:
> > > > > Does  anyone know whether Android 1.5 SDK supportsGearssupported Apps 
> > > > > ?
>
> > > > > Currently release 1.1, supportsGearsonly on thebrowserapplication and 
> > > > > we are not able to implementGearsapplication onWebView.
>
> > > > > Thanks
>
> > > > > Kumar    _/|\_
> > > > >www.saisk.com
> > > > > ku...@saisk.com
> > > > > "making a profound difference with knowledge and creativity..."
>
> > > > --
> > > > thanks,
> > > > Grace
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: Compass still crashing.

2009-08-12 Thread Justin (Google Employee)

You have a ClassCastException at line 61, its all in logcat

>> 08-12 15:39:02.912: ERROR/AndroidRuntime(548): Caused by:
>> java.lang.ClassCastException: com.example.North.North
>> 08-12 15:39:02.912: ERROR/AndroidRuntime(548):     at
>> com.example.North.North.onCreate(North.java:61)

Whatever is on line 61 isn't the type you think it is.

Cheers,
Justin
Android Team @ Google

On Aug 12, 8:12 am, Declan  wrote:
> I've modified the code a bit since the last time, and now it crashes
> at runtime.
> I've got the log-cat and code below.
> Any suggestions, or links to a tutoiral on how to go about debugging
> would be appreciated.
> Thanks,
> Declan
>
> package com.wissen.android;
>
> import java.util.List;
>
> import android.content.Context;
> import android.graphics.Bitmap;
> import android.graphics.BitmapFactory;
> import android.graphics.Canvas;
> import android.graphics.Paint;
> import android.graphics.Point;
> import android.graphics.drawable.Drawable;
> import android.hardware.SensorManager;
> import android.location.Location;
> import android.location.LocationListener;
> import android.location.LocationManager;
> import android.os.Bundle;
> import android.os.Vibrator;
> import android.util.Config;
> import android.util.Log;
> import android.view.KeyEvent;
> import android.view.ViewGroup;
> import android.view.ViewGroup.LayoutParams;
> import android.widget.Button;
> import android.widget.EditText;
> import android.widget.TextView;
> import android.widget.ZoomControls;
>
> import com.google.android.maps.GeoPoint;
> import com.google.android.maps.MapActivity;
> import com.google.android.maps.MapController;
> import com.google.android.maps.MapView;
> import com.google.android.maps.Overlay;
>
> public class Hello extends MapActivity implements LocationListener {
>         /** Called when the activity is first created. */
>
>         EditText                txted                   = null;
>         Button                  btnSimple               = null;
>         MapView                 gMapView                = null;
>         MapController   mc                              = null;
>         Drawable                defaultMarker   = null;
>         GeoPoint                p                               = null;
>         double                  latitude                = 0.0, longitude = 
> 0.0; // for current location
>         double                  desLat, desLong;// for current destination
>         private SensorManager mSensorManager;
>     private float[] mValues;
>     private static final String TAG = "Compass";
>     // for compasse
>
>         @Override
>         public void onCreate(Bundle savedInstanceState) {
>                 super.onCreate(savedInstanceState);
>                 setContentView(R.layout.main);
>
>                 // makes the field with text
>                 txted = (EditText) findViewById(R.id.id1);
>                 String currentLocation = "Lat: " + latitude + " Lng: " + 
> longitude;
>                 txted.setText(currentLocation);
>                 // Creating and initializing Map
>                 gMapView = (MapView) findViewById(R.id.myGMap);
>                 p = new GeoPoint((int) (latitude * 100), (int) (longitude 
> *
> 100));
>                 gMapView.setSatellite(true);
>                 mc = gMapView.getController();
>                 mc.setCenter(p);
>                 mc.setZoom(14);
>
>                 /** Add a location mark**/
>                 MyLocationOverlay myLocationOverlay = new MyLocationOverlay();
>                 List list = gMapView.getOverlays();
>                 list.add(myLocationOverlay);
>
>                 // Adding zoom controls to Map
>                 ZoomControls zoomControls = (ZoomControls) 
> gMapView.getZoomControls
> ();
>                 zoomControls.setLayoutParams(new ViewGroup.LayoutParams
> (LayoutParams.WRAP_CONTENT,
>                                 LayoutParams.WRAP_CONTENT));
>
>                 gMapView.addView(zoomControls);
>                 gMapView.displayZoomControls(true);
>
>                 // Getting locationManager and reflecting changes over map if
> distance travel by
>                 // user is greater than 500m from current location.
>                 LocationManager lm = (LocationManager) getSystemService
> (Context.LOCATION_SERVICE);
>                 lm.requestLocationUpdates(LocationManager.GPS_PROVIDER, 1000L,
> 500.0f, this);
>
>         }
>         public void onSensorChanged(int sensor, float[] values) {
>         if (Config.LOGD) Log.d(TAG, "sensorChanged (" + values[0] + ",
> " + values[1] + ", " + values[2] + ")");{
>                 mValues = values;
>                 //Doesn't work, should appear if this section is called,
> never called?
>                 String currentLocation = "Got magnetic
> ==";
>
>                 txted.setText(currentLocation);
>
>                 int i=90;
>                 if (mValues != null) {
>                         

[android-developers] Re: Attention moder ators! Fwd: 메일 전송 실패 알림

2009-08-04 Thread Justin (Google Employee)

Messages are appearing just fine for me. This is appears to be a
BASE64 encoded version (standard for email) of what you posted. My
guess is that your email client or server is not interpreting it
correctly.

Regards,
Justin
Android Team @ Google

On Aug 4, 7:35 am, Disconnect  wrote:
> ..again, it sure would be nice if there was a non-list address this sort of
> thing could be sent to. Sorry everyone else who isn't a moderator.
>
> Every post to -dev results in this coming back:
>
>
>
> -- Forwarded message --
> From: 
> Date: 2009/8/4
> Subject: 메일 전송 실패 알림 
> To: dc.disconn...@gmail.com
>
> *회원님께서 보내신 메일이 다음과 같은 이유로 전송실패되었습니다.**받는
> 이:* *wbh0...@naver.com*  *메일제목:* * [android-developers] Re: This bug is
> costing us money every month*  *실패이유:* *수신자의 수신거부에의해 메일을 전송할 수 없습니다. *
>
>
>
>
>
> [ Attached Message 
> ]UmVjZWl2ZWQ6IChxbWFpbCAyNDExMSBpbnZva2VkIGZyb20gbmV0d29yayk7IDQgQXVnIDIwMDk g
> MTQ6MzM6MzIgLTAwMDAKUmVjZWl2ZWQ6IGZyb20gdW5rbm93biAoSEVMTyByY3ZtYWlsMi5ubTI u
> bmF2ZXIuY29tKSAoMTE0LjExMS4zMi43MikKICBieSBkOGcwMzYubmF2ZXIuY29tIHdpdGggU01 U
> UDsgNCBBdWcgMjAwOSAxNDozMzozMiAtMDAwMApSZWNlaXZlZDogZnJvbSBbMjA5Ljg1LjIwMC4 x
> NjZdIChbMjA5Ljg1LjIwMC4xNjZdKSAKICAgICAgICAgIGJ5IHJjdm1haWwyLm5tMi5uYXZlci5 j
> b20gKFsxMTQuMTExLjMyLjcyXSkgCiAgICAgICAgICB3aXRoIEVTTVRQIGlkIDIwMDkwODA0MjM 6
> MzM6MzI6NTg5MTUxLjI3NDc0LjgzMDUzNDcyCiAgICAgICAgICBmb3IgPHdiaDA4MTBAbmF2ZXI u
> Y29tPjsgCiAgICAgICAgICBUdWUsIDA0IEF1ZyAyMDA5IDIzOjMzOjMyICswOTAwIChLU1QpIAp S
> ZWNlaXZlZDogYnkgd2Ytb3V0LTE1MTYuZ29vZ2xlLmNvbSB3aXRoIFNNVFAgaWQgczI1c280NDk 0
> Mjl3ZmMuMTgKICAgICAgICBmb3IgPHdiaDA4MTBAbmF2ZXIuY29tPjsgVHVlLCAwNCBBdWcgMjA w
> OSAwNzozMzozMSAtMDcwMCAoUERUKQpES0lNLVNpZ25hdHVyZTogdj0xOyBhPXJzYS1zaGEyNTY 7
> IGM9cmVsYXhlZC9yZWxheGVkOwogICAgICAgIGQ9Z29vZ2xlZ3JvdXBzLmNvbTsgcz1iZXRhOwo g
> ICAgICAgIGg9ZG9tYWlua2V5LXNpZ25hdHVyZTpyZWNlaXZlZDpyZWNlaXZlZDp4LXNlbmRlcjp 4
> LWFwcGFyZW50bHktdG8KICAgICAgICAgOnJlY2VpdmVkOnJlY2VpdmVkOnJlY2VpdmVkLXNwZjp h
> dXRoZW50aWNhdGlvbi1yZXN1bHRzOnJlY2VpdmVkCiAgICAgICAgIDpka2ltLXNpZ25hdHVyZTp k
> b21haW5rZXktc2lnbmF0dXJlOm1pbWUtdmVyc2lvbjpjb250ZW50LXR5cGUKICAgICAgICAgOnJ l
> Y2VpdmVkOmluLXJlcGx5LXRvOnJlZmVyZW5jZXM6ZGF0ZTptZXNzYWdlLWlkOnN1YmplY3Q6ZnJ v
> bTp0bwogICAgICAgICA6cmVwbHktdG86c2VuZGVyOnByZWNlZGVuY2U6eC1nb29nbGUtbG9vcDp t
> YWlsaW5nLWxpc3Q6bGlzdC1pZAogICAgICAgICA6bGlzdC1wb3N0Omxpc3QtaGVscDpsaXN0LXV u
> c3Vic2NyaWJlOngtYmVlbnRoZXJlLWVudjp4LWJlZW50aGVyZTsKICAgICAgICBiaD1IQUJjeDF k
> Ri96a0tDQVpHR0pKMWQxUmtlak5renJFVXZ1T0t4ZExNMWpBPTsKICAgICAgICBiPVUybWlGWEt 4
> aG1OUW4yNndmTlA0K0ZxQ0I5SnM1ZWlIYjN3ZEpPdG1Db0RXMzFtY2NPQVFyc2RZdlZsdzJrWHB O
> cgogICAgICAgICB3SCthMEhhT1F5dmhFME1ReGd3MUxGa3d4NEpMY2ZQcVJYUE8wM1hQUnRBbTZ S
> bkVvRlBaVndNcXhWZnJ1dFVtL1lhSgogICAgICAgICBxQnUxUjl2VS95ZWIzOU1sRVFRWVNTK3k 4
> YVgwSjE2aE9ualcwPQpEb21haW5LZXktU2lnbmF0dXJlOiBhPXJzYS1zaGExOyBjPW5vZndzOwo g
> ICAgICAgIGQ9Z29vZ2xlZ3JvdXBzLmNvbTsgcz1iZXRhOwogICAgICAgIGg9eC1zZW5kZXI6eC1 h
> cHBhcmVudGx5LXRvOnJlY2VpdmVkLXNwZjphdXRoZW50aWNhdGlvbi1yZXN1bHRzCiAgICAgICA g
> IDpka2ltLXNpZ25hdHVyZTpkb21haW5rZXktc2lnbmF0dXJlOm1pbWUtdmVyc2lvbjpjb250ZW5 0
> LXR5cGUKICAgICAgICAgOmluLXJlcGx5LXRvOnJlZmVyZW5jZXM6ZGF0ZTptZXNzYWdlLWlkOnN 1
> YmplY3Q6ZnJvbTp0bzpyZXBseS10bwogICAgICAgICA6c2VuZGVyOnByZWNlZGVuY2U6eC1nb29 n
> bGUtbG9vcDptYWlsaW5nLWxpc3Q6bGlzdC1pZDpsaXN0LXBvc3QKICAgICAgICAgOmxpc3QtaGV s
> cDpsaXN0LXVuc3Vic2NyaWJlOngtYmVlbnRoZXJlLWVudjp4LWJlZW50aGVyZTsKICAgICAgICB i
> PWdvMmRpWE9MY0ZQckI2V0wxZ0JCS2xGRWpmTWhLRXVwVXdxT1IyV3lwQlJNc2pvaEtqUWd4aGp O
> a2tQOFJ6aHBKdQogICAgICAgICBRamxZRmU4NDVyN05IMlYxOXh3cnJDTmdwQWZrYTdnSDNMQUo 1
> anFkdUV3YmJrNFBQTkVZSkVacGUwdExOK1pNZzlPQwogICAgICAgICBUdXpHbFg3QWRaRktwTFB j
> ZWN0WnRFblpUeDhBNW9qWm1GTkNVPQpSZWNlaXZlZDogYnkgMTAuMTQzLjE2Ny4xNCB3aXRoIFN N
> VFAgaWQgdTE0bXIyNTIyODF3Zm8uMjguMTI0OTM5NjQwNTE5ODsKICAgICAgICBUdWUsIDA0IEF 1
> ZyAyMDA5IDA3OjMzOjI1IC0wNzAwIChQRFQpClJlY2VpdmVkOiBieSAxMC4xMDcuMTcxLjMzIHd p
> dGggU01UUCBpZCB5MzNncjY3NDI1cHJvLjA7CglUdWUsIDA0IEF1ZyAyMDA5IDA3OjMzOjIzIC0 w
> NzAwIChQRFQpClgtU2VuZGVyOiBkYy5kaXNjb25uZWN0QGdtYWlsLmNvbQpYLUFwcGFyZW50bHk t
> VG86IGFuZHJvaWQtZGV2ZWxvcGVyc0Bnb29nbGVncm91cHMuY29tClJlY2VpdmVkOiBieSAxMC4 x
> NTEuODQuMSB3aXRoIFNNVFAgaWQgbTFtcjU4MzUzNzV5YmwuMjQuMTI0OTM5NjQwMjU4OTsgVHV l
> LCAwNCBBdWcgMjAwOSAwNzozMzoyMiAtMDcwMCAoUERUKQpSZXR1cm4tUGF0aDogPGRjLmRpc2N v
> bm5lY3RAZ21haWwuY29tPgpSZWNlaXZlZDogZnJvbSBtYWlsLXl3MC1mMTg1Lmdvb2dsZS5jb20 g
> KG1haWwteXcwLWYxODUuZ29vZ2xlLmNvbSBbMjA5Ljg1LjIxMS4xODVdKSBieSBnbXItbXguZ29 v
> Z2xlLmNvbSB3aXRoIEVTTVRQIGlkIDIyc2k2OTA1MzZ5eGUuMTUuMjAwOS4wOC4wNC4wNy4zMy4 y
> MTsgVHVlLCAwNCBBdWcgMjAwOSAwNzozMzoyMSAtMDcwMCAoUERUKQpBdXRoZW50aWNhdGlvbi1 S
> ZXN1bHRzOiBnbXItbXguZ29vZ2xlLmNvbTsgc3BmPXBhc3MgKGdvb2dsZS5jb206IGRvbWFpbiB v
> ZiBkYy5kaXNjb25uZWN0QGdtYWlsLmNvbSBkZXNpZ25hdGVzIDIwOS44NS4yMTEuMTg1IGFzIHB l
> cm1pdHRlZCBzZW5kZXIpIHNtdHAubWFpbD1kYy5kaXNjb25uZWN0QGdtYWlsLmNvbTsgZGtpbT1 w
> YXNzICh0ZXN0IG1vZGUpIGhlYWRlci5pPUBnbWFpbC5jb20KUmVjZWl2ZWQ6IGJ5IHl3aDE1IHd p
> dGggU01UUCBpZCAxNXNvNTAzMDM3N3l3aC4xMCBm

[android-developers] Re: Images not loading on the phone

2009-08-04 Thread Justin (Google Employee)

Jason,

Yeah, this is a good way to do it, and about as memory efficient as
you can get, and seems be more efficient than using a StringBuffer to
hold the response data, which another strategy I've seen for
downloading a response of unknown size. The issue there is that
eventually the underlying data structure for the StringBuffer gets
resized, and for any reasonably sized response, this happens multiple
times.

I'm fairly certain the difference in results when decoding from the SD
card vs from the network happens for two reasons. First, when
downloading an HTTP response, the HttpInputStream doesn't return how
large the response will be, whereas when reading from a file you
should be able to get the filesize. The second problem I suspect
arises because HttpInputStream.available() always returns 0. These two
issues mean that if downloading from the network is delayed you can
call read() on in HttpInputStream and get no bytes back and then call
available and it looks like there are no more bytes available. I
believe this may be what is throwing off BitmapFactory.decodeStream().

Cheers,
Justin
Android Team @ Google

On Aug 3, 6:06 pm, Jason  wrote:
> Pulkit,
>
> I had a similar problem. It seems that BitmapFactory silently fails
> (returning null) when BufferedInputStream blocks while fetching from
> the connection (I think). If the BufferedInputStream is coming from an
> SD source, it works because it doesn't block (I think). The solution
> for me was to download the entire stream as a byte array first, and
> then call BitmapFactory.decodeByteArray(...)
>
> To do that efficiently, I got the advice to read bytes from a
> DataInputStream, filling up fixed sized chunks at a time until the
> input stream is finished, and then copying the data from those chunks
> into a final byte array (now that we know the full size of the
> download). Here's some example code for this:
>
> ///
> // example of using Bitmapfactory.decodeByteArray instead of
> Bitmapfactory.decodeStream
>
>     public static Bitmap fetchImage(URL url, String userAgent) throws
> IOException {
>         byte[] bitmapByteArray = JsonUtils.fetchUrlBytes(url,
> userAgent );
>         Bitmap bm = BitmapFactory.decodeByteArray(bitmapByteArray, 0,
> bitmapByteArray.length);
>         return bm;
>     }
>
> ///
> // example of downloading a byte array in chunks
>
>     private static final int CHUNKSIZE = 8192;        //size of fixed
> chunks
>     private static final int BUFFERSIZE = 1024;       //size of
> reading buffer
>
>     public static byte[] fetchUrlBytes(URL url, String userAgent )
> throws IOException {
>
>         HttpURLConnection connection = null;
>
>         connection = ( HttpURLConnection ) url.openConnection();
>         if(userAgent != null) {
>             connection.setRequestProperty("User-Agent", userAgent);
>         }
>         connection.setConnectTimeout(5000);
>         connection.setReadTimeout(5000);
>
>         int bytesRead = 0;
>         byte[] buffer = new byte[BUFFERSIZE];   //initialize buffer
>         byte[] fixedChunk = new byte[CHUNKSIZE]; //initialize 1st
> chunk
>         ArrayList BufferChunkList = new ArrayList(); //
> List of chunk data
>         int spaceLeft = CHUNKSIZE;
>         int chunkIndex = 0;
>
>         DataInputStream in = new DataInputStream
> ( connection.getInputStream() );
>
>         while( ( bytesRead = in.read( buffer ) ) != -1 ) { //loop
> until the DataInputStream is completed
>             if(bytesRead > spaceLeft) {
>                 //copy to end of current chunk
>                 System.arraycopy(buffer, 0, fixedChunk, chunkIndex,
> spaceLeft);
>                 BufferChunkList.add(fixedChunk);
>
>                 //create a new chunk, and fill in the leftover
>                 fixedChunk = new byte[CHUNKSIZE];
>                 chunkIndex = bytesRead - spaceLeft;
>                 System.arraycopy(buffer, spaceLeft, fixedChunk, 0,
> chunkIndex);
>             } else {
>                 //plenty of space, just copy it in
>                 System.arraycopy(buffer, 0, fixedChunk, chunkIndex,
> bytesRead);
>                 chunkIndex = chunkIndex + bytesRead;
>             }
>             spaceLeft = CHUNKSIZE - chunkIndex;
>         }
>
>         if (in != null) {
>             in.close();
>         }
>
>         // copy it all into one big array
>         int responseSize = (BufferChunkList.size() * CHUNKSIZE) +
> chunkIndex;
>
>         byte[] responseBody = new byte[responseSize];
>         int index = 0;
>         for(byte[] b : BufferChunkList) {
>             System.arraycopy(b, 0, responseBody, index, CHUNKSIZE);
>             index = index + CHUNKSIZE;
>         }
>
>         System.arraycopy(fixedChunk, 0, responseBody, index,
> chunkIndex);
>
>         return responseBody;
>     }
>
> On Jul 28, 10:55 pm, Pulkit  wrote:
>
>
>
> > Hi All,
>
> > In my app I

[android-developers] Re: about viewstub

2009-07-22 Thread Justin (Google Employee)

Can you provide your definition for the ViewStub in the layout file?
Have you included a correct value for android:layout?

Cheers,
Justin
Android Team @ Google

On Jul 16, 8:54 pm, tstanly  wrote:
> hi all,
>
> i use:
> viestub v=(viewstub)findviewById(r.id.v);
> view t=v.inflated();
>
> then use onClickListener like:
>
> v.setOnClickListener(new viewstub.OnClickListener()
> {
> public void onClick(view vv)
> {
>   Intent t=new Intent();
>   t.setclass(a.this,b.class);
>   startActivity(t);
>
> }
>
> );
>
> but when i click the viewstub,
> it didn't work???
>
> why??
>
> thank you a lot!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: ANDROID BUG: Large Gif Images can not be displayed

2009-07-22 Thread Justin (Google Employee)

What do you mean by 4MB? My guess is that this is the file size. The
file size is not relevant for displaying an image, what matters are
its dimensions, what are the dimensions?

Each process in Android has a limit of 16MB of memory. Due to process
overhead this really means you have up to 14MB of usable memory. Each
pixel of an image displayed takes a certain amount of memory, so there
is an absolute size you can display. Now, Android phones to date have
a maximum screen resolution of 320x480. If your source image file is
larger than this, you should use BitmapFactory's options to scale it
down as its turned into a Bitmap.

Cheers,
Justin
Android Team @ Google

On Jul 17, 5:45 am, Muniraju  wrote:
> This is with reference 
> tohttp://groups.google.com/group/android-developers/browse_thread/threa
>
> Large gif images of size more than 4MB can not displayed in android.
>
> Is this is a known issue in android?
>
> Thanks,
> With Regards
> Muniraju
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: On-screen keyboard bug ?

2009-07-15 Thread Justin (Google Employee)

Yes, this is working as intended, setEnabled() doesn't relate to the
edibility of a text field, it relates usually to focusability, but its
actually up to the View to determine what enabled means. If you'd like
to prevent the EditText from being edited (but then, why are you using
EditText instead of TextView?) you can set android:editable="false" in
your layout.

I believe you call also use the two argument form of setText() and
specify TextView.BufferType.NORMAL as the second argument. I haven't
actually tried this, so I'd be interested in your results if you do.

Cheers,
Justin
Android Team @ Google

On Jul 15, 7:57 am, NitroDesk  wrote:
> We have in our app, a non-editable field described in the layout thus
>
>  android:layout_width="fill_parent"
> android:layout_height="wrap_content"
> android:singleLine="false"
> android:selectAllOnFocus="true"
> android:hint="A Hint here"
> android:layout_marginBottom="4dip"
> android:background="@android:drawable/editbox_background"/>
>
> and in code, this is disabled using setEnabled(false).
>
> All was well before Cupcake, but when the on-screen keyboard came
> along, now you are able to tap on the field (or navigate focus to the
> field using the ball)  and then using the on-screen keyboard, start
> typing into the field, replacing the text with anything you type.
>
> I think this is an unexpected behavior.. Anyone else ?
> -g
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: G1 system UIDs inconsistent, none of the apps work, help.

2009-07-02 Thread Justin (Google Employee)

Return your device, sounds like a hardware failure or some sort. In
the future topics like this are best put on android-discuss, this
forum is for Android developer to discuss application development
issues.

Cheers,
Justin
Android Team @ Google

On Jul 2, 10:18 am, melipaisa  wrote:
> About two days ago my phone started receiving and making all calls as
> 'unknown'. I decided to wait to go straight to a T-mobile retail
> store. But today July 2 at 10 am. none of the apps where working, the
> browser, text messages,  none.
> the phone became crazy I started to receive error messages on the
> screen. Finally decided to restart the phone, when it turned on again
> i received the message" g1 system UIDs inconsistent, you need to wipe
> your data partition  or you device will be unstable." it had the I'm
> feeling lucky button, when pressed, the phone reset itself, most of my
> apps where gone, but it did not help or fixed anything.
> Im desperate I love my G1 phone i bought it the next day of the
> release, it worked great, got my 1.5 update worked fine, 'till now.
> the problem is where to go for help.
> If it is an OS problem is it google's fault or T-mobile?
> I have a flex pay account when i bought the phone. I bought it full
> price almost $ 500 so to get a new G1 since i am a  student i cant
> afford  it. I feel very sad not being able to use it or fix the
> problem now all my data is gone all my apps, :( i cant even go on the
> market app to donwload them because i receive the error message of
> force close.
>
> PLEASE HELP.  thanks
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: ScrollView with ListView being cut off

2009-07-01 Thread Justin (Google Employee)

Michael,

First, sorry, I accidentally removed your follow-on post to this that
noted that you'd researched this issue and found use of a ListView
inside a ScrollView to not be advisable.

Your research is correct though, you can't/shouldn't do this. Romain
may respond and say that there is a way to do this, but in no way
*should* you do this. Both types of view interpret interaction from
the user as scrolling and its somewhere between undefined and ill-
defined as to which view should scroll when and by how much.

Cheers,
Justin
Android Team @ Google

On Jul 1, 10:52 am, Michael J  wrote:
> I've got a ScrollView containing a vertical LinearLayout.
>
> The LinearLayout contains several items, including a ListView.
>
> The problem is that I can't seem to get the ListView to be fully
> expanded.  It is being compressed to fit everything on the screen, and
> forcing me to scroll through just the list. I would prefer to be able
> to scroll the entire layout, including the ListView.
>
> I've played with the layout parameters a lot, but can't seem to get
> anything to work.
>
> Also, I'm going to put this in another thread, but thought I'd ask
> here as well.  Is there any way to force a separator at the top of a
> ListView?
>
> 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
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: New to android

2009-07-01 Thread Justin (Google Employee)

Hey ctap, since you're just getting started I'd recommend visiting the
android-beginners group which is better suited to these "getting
going" type questions.

Cheers,
Justin
Android Team @ Google

On Jun 30, 11:01 am, ctap105  wrote:
> I am new to android and google groups. I dl the sdk and tried to
> install into eclipse and nothing really happens. I don't have virtual
> device and I can't even start a new android xml. I recently got
> together a forum widget for a fourm that I am part of and wish to
> bring it onto the android platform. Can someone 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
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: copy wiped/ raw data from android to sd-card (data recovery)

2009-07-01 Thread Justin (Google Employee)

This is not possible without modifying the Android system. Such a
process would require root access in order to either change the
filesystem permissions or get around them by reading them as root.
Obtaining root is not possible on retail Android configurations.

Cheers,
Justin
Android Team @ Google

On Jun 30, 12:41 pm, Unrealshade  wrote:
> Hello Android Developers,
>
> I wanted to know if it is possible to copy the raw data of the
> internal phone storage to the sd-card of the phone (or to some other
> device, maybe through internet/ usb/ bluetooth connection). Maybe even
> further, could users then read the raw data, so they can recover what
> they lost?
>
> The reason for me to ask this is that i had to wipe my G1 and read
> about recovering data, but there seems to be no way - not a the moment
> at least. Furthermore I found that quite a lot of people didn't make a
> backup of their data (for whatever reason) so they can't access it
> anymore and have no hope to do so, even in future, which i find pretty
> sad and frustrating for the user. Probably there will be even more
> people who want to recover internal phone storage data as Android
> grows more popular and spreads wider (which i am very sure of).
> Depending on the possibilities, I possibly will try very hard to write
> an application or programm (if the device is connected to a computer)
> to get that data back and eventually maybe even, at least parts of it,
> readable.
>
> I _don't_ want to simply copy the internal storage data, but read
> _all_ the internal storage content, even if it's not used by Android
> anymore because the phone has been wiped, and copy _that_ so the user
> may be able to decrypt (if it is encrypted) the data and read his old
> "erased" data (like contacts, sms, application data, calender data,
> etc.).
>
> I don't know how hard it really is, but i know it's not going to be
> easy and i won't get discouraged by some people who only say "it's
> impossible" or think that I am not skilled enough to do this.
>
> So let me hear your rating for the possiblities and tips, opinions,
> help, maybe there are even some people here who would like to see
> something like that.
>
> Thanks in advance,
> Unrealshade
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: why i cant connect to the internet,i have added the permission.

2009-06-17 Thread Justin (Google Employee)

Does the browser work on your device or emulator? Perhaps the device,
in general, does not have network access. If this is an emulator, make
sure you're dealing appropriately with proxies (preferably eliminating
them).

Cheers,
Justin
Android Team @ Google

On Jun 17, 8:09 am, "RS.Giridaran"  wrote:
> 
>
> Uses Permission should be added in your manifest file  under the
>  tag
>
> On Jun 16, 1:57 pm, "hencechen...@gmail.com" 
> wrote:
>
>
>
> > here is my code:
> > it always interrupt at conn.connect();
> >         try {
> >                 url+=input.getText().toString();
> >                  myFileUrl = new URL(url);
> >                  }
> >         catch (MalformedURLException e) {
> >                  e.printStackTrace();
> >                  }
> >         try {
> >                 HttpURLConnection conn = (HttpURLConnection) myFileUrl
> >                 .openConnection();
> >                 conn.setDoInput(true);
> >                 conn.connect();
> >                 InputStream is = conn.getInputStream();
> >                 val=inputStreamToString(is);
> >                 is.close();
> >                 }
> >         catch (IOException e) {
> >                 e.printStackTrace();
> >                 }
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: ADP 1.1 (JFv1.43_Holiday.zip) import contacts from SIM card crashes

2009-05-03 Thread Justin (Google Employee)

This forum is for application development topics. Your question is
more appropriate to android-discuss.

Regards,
Justin
Android Team @ Google

On May 2, 4:24 am, Newbie  wrote:
> I bought unlocked T-mobile G1 phone in US, when I returned to
> Netherlands with myVodafone, and the phone repeatedly sends
> international costing 10 Euros a day. Later I found out myfaves is
> sending these costly messages, I wanted to turn off myfaves and I
> followed the following steps:
> 1. I downgraded my phone from RC33 to RC29 and rooted the phone
> 2. As I read that all RC3X versions have myfaves, installed
> JFv1.43_Holiday.zip using the standard procedure (update.zip on SD
> card, Home+Power, ALT+L, ALT+S, etc)
> 3. Now I see that myfaves is turned off (no new messages sent), but
> when I try to import contacts fromVodafoneSIM card, the phone
> crashes with message " The process com.android.phone has stopped
> unexpectedly, Please try again"
>
> What did I do wrong?
>
> Appreciate all suggestions
>
> 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
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: conversion to dalvik format failed with error 1

2009-05-03 Thread Justin (Google Employee)

Did you update your plugin? If so, did you create either a 1.1 AVD or
a 1.5 w/Google Maps AVD?

Cheers,
Justin
Android Team @ Google

On May 2, 10:59 am, Berlin Brown  wrote:
> On May 2, 1:05 pm, CnmJbm  wrote:
>
>
>
> > ok, it seems i fixed it on my environment.
>
> > just delete the R.java (by refreshing the project) and rebuild the
> > project.
>
> > On May 2, 9:57 am, CnmJbm  wrote:
>
> > > i got the same error, TOO!!!
>
> > > May Day
>
> > > On Apr 28, 3:57 pm, "chris.cap...@gmail.com" 
> > > wrote:
>
> > > > Hi,
>
> > > > I just updated to SDK 1.5 and all of my projects are failing to build
> > > > with the following error:
>
> > > > [2009-04-28 15:53:23 - Utilities] no classfiles specified
> > > > [2009-04-28 15:53:23 - Utilities] Conversion to Dalvik format failed
> > > > with error 1
>
> > > > ("Utilities" is the name of this specific project.)
>
> > > > Any idea why? I'm on Ubuntu 9.04 x64. Before the update to 1.5
> > > > everything worked fine. Thanks.
>
> > > > Chris
>
> I got rid of that error and get this error, any ideas.  I have a
> similar configuration:
>
> [2009-05-02 14:22:39 - HelloWorld] Failed to find an AVD compatible
> with target 'Android 1.1'. Launch aborted.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: conversion to dalvik format failed with error 1

2009-05-03 Thread Justin (Google Employee)

Make sure that you don't have hidden files or files without a file
extension in your project's lib folder. There is a bug in 1.5_r1 that
causes a compilation error if these types of files are in the lib
folder.

Cheers,
Justin
Android Team @ Google

On Apr 30, 1:06 pm, dni_linux  wrote:
> I'm getting the same same error on my Mac.  It happens to me
> *sometimes* when I create a new android project.  However, deleting
> the project and trying again usually resolves the problem.  Anyone
> have any other ideas???
>
> Thanks.
>
> On Apr 28, 5:57 pm, "chris.cap...@gmail.com" 
> wrote:
>
> > Hi,
>
> > I just updated to SDK 1.5 and all of my projects are failing to build
> > with the following error:
>
> > [2009-04-28 15:53:23 - Utilities] no classfiles specified
> > [2009-04-28 15:53:23 - Utilities]Conversionto Dalvik format failed
> > with error 1
>
> > ("Utilities" is the name of this specific project.)
>
> > Any idea why? I'm on Ubuntu 9.04 x64. Before the update to 1.5
> > everything worked fine. Thanks.
>
> > 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
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Android Market: Can you download apps without publishing them? Do you pay for your own apps? +signing problems

2009-04-27 Thread Justin (Google Employee)

Without being able to attempt this download and install myself there's
not a lot more that I can do. Its also always possible there was some
odd data corruption on this download. My recommendation is to
uninstall any previous versions you have and any other apps that would
have the same package name (the system only cares about package names)
and try your tests again.

Cheers,
Justin
Android Team @ Google

On Apr 27, 2:27 pm, Just Checking  wrote:
> The only reason to download it myself from Android Market is to make
> sure other people can do it. How can I be sure it's only MY phone that
> can't install it on, and users won't be impacted?
>
> I'm not sure what you mean by forward-locking status. Do you mean the
> copy protection publishing option? It's on now, and I think it was
> always on.
>
> As for logcat, there really is no more detail:
>
> V/WifiStateTracker(   57): Changing supplicant state: ASSOCIATED ==>
> COMPLETED
> V/WifiStateTracker(   57): New network state is CONNECTED
> D/WifiStateTracker(   57): DhcpHandler: DHCP request started
> D/dalvikvm(  144): GC freed 5605 objects / 410176 bytes in 111ms
> D/dalvikvm(   57): GC freed 19717 objects / 912112 bytes in 244ms
> D/PackageParser(   57): Scanning package: /data/app/vmdl43051.tmp
> I/installd(   35): unlink /data/dalvik-cache/
> d...@app@vmdl43051@classes.dex
> D/dalvikvm(   57): GC freed 16093 objects / 762384 bytes in 322ms
> I/vending (  186): com.android.vending.AssetDownloader
> $DownloadManagerBroadcastReceiver
> $MyPackageInstallObserver.packageInstalled(): Package install from
> content://downloads/download/329 failed: Package file was not signed
> correctly.
> I/ActivityManager(   57): Stopping service:
> com.android.providers.downloads/.DownloadService
> V/WifiMonitor(   57): Event [CTRL-EVENT-DISCONNECTED - Disconnect
> event - remove keys]
> V/WifiStateTracker(   57): New network state is DISCONNECTED
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: Android Market: Can you download apps without publishing them? Do you pay for your own apps? +signing problems

2009-04-27 Thread Justin (Google Employee)

Yeah, so as it turns out we don't allow you to purchase from yourself.
This is not allowed by Checkout and I think there would be a number of
issues if this was allowed. The Checkout help center would probably be
the right place to look for more information on this.

To the original poster, did you change forward-locking status of this
app at all?

Cheers,
Justin
Android Team @ Google

On Apr 27, 1:26 pm, Streets Of Boston  wrote:
> I tried buying my own app once to try out how updates would work, etc.
> I could not do it (i put in my credit-card details and i got some
> weird server-errors and that was the end of it).
>
> Maybe this has changed recently...
>
> On Apr 27, 2:50 pm, "Justin (Google Employee)" 
> wrote:
>
>
>
> > Having the app installed with two different certs used for signing
> > would have definitely caused a problem. What's your app? What does
> > logcat say when you try to download?
>
> > As far as paying for your own app, I think you do, not really sure.
> > This is pretty simple to test and it doesn't seem like giving yourself
> > money is a problem, per se, although perhaps inconvenient.
>
> > Cheers,
> > Justin
> > Android Team @ Google
>
> > On Apr 27, 11:42 am, Just Checking  wrote:
>
> > > I already did have the app installed through Eclipse. Before uploading
> > > the app, I exported the apk, then signed it with jarsigner. I also
> > > tried adb uninstall before downloading; no luck there either.
>
> > > How about my other questions?- Hide quoted text -
>
> > - Show quoted text -
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Android Market: Can you download apps without publishing them? Do you pay for your own apps? +signing problems

2009-04-27 Thread Justin (Google Employee)

I guess the other question is, if its your app, why do you need to
download it from Market? As far as providing free copies to reviewers,
you can just host the APK on your own server behind a password
protected page that you share the password to your reviewers.

More logcat context would be useful here. There's no additional
explanation of what went wrong? Failed installations, at least from
adb, usually report more reason for the failure.

Cheers,
Justin
Android Team @ Google

On Apr 27, 12:18 pm, Just Checking  wrote:
> I emailed you the name of the app.
>
> logcat simply says:
>
> I/vending (  186): com.android.vending.AssetDownloader
> $DownloadManagerBroadcastReceiver
> $MyPackageInstallObserver.packageInstalled(): Package install from
> content://downloads/download/329 failed: Package file was not signed
> correctly.
>
> Giving myself money is not a problem, but as far as I remember 30%
> goes to the carrier, right? Which means paying $3 to check that your
> $10 app works. And it's another accounting detail to keep track of.
>
> Also, with that phone that bears a logo of a fruit but will not be
> named here, you can send codes for free versions of your app to
> testers, review sites, and the like. I think this is tied to a
> specific device ID, though. It seems this functionality is not yet
> available on Market.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: Android Market: Can you download apps without publishing them? Do you pay for your own apps? +signing problems

2009-04-27 Thread Justin (Google Employee)

Having the app installed with two different certs used for signing
would have definitely caused a problem. What's your app? What does
logcat say when you try to download?

As far as paying for your own app, I think you do, not really sure.
This is pretty simple to test and it doesn't seem like giving yourself
money is a problem, per se, although perhaps inconvenient.

Cheers,
Justin
Android Team @ Google

On Apr 27, 11:42 am, Just Checking  wrote:
> I already did have the app installed through Eclipse. Before uploading
> the app, I exported the apk, then signed it with jarsigner. I also
> tried adb uninstall before downloading; no luck there either.
>
> How about my other questions?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: Android Market: Can you download apps without publishing them? Do you pay for your own apps? +signing problems

2009-04-27 Thread Justin (Google Employee)

> I tried to upload an app, the uploader accepts it, but when I try to
> download it from the phone it says "package file was not signed
> correctly".

Did you already have your app installed when you tried to download the
version from Market? If so, was the existing version uploaded
automatically from Eclipse and signed with the debug key?

Cheers,
Justin
Android Team @ Google

On Apr 27, 11:18 am, Just Checking  wrote:
> Suppose you upload a paid app and you want to test if it works
> correctly when downloaded from Android Market - do you pay for it? Are
> your own apps free to you?
>
> And to download it from the market, do you have to make it visible to
> the whole world?
>
> I tried to upload an app, the uploader accepts it, but when I try to
> download it from the phone it says "package file was not signed
> correctly".
>
> It's unacceptable that the uploader checks to see if a file is signed,
> but it somehow performs *DIFFERENT* tests than what the phone actually
> does when it downloads apps.
>
> I hope I can debug this further without having to publish my app to
> test it and make my app momentarily visible to everybody.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: Is it possible to call methods of a Activity from service.

2009-04-27 Thread Justin (Google Employee)

Look into android.os.Handler.

Cheers,
Justin
Android Team @ Google

On Apr 27, 6:24 am, Reghu  wrote:
> Hello,
>
> Is it possible to call methods of a Activity from service.
>
> I am running a thread from a service and i listening to some external
> event from that thread.
> I am not able to call methods  from that thread. Is there any way to
> call methods from a thread.
>
> 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
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 can I run code when my application is installed/upgraded?

2009-04-15 Thread Justin (Google Employee)

Simply write data to the disk, perhaps the version number of the last
time the application ran. Then check this number at startup.

Cheers,
Justin
Android Team @ Google

On Apr 15, 11:49 am, Josh  wrote:
> I have an application which has notifications that disappear when the
> application is closed to be reinstalled or upgraded.
>
> How can I have my application either run code when it is first
> installed or have it detect the first time it is run?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: Install 1.5 to Dev Phone 1

2009-04-15 Thread Justin (Google Employee)

Cupcake / OS 1.5 does not exist as a shipping operating system. We
have provided SDK 1.5_pre as a *preview* SDK release of an unreleased
software platform.

Regards,
Justin
Android Team @ Google

On Apr 15, 12:40 pm, michaelg  wrote:
> Hopefully this is a dumb question and there is an existing page that
> answers this, but... What is the easiest way to install the new
> Cupcake / OS 1.5 to a Dev Phone? I noticed that in the SDK there is a /
> platforms/images is this what is to be used? 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
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Early Look Android 1.5 SDK

2009-04-15 Thread Justin (Google Employee)

Sure, start testing your apps against the preview SDK. You can start
using new API features, as long as you're aware that the 1.5 API is
*not* finalized. Functionality could be added or removed and method
signatures may change.

Cheers,
Justin
Android Team @ Google

On Apr 15, 11:07 am, clark  wrote:
> > However, in the specific case of acquiring mic audio, there may be an
> > Android
> > engineer here that could confirm that this is going to be in the released
> > platform,
> > it's just that I don't know the answer.
>
> Hmm, I sure hope that is a feature since it is listed as one of the
> new features in the early look of Android 1.5 SDK.
>
> Is it a bad idea to start working with these new features?  I was
> hoping that was part of offering this early look, not just to test
> existing apps, but to get familiar with additions to the SDK.
>
> Either way, the early look SDK is allowing me to get raw audio from
> the phones mic and run it through an FFT.  The test "notes" I was
> sending through are being analyzed by the FFT correctly, and I can say
> I am quite happy with the features so far.
>
> BTW, the emulator is great and should be used as a step in the testing/
> debugging process but as an embedded developer, I value running things
> on the actual metal rather than trust the simulation/emulation,
> especially when it comes to performance.
>
> Regards,
> ~Clark
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: WiFi Emulator

2009-03-17 Thread Justin (Google Employee)

The emulator does not support WiFi. Also note that a retail G1 is
perfectly suitable for development. There are pluses and minuses to
both the ADP1 and the G1, most of which I'm sure you can find explored
in different threads on this forum.

Cheers,
Justin
Android Team @ Google

On Mar 17, 7:06 am, Daniel Weidele 
wrote:
> Hello Developers,
>
> i am currently doing my Bachelor Project concerning Android
> Programming.
>
> Therefore i need a possibility to SCAN/DISCOVER Hot-Spots or WLAN's
> where i can connect to.
>
> In many topics i have read, that the EMULATOR does NOT support WiFi
> scan with WiFiManager. I also tried using ConnectivityManager or
> BroadcastReceiver. But it doesn't ever work.
>
> So my question ist the following - is it CORRECT that the emulator
> does not support any kind of WLAN Scan/Discovery? I need as many
> comments on this as possible - because only if its REALLY true, that
> the emulator does not provide WIFI functioanlity, then i can ask for
> buying a Dev Phone.
>
> Please give some comments on that. And if so, WHY there is no WiFi
> support within the emulator...?
>
> Regards,
>  Daniel
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: Market and Developer Frustration

2009-03-10 Thread Justin (Google Employee)

> c) As I understand it there's no way to update an app without charging
> for it again. That's ok for a game but not so cool for something more
> complex.

Then you misunderstand. This is absolutely supported, in fact this is
the default modality.

Let me explain a Market concept that doesn't seem to be presented
anywhere. Conceptually users are not purchasing access to an
application in the sense of a particular set of bits. What they are
buying is unlimited, permanent access to an "application stream". The
application stream is created when you first upload your app to
Market. You can then publish zero or more *updates* to this stream.
The user will receive all these updates for free. Users may uninstall
the application, but may grab it later again from the stream. They may
buy multiple devices and use the same Google Account on those devices.
Each device is subscribed to the same set of streams.

Hopefully this clarifies.

Cheers,
Justin
Android Team @ Google

On Mar 10, 12:32 pm, markz  wrote:
> Woot, an update!
>
> As just a few comments.
>
> a) I just submitted a reply/comment somewhere. It'd be nice if the
> group search didn't take me to the forward message.
>
> b) I think it's pretty clear to the developers when we get shills. At
> 2-4$ an app who minds buying their competitor and trashing it when the
> result is so crisp? (well, i do, but...). For someone shipping a mass-
> market product maybe they end up getting an equal-weight with othe
> reviews but for more focused stuff with a smaller audience it's the
> kiss of death. I have a guy who's reposted garbage (different each
> time) repeatedly so he's constantly top-of-stack. How nice...
>
> c) As I understand it there's no way to update an app without charging
> for it again. That's ok for a game but not so cool for something more
> complex.
>
> Thanks for listening,
>
> Mark
>
> On Mar 10, 1:58 pm, "Justin (Google Employee)" 
> wrote:
>
> > > 5) We still don't have .33 for our phones. I can't mark something as
> > > Spam yet nor even see what's for sale on Market. This should have been
> > > ready when it rolled to users. Or at least tell us WHEN it will be
> > > ready. This 'coming soon' stuff doesn't do much fo rme.
>
> > How about 
> > now:http://android-developers.blogspot.com/2009/03/software-update-availa...
>
> > Cheers,
> > Justin
> > Android Team @ Google
>
> > On Mar 10, 10:34 am, Inderjeet Singh  wrote:
>
> > > In democratic systems, even the dumb shills should have a voice. They at
> > > least downloaded your app, or (for paid applications) bought and may be
> > > refunded it.
> > > I agree if there was a bad rating because of market problems (couldn't
> > > download, or copy-protection issue), it is worth taking down. But that is
> > > probably hard to do in an automated manner. Moreover, if enough people 
> > > mark
> > > it as spam, it will probably get excluded. May be all the developers on 
> > > this
> > > list should commit to doing so if they see such a comment on any app.
>
> > > Inder
>
> > > On Tue, Mar 10, 2009 at 10:29 AM, Sundog  wrote:
>
> > > > On "dumb shills": When everyone else is giving your app 5 stars, and
> > > > one idiot gives it one star and leaves a comments proving she never
> > > > even ran the program, that's one clue. Outliers should automatically
> > > > be treated as spam.
>
> > > > Thanks for your answers. Nice to hear any feedback from anyone.- Hide 
> > > > quoted text -
>
> > - Show quoted text -
>
>
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Market and Developer Frustration

2009-03-10 Thread Justin (Google Employee)

> 5) We still don't have .33 for our phones. I can't mark something as
> Spam yet nor even see what's for sale on Market. This should have been
> ready when it rolled to users. Or at least tell us WHEN it will be
> ready. This 'coming soon' stuff doesn't do much fo rme.

How about now: 
http://android-developers.blogspot.com/2009/03/software-update-available-for-android.html

Cheers,
Justin
Android Team @ Google

On Mar 10, 10:34 am, Inderjeet Singh  wrote:
> In democratic systems, even the dumb shills should have a voice. They at
> least downloaded your app, or (for paid applications) bought and may be
> refunded it.
> I agree if there was a bad rating because of market problems (couldn't
> download, or copy-protection issue), it is worth taking down. But that is
> probably hard to do in an automated manner. Moreover, if enough people mark
> it as spam, it will probably get excluded. May be all the developers on this
> list should commit to doing so if they see such a comment on any app.
>
> Inder
>
> On Tue, Mar 10, 2009 at 10:29 AM, Sundog  wrote:
>
> > On "dumb shills": When everyone else is giving your app 5 stars, and
> > one idiot gives it one star and leaves a comments proving she never
> > even ran the program, that's one clue. Outliers should automatically
> > be treated as spam.
>
> > Thanks for your answers. Nice to hear any feedback from 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
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Market and Developer Frustration

2009-03-10 Thread Justin (Google Employee)

I'll respond to most of your points in turn, but in general you should
keep in mind that Android isn't "done". There are still lots of thing
we plan to do, would like to do, and are thinking about doing. Thanks
for taking the time to provide this feedback.

> 1) There's no way to dialog on ratings. Even in a stupid web blog the
> author is allowed to comment in a discussion. Ratings should be more
> like discussions. Lots of sites do this well, there's no need to
> reinvent the wheel.

This seems like a reasonable request that would he helpful for users
and developers. I haven't thought about all the implications, but its
something we could consider putting in the roadmap.

> 2) There's no way to remove the ratings from dumb shills for other
> products who trash your product.

I'm a bit skeptical of this. How do you prevent developers from just
removing all the bad ratings? How do you identify a "dumb shill"?

> 3) There's no way to see ratings that are declared as Spam. I'd like
> to see what's getting marked as Spam in case it's the same shills
> pushing their own products marking good reviews as Spam.

This seems like it would be useful, again, need to think about any
possible downsides to this.

> 4) The score includes all those dumb shills so the star score is
> consistently low and the product will always languish.

If you can eliminate the ratings of the "dumb shills" then this no
longer becomes an issue, but see concerns about (2).

> 5) We still don't have .33 for our phones. I can't mark something as
> Spam yet nor even see what's for sale on Market. This should have been
> ready when it rolled to users. Or at least tell us WHEN it will be
> ready. This 'coming soon' stuff doesn't do much for me.

I can understand your frustration, however if you're an application
developer, you don't really need an ADP1, unless you live outside
geographies where retail Android devices are available. Retail devices
allow you to do all the necessary debugging for applications. Again, I
can understand your frustration about the lag here, and I think
ideally we'd like to release these simultaneously, but there are some
obstacles to this currently. Hopefully we'll be able to clear these in
the future.

> 6) All google lookups for doc go to the old doc site. Can't you at
> least upgrade your references in search to go to the new doc?

I assume you mean searches on google.com for Android content. The
Android team has no control over the Google search engine, and we
would never want to interfere with it. As far as I'm aware all content
from code.google.com/android has had redirects added to it to take
users to developer.android.com.

> 7) There's no way to post an update for a non-free product! Wtf is
> that? That's ok if you're producing the typical dumb iPhone flash game
> but for a real product?

Of course there is a way to post updates to a product. I don't
understand what you mean here.

> 8) There's still a huge black hole in the dev for bluetooth, as well
> as a bunch of missing documentation for more kernel-related stuff.

Bluetooth API support has been previously stated to be coming, so,
nothing new to report here. android-internals is probably a better
venue for discussing kernel development, but I believe our platform-
level code is as well document as our API-level code, which is quite
good.

> 9) The web interface for market is miserable. Why can't we see all the
> apps there? Why don't we have the same set of controls we do from the
> phone along with a discussion/blog for ratings.

The Market doesn't have a web interface. I assume you're referring to
http://www.android.com/market/ which isn't meant to be a Market
interface, but rather a space to highlight applications. Having a web
interface for Market is a common request and as this seems to benefit
all, I imagine it something we'll add at some point.

> 10) Adding a more serious set of rich-text info (with maybe a picture
> or two) as a hyperlink from market would be easy and really great for
> developers. 325 plaintext characters doesn't do much for anyone.

I'm sure this is something we've considered. Since this is not
available today I assume there are some concerns here or it is simply
something we haven't implemented yet. On the other hand, brevity is an
asset and we do provide a URL field where you can (and should) provide
more information about your product.

Cheers,
Justin
Android Team @ Google

On Mar 10, 6:26 am, markz  wrote:
> I've developed for a bunch of platforms and I'm starting to get a bit
> frustrated with Android/Google. It seems like you didn't quite think
> things through for developers.
>
> 1) There's no way to dialog on ratings. Even in a stupid web blog the
> author is allowed to comment in a discussion. Ratings should be more
> like discussions. Lots of sites do this well, there's no need to
> reinvent the wheel.
>
> 2) There's no way to remove the ratings from dumb shills for other
> products who trash your product.
>
> 3) Th

[android-developers] Re: I can't use my Google account to post question at Android Developers

2009-03-10 Thread Justin (Google Employee)

Hey Mars, there's a moderation delay for first time posters.

Cheers,
Justin
Android Team @ Google

On Mar 10, 6:00 am, Mars Alucard  wrote:
> Hi,
>
> I can't use my Google account to post questions at Android Developers
> (Google Groups).
>
> I don't know why since I got my Google account: k...@cis.nctu.edu.tw
> and,
> I've joined Google Groups of Android Developers.
>
> But when I click the button of "Post message" to post, it shows my
> message would be posted momentarily.
> However, I still can't see my messages after several hours later.
>
> Shall I do anything to post messages?
>
> Many thanks,
>
> Mars Alucard
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: RC33 Network Problem

2009-02-18 Thread Justin (Google Employee)

I'm looking into this further, although I'm not sure that this is
actually wrong behavior. In terms of the network interface, there is
no change when the router loses internet connectivity. The phone is
still connected to the router. The only way anything can really deal
with this is to have a timeout. If no response is sent in X seconds,
assume the remote server died or there is no path to it. While
inconvenient, you should be able to extend BufferedInputReader to use
this timeout mechanism. Have a timer thread, that if the timer expires
and no bytes have been read, throw an exception.

I'll look into this further.

Cheers,
Justin
Android Team @ Google

On Feb 17, 5:02 pm, Gil  wrote:
> Can anyone from Google comment on this matter?
>
> On Feb 17, 11:42 am, Gil  wrote:
>
> > I did further testing and I was wrong about one thing: the disconnect
> > is not detected at all (not even after 5 minutes as I said initially).
> > The reason I though that the disconnection was detected after 5 min.
> > is because the W-Fi was going to sleep. If I keep Wi-Fi alive by not
> > allowing the phone to go to sleep the problem is quite evident. I also
> > looked at the GTalk debug messages and it turns out that it has the
> > same problem (it never detects that it is disconnected from the
> > server).
>
> > On Feb 17, 11:19 am, Gil  wrote:
>
> > > Unfortunately, watching the network state will not always work because
> > > it does not account for end-to-end TCP connectivity. The server may
> > > crash or its Internet connection may go down and you won't know about
> > > it.
>
> > > On Feb 17, 10:05 am, Guillaume Perrot 
> > > wrote:
>
> > > > Yes it's exactly what happens since RC33.
> > > > Kinda annoying. I have to close sockets in a separate thread when I
> > > > receive a connectivity event indicating the network is down or we
> > > > switched network. This thread becomes zombie most of the time because
> > > > the socket refuses to close (deadlock with a nativeread).
>
> > > > 2009/2/17 Gil :
>
> > > > > What is disturbing is that event if you try to send data on a socket
> > > > > that is not actually connected (according to the situation I outlined
> > > > > initially) the socket does not throw an IOException. It simply thinks
> > > > > it is still connected.
>
> > > > > On Feb 17, 7:21 am, Guillaume Perrot  wrote:
> > > > >> I had the same problem too.
> > > > >> Plus when I loose connectivity, it's nearly impossible not to block 
> > > > >> on
> > > > >> socket.close();
> > > > >> It takes forever in that case.
> > > > >> I tried both plain and ssl sockets, same behavior in RC33.
>
> > > > >> On Feb 17, 1:23 am, Marc  wrote:
>
> > > > >> > I've seen inconsistent behavior from RC30 on in this regard.  The
> > > > >> > IOException happens anywhere from instantly to five minutes later. 
> > > > >> >  It
> > > > >> > seems like a bug to me.
>
> > > > >> > Marc
>
> > > > >> > On Feb 16, 2:29 pm, Gil  wrote:
>
> > > > >> > > I finally got to test some code on the RC33 release and I 
> > > > >> > > uncovered a
> > > > >> > > difference in the network code compared to earlier versions and 
> > > > >> > > the
> > > > >> > > emulator. I'm using a persistent TLS connection to a server and a
> > > > >> > > BufferedInputStream to read from the socket. The problem is that 
> > > > >> > > the
> > > > >> > > read method throws an IOException only 5 minutes after the Wi-Fi
> > > > >> > > connection looses connectivity (I unplug the Internet connection 
> > > > >> > > from
> > > > >> > > the router to simulate a connection problem). In RC30 and earlier
> > > > >> > > version as well as the latest emulator version (SDK 1.1) read 
> > > > >> > > throws
> > > > >> > > an exception after approximately 30 seconds after the 
> > > > >> > > connectivity is
> > > > >> > > lost. My code uses an infinite timeout for read 
> > > > >> > > (setSoTimeout(0)).
>
> > > > --
> > > > Guillaume Perrot
> > > > Software Engineer at Ubikod
> > > > BuddyMob developer
>
>
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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 does the TabActivity successfully "switch" activities?

2009-02-12 Thread Justin (Google Employee)

http://source.android.com/submit-patches

To be provide full disclosure, it may take some time for your patch to
be reviewed and accepted, but contributions back to the project are
appreciated.

Cheers,
Justin
Android Team @ Google

On Feb 10, 5:14 pm, kingkung  wrote:
> Gladly, how do I do that?
>
> On Feb 10, 3:42 pm, "Justin (Google Employee)" 
> wrote:
>
> > Contributing your source back to the Android project would be great.
>
> > Cheers,
> > Justin
> > Android Team @ Google
>
> > On Feb 10, 3:38 pm, kingkung  wrote:
>
> > > Got it working.
>
> > > All the functionality of a tab activity, without the tabs.  If anyone
> > > else needs to do this, let me know.
>
> > > James
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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 does the TabActivity successfully "switch" activities?

2009-02-10 Thread Justin (Google Employee)

Contributing your source back to the Android project would be great.

Cheers,
Justin
Android Team @ Google

On Feb 10, 3:38 pm, kingkung  wrote:
> Got it working.
>
> All the functionality of a tab activity, without the tabs.  If anyone
> else needs to do this, let me know.
>
> James
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: Market statistics for apps targeting The Netherlands are not correct

2009-02-10 Thread Justin (Google Employee)

Ronald,

We're still looking into this, so I don't have any additional
information at this time.

Cheers,
Justin
Android Team @ Google

On Feb 10, 12:30 pm, Ronald van der Lingen  wrote:
> Justin,
>
> Today, I started to see download numbers for my 'PimPam' app. In the
> afternoon it was listed as having 3 downloads and now it is bumped up
> to 52. Can you tell me whether this means that between this afternoon
> and now there were 49 downloads, of are the downloads from the last 10
> days slowly coming in?
>
> Will I be seeing a correct number for the total downloads of the app,
> or were the downloads not counted in the first 10 days?
>
> Thank you,
> Ronald
>
> On Feb 6, 9:00 pm, "Justin (Google Employee)"  wrote:
>
> > There does appear to be some problem here. We're looking into it
> > further.
>
> > Cheers,
> > Justin
> > Android Team @ Google
>
> > On Feb 6, 9:29 am, "Justin (Google Employee)"  wrote:
>
> > > Ronald,
>
> > > I've asked theMarketteam to take a look at your app specifically.
> > > I'll update you as I get new information.
>
> > > Cheers,
> > > Justin
> > > Android Team @ Google
>
> > > On Feb 5, 12:43 pm, Ronald van der Lingen  wrote:
>
> > > > At this moment the developer console is still showing 0 downloads
> > > > after the app has been available for a week.
>
> > > > I really suspect that something is wrong with the download count for
> > > > applications targeted to the Netherlands (or even downloads from the
> > > > Netherlands in general). I have checked severalappsin themarket
> > > > that are targeted to the Netherlands, and all of them show a download
> > > > count of <50.
>
> > > > I cannot imagine thatappsthat received a lot of publicity around the
> > > > launch have not been downloaded more than 50 times. This leads me to
> > > > believe that the developers of these applications also will see 0
> > > > downloads in their developer console.
>
> > > > Do any of the developers targetingappsto other new regions (Germany,
> > > > Poland, etc) experiencing the same?
>
> > > > Kind regards,
> > > > Ronald
>
> > > > On Feb 3, 7:43 pm, "Justin (Google Employee)"  wrote:
>
> > > > > Ronald,
>
> > > > > I've talked with theMarketteam and there may be a delay in
> > > > >statisticsgathering. My recommendation is to wait a day or two and
> > > > > see what your results are then. Either way, please post back with your
> > > > > results in a day or two.
>
> > > > > Cheers,
> > > > > Justin
> > > > > Android Team @ Google
>
> > > > > On Feb 3, 9:51 am, Ronald van der Lingen  wrote:
>
> > > > > > The name of my application is "PimPam".
>
> > > > > > Thank you,
> > > > > > Ronald
>
> > > > > > On Feb 3, 5:07 pm, "Justin (Google Employee)"  
> > > > > > wrote:
>
> > > > > > > What is the name of your application? If you're not comfortable
> > > > > > > sharing this publicly, please message me privately.
>
> > > > > > > Cheers,
> > > > > > > Justin
> > > > > > > Android Team @ Google
>
> > > > > > > On Feb 3, 1:58 am, Ronald van der Lingen  
> > > > > > > wrote:
>
> > > > > > > > Last week I published our first app to theMarket, which is a 
> > > > > > > > game
> > > > > > > > targeted to users in The Netherlands. Now that the G1 has been
> > > > > > > > available over here for a couple of days, we have received 
> > > > > > > > feedback
> > > > > > > > from several of our users.
>
> > > > > > > > When I look at the developers console in themarkethowever, the
> > > > > > > > download count still shows 0. Also on the device it is listed 
> > > > > > > > as <50.
> > > > > > > > When looking around in theMarket, I see that all applications
> > > > > > > > targeted to The Netherlands are listed as having <50 downloads, 
> > > > > > > > even
> > > > > > > > an application that received a lot of publicity.
>
> > > > > > > > Have other developers noticed the same?
>
> > > > > > > > Kind regards,
> > > > > > > > Ronald
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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 does the TabActivity successfully "switch" activities?

2009-02-10 Thread Justin (Google Employee)

The answer is that its complicated. You need to switch not only the
View, but the entity that the system considers to be active. As Dianne
suggests android.app.LocalActivityManager is where I'd start,
http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob;f=core/java/android/app/LocalActivityManager.java
. A lot of the heavy lifting is done here, but there's also
android.widget.TabHost and android.app.ActivityGroup (which TabHost
extends), and android.app.ActivityThread.

Cheers,
Justin
Android Team @ Google

On Feb 10, 1:36 pm, Dianne Hackborn  wrote:
> Well it doesn't use a ViewFlipper. :}  I suggest looking at the code.
>
>
>
> On Tue, Feb 10, 2009 at 11:43 AM, kingkung  wrote:
>
> > I'm trying to implement my own ActivityGroup to mimic TabActivity
> > (without tabs) but I'm having trouble "closing" activities.  My
> > ActivityGroup has a ViewFlipper, each housing a separate activity's
> > window.  When I attempt to switch "activities" I call
> > ViewFlipper.setDisplayedChild() on the view of choice.
>
> > However, when I scroll up and down in the view of choice, the OTHER
> > non-visible activities' views are responding to these actions, so it
> > seems like I'm not successfully "switching" the activity fully.
>
> > When I use a TabActivity to run this code, this doesn't happen; when I
> > scroll up and down in one activity, I don't see any event firing from
> > any of the other activities.
>
> > I'm wondering... what does TabActivity do to handle these activities
> > as separate, individual entities?
>
> --
> Dianne Hackborn
> Android framework engineer
> hack...@android.com
>
> Note: please don't send private questions to me, as I don't have time to
> provide private support.  All such questions should be posted on public
> forums, where I and others can see and answer them.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Android SDK v1.1 - changes / bug fixes or lack of

2009-02-09 Thread Justin (Google Employee)

If you find *new* bugs the right thing to do is file them,
http://source.android.com/report-bugs . Remember to search for
existing bugs that match your issues before filing new ones.

To echo Dianne, 1.1 was not a major platform release and many of the
bugs in 1.0 will still exist in 1.1.

Cheers,
Justin
Android Team @ Google

On Feb 9, 2:15 pm, Dianne Hackborn  wrote:
> The 1.1 update was not a major platform release, it was primarily for
> localization, and we deliberately avoided doing other things to keep it as
> small as possible.  I really don't want to read everything about 1.1 that is
> no different from 1.0 and people are for some reason unhappy about. :p
>
>
>
> On Mon, Feb 9, 2009 at 1:19 PM, thesquib  wrote:
>
> > This thread is for reporting changes and bug fixes (or the lack of
> > fixes) to the new 1.1 SDK.
>
> > So far I have found:
>
> > Bug: android.graphics.Bitmap.getPixels and
> > android.graphics.Bitmap.getPixel  still do not correctly function
> > (information is lost).
>
> > Feature missing: Playing sounds from input streams is not available.
> > This is very useful when playing from a single resource that contains
> > multiple sounds.
>
> > Documentation is still a bit thin. It is very hard to know how to
> > write an optimised application, especially when using the 2D graphics
> > API's which have very little explained.
>
> > Thanks,
> > Sam
>
> --
> Dianne Hackborn
> Android framework engineer
> hack...@android.com
>
> Note: please don't send private questions to me, as I don't have time to
> provide private support.  All such questions should be posted on public
> forums, where I and others can see and answer them.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Android 1.1_r1 SDK released and developer.android.com launched

2009-02-09 Thread Justin (Google Employee)

Hey developers, today we released the new, 1.1_r1 SDK. This SDK
includes some minor updates that you can read more about on the blog,
http://android-developers.blogspot.com/2009/02/android-11-sdk-release-1-now-available.html
. Also, we've launched the new developer site at http://developer.android.com
which has updated documentation for the 1.1_r1 SDK.

Cheers,
Justin
Android Team @ Google
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: Market statistics for apps targeting The Netherlands are not correct

2009-02-06 Thread Justin (Google Employee)

There does appear to be some problem here. We're looking into it
further.

Cheers,
Justin
Android Team @ Google

On Feb 6, 9:29 am, "Justin (Google Employee)"  wrote:
> Ronald,
>
> I've asked the Market team to take a look at your app specifically.
> I'll update you as I get new information.
>
> Cheers,
> Justin
> Android Team @ Google
>
> On Feb 5, 12:43 pm, Ronald van der Lingen  wrote:
>
> > At this moment the developer console is still showing 0 downloads
> > after the app has been available for a week.
>
> > I really suspect that something is wrong with the download count for
> > applications targeted to the Netherlands (or even downloads from the
> > Netherlands in general). I have checked several apps in themarket
> > that are targeted to the Netherlands, and all of them show a download
> > count of <50.
>
> > I cannot imagine that apps that received a lot of publicity around the
> > launch have not been downloaded more than 50 times. This leads me to
> > believe that the developers of these applications also will see 0
> > downloads in their developer console.
>
> > Do any of the developers targeting apps to other new regions (Germany,
> > Poland, etc) experiencing the same?
>
> > Kind regards,
> > Ronald
>
> > On Feb 3, 7:43 pm, "Justin (Google Employee)"  wrote:
>
> > > Ronald,
>
> > > I've talked with theMarketteam and there may be a delay in
> > >statisticsgathering. My recommendation is to wait a day or two and
> > > see what your results are then. Either way, please post back with your
> > > results in a day or two.
>
> > > Cheers,
> > > Justin
> > > Android Team @ Google
>
> > > On Feb 3, 9:51 am, Ronald van der Lingen  wrote:
>
> > > > The name of my application is "PimPam".
>
> > > > Thank you,
> > > > Ronald
>
> > > > On Feb 3, 5:07 pm, "Justin (Google Employee)"  wrote:
>
> > > > > What is the name of your application? If you're not comfortable
> > > > > sharing this publicly, please message me privately.
>
> > > > > Cheers,
> > > > > Justin
> > > > > Android Team @ Google
>
> > > > > On Feb 3, 1:58 am, Ronald van der Lingen  wrote:
>
> > > > > > Last week I published our first app to theMarket, which is a game
> > > > > > targeted to users in The Netherlands. Now that the G1 has been
> > > > > > available over here for a couple of days, we have received feedback
> > > > > > from several of our users.
>
> > > > > > When I look at the developers console in themarkethowever, the
> > > > > > download count still shows 0. Also on the device it is listed as 
> > > > > > <50.
> > > > > > When looking around in theMarket, I see that all applications
> > > > > > targeted to The Netherlands are listed as having <50 downloads, even
> > > > > > an application that received a lot of publicity.
>
> > > > > > Have other developers noticed the same?
>
> > > > > > Kind regards,
> > > > > > Ronald
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: Market statistics for apps targeting The Netherlands are not correct

2009-02-06 Thread Justin (Google Employee)

Ronald,

I've asked the Market team to take a look at your app specifically.
I'll update you as I get new information.

Cheers,
Justin
Android Team @ Google

On Feb 5, 12:43 pm, Ronald van der Lingen  wrote:
> At this moment the developer console is still showing 0 downloads
> after the app has been available for a week.
>
> I really suspect that something is wrong with the download count for
> applications targeted to the Netherlands (or even downloads from the
> Netherlands in general). I have checked several apps in themarket
> that are targeted to the Netherlands, and all of them show a download
> count of <50.
>
> I cannot imagine that apps that received a lot of publicity around the
> launch have not been downloaded more than 50 times. This leads me to
> believe that the developers of these applications also will see 0
> downloads in their developer console.
>
> Do any of the developers targeting apps to other new regions (Germany,
> Poland, etc) experiencing the same?
>
> Kind regards,
> Ronald
>
> On Feb 3, 7:43 pm, "Justin (Google Employee)"  wrote:
>
> > Ronald,
>
> > I've talked with theMarketteam and there may be a delay in
> >statisticsgathering. My recommendation is to wait a day or two and
> > see what your results are then. Either way, please post back with your
> > results in a day or two.
>
> > Cheers,
> > Justin
> > Android Team @ Google
>
> > On Feb 3, 9:51 am, Ronald van der Lingen  wrote:
>
> > > The name of my application is "PimPam".
>
> > > Thank you,
> > > Ronald
>
> > > On Feb 3, 5:07 pm, "Justin (Google Employee)"  wrote:
>
> > > > What is the name of your application? If you're not comfortable
> > > > sharing this publicly, please message me privately.
>
> > > > Cheers,
> > > > Justin
> > > > Android Team @ Google
>
> > > > On Feb 3, 1:58 am, Ronald van der Lingen  wrote:
>
> > > > > Last week I published our first app to theMarket, which is a game
> > > > > targeted to users in The Netherlands. Now that the G1 has been
> > > > > available over here for a couple of days, we have received feedback
> > > > > from several of our users.
>
> > > > > When I look at the developers console in themarkethowever, the
> > > > > download count still shows 0. Also on the device it is listed as <50.
> > > > > When looking around in theMarket, I see that all applications
> > > > > targeted to The Netherlands are listed as having <50 downloads, even
> > > > > an application that received a lot of publicity.
>
> > > > > Have other developers noticed the same?
>
> > > > > Kind regards,
> > > > > Ronald
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: Market statistics for apps targeting The Netherlands are not correct

2009-02-03 Thread Justin (Google Employee)

Ronald,

I've talked with the Market team and there may be a delay in
statistics gathering. My recommendation is to wait a day or two and
see what your results are then. Either way, please post back with your
results in a day or two.

Cheers,
Justin
Android Team @ Google

On Feb 3, 9:51 am, Ronald van der Lingen  wrote:
> The name of my application is "PimPam".
>
> Thank you,
> Ronald
>
> On Feb 3, 5:07 pm, "Justin (Google Employee)"  wrote:
>
> > What is the name of your application? If you're not comfortable
> > sharing this publicly, please message me privately.
>
> > Cheers,
> > Justin
> > Android Team @ Google
>
> > On Feb 3, 1:58 am, Ronald van der Lingen  wrote:
>
> > > Last week I published our first app to the Market, which is a game
> > > targeted to users in The Netherlands. Now that the G1 has been
> > > available over here for a couple of days, we have received feedback
> > > from several of our users.
>
> > > When I look at the developers console in the market however, the
> > > download count still shows 0. Also on the device it is listed as <50.
> > > When looking around in the Market, I see that all applications
> > > targeted to The Netherlands are listed as having <50 downloads, even
> > > an application that received a lot of publicity.
>
> > > Have other developers noticed the same?
>
> > > Kind regards,
> > > Ronald
>
>
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: Market statistics for apps targeting The Netherlands are not correct

2009-02-03 Thread Justin (Google Employee)

What is the name of your application? If you're not comfortable
sharing this publicly, please message me privately.

Cheers,
Justin
Android Team @ Google

On Feb 3, 1:58 am, Ronald van der Lingen  wrote:
> Last week I published our first app to the Market, which is a game
> targeted to users in The Netherlands. Now that the G1 has been
> available over here for a couple of days, we have received feedback
> from several of our users.
>
> When I look at the developers console in the market however, the
> download count still shows 0. Also on the device it is listed as <50.
> When looking around in the Market, I see that all applications
> targeted to The Netherlands are listed as having <50 downloads, even
> an application that received a lot of publicity.
>
> Have other developers noticed the same?
>
> Kind regards,
> Ronald
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: looking for an answer about the g1 for developers

2009-02-02 Thread Justin (Google Employee)

Please take care to search this forum specifically for answers before
posting.

http://groups.google.com/group/android-developers/search?group=android-developers&q=developer+phone+1+at%26t&qt_g=Search+this+group

The link above is for the search term "developer phone 1 at&t" on this
group. Android Beginners can also be a useful group to search, and
depending on the topic, Android Discuss.

Cheers,
Justin
Android Team @ Google

On Feb 2, 6:22 am, Sam Brown-Steiner  wrote:
> a few quick questions that i was hoping someone could answer.
> -the developers edition g1 should work fine on the at&t network,
> correct?
> -Will it be able to connect  to at&t's 3g network?
> if you could answer these i will be forever in debt to you, I have
> looked everywhere for this information only to lead me here, still
> confused.
> sorry if this is in the wrong spot, his is just as close as I have
> gotten to getting an answer(hopefully)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: Why I cannot see my mail to the group?

2009-02-02 Thread Justin (Google Employee)

This specific instance was a moderation delay. First time posters are
moderated. Moderation passes happen less frequently on the weekend,
because humans do them.

Cheers,
Justin
Android Team @ Google

On Feb 2, 9:16 am, Mark Murphy  wrote:
> Faber Fedor wrote:
> > Unless someone replies to your email, you will not see your original
> > posting.
>
> That might be true from the Web interface, but I see my own posts and
> replies all the time when I do it from my email client.
>
> Since three of his posts showed up all at once, I'm guessing there was
> some mail server hiccup that was preventing their delivery.
>
> --
> Mark Murphy (a Commons Guy)http://commonsware.com
> Android Training in Sweden --http://www.sotrium.com/training.php
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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] SharedPreference bug - commit() always returns false

2009-01-28 Thread Justin (Google Employee)

I just got bit by http://code.google.com/p/android/issues/detail?id=940
and a search for related issues on this group and the web didn't seem
to be very helpful. Hopefully this post will end up being more
findable for those in a similar situation.

Also note that this bug is already fixed and the fix will be in
cupcake.

Cheers,
Justin
Android Team @ Google
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: Am I root?

2009-01-16 Thread Justin (Google Employee)

First, I think that package is actually older than what was on the
developer phone, but I could be wrong.

Second, that image was not designed for the developer phone. While I
think its possible to use root with that system version, its not
straightforward or officially supported.

Regards,
Justin
Android Team @ Google

On Jan 16, 9:01 am, Beni  wrote:
> Hi Guys,
> From about 3 Weeks ago I got a Dev g1 Phone from Google. And as far as
> I know I should have the Root rights because it's a Developer Phone,
> right? Anyways, a few days ago I updated my G1 with this 
> package:https://android.clients.google.com/updates/signed-kila-ota-115247-pre...
> (sorry I don't know how to link)
> And now I tried to use the software called: Screenshot. And it tells
> me: "screenshot.raw file not found!". I did some research and found
> out that my problem is that I am not root.
> How can I find out if I am root or not? And if I'm not, how do I get
> my root-status back?
> With friendly Regards,
> Beni
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: I really, really, need help with the android emulator sensors, HELP PLEASE!

2009-01-15 Thread Justin (Google Employee)

I think is all a bit moot because you won't get any interesting input
from the emulator sensor service. What would it take the sensor input
from? I could be wrong though, I've never tried to use it in the
emulator.

Cheers,
Justin
Android Team @ Google

On Jan 12, 7:47 pm, "Fred Grott(shareme)" 
wrote:
> HardwareTest permission not set right..
>
> should be uses-permission
> android.name=android.permission.HARDWARE_TEST
>
> On Jan 12, 9:30 pm, flashpro  wrote:
>
> > OK, here is my manifest file. Below that is the Logcat data:
>
> > 
> > http://schemas.android.com/apk/res/android";
> > package="com.android.bouncingball" android:versionCode="11"
> > android:versionName="1.3.3">
> > 
> >  > android:icon="@drawable/icon"
> > android:permission="android.permission.HARDWARE_TEST">
> > 
> > 
> > 
> >  > android:name="android.intent.category.LAUNCHER" />
> > 
> > 
> > 
> > 
> > 
> >  > android:name="android.intent.category.LAUNCHER" />
> > 
> > 
> > 
> > 
> > LOG
>
> > 01-12 19:29:13.245: DEBUG/AndroidRuntime(297): >>
> > AndroidRuntime START <<
> > 01-12 19:29:13.245: DEBUG/AndroidRuntime(297): CheckJNI is ON
> > 01-12 19:29:13.405: DEBUG/AndroidRuntime(297): --- registering native
> > functions ---
> > 01-12 19:29:13.405: INFO/jdwp(297): received file descriptor 19 from
> > ADB
> > 01-12 19:29:14.175: DEBUG/PackageParser(55): Scanning package: /data/
> > app/vmdl54456.tmp
> > 01-12 19:29:14.305: WARN/PackageManager(55): Attempt to re-install
> > com.android.bouncingball without first uninstalling.
> > 01-12 19:29:14.305: INFO/installd(28): unlink /data/dalvik-cache/
> > d...@a...@vmdl54456@classes.dex
> > 01-12 19:29:14.335: DEBUG/AndroidRuntime(297): Shutting down VM
> > 01-12 19:29:14.335: DEBUG/dalvikvm(297): DestroyJavaVM waiting for non-
> > daemon threads to exit
> > 01-12 19:29:14.345: INFO/dalvikvm(297): DestroyJavaVM shutting VM down
> > 01-12 19:29:14.355: DEBUG/dalvikvm(297): HeapWorker thread shutting
> > down
> > 01-12 19:29:14.355: DEBUG/dalvikvm(297): HeapWorker thread has shut
> > down
> > 01-12 19:29:14.355: DEBUG/jdwp(297): JDWP shutting down net...
> > 01-12 19:29:14.375: DEBUG/jdwp(297): +++ peer disconnected
> > 01-12 19:29:14.375: INFO/dalvikvm(297): Debugger has detached; object
> > registry had 1 entries
> > 01-12 19:29:14.395: DEBUG/dalvikvm(297): VM cleaning up
> > 01-12 19:29:14.415: DEBUG/dalvikvm(297): LinearAlloc 0x0 used 529468
> > of 4194304 (12%)
> > 01-12 19:29:14.645: DEBUG/dalvikvm(55): GC freed 4683 objects / 308520
> > bytes in 319ms
> > 01-12 19:29:14.765: DEBUG/AndroidRuntime(305): >>
> > AndroidRuntime START <<
> > 01-12 19:29:14.775: DEBUG/AndroidRuntime(305): CheckJNI is ON
> > 01-12 19:29:15.129: DEBUG/AndroidRuntime(305): --- registering native
> > functions ---
> > 01-12 19:29:15.145: INFO/jdwp(305): received file descriptor 19 from
> > ADB
> > 01-12 19:29:15.905: DEBUG/PackageParser(55): Scanning package: /data/
> > app/vmdl54457.tmp
> > 01-12 19:29:16.034: DEBUG/PackageManager(55): Removing package
> > com.android.bouncingball
> > 01-12 19:29:16.045: DEBUG/PackageManager(55):   Activities:
> > com.android.bouncingball.BouncingBall
> > com.android.bouncingball.FileExplorer
> > 01-12 19:29:16.045: DEBUG/PackageManager(55): Scanning package
> > com.android.bouncingball
> > 01-12 19:29:16.055: INFO/PackageManager(55): /data/app/vmdl54457.tmp
> > changed; unpacking
> > 01-12 19:29:16.065: DEBUG/installd(28): DexInv: --- BEGIN '/data/app/
> > vmdl54457.tmp' ---
> > 01-12 19:29:16.305: DEBUG/dalvikvm(313): DexOpt: load 39ms, verify
> > 96ms, opt 1ms
> > 01-12 19:29:16.335: DEBUG/installd(28): DexInv: --- END '/data/app/
> > vmdl54457.tmp' (success) ---
> > 01-12 19:29:16.335: DEBUG/PackageManager(55):   Activities:
> > com.android.bouncingball.BouncingBall
> > com.android.bouncingball.FileExplorer
> > 01-12 19:29:16.415: INFO/installd(28): move /data/dalvik-cache/
> > d...@a...@vmdl54457@classes.dex -> /data/dalvik-cache/
> > d...@a...@com.android.bouncingball@classes.dex
> > 01-12 19:29:16.435: DEBUG/PackageManager(55): New package installed
> > in /data/app/com.android.bouncingball.apk
> > 01-12 19:29:16.595: DEBUG/AndroidRuntime(305): Shutting down VM
> > 01-12 19:29:16.605: DEBUG/dalvikvm(305): DestroyJavaVM waiting for non-
> > daemon threads to exit
> > 01-12 19:29:16.605: DEBUG/ActivityManager(55): Uninstalling process
> > com.android.bouncingball
> > 01-12 19:29:16.635: INFO/dalvikvm(305): DestroyJavaVM shutting VM down
> > 01-12 19:29:16.635: DEBUG/dalvikvm(305): HeapWorker thread shutting
> > down
> > 01-12 19:29:16.635: DEBUG/dalvikvm(305): HeapWor

Re: BUG, TERRIBLE BUG!!! Re: [android-developers] Re: HELP! (was Re: Low on space)

2009-01-13 Thread Justin (Google Employee)

The Market cache growing is not related to this issue. When I first
heard about it I thought it might be, I investigated, its not.

I wasn't trying to label this as not a bug to say "oh look at our
beautiful, bug free system", but as a semantic argument. I completely
agree that most people would label this a bug. Its not worth the
effort to carry on with this further, I'll rather just back pedal. Its
a bug, its a bug!

Cheers,
Justin
Android Team @ Google

On Jan 13, 8:03 am, Justin  wrote:
> Hi all - new to this, but have a (possibly related, possibly not)
> issue - I tried the above, and it didn't change...  I've seen a number
> of folks comment on the size of the Market as reported in the 
> Settings->Applications->Manage Applications panel, and I still don't get  why
>
> my Market is 21MB.  Caching aside (as someone earlier in this thread
> commented), that's huge.  It *appears* to be keeping a copy of every
> APK I've downloaded, just in case I want to re-install it, and there's
> no way for me to delete them... is this another known bug, or is there
> a work-around that I haven't found?
>
> Justin
>
> On Jan 12, 6:25 pm, "Justin (Google Employee)" 
> wrote:
>
> > Yes, your understanding is correct. Yes, you will need to unlock the
> > screen and wait for the home scree to appear before shutting the phone
> > down the second time. Shutting the phone down is better than pulling
> > the battery.
>
> > Cheers,
> > Justin
> > Android Team @ Google
>
> > On Jan 12, 4:22 pm, "Stoyan Damov"  wrote:
>
> > > On Tue, Jan 13, 2009 at 1:46 AM, Justin (Google Employee)
>
> > >  wrote:
>
> > > > Here is some more information on what's happening. There is a problem
> > > > in yaffs2 where unlinked files are not removed from a check-pointed
> > > > filesystem. Whenever Android sleeps, it check-points the filesystem.
> > > > When you uninstall an app the files are unlinked. If the device then
> > > > goes to sleep before the unlinked files are actually removed, they
> > > > won't be.
>
> > > > The proper way to work around this it to shut down your phone by
> > > > holding down the end call button until you get a dialog asking to shut
> > > > down your phone. Turn your phone back on. BEFORE your phone can sleep
> > > > after it reboot, shut it down again. This will clean your unlinked
> > > > files.
>
> > > Come again, I'm not sure understand that part.
> > > Are these the steps for the workaround?
> > > 1. Shutdown phone
> > > 2. Turn on phone
> > > 3. Unlock SIM card, wait for home screen to appear (do I need that?)
> > > 4. Shutdown phone
> > > 5. Turn on phone, and files will be deleted
>
> > > Thanks,
> > > Stoyan
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: BUG, TERRIBLE BUG!!! Re: [android-developers] Re: HELP! (was Re: Low on space)

2009-01-12 Thread Justin (Google Employee)

Well, I don't think this is really a "bug" in the traditional sense,
but an adverse interaction between two pieces of code. The phone
should checkpoint the filesystem when it goes to sleep, just in case.
The filesystem should probably also not worry about cleanup on
checkpointed filesystem, because in the usual case its wasteful. So,
here we get an unexpected result when two optimizations meet.

Cheers,
Justin
Android Team @ Google

On Jan 12, 4:30 pm, "Stoyan Damov"  wrote:
> On Tue, Jan 13, 2009 at 2:25 AM, Justin (Google Employee)
>
>  wrote:
>
> > Yes, your understanding is correct. Yes, you will need to unlock the
> > screen and wait for the home scree to appear before shutting the phone
> > down the second time. Shutting the phone down is better than pulling
> > the battery.
>
> Justin, God bless you!
> Now go and find that dev who introduced the bug and make something
> painful to him :)
>
> Can't thank you enough - beats the battery pull! :)
>
> Cheers,
> Stoyan
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: BUG, TERRIBLE BUG!!! Re: [android-developers] Re: HELP! (was Re: Low on space)

2009-01-12 Thread Justin (Google Employee)

Yes, your understanding is correct. Yes, you will need to unlock the
screen and wait for the home scree to appear before shutting the phone
down the second time. Shutting the phone down is better than pulling
the battery.

Cheers,
Justin
Android Team @ Google

On Jan 12, 4:22 pm, "Stoyan Damov"  wrote:
> On Tue, Jan 13, 2009 at 1:46 AM, Justin (Google Employee)
>
>  wrote:
>
> > Here is some more information on what's happening. There is a problem
> > in yaffs2 where unlinked files are not removed from a check-pointed
> > filesystem. Whenever Android sleeps, it check-points the filesystem.
> > When you uninstall an app the files are unlinked. If the device then
> > goes to sleep before the unlinked files are actually removed, they
> > won't be.
>
> > The proper way to work around this it to shut down your phone by
> > holding down the end call button until you get a dialog asking to shut
> > down your phone. Turn your phone back on. BEFORE your phone can sleep
> > after it reboot, shut it down again. This will clean your unlinked
> > files.
>
> Come again, I'm not sure understand that part.
> Are these the steps for the workaround?
> 1. Shutdown phone
> 2. Turn on phone
> 3. Unlock SIM card, wait for home screen to appear (do I need that?)
> 4. Shutdown phone
> 5. Turn on phone, and files will be deleted
>
> Thanks,
> Stoyan
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: BUG, TERRIBLE BUG!!! Re: [android-developers] Re: HELP! (was Re: Low on space)

2009-01-12 Thread Justin (Google Employee)

Here is some more information on what's happening. There is a problem
in yaffs2 where unlinked files are not removed from a check-pointed
filesystem. Whenever Android sleeps, it check-points the filesystem.
When you uninstall an app the files are unlinked. If the device then
goes to sleep before the unlinked files are actually removed, they
won't be.

The proper way to work around this it to shut down your phone by
holding down the end call button until you get a dialog asking to shut
down your phone. Turn your phone back on. BEFORE your phone can sleep
after it reboot, shut it down again. This will clean your unlinked
files.

This works because when the system starts it has no check-points in
the filesystem and one won't be created if the system doesn't sleep.
The unlinked files are actually removed then when the file system is
mounted or unmounted (I'm not sure which it actually is).

Cheers,
Justin
Android Team @ Google

On Jan 12, 1:56 pm, "Greg White"  wrote:
> On Mon, Jan 12, 2009 at 4:54 PM, Joel Knighton wrote:
>
> > Okay, someone who can replicate this problem, can you perform a "cat
> > /proc/yaffs" and then post the output here.  Curious to see the YAFFS
> > debugging info.
>
> I don't have the output handy, but I went from ~12K unlinked files to ~2K.
> This makes a difference.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: When is (or isn't) instance state restored ?

2009-01-12 Thread Justin (Google Employee)

There is no way to do this. When you press back, your instance of the
application is over, therefore there is no instance state to save.
Perhaps you are saving something in instance state that doesn't really
belong there? Persistent state and instance state are two different
things. Data that needs to be saved into the persistent state should
be saved in onPause, not onSaveInstanceState.

Cheers,
Justin
Android Team @ Google

On Jan 11, 7:45 am, Orde  wrote:
> What if we wanted to force the system to save the bundle when back
> button is pressed? Currently I believe that
> pressing MENU calls:
> -onSaveInstanceState
> -onPause
> -onStop
>
> pressing back calls:
> -onPause
> -onStop
> -onDestroy
>
> Ideally I would like to force my app to call onSaveInstanceState even
> when back is pressed
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: REST Web Services and Android

2009-01-09 Thread Justin (Google Employee)

You need android.permission.INTERNET declared in your manifest.

Cheers,
Justin
Android Team @ Google

On Jan 9, 5:07 pm, Jamie  wrote:
> Thanks for the slides!! Do you know of any current resources for
> accessing web API's (examples, explanations, etc.)?  The android
> implementation has undergone some changes and most resources I have
> found do not work any longer.  Also, I am not familiar with Web
> protocol, so documentation is unclear both on the android and apache
> sites.
>
> Evertime I execute this code:
>
> HttpClient httpClient = new DefaultHttpClient();
> HttpContext localContext = new BasicHttpContext();
> HttpGet get_request = new HttpGet(URI);
> HttpResponse response = httpClient.execute(get_request, localContext);
>
> It throws a Socket Exception on the last line.  Any ideas why??
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: HELLO MODERATOR

2009-01-07 Thread Justin (Google Employee)

I'm not sure what message was yours, since I didn't see another
message by the same author as this one, but yes, there was a lag in
the moderation queue.

Cheers,
Justin
Android Team @ Google

On Jan 5, 5:13 pm, eags  wrote:
> Are you backed up or are is my question about the Android Marketplace
> not appropriate somehow?  Please let me know what is happening.  I
> have posted the same question twice now several hours ago and still it
> has not appeared in the group.
>
> 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
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: USB signal control class?

2008-12-30 Thread Justin (Google Employee)

There's no simple (and perhaps none at all) way to do this on the
system that runs on the G1. There might be a way to do this through
JNI, but it would be fragile and difficult to develop, if it were even
possible. You can, of course, modify the system itself and install on
custom hardware (or an Android Dev Phone 1). This route requires
experience with Linux system and/or kernel programming though.

Cheers,
Justin
Android Team @ Google

On Dec 30, 7:53 am, rr...@scires.com wrote:
> Justin,
>
> You say "In 1.0 you don't have access to theUSBport via the Java API
> layer. ".  Does that imply that there is another interface that may
> allow me to access theUSBport?  We would like to use the G1 as acontrolhead 
> for several devices and a wireless link will not be
> appropriate.  We are hoping to use theUSBto getcontrolinformation
> and data back and forth.
>
> Thanks,
> Rob
>
> On Dec 15, 5:39 pm, "Justin (Google Employee)"  wrote:
>
> > Pavel,
>
> > It sounds like you're trying to do hardware development, and the SDK
> > isn't really designed for this. You can modify the source and,
> > assuming you have a developer device, flash your new system on to your
> > device.
>
> > Its unlikely that any device will ever support simultaneous access to
> > the SD card by the device and a host computer. The file system of the
> > SD card (FAT32) is not designed for this type of multi-host access.
>
> > Cheers,
> > Justin
> > Android Team @ Google
>
> > On Oct 27, 3:59 pm, Pavel Antokolsky aka Zigmar 
> > wrote:
>
> > > On Oct 24, 6:35 pm, "Justin (Google Employee)" 
> > > wrote:
>
> > > > In 1.0 you don't have access to theUSBport via the Java API layer.
> > > > What is the goal of your project?
>
> > > Hello Justin,
> > > I'm unsure what Chamika is doing, but I have a similar problem. My app
> > > needs to communicate with a hardware device (an embedded device,
> > > running WindowsCE and acting asUSBhost). Currently, I'm kinda stuck
> > > because I can't figure out how to do this. I was hoping to accomplish
> > > this by making my app write and read to files at SD Card, while the
> > > other device would access those files via mass storage interface, but
> > > as discovered recently (discussed in this topic:http://tinyurl.com/6xxovg)
> > > an android app can't write on SD card while it is accessible viausb
> > > (at G1 unit at least). Could you suggest some direction to look at,
> > > please?
>
> > > Best Regards,
> > > Zigmar- Hide quoted text -
>
> > - Show quoted text -
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Android Dev Phone 1™

2008-12-30 Thread Justin (Google Employee)

Hmmm, this is the first I've heard of the charging cable not
physically fitting the phone. The phone should *not* have a standard
miniUSB input, but instead a modified one. When holding the phone with
the screen facing up the left side of the port on the phone should be
perfectly vertical, but the right side should be at an angle at the
bottom of the port and then go completely vertical half way up. I'll
try a little ASCII art here:
_
|   |
|__/

A 'normal' miniUSB port has sides that are mirror images of itself and
look roughly like the right side of the port on the Dev Phone 1,
albeit a little less perfectly angular.

A 'normal' miniUSB cable will work with the Dev Phone 1, but a Dev
Phone 1 specific cable will *not* work with a 'normal' miniUSB port.
Based on your description I wonder if your phone has a 'normal'
miniUSB port instead of the custom one and you've got a wall charger
with the custom connector, as it should have. If you can provide some
more information on your connector configurations that would be great.

Thanks,
Justin
Android Team @ Google

On Dec 19, 3:07 pm, baker  wrote:
> Sorry for the repost.
>
> Yes I can charge thephonewith USB and yes the cable will connect to
> the wall with a converting. However always charging over USB isn't
> always convenient.
>
> However the socket to thephoneis incompatible with thephone. It
> physically doesn't fit, different shape.
>
> Craig.
>
> On Dec 20, 10:02 am, baker  wrote:
>
> > I received thephonelast week but it came packaged with an incorrect
> > power cable. The cable doesn't connect to either my Australian wall
> > socket or thephone. That's right it isn't even compatible with the
> >phone. So what to do, brightstar and google have no contact
> > information should you have any problems with the shipment. None of
> > the emails from birghtstar have a support email.
>
> > I've emailed both a brightstart email address from there web site and
> > a google market place email, but haven't heard from anybody after many
> > days.
>
> > I just want a power cable for thephone, can anybody give me some
> > advice as to how I get these goons to send me thephonean equipment I
> > paid for.
>
> > Thanks,
>
> > Craig Baker.
>
> > On Dec 11, 4:31 pm, kpowerinfinity  wrote:
>
> > > Same problem here. I placed an order, but the order doesn't appear on
> > > the Brightstar tracking page. It says that no orders have been placed.
> > > I have sent 3 emails to andr...@brightstarcorp.com but not received
> > > any useful replies. Anybody here knows how long it will take the
> > > phones to ship?
>
> > > I am relying on somebody to bring thephonefrom the US to India for
> > > me ... and in fact I paid extra shipping to ensure it reaches in time.
> > > In case, they delay shipping too much, I would rather cancel the order
> > > because then I can't get thephonebrought to India for me, but the
> > > customer services hasn't even replied. Anybody here can help?
>
> > > Thanks, Krishna.
> > > kkme...@gmail.com
>
> > > melp wrote:
> > > > I have the same issue. I placed an order twice on 8 Dec and got the
> > > > confirming email. Both times my credit card was charged(!) but my
> > > > orders disappeared off the tracking page.
>
> > > > Customer service is non-existent. Repeated emails have not received
> > > > any replies and I have tried calling their number during their stated
> > > > operating hours but always get a recorded message that says they are
> > > > closed or serving someone else.
>
> > > > Any google employees care to comment?
>
> > > > On Dec 9, 9:33 pm, Logan  wrote:
> > > > > Does anyone know more about this company, I placed an order and all I
> > > > > got was an e-mail confirming my order but no way to check shipping
> > > > > status, etc. Are these phones actually shipping now?
>
> > > > > On Dec 8, 2:49 pm, Pastymage  wrote:
>
> > > > > > Does anyone have a more detailed FAQ than the text 
> > > > > > onhttp://android.brightstarcorp.com/?Mymainconcern is that GPS is
> > > > > > not listed anywhere in the hardware features - does it actually
> > > > > > support GPS, or not?
>
> > > > > > Aside from that, I'm unclear on how the 3G bands work - what would
> > > > > > the actual bandwidth of this device be on AT&T, for example?
>
> > > > > > -Dave
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: GPS reading jumps a thousand miles or more

2008-12-17 Thread Justin (Google Employee)

What provider are you seeing this from, GPS or network? In the case of
GPS its possible that there is a signal reflection which causes the
GPS signal to take longer that it should to reach your device and
therefore throwing off the position calculation.

Cheers,
Justin
Android Team @ Google

On Dec 17, 12:01 pm, Don Park  wrote:
> my android app that is a location listener gets fairly good data but
> once in a while the location jumps by a thousand miles or more and
> stays there for numerous updates with no corresponding major increase
> in the (in)accuracy reading.
>
> for example you can see that at 3:07 and 3:09  and 3:10 i was in
> portland oregon with less than 1024 meters of accuracy. at 3:48 i get
> consistent readings in the pacific ocean, with a supposed accuracy of
> less than 1024 meters in the first two readings.
>
> donpG1  2008-12-17 03:57:59 UTC         53.5545998811722        
> -135.155128240585
> 6144.0
> donpG1  2008-12-17 03:55:58 UTC         53.5575771331787        
> -135.154876112938
> 4096.0
> donpG1  2008-12-17 03:53:58 UTC         53.5582852363586        
> -135.15274643898
> 3072.0
> donpG1  2008-12-17 03:51:59 UTC         53.5593849420547        
> -135.15048801899
> 2048.0
> donpG1  2008-12-17 03:49:58 UTC         53.5648941993713        
> -135.139072537422
> 1024.0
> donpG1  2008-12-17 03:48:49 UTC         53.5753923654556        
> -135.129395127296
> 768.0
> donpG1  2008-12-17 03:10:36 UTC         45.5137449502945        
> -122.627688646317
> 512.0
> donpG1  2008-12-17 03:09:02 UTC         45.5137234926224        
> -122.627495527267
> 512.0
> donpG1  2008-12-17 03:07:01 UTC         45.5135464668274        
> -122.627694010735
> 1024.0
>
> whats odd is that the location is not a random reading but consistent
> readings in the same wildly inaccurate place. its almost like the G1
> starts playing a debugging kml file buried deep in the the GPS code.
>
> don
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: android.app.Application onTerminate() Method doesn't fire

2008-12-17 Thread Justin (Google Employee)

Have you checked in DDMS that your application has actually shut down?

Also, from the documentation: "Note: never depend on this method being
called; in many cases an unneeded application process will simply be
killed by the kernel without executing any application code."

Cheers,
Justin
Android Team @ Google

On Dec 17, 10:34 am, djfrodo  wrote:
> Hi all,
>
> O.k. it's clearly stated in the docs 
> (here:http://code.google.com/android/reference/android/app/Application.html)
> that the Application class allows one to maintain global application
> state.
>
> Unfortunately this seems not to be the case due to the fact that
> onTerminate() doesn't fire when an application shuts down.
>
> Has anyone found a way to fire an event when an app closes using this
> class? Is there another way to do this?
>
> Thanks!
>
> djfrodo
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: When is (or isn't) instance state restored ?

2008-12-17 Thread Justin (Google Employee)

I see a couple of problems with your scenario. While possible, its
unlikely that an application is going to live that long in the
background, unless you have a very unusual user. Secondly, data in a
content provider can change at any time, even while your application
us running. Whatever data you use in your application from a content
provider (or any other source) needs to have an expiration lifetime
that is reasonable for your application.

Cheers,
Justin
Android Team @ Google

On Dec 17, 8:30 am, Peli  wrote:
> The only possible complication is that it is also possible to save an
> activity state through shared preferences (or a content provider) in
> onPause() and retrieve that in onResume(), so there is a delicate
> question which information to store in shared preferences (or content
> provider) and which information to store in the bundle.
>
> Also, assuming that the content of an EditText is stored in both, a
> shared preference and the bundle, which of those has precedence?
>
> (Probably the bundle has precedence, but consider the following
> example: Application in the foreground; user presses Home, state saved
> to bundle; one week later another app changes content of content
> provider; two weeks later application is retrieved to foreground, uses
> information of bundle and ignores changes to content provider..)
>
> Peli
>
> On Dec 17, 3:12 am, "Dianne Hackborn"  wrote:
>
> > It really is not that complicated -- the system will at various points ask
> > you to save your current instance state in onSaveInstanceState(), and if in
> > the future it needs to restart your activity with some previous saved state,
> > your onCreate() will be called with a Bundle containing the saved state you
> > supplied in onSaveInstanceState().
>
> > If you want to ignore this and do your own thing, you are of course free to,
> > and your application won't behave consistently with others.  Whether your
> > users will care or not I can't say.
>
> > On Tue, Dec 16, 2008 at 11:33 AM, joshv  wrote:
>
> > > Basically if you are interested in long term persistent state, ignore
> > > the Bundle passed in onCreate - I don't pretend to understand the
> > > reasons for why it is or is not null - perhaps they make sense to the
> > > framework designers, but whatever the rationale, it doesn't make much
> > > sense to store any state you care about in that default bundle.
>
> > > Use SharedPreferences or a database instead.
>
> > > On Dec 16, 2:47 am, jarkman  wrote:
> > > > Justin - thanks for the explanation.
>
> > > > I'm not making any allegation of impropriety on the part of the
> > > > system, just trying to understand what the orthodox behaviour ought to
> > > > be for a 'vanilla' app.
>
> > > > I had completely missed the distinction between leaving via 'back' and
> > > > leaving via 'home', which may account for some of my confusion. I'm
> > > > not sure our users will get that distinction either, but fortunately
> > > > our state is pretty simple so they can't get too bemused.
>
> > > > So, just to check, is the plan that leaving via 'home' seems to the
> > > > user like sending the app to the background, to be restored later,
> > > > whereas leaving via 'back' is closing the app, so it next starts in a
> > > > virgin state ?
>
> > > > Richard
>
> > > > On Dec 16, 12:18 am, "Justin (Google Employee)" 
> > > > wrote:
>
> > > > > Richard,
>
> > > > > If you save something into the bundle and hit 'home' (button with a
> > > > > house on it), the system will always return a non-null Bundle to you.
> > > > > If you don't save anything to the Bundle, I'm not sure what the system
> > > > > will do.
>
> > > > > If you hit the 'back' button (button with the arrow), the system will
> > > > > not call onSaveInstanceState and therefore give a null Bundle to
> > > > > onCreate.
>
> > > > > The other thing that comes to mind is that if you're trying to tweak
> > > > > launch modes, the system may be launching a new instance of your
> > > > > Activity, which it would launch with a null Bundle. If this is the
> > > > > case, hitting the 'back' button should eventually reveal another
> > > > > instance of your same Activity.
>
> > > > > Its also worth noting that onPause is *not* always 

[android-developers] Re: If your hosting your own .apk

2008-12-16 Thread Justin (Google Employee)

Well, first you need to figure out what is taking up space to see
where the big wins will be. Typically this means resource files.

Remove resources that are seldom used, consider downloading them when
they're needed and then saving them to your data directory. Obviously
you need to be very careful with this because it could have negative
user experience impacts, but sometimes there are gains that you can
get here.

Make sure any image files are as small as they can be. The G1
currently displays 16-bit images, so if you're bundling 32-bit images,
you're wasting space. Often downsampling the bit depth can make a
significant dent in resource sizes.

Cheers,
Justin
Android Team @ Google

On Dec 16, 12:11 pm, Tom  wrote:
> My APK is 1.2M.  I've searched for ways to reduce it in size without
> success.  Any pointers?
>
> On Dec 16, 1:56 pm, "Justin (Google Employee)" 
> wrote:
>
> > Assuming your APK is <1MB you can host it on Google App Engine, which
> > obviously gives you MIME-type control. (Hopefully your APK is below
> > this threshold anyway).
>
> > Cheers,
> > Justin
> > Android Team @ Google
>
> > On Dec 14, 7:02 am, Tom  wrote:
>
> > > Hostingyourapkonhttp://code.google.comforcesitto have an open
> > > source license, doesn't it?
>
> > > I am frantically searching for a place to host myapkso I can
> > > distribute it in a controlled manner (since it's quite early in
> > > development).  My preference is to find a Google-based service for
> > > this.
>
> > > On Oct 24, 3:35 pm, brs  wrote:
>
> > > > It would also be nice to have a list ofhostingsites which handle the
> > > > MIME type for .apkfiles correctly. Download tab 
> > > > forhttp://code.google.com
> > > > projects is one of them.
>
> > > > Bernhard
>
> > > > On Oct 21, 5:15 am, Al Sutton  wrote:
>
> > > > > There are a number of reports of people having problems downloading 
> > > > > apks
> > > > > directly from websites, so I'm putting together a list of tips for
> > > > >hostingyourownapp at;
>
> > > > >http://andappstore.com/AndroidPhoneApplications/publishing.jsp
>
> > > > >Ifanyone has anything they think should be added please let me know.
>
> > > > > Al.http://andappstore.com/
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: If your hosting your own .apk

2008-12-16 Thread Justin (Google Employee)

Assuming your APK is <1MB you can host it on Google App Engine, which
obviously gives you MIME-type control. (Hopefully your APK is below
this threshold anyway).

Cheers,
Justin
Android Team @ Google

On Dec 14, 7:02 am, Tom  wrote:
> Hostingyourapkonhttp://code.google.comforces it to have an open
> source license, doesn't it?
>
> I am frantically searching for a place to host myapkso I can
> distribute it in a controlled manner (since it's quite early in
> development).  My preference is to find a Google-based service for
> this.
>
> On Oct 24, 3:35 pm, brs  wrote:
>
> > It would also be nice to have a list ofhostingsites which handle the
> > MIME type for .apkfiles correctly. Download tab forhttp://code.google.com
> > projects is one of them.
>
> > Bernhard
>
> > On Oct 21, 5:15 am, Al Sutton  wrote:
>
> > > There are a number of reports of people having problems downloading apks
> > > directly from websites, so I'm putting together a list of tips for
> > >hostingyourownapp at;
>
> > >http://andappstore.com/AndroidPhoneApplications/publishing.jsp
>
> > >Ifanyone has anything they think should be added please let me know.
>
> > > Al.http://andappstore.com/
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Android Dev Phone 1 and AT & T

2008-12-16 Thread Justin (Google Employee)

Please see
http://groups.google.com/group/android-developers/msg/e4a9172898b7d7cc
and
http://groups.google.com/group/android-developers/search?group=android-developers&q=dev+phone+at%26t&qt_g=Search+this+group

Remember to search first, chances are good that if you've had a
question, someone else has too.

Cheers,
Justin
Android Team @ Google

On Dec 15, 7:39 pm, Vladimir Kelman  wrote:
> Did anyone successfully set up Android Dev Phone to work with AT&T? I
> received my phone today and need some
> guidance. Could you please leave a comment here and / or onhttp://pro-though
> ts.blogspot.com/2008
> /12/android-dev-phon e-1-and-at.html (where I described my problems) ?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: unlocked phone - shipping fee

2008-12-16 Thread Justin (Google Employee)

This has been extensively discussed on threads on this forum and
android-discuss. Please search for related threads.

Cheers,
Justin
Android Team @ Google

On Dec 16, 10:04 am, Dave  wrote:
> Hi there -- can someone explain the $264.49 shipping fee for the $399
> US device?  I would like to understand the costs behind it -- whether
> or not it's a mistake.
>
> I'm writing here because I don't know where to write to customer
> support.
>
> Thanks,
>
> Dave
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: Receiver to get outgoing phone number

2008-12-15 Thread Justin (Google Employee)

The intent is to place a call. You want to look at
http://code.google.com/android/reference/android/content/Intent.html#ACTION_NEW_OUTGOING_CALL

Cheers,
Justin
Android Team @ Google

On Dec 15, 11:18 am, bparker  wrote:
> What is the best way to retrieve the number of a currently outgoing
> phone call?
>
> I tried using a BroadcastReceiver with an intent-filter on
> android.intent.action.CALL but it seems to be ignored... because the
> same code with a different intent works fine. Am I doing something
> wrong?
>
> 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
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: When is (or isn't) instance state restored ?

2008-12-15 Thread Justin (Google Employee)

Richard,

If you save something into the bundle and hit 'home' (button with a
house on it), the system will always return a non-null Bundle to you.
If you don't save anything to the Bundle, I'm not sure what the system
will do.

If you hit the 'back' button (button with the arrow), the system will
not call onSaveInstanceState and therefore give a null Bundle to
onCreate.

The other thing that comes to mind is that if you're trying to tweak
launch modes, the system may be launching a new instance of your
Activity, which it would launch with a null Bundle. If this is the
case, hitting the 'back' button should eventually reveal another
instance of your same Activity.

Its also worth noting that onPause is *not* always followed by onCreate
(), it may be followed by onResume or onStop. onStop may then be
followed by onRestart, followed by onStart.

If the system is improperly discarding state, this would be the first
time I've seen it, but its not impossible.

Cheers,
Justin
Android Team @ Google

On Dec 15, 9:32 am, jarkman  wrote:
> I'm a bit confused by the saved instance state mechanism.
>
> If I breakpoint in onCreate, run the app, hit the Home button, then
> relaunch the app, I typically see a null Bundle passed in to
> onCreate.
>
> But, if I (for example) rotate the emulator, I see a non-null Bundle
> in onCreate, and the app has the right state after the rotation.
>
> What causes the null in the first example ? It looks as though the
> system has thrown away the saved instance state on our behalf.
>
> Thanks,
>
> Richard
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: USB signal control class?

2008-12-15 Thread Justin (Google Employee)

Pavel,

It sounds like you're trying to do hardware development, and the SDK
isn't really designed for this. You can modify the source and,
assuming you have a developer device, flash your new system on to your
device.

Its unlikely that any device will ever support simultaneous access to
the SD card by the device and a host computer. The file system of the
SD card (FAT32) is not designed for this type of multi-host access.

Cheers,
Justin
Android Team @ Google

On Oct 27, 3:59 pm, Pavel Antokolsky aka Zigmar 
wrote:
> On Oct 24, 6:35 pm, "Justin (Google Employee)" 
> wrote:
>
> > In 1.0 you don't have access to theUSBport via the Java API layer.
> > What is the goal of your project?
>
> Hello Justin,
> I'm unsure what Chamika is doing, but I have a similar problem. My app
> needs to communicate with a hardware device (an embedded device,
> running WindowsCE and acting asUSBhost). Currently, I'm kinda stuck
> because I can't figure out how to do this. I was hoping to accomplish
> this by making my app write and read to files at SD Card, while the
> other device would access those files via mass storage interface, but
> as discovered recently (discussed in this topic:http://tinyurl.com/6xxovg)
> an android app can't write on SD card while it is accessible viausb
> (at G1 unit at least). Could you suggest some direction to look at,
> please?
>
> Best Regards,
> Zigmar
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: A file folder and phone file storage feature requirment.

2008-12-13 Thread Justin (Google Employee)

You'd need to write an application that uses the camera and then saves
the data to internal storage. However, why do you want to do this?
Internal storage is extremely limited, please, please, for the benefit
of end users, only use for storage for data that must be secured and
can't be secured any other way.

Cheers,
Justin

On Dec 13, 1:28 am, JBQ  wrote:
> Hello everybody,
>   The G1 has no file folder,when take a picture,it must be saved to SD
> card.I want to save the new file to phone storage.then I have to do
> 1.change the save dirction and 2. make a file folder to show it.Could
> anybody give any advice?Thanks.
>
> JBQ
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: Allocation too large for this process

2008-12-12 Thread Justin (Google Employee)

Mike,

Something in your original post (which I hadn't previously read) might
be a clue. You said that this often happens after orientation changes.
Orientation changes must be accelerating whatever memory leak you have
because they cause your activity to be shutdown and restarted. Make
sure in your onPause code you're doing any necessary cleanup and
double check anything you might be doing with static members.

Cheers,
Justin
Android Team @ Google

On Dec 11, 3:03 pm, EboMike  wrote:
> I tried using BitmapFactory.Options when calling
> BitmapFactory.decodePath() on Romain's recommendation to resize the
> 1024x768 JPG files down to 480x320 before displaying them in a
> Gallery, but that didn't help at all - if anything, it made things
> worse. The app still runs out after viewing just a few images.
>
> -Mike
>
> On Dec 11, 10:38 am, "Justin (Google Employee)" 
> wrote:
>
> > Are you scaling the image down when you display it? Look at the longer
> > form of BitmapFactory.decodeByteArray. The BitmapFactory.Options
> > argument has parameters for down sampling the image on load.
>
> > Cheers,
> > Justin
> > Android Team @ Google
>
> > On Dec 11, 10:10 am, fala70  wrote:
>
> > > my application open in sequence 3 activities, on last I've this
> > > situation heap:
> > > ID     Heap Size Allocated   Free         Used         Objs.
> > > 1       2,945 MB        1,936 MB        1,009 MB        65,75%  38.365
>
> > > at any case I've a problem that I can't solve againg after much time
> > > that I am on. I need to show a list, grid or gallery of a few photo
> > > selected from user from internal or external memory. For that I used:
>
> > >             Uri target = Media.INTERNAL_CONTENT_URI;
> > >             Intent intent = new Intent(Intent.ACTION_PICK, target);
> > >             startActivityForResult(intent, GET_IMAGE_FROM_FOLDER);
>
> > > and that work good. Then I know the picture id and if it is in
> > > internal or external media.. Now I need to show the thumbnail of these
> > > picture selected but that is impossible I can't do it for too much
> > > memory request. All picture are taked from camera.
>
> > > is there a solution for resize the images without goi out of memory ?
>
> > > On 11 Dic, 13:51, Romain Guy  wrote:
>
> > > > It works when you load a smaller file because you simply have very
> > > > little amount of memory left. Your application is using too much
> > > > memory, you need to trim it down.
>
> > > > On Thu, Dec 11, 2008 at 1:00 AM,fala70 wrote:
>
> > > > > I 've a similar problem. I am going crazy from several days Is
> > > > > impossible to show images from internal or external memory captured
> > > > > from camera. Also I tried to read a file jpg of 700KB and use
> > > > > BitmapFactory.decodeByteArray to get the bitmap, but I receive that
> > > > > exeption:
>
> > > > > 12-11 00:50:27.819: ERROR/dalvikvm-heap(3547): 6291456-byte external
> > > > > allocation too large for this process.
>
> > > > > if I try to load an image smaller (around 4K)
> > > > > BitmapFactory.decodeByteArray work good.
>
> > > > > somebody has a solution ?
>
> > > > --
> > > > Romain Guywww.curious-creature.org
>
>
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Allocation too large for this process

2008-12-11 Thread Justin (Google Employee)

Are you scaling the image down when you display it? Look at the longer
form of BitmapFactory.decodeByteArray. The BitmapFactory.Options
argument has parameters for down sampling the image on load.

Cheers,
Justin
Android Team @ Google

On Dec 11, 10:10 am, fala70  wrote:
> my application open in sequence 3 activities, on last I've this
> situation heap:
> ID     Heap Size Allocated   Free         Used         Objs.
> 1       2,945 MB        1,936 MB        1,009 MB        65,75%  38.365
>
> at any case I've a problem that I can't solve againg after much time
> that I am on. I need to show a list, grid or gallery of a few photo
> selected from user from internal or external memory. For that I used:
>
>             Uri target = Media.INTERNAL_CONTENT_URI;
>             Intent intent = new Intent(Intent.ACTION_PICK, target);
>             startActivityForResult(intent, GET_IMAGE_FROM_FOLDER);
>
> and that work good. Then I know the picture id and if it is in
> internal or external media.. Now I need to show the thumbnail of these
> picture selected but that is impossible I can't do it for too much
> memory request. All picture are taked from camera.
>
> is there a solution for resize the images without goi out of memory ?
>
> On 11 Dic, 13:51, Romain Guy  wrote:
>
> > It works when you load a smaller file because you simply have very
> > little amount of memory left. Your application is using too much
> > memory, you need to trim it down.
>
> > On Thu, Dec 11, 2008 at 1:00 AM,fala70 wrote:
>
> > > I 've a similar problem. I am going crazy from several days Is
> > > impossible to show images from internal or external memory captured
> > > from camera. Also I tried to read a file jpg of 700KB and use
> > > BitmapFactory.decodeByteArray to get the bitmap, but I receive that
> > > exeption:
>
> > > 12-11 00:50:27.819: ERROR/dalvikvm-heap(3547): 6291456-byte external
> > > allocation too large for this process.
>
> > > if I try to load an image smaller (around 4K)
> > > BitmapFactory.decodeByteArray work good.
>
> > > somebody has a solution ?
>
> > --
> > Romain Guywww.curious-creature.org
>
>
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Weird Map Problem (Controlling same map)

2008-12-10 Thread Justin (Google Employee)

I'm glad that you've found a solution that works for you. Yes,
unfortunately while we expect most Android devices to be pretty
powerful and have fairly large amounts of memory, they still aren't
desktop machines and more careful design and implementation will
sometimes be necessary.

Cheers,
Justin
Android Team @ Google

On Dec 9, 5:42 pm, mscwd01 <[EMAIL PROTECTED]> wrote:
> Hi Justin,
>
> I too have spent a great deal of time debugging this - with little
> luck.
> Thanks for taking the time to explain your findings, it does help to
> understand what was going on.
>
> In the end I chose to redesign my application and use just the one
> MapView - mainly due to the memory issues.
>
> The reason I found myself in this problem was due to the fact I needed
> a TabHost and a MapView in the same activity. However I found I
> couldn't extend both a TabActivity and MapActivity in the same
> Activity so I opted to create my own "TabbedMapActivity", created
> using the Android source code.
>
> I explained it all here if you want to see how I achieved 
> this:http://groups.google.com/group/android-developers/browse_thread/threa...
>
> Ultimately, I believe you are right, having multiple MapViews will
> inevitable lead to memory issues regardless of how careful you are to
> save map states and recycle resources; so I think using just the one
> MapView is the only answer at this moment in time.
>
> Thanks
>
> On Dec 9, 11:49 pm, "Justin (Google Employee)" <[EMAIL PROTECTED]>
> wrote:
>
> > Once upon a time I spent a lot of time debugging this issue, so here
> > is what I found.
>
> > ***WARNING: This information was valid on an internal version of the
> > SDK between M5-RC15 and 0.9 beta, it may no longer be valid, test
> > thoroughly and proceed with  caution.***
>
> > First, some information about MapView and MapActivity. Each Android
> > process may have multiple MapViews and MapActivitys, but they all
> > manipulate a single MapView backing object. This is because MapViews
> > take a *huge* amount of memory, roughly half of the 16MB allowed to
> > each application. This *also means* you need to be very careful about
> > your memory usage when using MapView. Make sure to use DDMS to analyze
> > memory usage to make sure you don't run out of space. Because a single
> > view backs all map views in an application, you also need to save and
> > restore the map state (including center position and zoom) when your
> > MapActivity subclass pauses/resumes.
>
> > For the purposes of discussion I will refer to two activities,
> > ActivityAlpha and ActivityBeta, each is a subclass of MapActivity and
> > has a MapView. ActivityAlpha starts ActivityBeta. The user will
> > eventually return to ActivityAlpha either via the 'back' button or
> > ActivityBeta finishing naturally.
>
> > When ActivityBeta finishes, there are two issues that I believe causes
> > the problem you see:
>
> > 1) onCreate is not called on the launching ActivityAlpha, onResume is
> > 2) a certain UI focal change doesn't occur
>
> > Certain initialization of the MapView and various helper entities are
> > done by MapActivity when onCreate is called. When ActivityBeta is
> > launched, onPause is called on ActivityAlpha and the helpers for the
> > MapView are stopped. onResume does some of the restarting, but clearly
> > not all that is necessary. This can be worked around by calling
> > super.onCreate(null) from your onResume or onActivityResult method of
> > your launching MapActivity subclass. ***WARNING***: This is
> > potentially very dangerous, MapActivity may not expect to be abused
> > this way, test thoroughly and proceed with caution.
>
> > The second issue results in the above hack not quite working. When
> > ActivityBeta finishes, and the above hack is applied, ActivityAlpha is
> > ready to load tiles, but it won't until the MapView is touched so that
> > the MapView checks to see if it needs tiles. So far, I don't have a
> > workaround for this, possibly a programmatic pan or zoom would cause
> > the MapView to load any missing tiles. Some of my previous testing
> > also indicated that any missing tiles would load when ActivityAlpha
> > resumes if you use startActivity() to start ActivityBeta instead of
> > startActivityForResult().
>
> > The bottom line is that maps were never designed to have multiple map
> > views in a single application, they're very heavy objects. Hopefully
> > this helps and is still valid information, let me know how it goes.
>
> > Cheers,
> > Justin

[android-developers] Re: Shipping a European dev phone to the US?

2008-12-10 Thread Justin (Google Employee)

Its not really either a 'yes' or a 'no', and there is no veil. The
real point is there is no 'European version', every Android Dev Phone
1 charger will work anywhere in the world where power is between 100
and 240 volts.

Cheers,
Justin
Android Team @ Google

On Dec 10, 3:07 am, DazBy <[EMAIL PROTECTED]> wrote:
> So is that a veiled yes then? ;)
>
> On Dec 8, 5:54 pm, "Justin (Google Employee)" <[EMAIL PROTECTED]> wrote:
>
> > The charger that ships with theDevPhone1 works from 100-240V, so it
> > supports European voltages, but you may need a plug adapter to
> > physically adapt the plug.
>
> > Additionally, if it doesn't come with one, you can just buy a USB->miniUSB 
> > cable and charge yourphonefrom your computer (this is what
>
> > I often do).
>
> > Cheers,
> > Justin
> > Android Team @ Google
>
> > On Dec 8, 1:32 am, Jiri <[EMAIL PROTECTED]> wrote:
>
> > > I'm interested in buying the AndroidDevPhone1, which I'd mainly use
> > > in Finland and elsewhere in Europe. This means that I'd need to get
> > > the version that uses the Finnish GSM and UMTS band, and of course
> > > comes with a 230V charger.
>
> > > I'll be visiting the US over the holidays, so it'd be very convenient
> > > (read: probably faster and cheaper) for me to get thephoneshipped to
> > > a friend's place and pick it up from there. So my question is, is it
> > > possible to get the European version of thephoneshipped to an US
> > > address?
>
> > > Thanks,
>
> > > -Jiri
>
>
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this 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: Weird Map Problem (Controlling same map)

2008-12-09 Thread Justin (Google Employee)

Once upon a time I spent a lot of time debugging this issue, so here
is what I found.

***WARNING: This information was valid on an internal version of the
SDK between M5-RC15 and 0.9 beta, it may no longer be valid, test
thoroughly and proceed with  caution.***

First, some information about MapView and MapActivity. Each Android
process may have multiple MapViews and MapActivitys, but they all
manipulate a single MapView backing object. This is because MapViews
take a *huge* amount of memory, roughly half of the 16MB allowed to
each application. This *also means* you need to be very careful about
your memory usage when using MapView. Make sure to use DDMS to analyze
memory usage to make sure you don't run out of space. Because a single
view backs all map views in an application, you also need to save and
restore the map state (including center position and zoom) when your
MapActivity subclass pauses/resumes.

For the purposes of discussion I will refer to two activities,
ActivityAlpha and ActivityBeta, each is a subclass of MapActivity and
has a MapView. ActivityAlpha starts ActivityBeta. The user will
eventually return to ActivityAlpha either via the 'back' button or
ActivityBeta finishing naturally.

When ActivityBeta finishes, there are two issues that I believe causes
the problem you see:

1) onCreate is not called on the launching ActivityAlpha, onResume is
2) a certain UI focal change doesn't occur

Certain initialization of the MapView and various helper entities are
done by MapActivity when onCreate is called. When ActivityBeta is
launched, onPause is called on ActivityAlpha and the helpers for the
MapView are stopped. onResume does some of the restarting, but clearly
not all that is necessary. This can be worked around by calling
super.onCreate(null) from your onResume or onActivityResult method of
your launching MapActivity subclass. ***WARNING***: This is
potentially very dangerous, MapActivity may not expect to be abused
this way, test thoroughly and proceed with caution.

The second issue results in the above hack not quite working. When
ActivityBeta finishes, and the above hack is applied, ActivityAlpha is
ready to load tiles, but it won't until the MapView is touched so that
the MapView checks to see if it needs tiles. So far, I don't have a
workaround for this, possibly a programmatic pan or zoom would cause
the MapView to load any missing tiles. Some of my previous testing
also indicated that any missing tiles would load when ActivityAlpha
resumes if you use startActivity() to start ActivityBeta instead of
startActivityForResult().

The bottom line is that maps were never designed to have multiple map
views in a single application, they're very heavy objects. Hopefully
this helps and is still valid information, let me know how it goes.

Cheers,
Justin
Android Team @ Google

On Dec 8, 5:39 pm, mscwd01 <[EMAIL PROTECTED]> wrote:
> Having tried the test you suggested it seems I can go back and forth
> between my Activity1 map and the inbuilt Google Maps app perfectly
> fine - no memory worries. However my application, constantly throws up
> OutOfMemory errors.
>
> One thing I have noticed is after Activity1 calls Activity2, Activity1
> is never able to load additional tiles. It seems Activity2, even if it
> is destroyed after pressing the back button and returning to Activity1
> always retains some kind of "focus" - If you reopen Activity 2, the
> map is able to load new tiles. Very strange...
>
> On Dec 8, 11:47 pm, Mark Murphy <[EMAIL PROTECTED]> wrote:
>
> > mscwd01 wrote:
>
> >  > Hope I havent confused you ;)
>
> > No, but you have made my head hurt.
>
> >  > Oh btw I purchased your "The Busy Coder's Guide to Android
> >  > Development" book - its very helpful ;)
>
> > My head feels better now... ;-)
>
> > > However what i'm asking is, is there a way to kill off Activity2
> > > completely when pressing the Back button to return to Activity1 and
> > > return full control to the first map?
>
> > Well, you already tried the stock answer of using finish(). With your
> > kill-my-process hack, you're heading down in a direction which, on my
> > map of Android, is labeled "Here There Be Dragons"...
>
> >  > I believe I am making more and
>
> > > more map objects when I launch Activity2 again and again and not
> > > releasing resources when I finish with it?
>
> > Or they're just not getting garbage collected fast enough or something.
>
> > I have a suggestion. I have no idea how crazy it will be for you to
> > utilize if it works.
>
> > In Activity1, temporarily replace launching Activity2 with a
> > startActivity() that launches the built-in Maps application. You should
> > be able to do this through:
>
> > startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("geo:40,-75")));
>
> > which will give you a map of the NJ side of the Philadelphia suburbs.
>
> > Now, try bouncing back and forth between your Activity1 and the Maps
> > application, like you were bouncing between Activity1 and Acti

[android-developers] Re: Android Dev Phone 1™

2008-12-08 Thread Justin (Google Employee)

To your second question, the frequencies supported are listed in the
device's specs. Specifically, it is quad-band GSM, so you should get
EDGE speeds anywhere in the world with GSM and EDGE. It supports UMTS
on 1700Mhz and 2100Mhz frequencies (bands I and IV). AT&T operates
their 3G network on bands II and V.

Cheers,
Justin
Android Team @ Google

On Dec 8, 2:57 pm, szeldon <[EMAIL PROTECTED]> wrote:
> I know just an answer for the first question:
>
> http://groups.google.com/group/android-developers/browse_thread/threa...
>
> On Dec 8, 8:49 pm, Pastymage <[EMAIL PROTECTED]> wrote:
>
> >   Does anyone have a more detailed FAQ than the text 
> > onhttp://android.brightstarcorp.com/? My main concern is that GPS is
> > not listed anywhere in the hardware features - does it actually
> > support GPS, or not?
>
> >   Aside from that, I'm unclear on how the 3G bands work - what would
> > the actual bandwidth of this device be on AT&T, for example?
>
> > -Dave
>
>
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Android Dev Phone - shipping to Canada?

2008-12-08 Thread Justin (Google Employee)

> Even when they are levied, they are charged
> through to the party receiving the shipment,

Not in this case. In this case the duties and taxes have been charged
to the shipper, which is why the cost of shipping *and handling* is
much more than just the shipping cost.

As to the amount, I'm not a lawyer or a customs specialist. Therefore,
I assume the costs vary by country according to the laws of that
country. While it is true that sometimes duties are not assessed
depending on how shipments are labeled, it doesn't mean that legally
they shouldn't be.

Cheers,
Justin
Android Team @ Google

On Dec 8, 4:30 am, J Dietrich <[EMAIL PROTECTED]> wrote:
> So, I signed up for the Market, and then suffered a severe bout of Jaw
> Drop when I saw that it was going to cost $264.19 to ship to Canada. I
> quickly retreated from purchasing what had been looking like one hell
> of an x-mas present for myself.
>
> According to the Help/FAQ, the fee includes "applicable customs,
> duties, import and country specific other fees". As anyone in Canada
> ordering from the US knows, duties and taxes are levied somewhat
> arbitrarily - it's not uncommon to receive something with no
> additional taxes levied, despite accurate declared value that
> technically warrants it. Even when they are levied, they are charged
> through to the party receiving the shipment, and it's hard to see how
> they could ever come in so high as to approach this up-front cost -
> higher than *every* other country on the list.
>
> Phone: 399.00 USD = 499.63 CAD
> Shipping: 264.19 USD = 331.19 CAD (66% of the cost of the device!)
> Total: 830.82 CAD :(
>
> No regrets about joining the Market, as I am going to develop on this
> platform in any case. I'm just disappointed that I won't be dabbling
> with real hardware over the holidays, and I know other developers here
> who are in the same boat - all willing to lay out the price of the
> phone, but not about to pay 66% on top for shipping.
>
> Can someone please take a stab at breaking down or otherwise
> rationalizing this number, helping me (and other Canucks scratching
> their heads and/or already being preyed upon by eBay sellers) to
> understand this? For $18.99, I could have this next-day shipped to a
> location in NY state a mere 5km away. Why are these heavy additional
> charges rolled into the shipping cost, and why are the extra charges
> for Canada so high relative to all other countries?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this 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: Shipping a European dev phone to the US?

2008-12-08 Thread Justin (Google Employee)

The charger that ships with the Dev Phone 1 works from 100-240V, so it
supports European voltages, but you may need a plug adapter to
physically adapt the plug.

Additionally, if it doesn't come with one, you can just buy a USB-
>miniUSB cable and charge your phone from your computer (this is what
I often do).

Cheers,
Justin
Android Team @ Google

On Dec 8, 1:32 am, Jiri <[EMAIL PROTECTED]> wrote:
> I'm interested in buying the Android Dev Phone 1, which I'd mainly use
> in Finland and elsewhere in Europe. This means that I'd need to get
> the version that uses the Finnish GSM and UMTS band, and of course
> comes with a 230V charger.
>
> I'll be visiting the US over the holidays, so it'd be very convenient
> (read: probably faster and cheaper) for me to get the phone shipped to
> a friend's place and pick it up from there. So my question is, is it
> possible to get the European version of the phone shipped to an US
> address?
>
> Thanks,
>
> -Jiri
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Android Dev Phone 1 Specification

2008-12-08 Thread Justin (Google Employee)

> I couldn't find GPS, compass, and Motion Sensor in the hardware
> specification published on the Android Market site.

These hardware features are part of the Android Dev Phone 1. They're
present, but not listed in the features. It would be pretty silly to
provide a developer device, and then not include some of the most used
hardware.

Cheers,
Justin
Android Team @ Google

On Dec 7, 4:35 pm, focuser <[EMAIL PROTECTED]> wrote:
> Is the hardware of this phone Android Dev Phone 1 identical to T-
> Mobile G1 except it's
> fully unlocked?
>
> I couldn't find GPS, compass, and Motion Sensor in the hardware
> specification published on the Android Market site.  Just wondering if
> this
> information is actually accurate.
>
> Hardware Features
>
>     * Touch screen
>     * Trackball
>     * 3.2 Megapixel camera with auto focus
>     * Wi-Fi
>     * Bluetooth v2.0
>           o Handsfree profile v1.5
>           o Headset profile v1.0
>     * 3G WCDMA (1700/2100 MHz)
>     * Quad-band GSM (850/900/1800/1900 MHz)
>     * QWERTY slider keyboard
>     * Includes 1GB MicroSD card (Can be replaced with up to 16GB card)
>     * Included in the box
>           o HTC Android Dev Phone 1
>           o USB Cable
>           o AC Adapter (with US plug)
>           o Stereo Hands-Free Headset
>           o Battery
>           o Getting Starting Guide
>           o 1G Micro SD Card (inserted into Device)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Android Dev Phone 1 + Shipping to Germany

2008-12-07 Thread Justin (Google Employee)

Any appropriate customs duties and taxes will be added on top of the
$399 purchase price. You are correct, that this can add a substantial
the base price. However, it should not add any hassle. Is there some
specific difficulty you're referring to?

Cheers,
Justin
Android Team @ Google

On Dec 6, 2:13 am, Marc Seeger <[EMAIL PROTECTED]> wrote:
> Hi,
> I'm really interested in the possibility of buying a "Android Dev
> Phone 1 " (-->http://code.google.com/android/dev-devices.html), the
> only question I have concerns the shipping.
> According to the site, it will be (?is?) available for order in
> Germany, I can't find any information about the details though.
> The price seems fair, but adding VAT + Import Taxes would add a BIG
> amount of money to the final number (and a lot of hassle).
>
> Does Google ship all of its devices from the US or are devices for
> European Devs shipped from inside the EU?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this 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: Largish HTTP Post vs. ANR

2008-12-04 Thread Justin (Google Employee)

My guess is that you're calling Thread.run() from the UI thread. This
will execute the thread in the UI thread. You need to call Thread.start
() for it to execute in its own thread.

Let me know if this isn't the issue.

Cheers,
Justin
Android Team @ Google

On Dec 4, 1:33 pm, enervatron <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> I'm using a helper thread to post data back to a web site. What I
> notice is that I'm
> getting an Application Not Responding back in the main thread even
> though it's
> not doing anything other than interrupting the helper thread to wake
> up. If the
> amount of data in the post is small (~ couple hundred bytes), I don't
> have a
> problem, but when it gets moderately large (~ 10kb) it reliably stalls
> the main
> UI thread and gets (appropriately) an ANR. Even weirder is that if I
> time from
> when I start the post to when it receives the entire reply (ie, using
> Date().getTime())
> in the helper thread, it shows that it's only taking about .5 seconds
> to complete,
> even though it  takes ~10 seconds to become responsive again.
>
> This *only* seems to be the case writing the post data. If I do a post
> of a small
> amount of data with a large amount of data coming back from a web
> site, the
> app remains responsive and unlike the above problem, the timing
> numbers in
> the thread agree with how long it actually took.
>
> FWIW, I'm using HttpURLConnection to create and read/write the data,
> and
> I'm aware that I need to use Handler to affect the UI from the helper
> thread.
> Also: this is on the G1 hardware. I've also fiddled with priorities,
> etc, to
> no avail, so I'm pretty stumped as to why the helper thread is
> interacting
> with the UI thread.
>
> Mike
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this 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: Sending email

2008-11-14 Thread Justin (Google Employee)

Did you set he MIME type in your Intent?

Cheers,
Justin
Android Team @ Google

On Nov 14, 7:03 am, dave <[EMAIL PROTECTED]> wrote:
> I tried out k9mail on the emulator and I get the same error message
> when I try to send an email from my application. has anyone gotten
> this to work?
>
> On Nov 4, 12:39 pm, "Justin (Google Employee)" <[EMAIL PROTECTED]>
> wrote:
>
> > Yes, you should be able to install the Email program's APK on the
> > emulator. You could download the Android source and compile Email and
> > then install on the emulator. Alternately I know there is a project
> > that has forked (but will hopefully merge back their changes) the
> > email client and there is a binary distribution you can get 
> > fromhttp://code.google.com/p/k9mail/. I haven't tried it, but this should
> > install on the emulator. Please let us know your results if you try
> > this.
>
> > Cheers,
> > Justin
> > Android Team @ Google
>
> > On Nov 4, 6:24 am, john <[EMAIL PROTECTED]> wrote:
>
> > > Haha! Yes, it only works on the phone. Sorry for the mixup, I can be
> > > pretty absent minded at times.
>
> > > On Nov 3, 4:42 pm, Daniel Bradby <[EMAIL PROTECTED]> wrote:
>
> > > > I'm assuming you meant to say it only works on the phone, not the
> > > > emulator :)
>
> > > > On 04/11/2008, at 1:13 AM, john <[EMAIL PROTECTED]> wrote:
>
> > > > > Unfortunately yes, this only seems to work on the emulator. We had to
> > > > > break down and buy a G1 (as well as a two-year plan) so we could
> > > > > realistically get our software tested and released. It would be
> > > > > interesting, though, to see if you could install theemailprogram on
> > > > > the emulator. If you do, you might want to post it to help some people
> > > > > out.
>
> > > > > Good luck!
>
> > > > > On Oct 31, 4:04 pm, dbradby <[EMAIL PROTECTED]> wrote:
> > > > >> John - I'm assuming this only works on the real device and not the
> > > > >> emulator?
>
> > > > >> I'm trying
>
> > > > >>                         Intent sendIntent = new
> > > > >> Intent(Intent.ACTION_SEND);
> > > > >>                         sendIntent.putExtra(Intent.EXTRA_TEXT,
> > > > >> "emailtext");
> > > > >>                         sendIntent.putExtra(Intent.EXTRA_SUBJECT,
> > > > >> "Subject");
> > > > >>                         sendIntent.setType("message/rfc822");
>
> > > > >> startActivity(Intent.createChooser(sendIntent, "Title:"));
>
> > > > >> and am getting "No Applications can perform this action" which is the
> > > > >> same when you select theemailaddress in the contact list of the
> > > > >> emulator. Prob because there is notemailclient in the emulator
> > > > >> right?
>
> > > > >> Justin - Is it possible to have access to the .apk for the mail
> > > > >> programs that come with the G1 so we can install them on the
> > > > >> emulator?
>
> > > > >> Thanks
>
> > > > >> On Nov 1, 12:36 am, john <[EMAIL PROTECTED]> wrote:
>
> > > > >>> Hey, that did it! I set the the mime type to 'message/rfc822' and it
> > > > >>> worked right away. Brings up the default mail application with the
> > > > >>> fields that I specified populated.
>
> > > > >>> I had been trying to send it with a mime of text/plain and text/
> > > > >>> html.
> > > > >>> I thought that by specifying anEXTRA_EMAILit would fire the right
> > > > >>> broadcast receivers, but I guess the mime type is what counts.
>
> > > > >>> Thanks again!
>
> > > > >>> On Oct 30, 3:20 pm, "Justin" <[EMAIL PROTECTED]> wrote:
>
> > > > >>>> John,
>
> > > > >>>> Take a look athttp://code.google.com/android/reference/android/
> > > > >>>> content/Intent.html,
> > > > >>>> there are several e-mail related fields you probably want to set.
> > > > >>>> For a
> > > > >>>> mime type try 'message/rfc822' or 'message/rfc2822'. I haven't
&g

[android-developers] Re: How to get change the SD card permissions

2008-11-12 Thread Justin (Google Employee)

Have you supplied an SD card image? By default the emulator does not
have an SD card. You need to use the mksdcard tool to make a card
image and the emulator's '-sdcard' option to specify what image the
emulator should use.

Cheers,
Justin
Android Team @ Google

On Nov 12, 7:10 am, Al bundy <[EMAIL PROTECTED]> wrote:
> I've been trying to write files to the emulated sd card from the DDMS
> through the "Push file to device" command but I keep getting the same
> error:
>
> "Failed to push picture1.jpg on emulator-5554: Read-only file system"
>
> Does anybody know how I can change the permissions of the sd card?
> I'm using Eclipse on Windows XP and I also tried the "adb push"
> command.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this 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: INSTANT MESSAGING

2008-11-06 Thread Justin (Google Employee)

Thanks for taking the time to give feedback on Android, however,
topics such as yours would be better directed to
http://groups.google.com/group/android-discuss , the Android
discussion group. This group is focused on Android application
developers, not platform applications like the built-in IM client.

Cheers,
Justin
Android Team @ Google

On Nov 5, 9:33 pm, theghost8800 <[EMAIL PROTECTED]> wrote:
> The phone has everything I need except a good aim app.
>
> I bought the phone to replace a sidekick lx
>
> The aim needs
>
> "font size smaller" - to be able to view contacts easier(the android
> lets you see 3 onscreen so you need to scroll)
> "away message editing" - ability to change status and give a summary
> why(android just says "away")
> "Icon picture" - (I can't see anyone's icon or post my own)
> "buddy edit" - missing feature..
>
> The list can go on forever. G1 users just want aim up to par with
> the danger OS
>
> currently its worse than a motorola razor im app
>
> Also, onscreen keyboard
>
> one of the only things the i phone wins the contest in
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this 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: Sending email

2008-11-04 Thread Justin (Google Employee)

Yes, you should be able to install the Email program's APK on the
emulator. You could download the Android source and compile Email and
then install on the emulator. Alternately I know there is a project
that has forked (but will hopefully merge back their changes) the
email client and there is a binary distribution you can get from
http://code.google.com/p/k9mail/ . I haven't tried it, but this should
install on the emulator. Please let us know your results if you try
this.

Cheers,
Justin
Android Team @ Google

On Nov 4, 6:24 am, john <[EMAIL PROTECTED]> wrote:
> Haha! Yes, it only works on the phone. Sorry for the mixup, I can be
> pretty absent minded at times.
>
> On Nov 3, 4:42 pm, Daniel Bradby <[EMAIL PROTECTED]> wrote:
>
> > I'm assuming you meant to say it only works on the phone, not the
> > emulator :)
>
> > On 04/11/2008, at 1:13 AM, john <[EMAIL PROTECTED]> wrote:
>
> > > Unfortunately yes, this only seems to work on the emulator. We had to
> > > break down and buy a G1 (as well as a two-year plan) so we could
> > > realistically get our software tested and released. It would be
> > > interesting, though, to see if you could install theemailprogram on
> > > the emulator. If you do, you might want to post it to help some people
> > > out.
>
> > > Good luck!
>
> > > On Oct 31, 4:04 pm, dbradby <[EMAIL PROTECTED]> wrote:
> > >> John - I'm assuming this only works on the real device and not the
> > >> emulator?
>
> > >> I'm trying
>
> > >> Intent sendIntent = new
> > >> Intent(Intent.ACTION_SEND);
> > >> sendIntent.putExtra(Intent.EXTRA_TEXT,
> > >> "emailtext");
> > >> sendIntent.putExtra(Intent.EXTRA_SUBJECT,
> > >> "Subject");
> > >> sendIntent.setType("message/rfc822");
>
> > >> startActivity(Intent.createChooser(sendIntent, "Title:"));
>
> > >> and am getting "No Applications can perform this action" which is the
> > >> same when you select theemailaddress in the contact list of the
> > >> emulator. Prob because there is notemailclient in the emulator
> > >> right?
>
> > >> Justin - Is it possible to have access to the .apk for the mail
> > >> programs that come with the G1 so we can install them on the
> > >> emulator?
>
> > >> Thanks
>
> > >> On Nov 1, 12:36 am, john <[EMAIL PROTECTED]> wrote:
>
> > >>> Hey, that did it! I set the the mime type to 'message/rfc822' and it
> > >>> worked right away. Brings up the default mail application with the
> > >>> fields that I specified populated.
>
> > >>> I had been trying to send it with a mime of text/plain and text/
> > >>> html.
> > >>> I thought that by specifying anEXTRA_EMAILit would fire the right
> > >>> broadcast receivers, but I guess the mime type is what counts.
>
> > >>> Thanks again!
>
> > >>> On Oct 30, 3:20 pm, "Justin" <[EMAIL PROTECTED]> wrote:
>
> >  John,
>
> >  Take a look athttp://code.google.com/android/reference/android/
> >  content/Intent.html,
> >  there are several e-mail related fields you probably want to set.
> >  For a
> >  mime type try 'message/rfc822' or 'message/rfc2822'. I haven't
> >  tried this
> >  myself, so let me know how it works.
>
> >  Cheers,
> >  Justin
> >  Android Team @ Google
>
> >  Original Message Follows:
> >  
> >  From: john <[EMAIL PROTECTED]>
> >  Subject: [android-developers]Sendingemail
> >  Date: Thu, 30 Oct 2008 08:02:36 -0700 (PDT)
>
> >  Hello!
>
> >  Thanks in advance for trying to help me out. It doesn't seem like
> >  anyone has found a solution to this problem yet, so hopefully we
> >  can
> >  figure this out and help a lot of people.
>
> >  I'm trying to get my application to send anemail, but i can't
> >  seem to
> >  find any solutions. Here's what I'm trying:
>
> >  I've got an Intent (called sender in this example) set to
> >  Intent.ACTION_SEND, with variousemailextras.
>
> >  When I try startActivity(Intent.createChooser(sender, "Select send
> >  method."));
> >  I get "No application can handle this request"
>
> >  And when I try sendBroadcast(Intent.createChooser(sender, "Select
> >  send
> >  method."));
> > Nothing happens at all.
>
> >  Is there something I need to put in my manifest file, or am I doing
> >  this completely wrong?
>
> >  Any help anyone can offer would be greatly appreciated. Happy
> >  coding!
>
> >  -John
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



  1   2   3   >