[android-developers] Re: microSD problems

2009-03-06 Thread Al Sutton

A pop and re-insert fixed the problem for me when my microSD "dissapeared" .

The 'phone is generally stable, and the microSD problem seems to be like 
the Xbox 360 red ring of death, if you search for it you'll see lots of 
complaints, but most users don't experience the problem.

In terms of holding off your interest, that's got to be a personal (or 
business) choice, but I wouldn't make it based on the hardware because 
other devices are coming out (The HTC-Magic on Vodafone is due out in a 
few weeks), so I'd suggest you focus more on your business model and how 
Android can support it than whether or not the first consumer device can 
hold up to the work.

Al.

Daniel wrote:
>   
>> now you want to move to advanced topics. Get help here with
>> 
>
> I do want to move to advanced topics, but there's not much I can do
> when the phone is crippled by bugs when mounting the memory card.
>
> I do see myself as an advanced user of technology with many years of
> development experience - hence I have posted on this forum, hoping to
> find out if like-minded people are having the same difficulty as
> myself getting this phone to move off the starting line.
>
> Some forum posts have reported that people have to pop out their
> memory card and re-insert it periodically, and various other work-
> arounds.  It brings me to the question: is the phone really stable
> enough for any advanced development work, or should I put my interest
> in Android on hold for another 6 months rather than getting bogged
> down in issues like this?
>
>
> >
>   


-- 

* Written an Android App? - List it at http://andappstore.com/ *

==
Funky Android Limited is registered in England & Wales with the 
company number  6741909. The registered head office is Kemp House, 
152-160 City Road, London,  EC1V 2NX, UK. 

The views expressed in this email are those of the author and not 
necessarily those of Funky Android Limited, it's associates, or it's 
subsidiaries.


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: microSD problems

2009-03-06 Thread Daniel


> now you want to move to advanced topics. Get help here with

I do want to move to advanced topics, but there's not much I can do
when the phone is crippled by bugs when mounting the memory card.

I do see myself as an advanced user of technology with many years of
development experience - hence I have posted on this forum, hoping to
find out if like-minded people are having the same difficulty as
myself getting this phone to move off the starting line.

Some forum posts have reported that people have to pop out their
memory card and re-insert it periodically, and various other work-
arounds.  It brings me to the question: is the phone really stable
enough for any advanced development work, or should I put my interest
in Android on hold for another 6 months rather than getting bogged
down in issues like this?


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



[android-developers] Re: Multi Touch Support

2009-03-06 Thread Eric Wong (hdmp4.com)

Can Apple's Multi-Touch Patent Withstand Scrutiny -- or Challenge?
http://industry.bnet.com/technology/1000741/can-apples-multi-touch-patent-withstand-scrutiny-or-challenge/

Btw, there is a company that is collecting prior art right now to
challenge Apple's patent..Contact me if you want to know
more ;)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: manipulating markets popularity! - why should i develop app for android

2009-03-06 Thread Al Sutton

Have you confirmed yourself on a G1 that after multiple 'phone resets 
and comments/ratings they all stay in the market for more than 48 hours?

I'd be surprised if there wasn't a filtering mechanism which looked for 
multiple comments/ratings from the same 'phone which ran (possibly as a 
daily batch job).

Al.

AE wrote:
> Hi,
>
> It is my understanding that the "popularity index" uses several
> parameters to such as rating, comments (not directly but indirectly),
> number of downloads, active install, total install, installs from
> regular users, install from dev phones, age of the app, number of
> phone sales in a region, etc,etc -- there is probably 500 elements
> that are in the works! And rightfully so Google doesn't want folks to
> game the system.
>
> Now what I like to stress here is the following -- the 3 key element
> that is presented to users prior to download is number of downloads,
> rating, comments. No matter how much we argue at the end of day -- the
> users makes his/her decision "somewhat" based on the above 3
> parameters. Interestingly all of the above parameters can be
> manipulated by doing the following.
>
> a. Download the app - rank and comment
> b. Reset your phone - Create new user
> c. Repeat A
>
> And if you get say 5 college kid doing the above.. bingo you can
> always make sure that visible  3 comments are clean and positive --
> you can also use those comments as a megaphone to tell the users --
> what more can your app do -- beside the 325 char description , you
> keep your rating stable at 4.7/4.6 (so you don't look to greedy) and
> your number of downloads are increasing. Not only that while you are
> at it you might as well go ahead and make lower rating and ugly
> comments to competitors app -- and you make sure you uninstall
> competitors app, where as you don't uninstall your app -- you just hit
> for the "hard reset" -- because you send the signal -- that the phone
> might be off -- rinse and repeat!!! Yes very true this will not
> increase your popularity but slowly and surely by doing so you can
> only go up cos if all of the ranking elements produce "X" and the
> above 3 elements say produce "Y" -- no matter how insignificant these
> 3 parameter is -- you are on the positive -- never the less you have a
> propaganda megaphone to the users who download your apps. In every
> damn category all the top 20 - 30 apps stays the same, I have not seen
> them moving out of that space !!
>
> I am complete disgusted by the above, I worked hard to develop my app,
> I used the SDK so I can take advantage of all the phone features and I
> am honest and what it gets me -- nada! So why should I develop app --
> what incentive does it provide me if I don't have the money power to
> buy my friends 5-10 G1 to game the system!!
>
> I have couple of ideas to the above problem - and I am sure there are
> many here who has even better idea then i list below --
>
> 1. Rating from the "new" users i.e. created on the fly users -- should
> be separated from the users who are verified i.e. been using google
> for a while and have a history, so I propose 2 ratings rather then one
> - why - it should be transparent to the end consumer (No propaganda
> megaphone) -- how you use to evaluate popularity -- not my business
> and its googles secret.
>
> 2. Comments should have added "star" or colors to identify also the
> user has no history with google i.e. Amazon's "REAL NAME". Again
> transparent to end consumer
>
> Yes, I do want to have "real users comments" and their "ratings" and
> show the world "total downloads" -- it just helps me improve my app.
> But we need a fair playing field that's my request. I am sure many of
> you know the above -- at least its a open secret! Now everyone can
> play the game!!
>
> I look forward to constructive replies/solutions and hear your views.
>
> >
>   


-- 

* Written an Android App? - List it at http://andappstore.com/ *

==
Funky Android Limited is registered in England & Wales with the 
company number  6741909. The registered head office is Kemp House, 
152-160 City Road, London,  EC1V 2NX, UK. 

The views expressed in this email are those of the author and not 
necessarily those of Funky Android Limited, it's associates, or it's 
subsidiaries.


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: (OT) Is the combination of Android Market and Google Checkout a joke?

2009-03-06 Thread Al Sutton

Justin,

This group isn't run just for your benefit and so I'm not sure why you 
think you should be the one to decide what is and isn't on-topic.

In the 2 days you've been part of the group I've seen two people tell 
you your posts are not welcomed, so maybe you should take the hint, sit 
back, and use the delete button instead of the reply button to topics 
you don't want to read.

As I said before, the Google engineers speak up when we're straying from 
the beaten path, and those requests are respected, but I'm afraid you 
haven't earned the respect we show them and so I would suggest you 
accept that fact that this list isn't run the way you think it should be.

Al.

Justin Allen Jaynes wrote:
> Al, and all who share his sentiments,
>
> I am from Idaho and I am new to THIS list.  But it doesn't mean I 
> haven't spend a lot of time READING this forum, and in other developer 
> forums as well.  I understand how they work and that there are rules, 
> which, when followed, significantly improve the quality of the content.
>
> I can understand your resistance to begin complying with the rules.  
> Approximately half of your posts are off topic. However, if you were to 
> move such conversations to the android-discuss group, your relevant and 
> useful dialog there would encourage others to move to that forum as 
> well, when they wish to discuss non-development subjects.  It would 
> improve both forums, to separate the content by topic, would it not?
>
> You are right.  This discussion does add traffic to the group.  But if 
> reminding the users of the group of it's clearly defined usages cuts 
> just 20 illegitimate emails out of the list daily, a few posts like this 
> are worth it.  I think the majority of this groups subscribers would agree.
>
> Justin
>
> Al Sutton wrote:
>   
>> Justin,
>>
>> Whilst it's nice to see new people on the list, it's probably best to 
>> get a feel for how the list works rather than trying to wade in with 
>> how you think the world should work because all you're doing at the 
>> moment is getting yourself on peoples auto-trash lists.
>>
>> The Google engineers chip in when they feel we're straying from the 
>> path and we all respect their views because they have a genuine 
>> undeniable interest in seeing this community developer. If you compare 
>> this to what we know of you, which is that you are a little known 
>> developer from Idaho whose first post was less than a day ago, you can 
>> hopefully see why those of us who have been trying to help build this 
>> community for a while now may not see your opinion as worthy of a 
>> similar level of respect.
>>
>> Now, as this has gotten off topic, I'm sure you wouldn't want to reply 
>> here, would you?
>>
>> Al.
>>
>> Justin Allen Jaynes wrote:
>> 
>>> Stoyan,
>>>
>>> While I thank you for informing me of two OTHER choices, I prefer to 
>>> continue to inform people ABOUT the charter so they will read it.  It 
>>> isn't too much to ask that people use the right forum for the right 
>>> discussion.
>>>
>>> This IS a DEVELOPER forum:
>>>
>>> "You're now an experienced Android application developer. You've grasped 
>>> the basics of Android app development, you're comfortable using the SDK, 
>>> now you want to move to advanced topics. Get help here with 
>>> troubleshooting applications, advice on implementation, and strategies 
>>> for improving your application's performance and user experience. This 
>>> is the not the right place to discuss user issues (use android-discuss 
>>> for that) or beginner questions with the Android SDK (use 
>>> android-beginners for that)."
>>>
>>> There IS an appropriate forum for "water-cooler" talk.  It is not here.  
>>> It is at android-disc...@googlegroups.com
>>>
>>> http://developer.android.com/community
>>>
>>>
>>> Stoyan Damov wrote:
>>>   
>>>   
 Justin, calm down, it's your 5th or so message "aaargh, this is a
 DEVELPER forum" - it's starting to piss me off, at least fix the typo
 :P

 If you think that more than 5% of all posters on this list have read
 the group charter you're fooling yourself.

 I've said it once - this is the only developer-oriented list (not to
 be confused with "development-oriented" or
 "SDK-questions-only-oriented" list, no matter what Google are
 thinking), so there *will* be such questions. If you don't think a
 post appropriate you have 2 choices:

 1. If you're a moderator, delete the message
 2. If you're a mere mortal like us, just mute the post (if using Gmail)

 Cheers


 On Fri, Mar 6, 2009 at 12:18 AM, Justin Allen Jaynes  
 wrote:
   
 
 
> Actually, it is off topic and should not be here.  Android-discuss would
> be okay, though.
>
> This is a DEVELPER forum.  Please keep to DEVELOPMENT topic.  A quote
> from the official description of the forum:
>
> "This is the not the right place to discuss

[android-developers] Re: Is there any new updates for dev phone kernel?

2009-03-06 Thread Al Sutton

http://groups.google.com/group/android-developers/browse_thread/thread/99f283b99b01346d

ghan wrote:
> Google guys,
>
> Is there any new updates for the dev phone kernel?
>
> I have a dev phone G1 since Jan, 2009, Shall I update the kernel ?
>
> Thanks,
>
> George
>
> >
>   


-- 

* Written an Android App? - List it at http://andappstore.com/ *

==
Funky Android Limited is registered in England & Wales with the 
company number  6741909. The registered head office is Kemp House, 
152-160 City Road, London,  EC1V 2NX, UK. 

The views expressed in this email are those of the author and not 
necessarily those of Funky Android Limited, it's associates, or it's 
subsidiaries.


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: Bluetooth modem

2009-03-06 Thread Al Sutton

Join the club.

Unfortunately it's not possible with a stock G1 due to limitations in 
the firmware, but hopefully T-Mobile will see the light soon.

Al.

donnysp wrote:
> Hi all,
>
> I'm thinking of getting a T-Mobile G1 as a replacement for my existing
> Windows Mobile PDA. So far as I can tell it will have everything I
> want bar one, namely TomTom. I have bought TomTom Navigator for the
> PDA and also pay for a Traffic subscription.
>
> Since I'll only have one tariff with unlimited data (on the G1), what
> I'd like to be able to do is use the G1 as a bluetooth modem that the
> PDA can use to download the live traffic data.
>
> Is there support in Android for networking over Bluetooth?
> Alternatively, is there and application I can get that will do this?
> Lastly if the answer to both is no (and given that I am a software
> developer by trade), would this be possible using the appropriate
> APIs?
>
> Thanks in advance for your help and advice,
> DonnySP
>
> >
>   


-- 

* Written an Android App? - List it at http://andappstore.com/ *

==
Funky Android Limited is registered in England & Wales with the 
company number  6741909. The registered head office is Kemp House, 
152-160 City Road, London,  EC1V 2NX, UK. 

The views expressed in this email are those of the author and not 
necessarily those of Funky Android Limited, it's associates, or it's 
subsidiaries.


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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 see more than 1 application icons of my installed application

2009-03-06 Thread Dan Raaka

this like is the key 
in your AndroidManifest.xml, for each one an icon will appear in the
launcher.

-Dan

On Mar 6, 2:54 am, Mariano Kamp  wrote:
> AFAIK There is one icon per launchable activity.
>
> How many activities do you have? Do more than one of them declare themselves
> as launchable like you can see below?
>
>             
>                                      android:name="android.intent.action.MAIN" />
>                                      android:name="android.intent.category.LAUNCHER" />
>             
>
> On Fri, Mar 6, 2009 at 10:35 AM, zeeshan  wrote:
>
> > Hi ,
>
> > i am trying to run Android application directly from eclipse to on my
> > G1 device, its runs fine but it shows application icon for each
> > activity.
>
> > i need only one application icon in my installed application lists.
>
> > any solution?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: WebView issue?

2009-03-06 Thread Marc

Hmm... I thought the docs said that returning false means that I
haven't handled it and that normal handling would proceed.  I might
have misunderstood...

Marc

On Mar 6, 11:10 am, Faber Fedor  wrote:
> What's odd about that behavior?  IIUC, you're saying "when the user clicks
> on something, don't do anything".
>
>
>
> On Fri, Mar 6, 2009 at 1:22 PM, Marc  wrote:
>
> > So I've got a WebView, and in its content is a phone number.  I
> > hightlight it and click - voila, taken to the phone app.
>
> > Now, all I do is add this code:
>
> >                wv.setWebViewClient(new WebViewClient() {
> >                   �...@override
> >                    public boolean shouldOverrideUrlLoading(WebView view,
> > String
> > url) {
> >                        return false;
> >                    }
> >                });
>
> > and hey, presto!, clicks no longer work.
>
> > Can anyone repro/explain this odd behavior?
>
> > Thanks.
>
> > Marc
>
> --
>
> Faber Fedor
> Linux New Jerseyhttp://linuxnj.com
> faberfedor.blogspot.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: onLocationChanged does not get called??

2009-03-06 Thread hc

Can someone correct me if I'm wrong,

I checked the status in onStatusChanged. It shows
TEMPORARILY_UNAVAILABLE for my GPS.
Makes sense since I'm indoor. But if I'm indoor, I want it to change
the provider to network.

So here's how I'm doing it.
1) When I try to location myself, I will use GPS as my provider.
2) if GPS signal is available, onLocationChanged will be called, and
that's done!
3) if onLocationChanged is not called, but onStatusChanged is called,
I check the status or my provider
4) if status of my GPS provider showed in onStatusChanged is
TEMPORARILY_UNAVAILABLE, then I'll change my provider to network
5) to change my provider from GPS to NETWORK, I add the following line
inside onStatusChanged

location.removeUpdates(locationListener)
location.requestLocationUpdates(LocationManager.NETWORK_PROVIDER,0 ,
100.0f,locationListener);

This seems to be working for me now.. finally.
But I'm wondering if this is the best way to do it. Feels a bit hacky

On Mar 7, 1:25 pm, hc  wrote:
> Hi,
>
> I have been struggling to getonLocationChangedcalled, but I'm not
> sure it does not.
> Here're my code
>
>                 criteria = new Criteria();
>                 criteria.setAccuracy(Criteria.ACCURACY_FINE);
>                 criteria.setPowerRequirement(Criteria.POWER_LOW);
>                 criteria.setAltitudeRequired(false);
>                 criteria.setBearingRequired(false);
>                 criteria.setSpeedRequired(false);
>                 criteria.setCostAllowed(true);
>
>                 String locationContext = Context.LOCATION_SERVICE;
>                 locationManager = (LocationManager)context.getSystemService
> (locationContext);
>
>                 String provider = locationManager.getBestProvider(criteria, 
> true);
>
>                 Location location = 
> locationManager.getLastKnownLocation(provider);
>                 locationManager.requestLocationUpdates(provider,0 ,
> 100.0f,locationListener);
>
> and . in the methods below, only onStatusChanged is being called,
> and notonLocationChanged
>
>      private final LocationListener locationListener = new
> LocationListener(){
>         public voidonLocationChanged(Location location)
>         {
>                 Log.d("onLocationChanged","update now");
>         }
>
>         public void onProviderDisabled(String provider)
>         {
>                 Log.d("onProviderDisabled",provider.toString());
>         }
>
>         public void onProviderEnabled(String provider){
>                 Log.d("onProviderEnabled",provider.toString());
>         }
>         public void onStatusChanged(String provider, int status, Bundle
> extras){
>                 Log.d("Provider status changed", provider.toString());
>         }
>     };
>
> here are permissions from my manifest
>
>      android:name="android.permission.ACCESS_WIFI_STATE" />
>      android:name="android.permission.ACCESS_COARSE_LOCATION" />
>      android:name="android.permission.ACCESS_FINE_LOCATION" />
>      android:name="android.permission.ACCESS_MOCK_LOCATION" />
>     
>      android:name="android.permission.READ_PHONE_STATE"/>
>     
>     
>
> and I missing something ?
> I have tried to add this line below requestLocationUpdate
>
> Location location = locationManager.getLastKnownLocation(provider);
> because I thought this might get me the last location just requested
> from the requestLocationUpdate in the line before it, but it does not
> help to retrieve the current location. It still retrieves the previous
> location
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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] onLocationChanged does not get called??

2009-03-06 Thread hc

Hi,

I have been struggling to get onLocationChanged called, but I'm not
sure it does not.
Here're my code

criteria = new Criteria();
criteria.setAccuracy(Criteria.ACCURACY_FINE);
criteria.setPowerRequirement(Criteria.POWER_LOW);
criteria.setAltitudeRequired(false);
criteria.setBearingRequired(false);
criteria.setSpeedRequired(false);
criteria.setCostAllowed(true);

String locationContext = Context.LOCATION_SERVICE;
locationManager = (LocationManager)context.getSystemService
(locationContext);

String provider = locationManager.getBestProvider(criteria, 
true);

Location location = 
locationManager.getLastKnownLocation(provider);
locationManager.requestLocationUpdates(provider,0 ,
100.0f,locationListener);

and . in the methods below, only onStatusChanged is being called,
and not onLocationChanged

 private final LocationListener locationListener = new
LocationListener(){
public void onLocationChanged(Location location)
{
Log.d("onLocationChanged","update now");
}

public void onProviderDisabled(String provider)
{
Log.d("onProviderDisabled",provider.toString());
}

public void onProviderEnabled(String provider){
Log.d("onProviderEnabled",provider.toString());
}
public void onStatusChanged(String provider, int status, Bundle
extras){
Log.d("Provider status changed", provider.toString());
}
};

here are permissions from my manifest











and I missing something ?
I have tried to add this line below requestLocationUpdate

Location location = locationManager.getLastKnownLocation(provider);
because I thought this might get me the last location just requested
from the requestLocationUpdate in the line before it, but it does not
help to retrieve the current location. It still retrieves the previous
location
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: manipulating markets popularity! - why should i develop app for android

2009-03-06 Thread Marco Nelissen

On Fri, Mar 6, 2009 at 7:45 PM, Justin Allen Jaynes  wrote:
>
> While any interest in Android is good, this is a developer forum only.

You've said that about 15 times in the last 2 days. I think you've
made your point.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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 android.view.View.invalidate(int l, int t, int r, int b) make only the dirty area redrawn?

2009-03-06 Thread Romain Guy

This just sets the clip bounds. You will receive an onDraw(Canvas)
call as usual and everything you draw outside of the clip bounds will
be ignored. You can do ahead-of-time skips if you know you are
performing intensive computations in onDraw() (which you should not be
doing anyway) but it's most often not worth it.

On Fri, Mar 6, 2009 at 6:37 PM, FBear  wrote:
>
> android.view.View.invalidate(int l, int t, int r, int b) can mark the
> the area defined by the rect (l,t,r,b) as needing to be drawn.
> But how does View update only the dirty area specified by the rect?
> Is it wise enough to redraw only the dirty area even if the onDraw is
> customized to update the whole view?
>
> I read some sources and searched in google developer group. No answer
> to this question was found.
>
> Would anybody please kindly explain that to me?
>
> Thanks in advance.
>
> FBear
>
> >
>



-- 
Romain Guy
Android framework engineer
romain...@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 Development

2009-03-06 Thread Justin Allen Jaynes

You can get a lot of information at developer.android.com or purchase a 
good book about android, (search amazon.com for android and there are 
several). Android supports the SQLite Database. Go to sqlite.org.

Please do not use this forum until you have learned android. While any 
interest in Android is good, this is not a beginners forum. Use the 
beginners forum instead.

Use this forum if:

"You're now an experienced Android application developer. You've grasped 
the basics of Android app development, you're comfortable using the SDK, 
now you want to move to advanced topics. Get help here with 
troubleshooting applications, advice on implementation, and strategies 
for improving your application's performance and user experience.” 
--Google Groups Description

“This is the not the right place to discuss user issues (use 
android-discuss for that) or beginner questions with the Android SDK 
(use android-beginners for that)." --Google Groups Description

If you were to post topics such as this to the android-discuss group, 
your relevant and useful dialog there would encourage others to 
participate in that forum. Separating the discussions by topic into two 
different forums improves the dialog in both forums, does it not? Please 
consider posting to the proper forum.

For complete information see:
http://developer.android.com/community

saravanan wrote:
> I am new to Android. I want to know the things before going to start
> the Android application. What are the requirements need to start the
> application. What type of Database support provided by Android?
>
> >
>   


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



[android-developers] Re: manipulating markets popularity! - why should i develop app for android

2009-03-06 Thread Justin Allen Jaynes

While any interest in Android is good, this is a developer forum only.

Use this forum if:

"You're now an experienced Android application developer. You've grasped 
the basics of Android app development, you're comfortable using the SDK, 
now you want to move to advanced topics. Get help here with 
troubleshooting applications, advice on implementation, and strategies 
for improving your application's performance and user experience.” 
--Google Groups Description

“This is the not the right place to discuss user issues (use 
android-discuss for that) or beginner questions with the Android SDK 
(use android-beginners for that)." --Google Groups Description

If you were to post topics such as this to the android-discuss group, 
your relevant and useful dialog there would encourage others to 
participate in that forum. Separating the discussions by topic into two 
different forums improves the dialog in both forums, does it not? Please 
consider posting to the proper forum.

For complete information see:
http://developer.android.com/community

AE wrote:
> Hi,
>
> It is my understanding that the "popularity index" uses several
> parameters to such as rating, comments (not directly but indirectly),
> number of downloads, active install, total install, installs from
> regular users, install from dev phones, age of the app, number of
> phone sales in a region, etc,etc -- there is probably 500 elements
> that are in the works! And rightfully so Google doesn't want folks to
> game the system.
>
> Now what I like to stress here is the following -- the 3 key element
> that is presented to users prior to download is number of downloads,
> rating, comments. No matter how much we argue at the end of day -- the
> users makes his/her decision "somewhat" based on the above 3
> parameters. Interestingly all of the above parameters can be
> manipulated by doing the following.
>
> a. Download the app - rank and comment
> b. Reset your phone - Create new user
> c. Repeat A
>
> And if you get say 5 college kid doing the above.. bingo you can
> always make sure that visible  3 comments are clean and positive --
> you can also use those comments as a megaphone to tell the users --
> what more can your app do -- beside the 325 char description , you
> keep your rating stable at 4.7/4.6 (so you don't look to greedy) and
> your number of downloads are increasing. Not only that while you are
> at it you might as well go ahead and make lower rating and ugly
> comments to competitors app -- and you make sure you uninstall
> competitors app, where as you don't uninstall your app -- you just hit
> for the "hard reset" -- because you send the signal -- that the phone
> might be off -- rinse and repeat!!! Yes very true this will not
> increase your popularity but slowly and surely by doing so you can
> only go up cos if all of the ranking elements produce "X" and the
> above 3 elements say produce "Y" -- no matter how insignificant these
> 3 parameter is -- you are on the positive -- never the less you have a
> propaganda megaphone to the users who download your apps. In every
> damn category all the top 20 - 30 apps stays the same, I have not seen
> them moving out of that space !!
>
> I am complete disgusted by the above, I worked hard to develop my app,
> I used the SDK so I can take advantage of all the phone features and I
> am honest and what it gets me -- nada! So why should I develop app --
> what incentive does it provide me if I don't have the money power to
> buy my friends 5-10 G1 to game the system!!
>
> I have couple of ideas to the above problem - and I am sure there are
> many here who has even better idea then i list below --
>
> 1. Rating from the "new" users i.e. created on the fly users -- should
> be separated from the users who are verified i.e. been using google
> for a while and have a history, so I propose 2 ratings rather then one
> - why - it should be transparent to the end consumer (No propaganda
> megaphone) -- how you use to evaluate popularity -- not my business
> and its googles secret.
>
> 2. Comments should have added "star" or colors to identify also the
> user has no history with google i.e. Amazon's "REAL NAME". Again
> transparent to end consumer
>
> Yes, I do want to have "real users comments" and their "ratings" and
> show the world "total downloads" -- it just helps me improve my app.
> But we need a fair playing field that's my request. I am sure many of
> you know the above -- at least its a open secret! Now everyone can
> play the game!!
>
> I look forward to constructive replies/solutions and hear your views.
>
> >
>   


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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.go

[android-developers] Where and how to load libgps.so in Android?

2009-03-06 Thread www_...@yahoo.com.cn

Dear all
   Now i need to develope GPS on qualcomm 72XX platform, I have got
the source code.
   I find libgps.so in qulacomm's baseline, but i do not find where
and how to load this so file.
   Could anyone can help me?

   thanks 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: Content Providers and Database initialisation

2009-03-06 Thread Justin Allen Jaynes

I had a similar question and Alistair Rutherford shared this article 
link with me.  It's exactly what I was looking for and may help you as well.

http://www.reigndesign.com/blog/using-your-own-sqlite-database-in-android-applications/


Justin

daekpony wrote:
> hi there - did you ever get an answer to whether you can ship an
> application with the database already populated? If you can, would you
> mind sharing the steps to do so with us?
>
> thanks!
>
> On Feb 18, 4:54 am, Gavin Aiken  wrote:
>   
>> Hey,
>> I have a plethora of data which is currently stored in 1000 different very
>> small text files, I want to store this data in an SQLite database as I feel
>> that this will be more space efficient and hopefully time efficient as I
>> presume a database query is faster than opening and parsing a text file
>> (please stop me now if this isn't the case!).
>>
>> The data does not need to be available to other applications and will be
>> used internally only. My first question is whether or not to create a
>> content provider anyway, is there any benefit to this?
>>
>> My second question is where to initialize the database, is it possible to
>> ship an application with a database included already populated? Do I have to
>> populate it in the onCreate method of the SQLiteOpenHelper subclass? If I
>> have to include the 1000 text files and read, parse and insert the data at
>> install time I have a feeling this would be slow. Is it possible for me to
>> populate the database now, dump it to a single file and then bulk insert
>> from the file in the onCreate method?
>>
>> I hope you get the jist of what I mean!
>>
>> Many thanks,
>>
>> Gav
>> 
> >
>   


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: Using a PC to Control Android

2009-03-06 Thread Justin Allen Jaynes

While any interest in Android is good, this is a developer forum only.

Use this forum if:

"You're now an experienced Android application developer. You've grasped 
the basics of Android app development, you're comfortable using the SDK, 
now you want to move to advanced topics. Get help here with 
troubleshooting applications, advice on implementation, and strategies 
for improving your application's performance and user experience.” 
--Google Groups Description

“This is the not the right place to discuss user issues (use 
android-discuss for that) or beginner questions with the Android SDK 
(use android-beginners for that)." --Google Groups Description

If you were to post topics such as this to the android-discuss group, 
your relevant and useful dialog there would encourage others to 
participate in that forum. Separating the discussions by topic into two 
different fourms improves the dialog in both forums, does it not? Please 
consider posting to the proper forum.

For complete information see:
http://developer.android.com/community

Doug wrote:
> Hi,
> Is there a way to control the Android HTC from a PC?
> I basically want to use my PC screen/keyboard to see/type into my T-
> mobile g1 phone.
> 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: Power Vibration Wanted

2009-03-06 Thread Justin Allen Jaynes

The only people who would take your formal request for greater 
Accesibility Features would be T-Mobile and HTC (the phone 
manufacturer). Call them and ask how to make a formal complaint and/or 
give feedback.

However 

While any interest in Android is good, this is a developer forum only.

Use this forum if:

"You're now an experienced Android application developer. You've grasped 
the basics of Android app development, you're comfortable using the SDK, 
now you want to move to advanced topics. Get help here with 
troubleshooting applications, advice on implementation, and strategies 
for improving your application's performance and user experience.” 
--Google Groups Description

“This is the not the right place to discuss user issues (use 
android-discuss for that) or beginner questions with the Android SDK 
(use android-beginners for that)." --Google Groups Description

For complete information see:
http://developer.android.com/community

grantlairdjr wrote:
> I just got G1 phone and I think its awesome.
>
> The biggest weakness on this phone is vibration. Even I put G1 phone o
> my computer desk next to me. I cant feel a thing seriously but with my
> old Blackberry I can.
>
> I really need it badly since I am deaf.
>
> I found a funny app called Vibrator and vibration actually can last
> longer than the notification setup. I figure someone can help me setup
> fast and simple apps that allows us to tweak vibration to be stronger.
>
> I know Blackberry has range 1 to 10, let me decide what works best for
> me.
>
> How do I formally request Android Team or Google/TMO to look at it?
>
> Appreciated it.
>
> gwlj
>
> >
>   


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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] Power Vibration Wanted

2009-03-06 Thread grantlairdjr

I just got G1 phone and I think its awesome.

The biggest weakness on this phone is vibration. Even I put G1 phone o
my computer desk next to me. I cant feel a thing seriously but with my
old Blackberry I can.

I really need it badly since I am deaf.

I found a funny app called Vibrator and vibration actually can last
longer than the notification setup. I figure someone can help me setup
fast and simple apps that allows us to tweak vibration to be stronger.

I know Blackberry has range 1 to 10, let me decide what works best for
me.

How do I formally request Android Team or Google/TMO to look at it?

Appreciated it.

gwlj

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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] Call for entries: the Andrew Seybold Innovation Rally AppWar is on!

2009-03-06 Thread dbeebe

I wanted to call the attention of all Android developers to an event
happening in conjunction with CTIA in Las Vegas later this month, with
particular attention on the AppWar, a free competition for mobile
developers:

The Andrew Seybold Innovation Rally, offered for the first time this
year as part of ANDREW SEYBOLD WIRELESS UNIVERSITY, offers an up-close
look at how some of today’s most innovative thinkers are rallying to
create and deploy new mobile services that extend their lead over the
rest of the industry. This racing-themed program will provide a unique
look into the future of blended services, data and applications. As a
backdrop for these discussions, the program will highlight advances in
electric car technology and a first look at a “digital dashboard” that
fulfills the promise of proximity-based content. Innovation Rally
speakers will include Rick Geremeth, Vice President of IT for
Motorsports Authentics; Michael Kadie, CEO of Electric Car Kit SSI
Racing; Mike Wehr, CEO of the Mobile Marketing Association; James
Oyang, CEO of Pharos; Nagesh Challa, Chairman of Ecrio Inc.; and Sue
Marek, Editor-in-Chief for Fierce Wireless. For a complete agenda for
Andrew Seybold Innovation Rally and ANDREW SEYBOLD WIRELESS
UNIVERSITY, please visit www.andrewseybold.com.

“We’re looking for the most innovative mobile services applications
from the most visionary developers, regardless of platform or network,
to participate in our AppWar,” said Andrew Seybold. “In tough economic
times, there can be a tendency to play it safe, stay with what works
and minimize risk. We’ll be featuring developers who have put ‘the
pedal to the metal’ to create groundbreaking applications that
distance them from the rest of the field.” Finalists in the AppWar
will give quick presentations of their applications and the audience
will select three winners to experience the thrill of driving in a
NASCAR-style stock car at any one of 20 historic raceways in the U.S.,
courtesy of the Richard Petty Driving Experience (www.
1800bepetty.com). For complete contest rules and submission
guidelines, please visit www.andrewseybold.com.

There is no cost for developers to enter the AppWar, but the deadline
to enter is March 16, 2009.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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 Development

2009-03-06 Thread saravanan

I am new to Android. I want to know the things before going to start
the Android application. What are the requirements need to start the
application. What type of Database support provided by Android?

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



[android-developers] Re: SAXParser getting stuck on certain characters

2009-03-06 Thread Scott G



On Jan 25, 11:18 pm, 3D  wrote:
> I'm using a SAXParser to parse an XML document and its getting stuck
> on certain symbols like the 'trademark' symbol and I think even double-
> quotes ".  I really don't need these characters so it would be fine if
> the parser just skips over these.  Instead it throws an exception and
> quits parsing the document.  What can I do?

What I found out was that when the parser hit one of those characters
between element tags, the characters function would be called again.
so a value like

the "dog" runs
would render 5 calls:
the
"
dog
"
runs

my solution was to intialize a temporary string on the startelement
call, append that string in the characters call, then assign it to the
proper variable end the end element call.


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



[android-developers] Re: Static reference gets gc

2009-03-06 Thread tine brin
Coupon for bidegg $237.5 off First purchase

http://BidEgg.com
COUPON: EFA3A
Offer expires soon (You save $237.5 )

BidEgg Amazing Low price Auction Site

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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] How android.view.View.invalidate(int l, int t, int r, int b) make only the dirty area redrawn?

2009-03-06 Thread FBear

android.view.View.invalidate(int l, int t, int r, int b) can mark the
the area defined by the rect (l,t,r,b) as needing to be drawn.
But how does View update only the dirty area specified by the rect?
Is it wise enough to redraw only the dirty area even if the onDraw is
customized to update the whole view?

I read some sources and searched in google developer group. No answer
to this question was found.

Would anybody please kindly explain that to me?

Thanks in advance.

FBear

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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] Is there any new updates for dev phone kernel?

2009-03-06 Thread ghan

Google guys,

Is there any new updates for the dev phone kernel?

I have a dev phone G1 since Jan, 2009, Shall I update the kernel ?

Thanks,

George

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: Problem with video playing

2009-03-06 Thread Eric

MPEG 4 is a family of encoding methods, of which H.264 is a video
subset, also with a family of encoding methods. The first thing you
need to do is determine what profile and level your second multimedia
file contains. They you should find out what profile and level can be
played by the H.264 codec. You will find your problem there. You
certainly exceed the level that can be handled by the codec, and
likely you exceed the encoding complexity as well.

Mobile devices generally only handle baseline profiles at low levels
with data rates limited by the EDGE class supported by the device
radio and the carrier network. Exceed any one of these, and it is not
going to work.

Formats and data rates that you can play on your computer will NOT
work on a mobile device.

On Mar 6, 1:42 am, manoj  wrote:
> Hi,
>
> I have created a small application which plays video file.
>
> I am using .mp4 files to play.
>
> Its working for only some files, but for some files, I am getting only
> audio there is no video at all.
>
> When I observed the properties of the media files,
>
> 1. Format: MPEG-4 Video, 320*240, AAC     Movie FPS:29.97, Data size:
> 3.76, Data Rate:316.03 kbps, noram size:320*240, current size:320*240
> -> PLAYING PERFECTLY
>
> 2. Format:h.264, 640*480, AAC Movie FPS: 29.97  data size:25.76 MB
> noramal size : 640*480, current size:640*480
> -> NO VIDEO, ONLY AUDIO.
>
> can any one please suggest me, how to solve this issue.
>
> Thanks,
> Manoj.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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] What is the best way to sent/receiv e data from remote database such as mysql on android?

2009-03-06 Thread best6...@gmail.com

Hi , Guys ,

I'm try to sent/receive data from my remote db server (MySQL) , I know
I can't connect the MySQL directly on android . And I'm trying to use
the soap , but I'm not sure if this is the right way ?

I don't have any experience on it , so my question is:" what is the
way to sent/receive data from remote db server "  in general ? Does it
have any examples I can see ?

Like the project :Cab4Me(http://www.cab4me.com/) , Does it have remote
DB ?  What is the method they can sent/receive the data from DB ?

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: Renaming Pictures

2009-03-06 Thread doubleslash

I have tried to save an image using MediaStore just like you, but it
causes a camera crash. I have to restart the phone to see the inserted
image. If you can save a picture taken by the camera (inside
onPictureCallback) , could you show me how?
Thanks so much

On Feb 12, 3:32 pm, ivan  wrote:
> I'm writing a camera app that captures a jpeg and saves it to the
> app's current working directory.  Then the app uses
> "android.provider.MediaStore.Images.Media.insertImage(ContentResolver
> cr, String imagePath, String name, String description)" tosavea copy
> of the picture to the media directory on the sdcard where the native
> Camera stores it's images.  Everything works fine except for the fact
> that the insertImage function disregards the name I use for theimage
> and gives theimagesome numerical name instead.
>
> Has anyone successfully circumvented this issue?
>
> ... any thoughts or code snippets?
>
> 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] Query on Operator Name String

2009-03-06 Thread Android Techies

Hi All,
I am wondering if all applications\ui use the getOperatorAlphalong as
defined in ServiceState.java to get the operator name string or do
they use any other way ?

How does the variable mOperatorAlphaLong get its value from ?

What apps currently uses these operator name ?

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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] Error on setting app.

2009-03-06 Thread fussene

Hi,

I'm really new to android project, I just downloaded new android src
and also sdk1.1
I made a new android project from existing src from /package/apps/
setting/ directory, but I'm getting bunch of compile errors.
I have few questions regarding that, any comments would be very
appreciated.

- Is android.jar file not enough to compile the default apps that
google provides? Am I suppose to add other libraries manually?
- com.android.internal.telephony.PhoneStateIntentReceiver seems
deprecated, but it seems still many apps in Settings are using this.
I checked the PhoneStateIntentReceiver it says that I should use
TelephonyManager instead. Is there any new app available for this?

Thanks,
Jimin

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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] What is the best way to sent/receive data from remote database such as mysql on android?

2009-03-06 Thread best6...@gmail.com

Hi , Guys ,

I'm try to sent/receive data from my remote db server (MySQL) , I know
I can't connect the MySQL directly on android . And I'm trying to use
the soap , but I'm not sure if this is the right way ?

I don't have any experience on it , so my question is:" what is the
way to sent/receive data from remote db server "  in general ? Does it
have any examples I can see ?

Like the project :Cab4Me(http://www.cab4me.com/) , Does it have remote
DB ?  What is the method they can sent/receive the data from DB ?

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: Bitmap Memory

2009-03-06 Thread William

I am drawing bitmaps left and right and I hit this issue where I
create a bitmap in one section of my code and when I later try to draw
on it using canvas, i get bitmap recycled.  but I did not null if out,
or call its recycle method.

Description:

I have a main Class that extends View that when first loads, initiates
the main screen which loads/draws on bitmaps and no problem.  I then
added a key event that causes this screen to go away and load the next
screen.  The screen logic is encapsulated in a class that I already
instantiated in the Main Class constructor and in my second screen its
constructor is this code:

staticBg = new BitmapDrawable(Bitmap.createBitmap(320, 240,
Bitmap.Config.RGB_565));
staticGr = new Canvas( staticBg.getBitmap() );

at a later time, from my first screen when I push a button, i call my
init() function that trys load screen two which does a draw to this
bitmap and I get the following error:

03-06 08:52:56.301: ERROR/AndroidRuntime(846):
java.lang.NullPointerException
03-06 08:52:56.301: ERROR/AndroidRuntime(846): at
android.graphics.Canvas.throwIfRecycled(Canvas.java:890)
03-06 08:52:56.301: ERROR/AndroidRuntime(846): at
android.graphics.Canvas.drawBitmap(Canvas.java:911)

It is saying my bitmap is recycled BUT from what I understand that
does not happened unless you explicitly call it or the garbage
collector does when there are no more references to it BUT i obviously
still have a reference to it.  What am I doing wrong?

On Mar 1, 12:57 am, "bra...@gmail.com"  wrote:
> Best darn suggestion yet. Thankyou I was wondering if I could use that
> setting, but feared that perhaps I would not be able to generate new
> bitmaps from the original - you can - thankyou
>
> On Feb 27, 1:19 pm, Alexey Krasnoriadtsev 
> wrote:
>
> > There best working approach is to only load Bounds of the image, and
> > then use scale to load the Bitmap of the needed size.
> > This way you never load the full-size bitmap in the memory.
>
> >http://code.google.com/intl/ja/android/reference/android/graphics/Bit...
>
> > get the bounds, and then use those to calculate the appropriate sample
> > size.
>
> > On Feb 26, 2:36 pm, mark.ka...@gmail.com wrote:
>
> > >   I'm just saying there have been a number of threads on this issue,
> > > I've had out of memory problems when processing bitmaps, and so have
> > > many other developers. It looks to me like a bug IMHO. I hope this
> > > problem will be resolved at some point.
>
> > > On Feb 26, 2:02 pm, "bra...@gmail.com"  wrote:
>
> > > > If that is the case then why does calling myBitmap.recycle not give me
> > > > that memory back to use for the next time I go into an edit.
>
> > > > On Feb 26, 4:59 pm, Romain Guy  wrote:
>
> > > > > BitmapFactory does NOT leak Bitmaps.
>
> > > > > A 2056x1536 opaque image requires 6 MB of RAM. An application has 16
> > > > > MB max. Do the math.
>
> > > > > On Thu, Feb 26, 2009 at 1:50 PM,   wrote:
>
> > > > > >  Are you using BitmapFactory? There have been a number of threads
> > > > > > about memory leaks, or similar problems when using BitmapFactory to
> > > > > > process bitmaps. Using Bitmap.recycle may mitigate, but not 
> > > > > > eliminate
> > > > > > these types of problems.
>
> > > > > >                 M
>
> > > > > > On Feb 26, 11:39 am, Mattaku Betsujin 
> > > > > > wrote:
> > > > > >> I think the best solution to handle very large bitmaps is to be 
> > > > > >> able to
> > > > > >> decode only a small chunk of the bitmap at a time and process it.
>
> > > > > >> Does anyone know if the existing Android API can support this?
>
> > > > > >> If not, probably one solution is to write a smart decoder (in 
> > > > > >> Java, so slow
> > > > > >> :-( )  that can decode a small chunk.
>
> > > > > >> On Thu, Feb 26, 2009 at 11:32 AM, Tomei Ningen 
> > > > > >> wrote:
>
> > > > > >> > You're running into memory fragmentation problems. Bitmap memory 
> > > > > >> > is
> > > > > >> > not allocated from the Java object heap. Instead, it's allocated 
> > > > > >> > from
> > > > > >> > the 'malloc' heap. That's why you don't see the Java heap 
> > > > > >> > expanding.
>
> > > > > >> > How big is your bitmap? If you're processing JPEG files, 
> > > > > >> > probably it
> > > > > >> > will be better to read the thumbnail directly from the JPEG 
> > > > > >> > file. This
> > > > > >> > way you don't need to create the Bitmap at all.
>
> > > > > >> > On Feb 26, 9:47 am, "bra...@gmail.com"  
> > > > > >> > wrote:
> > > > > >> > > Ok I am at the end of my rope.
>
> > > > > >> > > I am doing some image processing. I have a large image file 
> > > > > >> > > which I
> > > > > >> > > open and create a smaller bitmap from. At the end of 
> > > > > >> > > processing I call
> > > > > >> > > recycle on everything. I null everything. I run GC manually.
>
> > > > > >> > > I then try edit another image and I get an out of VM memory 
> > > > > >> > > error.
> > > > > >> > > Bitmap exceeds etc etc.
>
> > > > > >> > > I am looking

[android-developers] SharedPreferences bug when writing strings with ampersands in them

2009-03-06 Thread cmgreen...@googlemail.com

Hi All,

I've just tracked down a weird bug in our app where SharedPreferences
were failing between power cycles of the phone.

It turns out that one of the strings we were saving had an "&" in it.
When I look at the xml that is being persisted I see that this is
being encoded as && instead of just &

This means that when you come to read the settings back you don't get
any values at all.

Is this a known issue? I see lots of posts about preferences
dissappearing, but nothing about this.

Cheers
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] What is the best way to sent/receive data from remote database such as mysql on android?

2009-03-06 Thread best6...@gmail.com

Hi , Guys ,

I'm try to sent/receive data from my remote db server (MySQL) , I know
I can't connect the MySQL directly on android . And I'm trying to use
the soap , but I'm not sure if this is the right way ?

I don't have any experience on it , so my question is:" what is the
way to sent/receive data from remote db server "  in general ? Does it
have any examples I can see ?

Like the project :Cab4Me(http://www.cab4me.com/) , Does it have remote
DB ?  What is the method they can sent/receive the data from DB ?


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: FileChooser on Android

2009-03-06 Thread AKD

hi,
  i am very new to android, and want to do the same task i
followed the link posted by Dianne Hackborn but not get much success
yet. can anybody help me, it will be great help if someone can expain
by using an example code.
Thanks

On Mar 1, 1:40 am, Dianne Hackborn  wrote:
> Generally the correct way to do this is start a chooser activity for the
> GET_INTENT action with the MIME type you want (or */* for all MIME types).
> This will allow the user to pick from all of the apps that manage data, and
> use their picker where appropriate.  For example, this allows them to browse
> through their images as pictures to pick one of those, or even do ad-hoc
> things like record a sound that will be returned.
>
> You really shouldn't be using something like IO File Manager directly.
> Instead, that thing should publish as handling GET_CONTENT of any MIME type,
> so if the user has it installed they can use it to pick what they want, in
> addition to the other types of content available.
>
> http://developer.android.com/reference/android/content/Intent.html#AC...
>
>
>
> On Sat, Feb 28, 2009 at 7:46 AM, ANDREA P  wrote:
>
> > In my code I want to open a File Chooser from a button , because when
> > I click the button in the program i can choose a file from Android
> > file system...
>
> > Thanks..
>
> > On 28 Feb, 16:38, Mark Murphy  wrote:
> > > ANDREA P wrote:
> > > > Is there a FileChooser for Android ???
>
> > > As a widget, no.
>
> > > > Because I want to select a file from File System and after send it.
>
> > > Consider using OI File Manager from OpenIntents.org:
>
> > >http://www.openintents.org/en/node/159
>
> > > --
> > > Mark Murphy (a Commons Guy)http://commonsware.com
>
> > > Android Training on the Ranch! -- Mar 16-20, 2009
> >http://www.bignerdranch.com/schedule.shtml
>
> --
> 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] Deleting App from Android Market Developer Account

2009-03-06 Thread andr...@websitemagazine.com

Hello,

What is the proper way to delete an unpublished app from Android
Market Developer Account?

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] Can't get screen capture

2009-03-06 Thread volk...@aol.com

 I'm having trouble getting a screenshot. I installed the SDk,
Eclipse, the drivers, enable usb debugging, like the instructions say.
I open DDMS and it recognizes my phone without any problems. When I
try to do a screen capture, it says screen not available. In the
command box it says "timeout" and "truncated reply from ADB fb data".
Does anyone know what I'm doing wrong?

My phone isn't rooted and is running RC33. I'm running windows vista
on my computer.

Any help would be greatly appreciated. Thanks.
Reply With Quote

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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] Bluetooth modem

2009-03-06 Thread donnysp

Hi all,

I'm thinking of getting a T-Mobile G1 as a replacement for my existing
Windows Mobile PDA. So far as I can tell it will have everything I
want bar one, namely TomTom. I have bought TomTom Navigator for the
PDA and also pay for a Traffic subscription.

Since I'll only have one tariff with unlimited data (on the G1), what
I'd like to be able to do is use the G1 as a bluetooth modem that the
PDA can use to download the live traffic data.

Is there support in Android for networking over Bluetooth?
Alternatively, is there and application I can get that will do this?
Lastly if the answer to both is no (and given that I am a software
developer by trade), would this be possible using the appropriate
APIs?

Thanks in advance for your help and advice,
DonnySP

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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] Reg: Browser application on android

2009-03-06 Thread alok Yadav

Hi All,
I have ported android on i.MX31 processor.I am suffering with a browser 
issue with android porting.Isuue is.

I am able to ping ipaddress of externet sites but not the name.
Example:

#ping -c 3 74.125.67.100
64 bytes from yx-in-f100.google.com (74.125.45.100): icmp_seq=1 ttl=241 
time=274 ms
64 bytes from yx-in-f100.google.com (74.125.45.100): icmp_seq=2 ttl=241 
time=273 ms
64 bytes from yx-in-f100.google.com (74.125.45.100): icmp_seq=3 ttl=241 
time=273 ms
.
...

But for domain name

#ping -c google.com
unable to find host

my setting for /etc/resolve.conf

; generated by /sbin/dhclient-script
nameserver 172.29.36.1
nameserver 202.138.96.2
nameserver 202.138.103.100
search localdomain
~   can any one tell me that what is the issue am i facing??

Thanks and regards
Alok



--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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] keeping persistent state of single choice list item

2009-03-06 Thread joby

hi all ,

I am working with a single choice list item and its working fine but
can't retain the state of a single choice item after close the  single
choice item .Anybody can give me code or tips regarding  "keeping
persistent state of single choice list item"

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] fullscreen rendering and MEMORY_TYPE_GPU?

2009-03-06 Thread gigadude

While trying to get a GLES demo running full screen I came across:

http://groups.google.com/group/android-developers/browse_thread/thread/ffa17f5ce2f5cbfe/c3dd2e21d8a5fde3?lnk=gst&q=full+screen#c3dd2e21d8a5fde3

which is out of date, the correct code now seems to be:

// We don't need a title either.
requestWindowFeature(Window.FEATURE_NO_TITLE);

// remove status bar
int flags = WindowManager.LayoutParams.FLAG_FULLSCREEN;
getWindow().setFlags(flags, flags);

I noticed there are some other interesting WindowManager.LayoutParams
flags:

WindowManager.LayoutParams.MEMORY_TYPE_GPU
WindowManager.LayoutParams.MEMORY_TYPE_PUSH_BUFFERS
WindowManager.LayoutParams.MEMORY_TYPE_HARDWARE

all but WindowManager.LayoutParams.MEMORY_TYPE_HARDWARE seem to
prevent
the app from drawing anything, is there a detailed description of what
said flags actually do?

  - Ed

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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] Core button override

2009-03-06 Thread djdan1...@gmail.com

While in a call i would like to change the function of certain
buttons.  I have a service running that allows me to know when I'm in
call but i cannot get the onKeyDown function to work properly.  I have
gotten onKeyDown to work with activities and views.  Is this a
limitation of the function that it can't be used with services.  If
so, is there anyway to change what a button does such as the call
button or home button using a service?  Thanks for your help.

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



[android-developers] Re: Initial database population from large data files, several problems

2009-03-06 Thread Jesse McGrew

On Mar 4, 11:49 pm, Justin Allen Jaynes  wrote:
> I'm building a dictionary application with 135,000 word entries (words
> only).  My raw file must have been too large (1.5 meg), because I got
> this error:
>
> D/asset (909): Data exceeds UNCOMPRESS_DATA_MAX (1424000 vs 1048576)
>
> I've searched for this error with very few relevant hits.  It seemed to
> mean I could not open an uncompressed file over a meg.  So I then split
> the file into two smaller files and ran my code on both of them.  It
> worked out fine.  My total application size is 3 meg installed.
>
> My code is:
> public void onCreate(SQLiteDatabase database) {
>     database.execSQL("CREATE TABLE " + DATABASE_TABLE + " (wordid
> INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, word VARCHAR);");
>
>     Scanner fileScanner = new
> Scanner(myContext.getResources().openRawResource(R.raw.wordlist));
>     while ( fileScanner.hasNextLine() ) {
>         String wordFromFile = fileScanner.nextLine();
>          database.execSQL("INSERT INTO words (word) VALUES ('" +
> wordFromFile + "');");
>     }
>     fileScanner = new
> Scanner(myContext.getResources().openRawResource(R.raw.wordlist2));
>     while ( fileScanner.hasNextLine() ) {
>         String wordFromFile = fileScanner.nextLine();
>          database.execSQL("INSERT INTO words (word) VALUES ('" +
> wordFromFile + "');");
>      }
>
> }
>
> However, when the application is first run, it takes several MINUTES to
> initialize the database in this way.  Is there a way (like a copy
> command, as found in, say, postgresql, or a restore of a database file)
> to copy data from a raw file, and can such a method be accessed from the
> SDK so that standard first-run procedures can correctly set up the
> database?  I have been unable to locate such a luxury.  I am seeking to
> speed up this data populating process.
>
> First question: how can I speed up my database population?

Pre-populating it and building the database file into your app, as the
other response suggested, is probably the best way to do it.

However, if you decide to populate the database when your app is first
run, you might still be able to speed it up by wrapping the whole
process inside an SQLite transaction. Otherwise, it creates a separate
transaction for each query, which is slow. That's according to the
SQLite Optimization FAQ (http://web.utk.edu/~jplyon/sqlite/
SQLite_optimization_FAQ.html), although that FAQ is out of date by now
so maybe it's no longer true.

Jesse

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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 PC to Control Android

2009-03-06 Thread Doug

Hi,
Is there a way to control the Android HTC from a PC?
I basically want to use my PC screen/keyboard to see/type into my T-
mobile g1 phone.
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] Reg: Browser application on android

2009-03-06 Thread alok Yadav

Hi All,
I have ported android on i.MX31 processor.I am suffering with a browser 
issue with android porting.Isuue is.

I am able to ping ipaddress of externet sites but not the name.
Example:

#ping -c 3 74.125.67.100
64 bytes from yx-in-f100.google.com (74.125.45.100): icmp_seq=1 ttl=241 
time=274 ms
64 bytes from yx-in-f100.google.com (74.125.45.100): icmp_seq=2 ttl=241 
time=273 ms
64 bytes from yx-in-f100.google.com (74.125.45.100): icmp_seq=3 ttl=241 
time=273 ms
.
...

But for domain name

#ping -c google.com
unable to find host

my setting for /etc/resolve.conf

; generated by /sbin/dhclient-script
nameserver 172.29.36.1
nameserver 202.138.96.2
nameserver 202.138.103.100
search localdomain
~   can any one tell me that what is the issue am i facing??

Thanks and regards
Alok




--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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] Reg: Browser application on android

2009-03-06 Thread alok Yadav

Hi All,
  I have ported android on i.MX31 processor.I am suffering with a 
browser issue with android porting.Isuue is.

I am able to ping ipaddress of externet sites but not the name.
Example:

#ping -c 3 74.125.67.100
64 bytes from yx-in-f100.google.com (74.125.45.100): icmp_seq=1 ttl=241 
time=274 ms
64 bytes from yx-in-f100.google.com (74.125.45.100): icmp_seq=2 ttl=241 
time=273 ms
64 bytes from yx-in-f100.google.com (74.125.45.100): icmp_seq=3 ttl=241 
time=273 ms
.
...

But for domain name

#ping -c google.com
unable to find host

my setting for /etc/resolve.conf

; generated by /sbin/dhclient-script
nameserver 172.29.36.1
nameserver 202.138.96.2
nameserver 202.138.103.100
search localdomain
~   
can any one tell me that what is the issue am i facing??

Thanks and regards
Alok



--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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] manipulating markets popularity! - why should i develop app for android

2009-03-06 Thread AE

Hi,

It is my understanding that the "popularity index" uses several
parameters to such as rating, comments (not directly but indirectly),
number of downloads, active install, total install, installs from
regular users, install from dev phones, age of the app, number of
phone sales in a region, etc,etc -- there is probably 500 elements
that are in the works! And rightfully so Google doesn't want folks to
game the system.

Now what I like to stress here is the following -- the 3 key element
that is presented to users prior to download is number of downloads,
rating, comments. No matter how much we argue at the end of day -- the
users makes his/her decision "somewhat" based on the above 3
parameters. Interestingly all of the above parameters can be
manipulated by doing the following.

a. Download the app - rank and comment
b. Reset your phone - Create new user
c. Repeat A

And if you get say 5 college kid doing the above.. bingo you can
always make sure that visible  3 comments are clean and positive --
you can also use those comments as a megaphone to tell the users --
what more can your app do -- beside the 325 char description , you
keep your rating stable at 4.7/4.6 (so you don't look to greedy) and
your number of downloads are increasing. Not only that while you are
at it you might as well go ahead and make lower rating and ugly
comments to competitors app -- and you make sure you uninstall
competitors app, where as you don't uninstall your app -- you just hit
for the "hard reset" -- because you send the signal -- that the phone
might be off -- rinse and repeat!!! Yes very true this will not
increase your popularity but slowly and surely by doing so you can
only go up cos if all of the ranking elements produce "X" and the
above 3 elements say produce "Y" -- no matter how insignificant these
3 parameter is -- you are on the positive -- never the less you have a
propaganda megaphone to the users who download your apps. In every
damn category all the top 20 - 30 apps stays the same, I have not seen
them moving out of that space !!

I am complete disgusted by the above, I worked hard to develop my app,
I used the SDK so I can take advantage of all the phone features and I
am honest and what it gets me -- nada! So why should I develop app --
what incentive does it provide me if I don't have the money power to
buy my friends 5-10 G1 to game the system!!

I have couple of ideas to the above problem - and I am sure there are
many here who has even better idea then i list below --

1. Rating from the "new" users i.e. created on the fly users -- should
be separated from the users who are verified i.e. been using google
for a while and have a history, so I propose 2 ratings rather then one
- why - it should be transparent to the end consumer (No propaganda
megaphone) -- how you use to evaluate popularity -- not my business
and its googles secret.

2. Comments should have added "star" or colors to identify also the
user has no history with google i.e. Amazon's "REAL NAME". Again
transparent to end consumer

Yes, I do want to have "real users comments" and their "ratings" and
show the world "total downloads" -- it just helps me improve my app.
But we need a fair playing field that's my request. I am sure many of
you know the above -- at least its a open secret! Now everyone can
play the game!!

I look forward to constructive replies/solutions and hear your views.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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] Bitmap is recycled but I didn't do it?

2009-03-06 Thread William

I am drawing bitmaps left and right and I hit this issue where I
create a bitmap in one section of my code and when I later try to draw
on it using canvas, i get bitmap recycled.  but I did not null if out,
or call its recycle method.

Description:

I have a main Class that extends View that when first loads, initiates
the main screen which loads/draws on bitmaps and no problem.  I then
added a key event that causes this screen to go away and load the next
screen.  The screen logic is encapsulated in a class that I already
instantiated in the Main Class constructor and in my second screen its
constructor is this code:

staticBg = new BitmapDrawable(Bitmap.createBitmap(320, 240,
Bitmap.Config.RGB_565));
staticGr = new Canvas( staticBg.getBitmap() );

at a later time, from my first screen when I push a button, i call my
init() function that trys load screen two which does a draw to this
bitmap and I get the following error:

03-06 08:52:56.301: ERROR/AndroidRuntime(846):
java.lang.NullPointerException
03-06 08:52:56.301: ERROR/AndroidRuntime(846): at
android.graphics.Canvas.throwIfRecycled(Canvas.java:890)
03-06 08:52:56.301: ERROR/AndroidRuntime(846): at
android.graphics.Canvas.drawBitmap(Canvas.java:911)

It is saying my bitmap is recycled BUT from what I understand that
does not happened unless you explicitly call it or the garbage
collector does when there are no more references to it BUT i obviously
still have a reference to it.  What am I doing wrong?

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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 get the first frame of a video file ?

2009-03-06 Thread elcadar

Will you be able to extract arbitrary frames from a video stream (not
necessarily a file)? Essentially pull a frame every few seconds from
outbound video stream and show a little image on screen?

On Feb 11, 11:14 pm, Dave Sparks  wrote:
> There is no support for thumbnail extraction in SDK 1.0. It's coming
> in Cupcake as an adjunct to video record.
>
> On Feb 11, 7:30 am, Freepine  wrote:
>
> > Opencore has aframeand metadata utility, and there is also an API as
> > android.media.MediaMetadataRetriever.captureFrame()
> > in Java layer, but it might not be available in public SDK.
>
> > On Wed, Feb 11, 2009 at 8:49 PM, trust_chen chen wrote:
>
> > > how to get the firstframeof a video file ?
> > > Are there such APIs in OPENCORE?
> > >  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] Trackball doesn't give me click events, but touch screen does

2009-03-06 Thread Jesse McGrew

I have a list activity that creates a header row above the data rows
from the adapter. I want to receive click events when the user selects
the header or a data row (but my data rows have check boxes in them,
so this part is tricky). When I use the touch screen, I get this
expected behavior:

1. Tapping on any row causes a click event and a dialog appears.
2. Long-pressing on a data row causes a context menu to appear.
3. Long-pressing on the header row does *not* show the context menu.

However, when I use the arrow keys (emulator) or trackball (G1), I get
this unexpected behavior:

1. Selecting any row fails to cause any click events, even though the
row's appearance changes like it's being clicked.
2. Long-pressing on the header row *does* show the context menu, which
I don't want.
3. Occasionally, it doesn't focus the correct row when I move up or
down (e.g. it skips from the header to the last data row).

What am I doing wrong?

Jesse

(Complete project: http://hansprestige.com/android/DpadBug.zip)

// DpadActivity.java //

package com.hansprestige.DpadBug;

import android.app.AlertDialog;
import android.app.Dialog;
import android.app.ListActivity;
import android.os.Bundle;
import android.view.ContextMenu;
import android.view.View;
import android.view.ViewGroup;
import android.view.ContextMenu.ContextMenuInfo;
import android.view.View.OnClickListener;
import android.widget.ArrayAdapter;
import android.widget.ListView;

public class DpadBugActivity extends ListActivity {
private static final int DIALOG_TEST = 1;

private OnClickListener testListener = new OnClickListener() {
public void onClick(View v) {
showDialog(DIALOG_TEST);
}
};

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

ListView lv = getListView();
registerForContextMenu(lv);

findViewById(android.R.id.empty).setOnClickListener
(testListener);

View addItem = getLayoutInflater().inflate
(R.layout.list_header,
null, false);
addItem.setOnClickListener(testListener);
lv.addHeaderView(addItem);

fillData();
}

private void fillData()
{
String[] items = new String[] { "Item A", "Item B", "Item C" };
ArrayAdapter adapter = new ArrayAdapter(this,
R.layout.list_row, R.id.TextView01, items) {
@Override
public View getView(int position, View convertView, ViewGroup
parent) {
View v = super.getView(position, convertView, parent);
v.setOnClickListener(testListener);
v.setLongClickable(true);
return v;
}
};
setListAdapter(adapter);
}

@Override
protected Dialog onCreateDialog(int id) {
switch (id) {
case DIALOG_TEST:
return new AlertDialog.Builder(this)
.setTitle("Hello!")
.setPositiveButton("Close", null)
.create();
}
return super.onCreateDialog(id);
}

@Override
public void onCreateContextMenu(ContextMenu menu, View v,
ContextMenuInfo menuInfo) {
super.onCreateContextMenu(menu, v, menuInfo);
menu.add("Context item");
}
}

// main.xml //


http://schemas.android.com/apk/res/
android"
android:layout_width="fill_parent"
android:layout_height="fill_parent">





// list_header.xml //



http://schemas.android.com/apk/res/
android"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@android:drawable/menuitem_background"
android:focusable="true"
android:descendantFocusability="blocksDescendants">





// list_row.xml //


http://schemas.android.com/apk/res/android";
android:clickable="true"
android:focusable="true" android:background="@drawable/
android:menuitem_background"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:descendantFocusability="blocksDescendants">







--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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] BroadcastReceiver and onRestart

2009-03-06 Thread RyJan

I have an app that has an integrated BroadcastReceiver to handle
incoming calls.  That BCR interacts with the NotificationManager to
post text to the notification bar on the top of the screen.

In previous versions it seemed that when the user would use the
Notification drag-down to get into my App, the onCreate method would
be called essentially re-initializing my app.

In 1.1 this doesn't seem to happen, i need to manually refresh my app
to list new data.

I was curious if its was ok to override the OnRestart() method in my
activity to refresh my data list?

or is there a better way to let my activity know through the
BroadcastReceiver that it needs to look for new data?

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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] Problem with Simple Audio Recorder Application : Android

2009-03-06 Thread Jason

Hi,

I have written a simple Application to record audio.

SD card is enabled in emulator using "./emulator -sdcard sd_card.img".
when i enter this command, it displays warning saying "Audio output is
failed".

the application runs properly but i cant see the recorded file.

output file is set to "sdcard/test.3gpp" (setOutputFile("/sdcard/test.
3gpp")).

earlier i used "environment.getExternalStorageDirectory()" option to
get the path.. den i could see the recorded contents in "Music - >
Songs" in Emulator. But when i tried to play those, it says format not
supported("sorry, the player doesnot support this kind of audio
file"). i pulled that file using ADB ( "adb pull local_file /sdcard/
remote_file") on to system and tried to play it but unsuccessful.

I have altered the Android manifest file to give the AUDIO permission
aftre the field in the file.

Plesae help me

Thanks in Advance

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
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 anyone use the tool "oprofile" in the open source code

2009-03-06 Thread ATC

Hi,



I am trying to get OProfile working on Android



I have built the kernel with



make CONFIG_OPROFILE=y CONFIG_PROFILING=y CROSS_COMPILE=arm-none-eabi-
uImage



However, when I try to run it, it says the oprofiled is not running.
Is there quick way to make sure that oprofiled is running?



# echo 1 >/dev/oprofile/enable



# opcontrol --status

Driver directory: /dev/oprofile

Session directory: /data/oprofile

Counter 0 disabled

Counter 1 disabled

Counter 2 disabled

oprofiled is not running




On Feb 26, 4:13 pm, "Konig.Yuan"  wrote:
>   (1) opcontrol --setup, if it failed, theoProfileis not built in
> your android kernel.
>
>you need to enable the CONFIG_OPROFILE=y CONFIG_PROFILING=y
> CONFIG_OPROFILE_ARMV6=y
>
>   (2) If the opcontrol --setup successed. cat /dev/oproflie/cpu_type
> check whether it is arm/armv6
>
>Seems google android supports arvm6 by default.
>
>   (3) opcontrol --event TLB_MISS:15 (you can change the events)
>
>   (4) echo 1 >/dev/oprofile/enable  to start profiling (seems
> "opcontrol --start" not work).
>
>   (5) opcontrol --status ,check whether oprofiled is runing or not
>
>   (6) echo 0 >/dev/oprofile/enable to stop the profiling(seems
> opcontrol --stop not work).
>   Sample data will be collected to /data/oprofile/samples/current/
>
> On Feb 23, 5:22 pm, luyen  wrote:
>
> > an user has this question:
>
> > Does anyone try the tool "oprofile" in the source code folder
> > "external".
> > When I use command "oprofile-r start", it will show "Unable to open
> > cpu_type file for reading Make sure you have done opcontrol --init"
> > After I finish opcontrol --init, it show the same.
> > Does I need to set up something first, there is no guide to tell how
> > to use it.
>
> > from:http://androidcore.com/android-community.html?func=view&catid=22&id=17
>
> > Does anyone has the answer?

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: Example: upload files to php from android

2009-03-06 Thread AKD

hi arnouf could you plz provide your code. i need to work on same
task. thanks in advance.

On Jan 26, 2:35 pm, arnouf  wrote:
> It's done :)
>
> On 19 jan, 13:56, arnouf  wrote:
>
> > Hi all,
>
> > I used this method until now. But I would like to light my application
> > on device - without apache libraries - to use the code present in this
> > pagehttp://getablogger.blogspot.com/2008/01/android-how-to-post-file-to-p...
>
> > It doesn't work...Could you help me?
>
> > For information I would like to send an xml file (so text) and not a
> > binary.
>
> > Regards
>
> > On Dec 19 2008, 8:20 pm, octagon  wrote:
>
> > > Sorry, I didn't see your question! In case anyone has the same
> > > problem, the answer is yes. I am using eclipse. I first imported the
> > > jar files into my project so that the whole thing is all in one place.
> > > I put them in res/assets/dependencies.
> > > Then do:
>
> > > 1. main menu Project --> Properties
> > > 2. select Java Build Path from left pane
> > > 3. go to Libraries tab
> > > 4. click Add JARs
>
> > > hope it helps someone out.
>
> > > On Oct 23, 4:45 pm, "De San Nicolas Jean Philippe" 
> > > wrote:
>
> > > > hello
>
> > > > just a question (for the moment -:))
>
> > > > you set the dependencies in your classpath in your Android project?
>
> > > > thank's
>
> > > > 2008/10/21 octagon 
>
> > > > > This is a way for android to POST a file upload to a php script. I had
> > > > > a bit of trouble figuring out the ins and outs of the http client
> > > > > situation, but this is what works for me (hope someone finds it
> > > > > helpful):
>
> > > > > Notes:
>
> > > > > Expect/continue handshaking needed to be disabled to avoid getting 417
> > > > > errors from lighttpd. Doesn't work without an sdcard yet, as there is
> > > > > no Content-Length header associated with uploading an OutputStream as
> > > > > opposed to a File object, and writing to files is only allowed on the
> > > > > sdcard (as far as I know, please correct me if there is a way to do
> > > > > this).
>
> > > > > Dependencies:
>
> > > > > apache-mime4j-0.5.jar
> > > > > log4j-zeroconf.jar
> > > > > httpmime-4.0-beta1.jar
>
> > > > > upload.php:
>
> > > > > 
> > > > > 
> > > > > Choose a file to upload:  > > > > /
>
> > > > > 
> > > > > 
> > > > >  > > > >  $to_file = "tmp/" . basename($_FILES['uploadedfile']['name']);
> > > > >  $from_file = $_FILES['uploadedfile']['tmp_name'];
>
> > > > >  if (move_uploaded_file($from_file, $to_file)) {
> > > > >    echo "Successful upload";
> > > > > ?>
> > > > >  
> > > > >  > > > >  } else {
> > > > >    echo "Unsuccessful upload";
> > > > >  }
> > > > > ?>
>
> > > > > DemoActivity.java:
>
> > > > > import android.app.Activity;
> > > > > import android.os.Bundle;
> > > > > import android.util.Log;
> > > > > import android.view.View;
> > > > > import android.view.View.OnClickListener;
> > > > > import android.widget.Button;
> > > > > import android.widget.TextView;
>
> > > > > import org.apache.http.client.ClientProtocolException;
> > > > > import org.apache.http.client.HttpClient;
> > > > > import org.apache.http.client.methods.HttpEntityEnclosingRequestBase;
> > > > > import org.apache.http.client.methods.HttpPost;
> > > > > import org.apache.http.client.methods.HttpUriRequest;
> > > > > import org.apache.http.entity.mime.MultipartEntity;
> > > > > import org.apache.http.entity.mime.content.FileBody;
> > > > > import org.apache.http.impl.client.DefaultHttpClient;
>
> > > > > import java.io.BufferedReader;
> > > > > import java.io.File;
> > > > > import java.io.FileReader;
> > > > > import java.io.IOException;
> > > > > import java.io.PrintWriter;
> > > > > import java.util.Date;
>
> > > > > public class DemoActivity extends Activity {
>
> > > > >  /** Called when the activity is first created. */
> > > > >   �...@override
> > > > >    public void onCreate(Bundle savedInstanceState) {
> > > > >        super.onCreate(savedInstanceState);
> > > > >        setContentView(R.layout.main);
>
> > > > >        /*
> > > > >         * Make a simple view with a button and a bit of text. Click
> > > > > the button to upload the file to the
> > > > >         * server. The file will be saved to tmp/test.txt (relative to
> > > > > your php script) and it should contain
> > > > >         * the current time and date.
> > > > >         */
> > > > >        final TextView tmp = (TextView) findViewById(R.id.textView1);
> > > > >        tmp.setText("Hi! Click the button!");
>
> > > > >        Button b = (Button) findViewById(R.id.button1);
> > > > >        b.setOnClickListener(new OnClickListener() {
> > > > >                public void onClick(View v) {
> > > > >                        File f = new File("/sdcard/test.txt");
> > > > >                        try {
> > > > >                                        f.createNewFile();
> > > > >                                        Date d = new Date();
> > > > >                                        PrintWriter writer = new
> > > > > PrintWriter(f)

[android-developers] Reg: Browser application on android

2009-03-06 Thread alok Yadav

Hi All,
 I have ported android on i.MX31 processor.I am suffering with a browser 
issue with android porting.Isuue is.

I am able to ping ipaddress of externet sites but not the name.
Example:

#ping -c 3 74.125.67.100
64 bytes from yx-in-f100.google.com (74.125.45.100): icmp_seq=1 ttl=241 
time=274 ms
64 bytes from yx-in-f100.google.com (74.125.45.100): icmp_seq=2 ttl=241 
time=273 ms
64 bytes from yx-in-f100.google.com (74.125.45.100): icmp_seq=3 ttl=241 
time=273 ms
.
...

But for domain name

#ping -c google.com
unable to find host

my setting for /etc/resolve.conf

; generated by /sbin/dhclient-script
nameserver 172.29.36.1
nameserver 202.138.96.2
nameserver 202.138.103.100
search localdomain
~   can any one tell me that what is the issue am i facing??

Thanks and regards
Alok



--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: Oprofile querry

2009-03-06 Thread ATC

Did you have any success resolving it?

On Mar 3, 11:07 pm, "click...@gmail.com"  wrote:
> Hi,
>
> I followed the following steps provided by Mr. Konig.Yuan
>
> 1) opcontrol --setup, if it failed, theoProfileis not built in
> your android kernel.
>you need to enable the CONFIG_OPROFILE=y CONFIG_PROFILING=y
> CONFIG_OPROFILE_ARMV6=y
>
>   (2) If the opcontrol --setup successed. cat /dev/oproflie/cpu_type
> check whether it is arm/armv6
>Seems google android supports arvm6 by default.
>
>   (3) opcontrol --event TLB_MISS:15 (you can change the events)
>
>   (4) echo 1 >/dev/oprofile/enable  to start profiling (seems
> "opcontrol --start" not work).
>
>   (5) opcontrol --status ,check whether oprofiled is runing or not
>
>   (6) echo 0 >/dev/oprofile/enable to stop the profiling(seems
> opcontrol --stop not work).
>   Sample data will be collected to /data/oprofile/samples/
> current/
>
> Things seems to work fine. but the log in /data/oprofile/samples/
> oprofiled.log contains
>
> oprofiled.log
> 
> oprofiled started Thu Jan  1 00:04:18 1970
> kernel pointer size: 4
>
> Thu Jan  1 00:14:18 1970
>
> Nr. sample dumps: 2
> Nr. non-backtrace samples: 0
> Nr. kernel samples: 0
> Nr. lost samples (no kernel/user): 0
> Nr. lost kernel samples: 0
> Nr. incomplete code structs: 0
> Nr. samples lost due to sample file open failure: 0
> Nr. samples lost due to no permanent mapping: 0
> Nr. event lost due to buffer overflow: 0
> Nr. samples lost due to no mapping: 0
> Nr. backtraces skipped due to no file mapping: 0
> Nr. samples lost due to no mm: 0
> Nr. samples lost cpu buffer overflow: 0
> Nr. samples received: 0
> Nr. backtrace aborted: 0
> Nr. samples lost invalid pc: 0
>
> Thu Jan  1 00:24:18 1970
>
> Nr. sample dumps: 2
> Nr. non-backtrace samples: 0
> Nr. kernel samples: 0
> Nr. lost samples (no kernel/user): 0
> Nr. lost kernel samples: 0
> Nr. incomplete code structs: 0
> Nr. samples lost due to sample file open failure: 0
> Nr. samples lost due to no permanent mapping: 0
> Nr. event lost due to buffer overflow: 0
> Nr. samples lost due to no mapping: 0
> Nr. backtraces skipped due to no file mapping: 0
> Nr. samples lost due to no mm: 0
> Nr. samples lost cpu buffer overflow: 0
> Nr. samples received: 0
> Nr. backtrace aborted: 0
> Nr. samples lost invalid pc: 0
> 
> There is nothing like /data/oprofile/samples/current/
>
> - How to get the log files?
> - How can I view them?
> - Is there any configuration I have missed, using "oprofiled"?
>
> Regards
> Click
>
> On Mar 3, 11:40 am, "click...@gmail.com"  wrote:
>
> > Hi,
>
> > I am facing problem with startingOprofilein the device. Following
> > things are done.
>
> > 1. Enabledoprofilein Kernel.
> > 2. The utils 'oprofiled' and 'opcontrol' is present in '/system/xbin'.
>
> > When I run '#opcontrol --start' I get the following error.
> > "Cannot open /dev/oprofile/enable: No such file or directory"
>
> > I am using ARM-6410.
>
> > Please provide with information.
>
> > Regards
> > click321

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: Help using Eclipse to "attach" to a process on the emulator...

2009-03-06 Thread Xavier Ducrohet

What do you mean Eclipse doesn't see the process of your remote application?
It doesn't show up in the Device panel in the DDMS perspective?

On Fri, Mar 6, 2009 at 5:48 PM, Mike Collins  wrote:
>
> I am running the Eclipse ADT plugin.
>
> Wandering into even blacker magic, two points come up,
>
> If the process I want to debug was started because it's a remote
> service
> of the application I did start via Eclipse how do I attach the Eclipse/
> ADT
> debugger to it?  Eclipse certainly does not see the process.
>
> It does work. I was seeing the "2nd debugger failed" message, that's
> what
> got me to think of shutting down Eclipse and starting DDMS first.
>
> I did -not- update my ADT (because the web page said not to) when I
> rolled to SDK 1.1R1, maybe I should have?
>
> functional but puzzled,
>
>  mike
>
>
> On Mar 6, 5:23 pm, Xavier Ducrohet  wrote:
>> If you have installed ADT then you should not be running the
>> standalone version of DDMS.
>>
>> ADT actually is set of 2 plug-ins: DDMS and ADT.
>>
>> When DDMS is running, it constantly monitors emulators that are
>> running, or devices that are connected through USB. As soon as a new
>> device/emulator is connected, it actually connects to each application
>> running on the device/emulator as a debugger. The applications can
>> only accept connection from one debugger, so the 2nd instance of DDMS
>> fails to work (it sees the applications but fails to connect to them)
>>
>> (Regular Java debuggers actually connect to DDMS which then forwards
>> the packets to the application back and forth.)
>>
>> Xav
>>
>>
>>
>>
>>
>> On Fri, Mar 6, 2009 at 5:18 PM, Mike Collins  
>> wrote:
>>
>> > There seems to be some magical connection between Eclipse and DDMS,
>> > after shutting down Eclipse and restarting DDMS and then restarting
>> > Eclispe it now seems to work about like I would have expected.
>>
>> > It does not seem like you have to start DDMS before
>> > Eclipse...something
>> > is loose down there...
>>
>> >  mike
>>
>> > On Mar 6, 11:13 am, Mike Collins  wrote:
>> >> We are using V1.1R1, does the V1.0R2 work better?
>>
>> >> That seems to do a bit better, the Eclipse debugger now shows a few
>> >> of the threads in the process.  I still can't seem to set any
>> >> breakpoints
>> >> in the process and DDMS is still showing me nothing interesting.
>>
>> >> That's a pain,
>> >>   mike
>>
>> >> On Mar 6, 11:00 am, Videoguy  wrote:
>>
>> >> > I saw this issue with cupcake release when I was trying to attach to
>> >> > one of the apps. Some times DDMS worked, sometimes it didn't. I
>> >> > remember I was able to attach when I used the other port for that
>> >> > process (i.e 86XX instead of 8700).
>>
>> >> > Why don't you try that?
>>
>> >> > Videoguy- Hide quoted text -
>>
>> >> - Show quoted text -
>>
>> --
>> Xavier Ducrohet
>> Android Engineer, Google.- Hide quoted text -
> - Show quoted text -
>>
>> - Show quoted text -
> >
>



-- 
Xavier Ducrohet
Android Engineer, 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: Help using Eclipse to "attach" to a process on the emulator...

2009-03-06 Thread Mike Collins

I am running the Eclipse ADT plugin.

Wandering into even blacker magic, two points come up,

If the process I want to debug was started because it's a remote
service
of the application I did start via Eclipse how do I attach the Eclipse/
ADT
debugger to it?  Eclipse certainly does not see the process.

It does work. I was seeing the "2nd debugger failed" message, that's
what
got me to think of shutting down Eclipse and starting DDMS first.

I did -not- update my ADT (because the web page said not to) when I
rolled to SDK 1.1R1, maybe I should have?

functional but puzzled,

  mike


On Mar 6, 5:23 pm, Xavier Ducrohet  wrote:
> If you have installed ADT then you should not be running the
> standalone version of DDMS.
>
> ADT actually is set of 2 plug-ins: DDMS and ADT.
>
> When DDMS is running, it constantly monitors emulators that are
> running, or devices that are connected through USB. As soon as a new
> device/emulator is connected, it actually connects to each application
> running on the device/emulator as a debugger. The applications can
> only accept connection from one debugger, so the 2nd instance of DDMS
> fails to work (it sees the applications but fails to connect to them)
>
> (Regular Java debuggers actually connect to DDMS which then forwards
> the packets to the application back and forth.)
>
> Xav
>
>
>
>
>
> On Fri, Mar 6, 2009 at 5:18 PM, Mike Collins  wrote:
>
> > There seems to be some magical connection between Eclipse and DDMS,
> > after shutting down Eclipse and restarting DDMS and then restarting
> > Eclispe it now seems to work about like I would have expected.
>
> > It does not seem like you have to start DDMS before
> > Eclipse...something
> > is loose down there...
>
> >  mike
>
> > On Mar 6, 11:13 am, Mike Collins  wrote:
> >> We are using V1.1R1, does the V1.0R2 work better?
>
> >> That seems to do a bit better, the Eclipse debugger now shows a few
> >> of the threads in the process.  I still can't seem to set any
> >> breakpoints
> >> in the process and DDMS is still showing me nothing interesting.
>
> >> That's a pain,
> >>   mike
>
> >> On Mar 6, 11:00 am, Videoguy  wrote:
>
> >> > I saw this issue with cupcake release when I was trying to attach to
> >> > one of the apps. Some times DDMS worked, sometimes it didn't. I
> >> > remember I was able to attach when I used the other port for that
> >> > process (i.e 86XX instead of 8700).
>
> >> > Why don't you try that?
>
> >> > Videoguy- Hide quoted text -
>
> >> - Show quoted text -
>
> --
> Xavier Ducrohet
> Android Engineer, Google.- 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] droid fonts

2009-03-06 Thread j

I am building a website customized for Android phones.  I want to use
droid fonts in my css file but haven't been successful.

font-family: "droid-serif", "Droid Serif"

What names should I enter instead?

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: microSD problems

2009-03-06 Thread Justin Allen Jaynes

While any interest in Android is good, this is a developer forum only.

Use this forum if:

"You're now an experienced Android application developer. You've grasped 
the basics of Android app development, you're comfortable using the SDK, 
now you want to move to advanced topics. Get help here with 
troubleshooting applications, advice on implementation, and strategies 
for improving your application's performance and user experience.” 
--Google Groups Description

“This is the not the right place to discuss user issues (use 
android-discuss for that) or beginner questions with the Android SDK 
(use android-beginners for that)." --Google Groups Description

For complete information see:
http://developer.android.com/community

Daniel wrote:
> A quick Google search reveals a lot of microSD problems.
>
> I just got the T-Mobile UK G1 today and haven't been able to get the
> microSD working, either through the phone settings or mounting the
> phone from the PC.
>
> Is anyone here able to provide a straight answer?  Searching Google
> just returns hundreds of user complaints with no definite solutions,
> and T-Mobile just keep me on hold.
>
>
> >
>   


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: Help using Eclipse to "attach" to a process on the emulator...

2009-03-06 Thread Xavier Ducrohet

If you have installed ADT then you should not be running the
standalone version of DDMS.

ADT actually is set of 2 plug-ins: DDMS and ADT.

When DDMS is running, it constantly monitors emulators that are
running, or devices that are connected through USB. As soon as a new
device/emulator is connected, it actually connects to each application
running on the device/emulator as a debugger. The applications can
only accept connection from one debugger, so the 2nd instance of DDMS
fails to work (it sees the applications but fails to connect to them)

(Regular Java debuggers actually connect to DDMS which then forwards
the packets to the application back and forth.)

Xav

On Fri, Mar 6, 2009 at 5:18 PM, Mike Collins  wrote:
>
>
> There seems to be some magical connection between Eclipse and DDMS,
> after shutting down Eclipse and restarting DDMS and then restarting
> Eclispe it now seems to work about like I would have expected.
>
> It does not seem like you have to start DDMS before
> Eclipse...something
> is loose down there...
>
>  mike
>
>
> On Mar 6, 11:13 am, Mike Collins  wrote:
>> We are using V1.1R1, does the V1.0R2 work better?
>>
>> That seems to do a bit better, the Eclipse debugger now shows a few
>> of the threads in the process.  I still can't seem to set any
>> breakpoints
>> in the process and DDMS is still showing me nothing interesting.
>>
>> That's a pain,
>>   mike
>>
>> On Mar 6, 11:00 am, Videoguy  wrote:
>>
>>
>>
>> > I saw this issue with cupcake release when I was trying to attach to
>> > one of the apps. Some times DDMS worked, sometimes it didn't. I
>> > remember I was able to attach when I used the other port for that
>> > process (i.e 86XX instead of 8700).
>>
>> > Why don't you try that?
>>
>> > Videoguy- Hide quoted text -
>>
>> - Show quoted text -
> >
>



-- 
Xavier Ducrohet
Android Engineer, 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: Help using Eclipse to "attach" to a process on the emulator...

2009-03-06 Thread Mike Collins


There seems to be some magical connection between Eclipse and DDMS,
after shutting down Eclipse and restarting DDMS and then restarting
Eclispe it now seems to work about like I would have expected.

It does not seem like you have to start DDMS before
Eclipse...something
is loose down there...

 mike


On Mar 6, 11:13 am, Mike Collins  wrote:
> We are using V1.1R1, does the V1.0R2 work better?
>
> That seems to do a bit better, the Eclipse debugger now shows a few
> of the threads in the process.  I still can't seem to set any
> breakpoints
> in the process and DDMS is still showing me nothing interesting.
>
> That's a pain,
>   mike
>
> On Mar 6, 11:00 am, Videoguy  wrote:
>
>
>
> > I saw this issue with cupcake release when I was trying to attach to
> > one of the apps. Some times DDMS worked, sometimes it didn't. I
> > remember I was able to attach when I used the other port for that
> > process (i.e 86XX instead of 8700).
>
> > Why don't you try that?
>
> > Videoguy- 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: Testing for HTC magic

2009-03-06 Thread Justin Allen Jaynes

The emulator doesn't simulate any specific phone.  Just a generic one.  
Your application *should* run the same on an HTC magic as on a TMobile 
G1 because the hardware is very similar.  The whole intention of Android 
is to separate the application layer sufficiently from the hardware so 
that your app will run equally well on any android device.  So, although 
there are possible reasons it might not work well on a Magic, it's far 
more likely misbehaving because of either 1) the users particular phone 
setup (too many other running apps, etc), or 2) it's misbehaving on most 
actual physical phones.  If it's reason 1, you just got bad luck that 
they left a poor review.  If it's reason 2, you should investigate and 
fix it.

If at all possible, you should get an actual G1 (or Magic when it 
becomes publicly available in your area) and install and test the app.  
And although a DEV phone would be better than the emulator, the DEV 
phone ships with a different configuration than what end users have on 
their phones.  So an actual phone from a phone company would be the 
absolute best way to test.  The Android Platform which gets installed 
onto these phones by cellular phone companies is customized as they 
choose (which is one reason Android is open source).  For this reason, 
the emulator will never be exactly the same as the real world.

Justin

Mattaku Betsujin wrote:
> I am getting user feedback for my app "closes a lot on HTC magic, one 
> star"
>
> Are there any HTC magics out there? Will it be able to get an 
> SDK/emulator for it?
>
> 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] How to start an Intent from preference page AND GET RESULTS?

2009-03-06 Thread Xin Zhao
Hey guys,

I am trying to start an intent from a preference activity, AND GET RESULTS
once the new intent is done. As such, I can update the summary of the
preference.

Normall we do startActivityForResult() to wait for results. But how can I do
this here?

My code is as follow:

  PreferenceScreen intentPref =
getPreferenceManager().createPreferenceScreen(this);
  Intent intent = new Intent(this, PolicyEditor.class);
  intent.putExtra(PhoneCardDbAdapter.COL_ROWID, (long)rule.mRuleID);
  intentPref.setIntent(intent);  <--- I want to make sure once the
activity related to intent is done, we can update the summary
  title = "Rule " + (i+1);
  summary = rule.ruleSummary();
  intentPref.setTitle(title);
  intentPref.setSummary(summary);
  mlaunchPrefCat.addPreference(intentPref);

Any idea?

Thanks,
xin

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: (OT) Is the combination of Android Market and Google Checkout a joke?

2009-03-06 Thread Justin Allen Jaynes

Al, and all who share his sentiments,

I am from Idaho and I am new to THIS list.  But it doesn't mean I 
haven't spend a lot of time READING this forum, and in other developer 
forums as well.  I understand how they work and that there are rules, 
which, when followed, significantly improve the quality of the content.

I can understand your resistance to begin complying with the rules.  
Approximately half of your posts are off topic. However, if you were to 
move such conversations to the android-discuss group, your relevant and 
useful dialog there would encourage others to move to that forum as 
well, when they wish to discuss non-development subjects.  It would 
improve both forums, to separate the content by topic, would it not?

You are right.  This discussion does add traffic to the group.  But if 
reminding the users of the group of it's clearly defined usages cuts 
just 20 illegitimate emails out of the list daily, a few posts like this 
are worth it.  I think the majority of this groups subscribers would agree.

Justin

Al Sutton wrote:
> Justin,
>
> Whilst it's nice to see new people on the list, it's probably best to 
> get a feel for how the list works rather than trying to wade in with 
> how you think the world should work because all you're doing at the 
> moment is getting yourself on peoples auto-trash lists.
>
> The Google engineers chip in when they feel we're straying from the 
> path and we all respect their views because they have a genuine 
> undeniable interest in seeing this community developer. If you compare 
> this to what we know of you, which is that you are a little known 
> developer from Idaho whose first post was less than a day ago, you can 
> hopefully see why those of us who have been trying to help build this 
> community for a while now may not see your opinion as worthy of a 
> similar level of respect.
>
> Now, as this has gotten off topic, I'm sure you wouldn't want to reply 
> here, would you?
>
> Al.
>
> Justin Allen Jaynes wrote:
>> Stoyan,
>>
>> While I thank you for informing me of two OTHER choices, I prefer to 
>> continue to inform people ABOUT the charter so they will read it.  It 
>> isn't too much to ask that people use the right forum for the right 
>> discussion.
>>
>> This IS a DEVELOPER forum:
>>
>> "You're now an experienced Android application developer. You've grasped 
>> the basics of Android app development, you're comfortable using the SDK, 
>> now you want to move to advanced topics. Get help here with 
>> troubleshooting applications, advice on implementation, and strategies 
>> for improving your application's performance and user experience. This 
>> is the not the right place to discuss user issues (use android-discuss 
>> for that) or beginner questions with the Android SDK (use 
>> android-beginners for that)."
>>
>> There IS an appropriate forum for "water-cooler" talk.  It is not here.  
>> It is at android-disc...@googlegroups.com
>>
>> http://developer.android.com/community
>>
>>
>> Stoyan Damov wrote:
>>   
>>> Justin, calm down, it's your 5th or so message "aaargh, this is a
>>> DEVELPER forum" - it's starting to piss me off, at least fix the typo
>>> :P
>>>
>>> If you think that more than 5% of all posters on this list have read
>>> the group charter you're fooling yourself.
>>>
>>> I've said it once - this is the only developer-oriented list (not to
>>> be confused with "development-oriented" or
>>> "SDK-questions-only-oriented" list, no matter what Google are
>>> thinking), so there *will* be such questions. If you don't think a
>>> post appropriate you have 2 choices:
>>>
>>> 1. If you're a moderator, delete the message
>>> 2. If you're a mere mortal like us, just mute the post (if using Gmail)
>>>
>>> Cheers
>>>
>>>
>>> On Fri, Mar 6, 2009 at 12:18 AM, Justin Allen Jaynes  
>>> wrote:
>>>   
>>> 
 Actually, it is off topic and should not be here.  Android-discuss would
 be okay, though.

 This is a DEVELPER forum.  Please keep to DEVELOPMENT topic.  A quote
 from the official description of the forum:

 "This is the not the right place to discuss user issues (use
 android-discuss for that)."

 For a full description of the PROPER use of this form, and of the
 android-discuss form, go to

 http://developer.android.com/community

 Sena Gbeckor-Kove wrote:
 
   
> Personally I don't think its an issue. I think it should stay in here
> and android-discuss unless there is already a place for it.
>
> S
>
>
>
> On 4 Mar 2009, at 17:24, John Lauricella wrote:
>
>   
> 
>> Is it possible to start a new discussion group for folks who promote
>> their own products that compete with the Android Market, so we don't
>> get this constant conflict-of-interest commentary on how bad the
>> Google system is...
>>
>> 
>>   
>>> Date: Wed, 4 Mar 2009 13:38:49 +000

[android-developers] Re: Getting build number/version programatically

2009-03-06 Thread sm1

Here's a hint with some code:

StringBuffer buf = new StringBuffer();
buf.append("VERSION.RELEASE {"+Build.VERSION.RELEASE+"}");
buf.append("\nVERSION.INCREMENTAL {"+Build.VERSION.INCREMENTAL
+"}");
buf.append("\nVERSION.SDK {"+Build.VERSION.SDK+"}");
buf.append("\nBOARD {"+Build.BOARD+"}");
buf.append("\nBRAND {"+Build.BRAND+"}");
buf.append("\nDEVICE {"+Build.DEVICE+"}");
buf.append("\nFINGERPRINT {"+Build.FINGERPRINT+"}");
buf.append("\nHOST {"+Build.HOST+"}");
buf.append("\nID {"+Build.ID+"}");
Log.d("build",buf);

serge

On Feb 27, 7:16 pm, mark.ka...@gmail.com wrote:
>    I need to do it programmatically, but thanks.
>
>                                M
>
> On Feb 27, 3:49 pm, sm1  wrote:
>
> > You could use *Device Internals for r1* which is free in Tools, and
> > scroll to section *android.os.Build*, it will list you the fields and
> > values that you can obtain from this class and you can pick the one
> > that suits your requirements. You can also see other classes that give
> > you other similar values.
>
> > serge
>
> > On Feb 27, 4:21 pm, Mark Murphy  wrote:
>
> > > Mark K wrote:
> > > >   Does anyone know of a way to get the version/build number
> > > > programatically?
>
> > > Check out android.os.Build and android.os.Build.VERSION.
>
> > > Note that some of these values may be unusual in the emulator (e.g.,
> > > null brand).
>
> > > --
> > > Mark Murphy (a Commons Guy)http://commonsware.com
> > > _The Busy Coder's Guide to Android Development_ Version 2.0 Available!- 
> > > 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: Extending Theme.Dialog Problem

2009-03-06 Thread mibollma

i ran into the same problem when i was experimenting with
onApplyThemeResource

you will get a black background if you don't call the superclass
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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] Upload image to Flickr

2009-03-06 Thread Derek

Hi all,

Just to let you know that since 1.1RC3, BucketUpload application
allows uploading images/videos to your Flickr account. Options such as
tags and share to friend/family/all are available:

http://www.lysesoft.com/products/s3-bucketupload-android/index.html

Have fun.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: JUnit and ClassNotFoundException

2009-03-06 Thread Xavier Ducrohet

The only way to test code that uses Android API is on a device or emulator.

Look at instrumentation projects such as the ApiDemos test project
(samples/ApiDemos/tests/)

You will need to create an Eclipse project for ApiDemos and one of the
test project.
ADT doesn't fully support this at this point, so you'll need to add
the ApiDemos project to the build path of the test project so that it
compiles.

You then need to install both apk on the device, and use the "am
instrument ..." command on the device (through adb shell).
More information at
http://developer.android.com/reference/android/test/InstrumentationTestRunner.html

Xav

On Fri, Mar 6, 2009 at 1:24 PM, Gavin Aiken  wrote:
> Hi Bo,
>
> Did you resolve this issue? I'm having a similar problem.
>
> My test suite is a separate eclipse project, I need to test my android
> program against a desktop Java program in order to verify that I have ported
> the application correctly.
>
> To so this I need to use classes from both the JAI library and Android
> library.
>
> My test package is currently setup as a java project, I assumed the JAI
> library wouldn't compile to dex but that the android classes would compile
> to java class files. I'm guessing that the latter is incorrect as any
> methods I call return a stub error;
>
> 60.  return Bitmap.createBitmap(pixels, 0, width, width, height,
> Bitmap.Config.ARGB_);
>
> java.lang.RuntimeException: Stub!
>     at android.graphics.Bitmap.createBitmap(Bitmap.java:27)
>     at
> uk.ac.ic.doc.gea05.miffed.operators.concreteoperators.binary.TestIdentityTransform.generateBitmap(TestIdentityTransform.java:60)
>
> I'm presuming that I can't get this to work, and submit this comment for
> reference. If there is a way to use Java Libraries in a test with android
> api calls then please let me know!
>
> Gav
>
>
> On Tue, Jan 6, 2009 at 10:07 AM, Bo  wrote:
>>
>> I am trying to run a unit test in Eclipse. I followed Android FAQ
>> (http://code.google.com/android/kb/troubleshooting.html#addjunit) to
>> get JUnit working. Unfortunately, it works only if tested code does
>> not reference any android classes. As soon as it does, I get the
>> following exception, when running the test (if the class in question
>> implements Parcelable):
>>
>> Caused by: java.lang.ClassNotFoundException: android.os.Parcelable
>>        at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
>>        at java.security.AccessController.doPrivileged(Native Method)
>>        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
>>        at java.lang.ClassLoader.loadClass(ClassLoader.java:316)
>>        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:288)
>>        at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
>>        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:374)
>>        ... 33 more
>>
>> I tried including android.jar file explicitly, but then I got an
>> exception claiming that RectF (an instance variable in my class) is a
>> stub. Anybody knows how to setup Eclipse to run a unit test with
>> classes that either implement, extend or use android classes?
>>
>>
>>
>
>
> >
>



-- 
Xavier Ducrohet
Android Engineer, 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] How to bind XML data to List view?

2009-03-06 Thread Videoguy

Hi
I have xml data like below. I want to bind name and its value to
different fields of ListView row. The examples I came across were for
database cursors and array type data.
I can iterate node by node and build two arrays one containing names
and other the cities and use array adapter.
Is there a better way to do this? Any way that takes an XML node
object and some how bind it to List view row field...

The xml data




...


Thanks for ur help
Videoguy
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: Recording Audio

2009-03-06 Thread benmccann

Bugs already exist:
http://code.google.com/p/android/issues/detail?id=450&q=media%20documentation&colspec=ID%20Type%20Version%20Security%20Status%20Owner%20Summary
http://code.google.com/p/android/issues/detail?id=1256&q=media%20documentation&colspec=ID%20Type%20Version%20Security%20Status%20Owner%20Summary



On Mar 5, 9:23 pm, Dave Sparks  wrote:
> Log a bug athttp://b.android.com.
>
> On Mar 5, 2:17 pm, jdl  wrote:
>
> > Diane or Dave,
>
> > How do we go about requesting that someone from the Android project
> > update the Audio/Video 
> > tutorial,http://developer.android.com/guide/topics/media/index.html,
> > so that it works with the current version of the API?
>
> > Thanks,
> > AN
>
> > On Feb 28, 2:45 pm, Dianne Hackborn  wrote:
>
> > > You use Context to get at your private data files:
>
> > >http://developer.android.com/guide/topics/data/data-storage.html
>
> > >http://developer.android.com/reference/android/content/Context.html#g...)
>
> > > On Thu, Feb 26, 2009 at 2:40 PM, benmccann 
> > > wrote:
>
> > > > >> each application has its own private data directory /
> > > > >> data/app-private/app-package. I believe your working directory is set
> > > > >> to this directory by default
>
> > > > Cool.  So it sounds like I should just be able to use a relative path
> > > > from the current location then.  Unfortunately, I'm getting the
> > > > following exception (with no clues as to why start is failing):
>
> > > > 02-26 14:34:55.132: ERROR/AndroidRuntime(164):
> > > > java.lang.RuntimeException: start failed.
> > > > 02-26 14:34:55.132: ERROR/AndroidRuntime(164):     at
> > > > android.media.MediaRecorder.start(Native Method)
>
> > > > Here's my code:
>
> > > >    final MediaRecorder recorder = new MediaRecorder();
> > > >    recorder.setAudioSource(MediaRecorder.AudioSource.MIC);
> > > >    recorder.setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP);
> > > >    recorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB);
> > > >    recorder.setOutputFile("test.3gpp");
> > > >    recorder.prepare();
> > > >    recorder.start();
>
> > > > On Feb 26, 12:14 am, Dave Sparks  wrote:
> > > > > You can get the path to external storage (e.g. SD card) with
> > > > > Environment.getExternalStorageDirectory(). This is world read/
> > > > > writable.
>
> > > > > Alternatively, each application has its own private data directory /
> > > > > data/app-private/app-package. I believe your working directory is set
> > > > > to this directory by default. This is onboard flash, so it will
> > > > > survive the user ejecting an SD card. However, there is a limited
> > > > > amount to go around, so you don't want to store monster media files
> > > > > there.
>
> > > > > On Feb 25, 9:22 pm, benmccann  wrote:
>
> > > > > > >> setOutputFile() expects a path to where you want the file stored.
>
> > > > > > Yep, figured that much by the method name, but what's a valid path? 
> > > > > >  I
> > > > > > mean I'm figuring it's UNIX-like, but other than that I'm in the
> > > > > > dark.  Is there a preferred place for apps to store data?  Are there
> > > > > > certain directories that I have permission to write to?  What
> > > > > > directories exist on the device by default?  It'd be nice for the 
> > > > > > docs
> > > > > > on data storage to mention any of these things:
> > > >http://developer.android.com/guide/topics/data/data-storage.html
>
> > > > > > >> You can take a look at the source to SoundRecorder in the open
> > > > source tree for some working code
>
> > > > > > Thanks for the example.  This would be a much better example than 
> > > > > > the
> > > > > > one in the docs that won't compile and implies content must first be
> > > > > > added to a database:
> > > >http://developer.android.com/guide/topics/media/index.html
>
> > > > > > On Feb 24, 8:03 pm, Dave Sparks  wrote:
>
> > > > > > > setOutputFile() expects a path to where you want the file stored.
>
> > > > > > > You can take a look at the source to SoundRecorder in the open 
> > > > > > > source
> > > > > > > tree for some working code:
>
> > > >http://android.git.kernel.org/?p=platform/packages/apps/SoundRecorder...
>
> > > > > > > On Feb 24, 4:43 pm, benmccann  wrote:
>
> > > > > > > > Hi,
> > > > > > > > I'd like to create anaudiorecordingin Android.  (Actually, I 
> > > > > > > > just
> > > > > > > > want access to the mic withoutrecordingit, but it seems that's 
> > > > > > > > not
> > > > > > > > supported so I'll have to create arecordingand tail the file).
> > > > > > > > I'm having a very hard time getting started.  Mostly I'm just
> > > > hoping
> > > > > > > > that someone from Google reads this and will update the
> > > > documentation
> > > > > > > > because the example won't compile - it looks like it's from some
> > > > > > > > previous version of the SDK because there's an error in every 
> > > > > > > > other
> > > > > > > > line.  I made my best guess as to what the usage should be, but 
> > > > > > > > I
> > > > keep
> > > > > > > > 

[android-developers] Re: how to connect to pc through wifi directly

2009-03-06 Thread Jon Colverson

On Mar 6, 6:51 am, Lei  wrote:
> I want to know how to connect G1 to pc directly through wifi.
> The pc has a wireless network card.
> I know how to connect between 2 pcs. But I need to set up the ip
> address of them.
> Since I can not do that on android, I've no idea.
> And it seems that the G1 cannot find my pc's signal.

It sounds like you're talking about doing ad-hoc Wi-Fi. That isn't
supported by Android at the moment, unfortunately, so the PC and the
phone would have to be connected to the same Wi-Fi access point.

--
Jon

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: Where can i find a (complete) reference of XML files for layouts/drawables/etc

2009-03-06 Thread Dianne Hackborn
Sorry there isn't really such a thing.

On Fri, Mar 6, 2009 at 1:08 PM, Streets Of Boston
wrote:

>
> Hello everyone,
>
> I've been searching the internet and i have not found a proper
> reference guide (with some nice examples) that describe all the
> possible elements in XML files for resources such as layouts,
> drawables, strings, manifests, etc., etc.
>
> The only ones i find are some examples but I have no clear idea of
> everything that may be out there.
>
> For development i'm using Eclipse and the Android views help quite a
> bit when creating layouts for views. However, i'm not sure Eclipse is
> complete in that respect.
>
> And when creating xml file for drawables, there is no help from
> Eclipse whatsoever. That's why i'm looking for a (complete) reference
> guide describing all the possible xml-elements and their attributes
> (for example; how to create custom backgrounds with borders,
> gradients, corners, shapes, strokes, etc. etc.)
>
> Can someone point me to a resource with this kind of information.
>
> Thank you very much!
> -- Anton Spaans
> >
>


-- 
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: What would an intent URI look like for numeric data?

2009-03-06 Thread Dianne Hackborn
There was a big reworking late in 1.0 of the result stuff that caused a lot
of things that used to be returning things as raw strings to put them in the
action field.  It is generally not something I would recommend.  And what
you do with results is very very different than what you do with activity
intents and such, because an activity intent is something you are publishing
to the system, which it does intent filter matching on, etc.

I would recommend putting things like integers in to the extra data.  I
would certainly not recommend using the data field if you don't actually
have a reasonable scheme prefix that is part of your data.

On Fri, Mar 6, 2009 at 1:15 PM, Edward Falk  wrote:

>
>
> Doesn't particularly need to be in the data field, I just thought that
> it was an obvious place put put, you know, data.
>
> I've actually seen examples of apps that put the result in the Action
> field.  (C.f. app/SendResult.java in the sdk)
> >
>


-- 
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: PreferenceActivity with blur behind?

2009-03-06 Thread Dianne Hackborn
Or Theme.Translucent.

There is an API demo showing how to do this with an activity in general,
which should be no different than a preference activity.

On Fri, Mar 6, 2009 at 1:20 PM, Rohit  wrote:

>
> Make sure that the activity you are calling has the theme attribute
> set to Theme.Dialog in the Android Manifest as follows:
>
> android:theme="@android:style/Theme.Dialog"
>
> Rohit
>
>
> On Feb 11, 7:52 am, Colin  wrote:
> > Im also interested in learning how to do this... any ideas?
> >
> > On Dec 21 2008, 7:25 pm, Ralf  wrote:
> >
> > > I'm trying to use a PreferenceActivity with prefs inflated from XML
> > > and at the same time I'd like the window toblurwhatever was behind
> > > (i.e. my previous activity where I invoked the settings from.) I tried
> > > something like this below but thebackgroundis always black (or
> > > whatever color I select) without anyblur/transparency.
> >
> > > Is it possible? what am I doing wrong?
> >
> > > public class PrefsActivity extends PreferenceActivity {
> >
> > > @Override
> > > protected void onCreate(Bundle savedInstanceState) {
> > > // Have the systemblurany windows behind this one.
> > >
> getWindow().setFlags(WindowManager.LayoutParams.FLAG_BLUR_BEHIND,
> > > WindowManager.LayoutParams.FLAG_BLUR_BEHIND);
> >
> > > super.onCreate(savedInstanceState);
> >
> > > setTitle(R.string.prefs_title);
> > > addPreferencesFromResource(R.xml.prefs);
> >
> > > View content = findViewById(android.R.id.content);
> > > content.setBackgroundColor(0x7F00);
> >
> > > getListView().setBackgroundColor(0x7F00);
> > > getListView().setCacheColorHint(0x7F00);
> > > }
> >
> > > }
> >
> > > R/
> >
> >
> >
>


-- 
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: JUnit and ClassNotFoundException

2009-03-06 Thread Gavin Aiken
Hi Bo,

Did you resolve this issue? I'm having a similar problem.

My test suite is a separate eclipse project, I need to test my android
program against a desktop Java program in order to verify that I have ported
the application correctly.

To so this I need to use classes from both the JAI library and Android
library.

My test package is currently setup as a java project, I assumed the JAI
library wouldn't compile to dex but that the android classes would compile
to java class files. I'm guessing that the latter is incorrect as any
methods I call return a stub error;

60.  return Bitmap.createBitmap(pixels, 0, width, width, height,
Bitmap.Config.ARGB_);

java.lang.RuntimeException: Stub!
at android.graphics.Bitmap.createBitmap(Bitmap.java:27)
at
uk.ac.ic.doc.gea05.miffed.operators.concreteoperators.binary.TestIdentityTransform.generateBitmap(TestIdentityTransform.java:60)

I'm presuming that I can't get this to work, and submit this comment for
reference. If there is a way to use Java Libraries in a test with android
api calls then please let me know!

Gav


On Tue, Jan 6, 2009 at 10:07 AM, Bo  wrote:

>
> I am trying to run a unit test in Eclipse. I followed Android FAQ
> (http://code.google.com/android/kb/troubleshooting.html#addjunit) to
> get JUnit working. Unfortunately, it works only if tested code does
> not reference any android classes. As soon as it does, I get the
> following exception, when running the test (if the class in question
> implements Parcelable):
>
> Caused by: java.lang.ClassNotFoundException: android.os.Parcelable
>at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
>at java.security.AccessController.doPrivileged(Native Method)
>at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
>at java.lang.ClassLoader.loadClass(ClassLoader.java:316)
>at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:288)
>at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
>at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:374)
>... 33 more
>
> I tried including android.jar file explicitly, but then I got an
> exception claiming that RectF (an instance variable in my class) is a
> stub. Anybody knows how to setup Eclipse to run a unit test with
> classes that either implement, extend or use android classes?
>
>
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: adding Textviews and radio button in code

2009-03-06 Thread automerc

Are there any examples of adding textviews and radio button through
code?

On Mar 5, 7:54 pm, automerc  wrote:
> I think this is what caused the error
>
> 03-05 19:50:55.975: DEBUG/dalvikvm(224): VM cleaning up
> 03-05 19:50:55.975: DEBUG/dalvikvm(224): LinearAlloc 0x0 used 541260
> of 4194304 (12%)
> 03-05 19:50:56.014: ERROR/dalvikvm(224): pthread_setspecific failed,
> err=22
> 03-05 19:50:56.045: INFO/jdwp(232): received file descriptor 10 from
> ADB
> 03-05 19:50:56.334: DEBUG/AndroidRuntime(232): Shutting down VM
> 03-05 19:50:56.334: WARN/dalvikvm(232): threadid=3: thread exiting
> with uncaught exception (group=0x40010e28)
> 03-05 19:50:56.346: ERROR/AndroidRuntime(232): Uncaught handler:
> thread main exiting due to uncaught exception
> 03-05 19:50:56.364: ERROR/AndroidRuntime(232):
> java.lang.RuntimeException: Unable to start activity ComponentInfo
> {application.main/application.main.Q_end}:
> java.lang.NullPointerException
> 03-05 19:50:56.364: ERROR/AndroidRuntime(232):     at
> android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
> 2140)
> 03-05 19:50:56.364: ERROR/AndroidRuntime(232):     at
> android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:
> 2156)
> 03-05 19:50:56.364: ERROR/AndroidRuntime(232):     at
> android.app.ActivityThread.access$1800(ActivityThread.java:112)
> 03-05 19:50:56.364: ERROR/AndroidRuntime(232):     at
> android.app.ActivityThread$H.handleMessage(ActivityThread.java:1580)
> 03-05 19:50:56.364: ERROR/AndroidRuntime(232):     at
> android.os.Handler.dispatchMessage(Handler.java:88)
> 03-05 19:50:56.364: ERROR/AndroidRuntime(232):     at
> android.os.Looper.loop(Looper.java:123)
> 03-05 19:50:56.364: ERROR/AndroidRuntime(232):     at
> android.app.ActivityThread.main(ActivityThread.java:3742)
> 03-05 19:50:56.364: ERROR/AndroidRuntime(232):     at
> java.lang.reflect.Method.invokeNative(Native Method)
> 03-05 19:50:56.364: ERROR/AndroidRuntime(232):     at
> java.lang.reflect.Method.invoke(Method.java:515)
> 03-05 19:50:56.364: ERROR/AndroidRuntime(232):     at
> com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run
> (ZygoteInit.java:739)
> 03-05 19:50:56.364: ERROR/AndroidRuntime(232):     at
> com.android.internal.os.ZygoteInit.main(ZygoteInit.java:497)
> 03-05 19:50:56.364: ERROR/AndroidRuntime(232):     at
> dalvik.system.NativeStart.main(Native Method)
> 03-05 19:50:56.364: ERROR/AndroidRuntime(232): Caused by:
> java.lang.NullPointerException
> 03-05 19:50:56.364: ERROR/AndroidRuntime(232):     at
> android.view.View.(View.java:1645)
> 03-05 19:50:56.364: ERROR/AndroidRuntime(232):     at
> android.widget.TextView.(TextView.java:223)
> 03-05 19:50:56.364: ERROR/AndroidRuntime(232):     at
> android.widget.TextView.(TextView.java:217)
> 03-05 19:50:56.364: ERROR/AndroidRuntime(232):     at
> android.widget.TextView.(TextView.java:212)
> 03-05 19:50:56.364: ERROR/AndroidRuntime(232):     at
> application.main.Q_end.onCreate(Q_end.java:32)
> 03-05 19:50:56.364: ERROR/AndroidRuntime(232):     at
> android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:
> 1122)
> 03-05 19:50:56.364: ERROR/AndroidRuntime(232):     at
> android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
> 2103)
> 03-05 19:50:56.364: ERROR/AndroidRuntime(232):     ... 11 more
> 03-05 19:50:56.374: INFO/Process(51): Sending signal. PID: 232 SIG: 3
> 03-05 19:50:56.405: INFO/dalvikvm(232): threadid=7: reacting to signal
> 3
> 03-05 19:50:56.426: INFO/dalvikvm(232): Wrote stack trace to '/data/
> anr/traces.txt'
> 03-05 19:51:05.897: WARN/ActivityManager(51): Launch timeout has
> expired, giving up wake lock!
> 03-05 19:51:06.215: WARN/ActivityManager(51): Activity idle timeout
> for HistoryRecord{434f0048 {application.main/application.main.Q_end}}
> 03-05 19:51:11.445: DEBUG/dalvikvm(92): GC freed 1510 objects / 75528
> bytes in 219ms
>
> None of the error seems to point to my actual code so I'm not sure how
> to fix it.
>
> On Mar 4, 9:38 pm, Mark Murphy  wrote:
>
> > automerc wrote:
> > > I was wondering how we could add objects such astextviewandradio
> > > buttons to the activity through code and not the XML file and still
> > > have it run correctly. I tried adding a simpletextviewbelow but I
> > > got an error when I tried to run. Can any1 tell me how I could add the
> > >textviewin correctly?
>
> > Could you provide us with the error details from the log? Use adb
> > logcat, Eclipse, or DDMS.
>
> > In particular, it would be useful to know what exception occurred and
> > what line of your source it occurred on.
>
> > --
> > 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-develope

[android-developers] Re: PreferenceActivity with blur behind?

2009-03-06 Thread Rohit

Make sure that the activity you are calling has the theme attribute
set to Theme.Dialog in the Android Manifest as follows:

android:theme="@android:style/Theme.Dialog"

Rohit


On Feb 11, 7:52 am, Colin  wrote:
> Im also interested in learning how to do this... any ideas?
>
> On Dec 21 2008, 7:25 pm, Ralf  wrote:
>
> > I'm trying to use a PreferenceActivity with prefs inflated from XML
> > and at the same time I'd like the window toblurwhatever was behind
> > (i.e. my previous activity where I invoked the settings from.) I tried
> > something like this below but thebackgroundis always black (or
> > whatever color I select) without anyblur/transparency.
>
> > Is it possible? what am I doing wrong?
>
> > public class PrefsActivity extends PreferenceActivity {
>
> >     @Override
> >         protected void onCreate(Bundle savedInstanceState) {
> >         // Have the systemblurany windows behind this one.
> >         getWindow().setFlags(WindowManager.LayoutParams.FLAG_BLUR_BEHIND,
> >                 WindowManager.LayoutParams.FLAG_BLUR_BEHIND);
>
> >                 super.onCreate(savedInstanceState);
>
> >                 setTitle(R.string.prefs_title);
> >                 addPreferencesFromResource(R.xml.prefs);
>
> >             View content = findViewById(android.R.id.content);
> >             content.setBackgroundColor(0x7F00);
>
> >             getListView().setBackgroundColor(0x7F00);
> >             getListView().setCacheColorHint(0x7F00);
> >         }
>
> > }
>
> > R/
>
>
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: What would an intent URI look like for numeric data?

2009-03-06 Thread Edward Falk


Doesn't particularly need to be in the data field, I just thought that
it was an obvious place put put, you know, data.

I've actually seen examples of apps that put the result in the Action
field.  (C.f. app/SendResult.java in the sdk)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Where can i find a (complete) reference of XML files for layouts/drawables/etc

2009-03-06 Thread Streets Of Boston

Hello everyone,

I've been searching the internet and i have not found a proper
reference guide (with some nice examples) that describe all the
possible elements in XML files for resources such as layouts,
drawables, strings, manifests, etc., etc.

The only ones i find are some examples but I have no clear idea of
everything that may be out there.

For development i'm using Eclipse and the Android views help quite a
bit when creating layouts for views. However, i'm not sure Eclipse is
complete in that respect.

And when creating xml file for drawables, there is no help from
Eclipse whatsoever. That's why i'm looking for a (complete) reference
guide describing all the possible xml-elements and their attributes
(for example; how to create custom backgrounds with borders,
gradients, corners, shapes, strokes, etc. etc.)

Can someone point me to a resource with this kind of information.

Thank you very much!
-- Anton Spaans
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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] Extending Theme.Dialog Problem

2009-03-06 Thread nEx.Software

I've extended Theme.Dialog to use a different color as per the sample
in the ApiDemos project but for some reason it does not use the theme
properly in my project. I created a new project and it works perfectly
fine there. The main problem here is that it does not show as floating
in my project. Instead, it sets the rest of the screen black except
for what would be the dialog window, where it uses the correct colors,
etc... Any ideas? I am beating my head against the wall here. Thanks
in advance.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Static reference gets gc

2009-03-06 Thread Alexey

umm.. i don't think so - process was still there in the tasks list

On Mar 6, 2:22 pm, Marco Nelissen  wrote:
> It's not so much that your object got GC'd, but that your process was
> removed because nothing was running in it, and space was needed for
> other processes.
> If you want something to run in the background, use a service.
> If you just need to store some properties between invocations of your
> app, write them to a SharedPreference or something, don't keep an
> entire process around to hold them.
>
> On Fri, Mar 6, 2009 at 11:59 AM, Alexey  wrote:
>
> > Hi All , i have  a config class where i store properties . It has a
> >staticreference to itself and I initialize it when i start the
> > application. But if i'm if i switch back to my app after like an hour
> > of initial run - it looks like this object gets GC and not exist
> > anymore. As a workaround i start to check for it at onStart in my
> > activities but still don't understand why it's gone if it has astatic
> > reference.
>
>
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: Static reference gets gc

2009-03-06 Thread Marco Nelissen

It's not so much that your object got GC'd, but that your process was
removed because nothing was running in it, and space was needed for
other processes.
If you want something to run in the background, use a service.
If you just need to store some properties between invocations of your
app, write them to a SharedPreference or something, don't keep an
entire process around to hold them.


On Fri, Mar 6, 2009 at 11:59 AM, Alexey  wrote:
>
> Hi All , i have  a config class where i store properties . It has a
> static reference to itself and I initialize it when i start the
> application. But if i'm if i switch back to my app after like an hour
> of initial run - it looks like this object gets GC and not exist
> anymore. As a workaround i start to check for it at onStart in my
> activities but still don't understand why it's gone if it has a static
> reference.
>
>
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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] Static reference gets gc

2009-03-06 Thread Alexey

Hi All , i have  a config class where i store properties . It has a
static reference to itself and I initialize it when i start the
application. But if i'm if i switch back to my app after like an hour
of initial run - it looks like this object gets GC and not exist
anymore. As a workaround i start to check for it at onStart in my
activities but still don't understand why it's gone if it has a static
reference.


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: Will it work if I setListViewAdapter dynamically?

2009-03-06 Thread olko


> It will work :)

yes, it does :)



On Mar 4, 9:45 am, Romain Guy  wrote:
> It will work :)
>
> On Wed, Mar 4, 2009 at 12:39 AM,olko wrote:
>
> > I am trying to change ListView adapter on the  fly like this (the
> > AdapterMain* extends BaseAdapter):
>
> >if(main_view) {
> >setListAdapter(new 
> > AdapterMain(app_context));
> >}
> >else {
> >setListAdapter(new 
> > AdapterMainDetails(app_context));
> >}
>
> > Should I do other things or this would be enough?
>
> --
> Romain Guy
> Android framework engineer
> romain...@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] Poll activity state?

2009-03-06 Thread Ward Willats

Is there any way to poll the system for the "essentially four states" 
of an Activity (ACTIVE/RUN, PAUSED, STOPPED, DEAD) ?

I have a situation where this would be convenient, and I don't want 
to clutter my on() handlers with my own state tracking.

-- Ward

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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] microSD problems

2009-03-06 Thread Daniel


A quick Google search reveals a lot of microSD problems.

I just got the T-Mobile UK G1 today and haven't been able to get the
microSD working, either through the phone settings or mounting the
phone from the PC.

Is anyone here able to provide a straight answer?  Searching Google
just returns hundreds of user complaints with no definite solutions,
and T-Mobile just keep me on hold.


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: Problem with video playing

2009-03-06 Thread dar

There are a bunch of different ways to transcode, the path you choose
will depend, at least, on your source material and available tools.
Here's the wikipedia entry, this should be enough to get you started
in the right direction: http://en.wikipedia.org/wiki/Transcoding

On Mar 6, 1:03 pm, manoj  wrote:
> Hi dar,
>
> can you please tell me how to transcode?
>
> waiting for your reply...
>
> Thanks,
> Manoj.
>
> On Mar 6, 9:03 pm, dar  wrote:
>
>
>
> > This seems like a big hint:
>
> > W/PlayerDriver(  465): Video cannot catch up. Are you playing a high
> > quality content?
> > E/MediaPlayer(  235): Error (44,0)
>
> > Did you transcode your content to be smaller/less bandwidth before
> > running this test according to the specs Dave gave above?
>
> > On Mar 6, 10:22 am, manoj  wrote:
>
> > > Here I am providing you my complete log file:
> > > I/ActivityManager(   52): Starting activity: Intent { comp=
> > > {bluemediaLab.vodcast.tests/
> > > bluemediaLab.vodcast.tests.MediaPlayerDemo_Video} (has extras) }
> > > D/MediaPlayerDemo(  235): surfaceCreated called
> > > I/MediaPlayer-JNI(  235): prepareAsync: surface=0x20b488 (id=2)
> > > D/MediaPlayerDemo(  235): surfaceChanged called
> > > I/ActivityManager(   52): Displayed activity
> > > bluemediaLab.vodcast.tests/.MediaPlayerDemo_Video: 224 ms
> > > E/MemoryHeapBase(  465): mmap(fd=19, size=233472) failed (Invalid
> > > argument)
> > > E/VideoMIO(  465): Error creating frame buffer heap
> > > D/MediaPlayerDemo(  235): onPrepared called
> > > W/AudioFlinger(  465): write blocked for 96 msecs
> > > W/PlayerDriver(  465): Video cannot catch up. Are you playing a high
> > > quality content?
> > > E/MediaPlayer(  235): Error (44,0)
> > > D/MediaPlayerDemo(  235): onCompletion called
> > > D/MediaPlayerDemo(  235): surfaceDestroyed called
> > > I/DEBUG   (  464): *** *** *** *** *** *** *** *** *** *** *** *** ***
> > > *** *** ***
> > > I/DEBUG   (  464): Build fingerprint: 'android-devphone1/
> > > dream_devphone/dream/trout:1.0/UNLOCKED/116222:userdebug/test-keys'
> > > I/DEBUG   (  464): pid: 465, tid: 487  >>> /system/bin/mediaserver <<<
> > > I/DEBUG   (  464): signal 11 (SIGSEGV), fault addr 803180c8
> > > I/DEBUG   (  464):  r0 803180a8  r1 0004a80c  r2 40507e64  r3 0004a80c
> > > I/DEBUG   (  464):  r4 0004a80c  r5 0004a808  r6 800030c8  r7 1540
> > > I/DEBUG   (  464):  r8 40407bbc  r9 afe35d78  10 a9d2760d  fp 0001
> > > I/DEBUG   (  464):  ip 0010  sp 40507e60  lr 80002335  pc
> > > 80001ef2  cpsr 0030
> > > I/DEBUG   (  464):          #00  pc 80001ef2  /system/lib/
> > > libOmxCore.so
> > > I/DEBUG   (  464):          #01  pc 80002332  /system/lib/
> > > libOmxCore.so
> > > I/DEBUG   (  464):          #02  pc 8000249e  /system/lib/
> > > libOmxCore.so
> > > I/DEBUG   (  464):          #03  pc a70df844  /system/lib/
> > > libpvplayer.so
> > > I/DEBUG   (  464):          #04  pc a7172f74  /system/lib/
> > > libpvplayer.so
> > > I/DEBUG   (  464):          #05  pc a7172f92  /system/lib/
> > > libpvplayer.so
> > > I/DEBUG   (  464):          #06  pc a9d27674  /system/lib/libutils.so
> > > I/DEBUG   (  464):          #07  pc afe0ed08  /system/lib/libc.so
> > > I/DEBUG   (  464):          #08  pc afe0e87c  /system/lib/libc.so
> > > I/DEBUG   (  464): stack:
> > > I/DEBUG   (  464):     40507e20  afe35ee8
> > > I/DEBUG   (  464):     40507e24  afe1226d  /system/lib/libc.so
> > > I/DEBUG   (  464):     40507e28  0004b754  [heap]
> > > I/DEBUG   (  464):     40507e2c  40507e6c
> > > I/DEBUG   (  464):     40507e30  afe2fe38  /system/lib/libc.so
> > > I/DEBUG   (  464):     40507e34  40507e6c
> > > I/DEBUG   (  464):     40507e38  0004b500  [heap]
> > > I/DEBUG   (  464):     40507e3c  afe0dd48  /system/lib/libc.so
> > > I/DEBUG   (  464):     40507e40  2bb4
> > > I/DEBUG   (  464):     40507e44  afe2fe38  /system/lib/libc.so
> > > I/DEBUG   (  464):     40507e48  afe35d78
> > > I/DEBUG   (  464):     40507e4c  a71af168
> > > I/DEBUG   (  464):     40507e50  1540
> > > I/DEBUG   (  464):     40507e54  afe12921  /system/lib/libc.so
> > > I/DEBUG   (  464):     40507e58  df002777
> > > I/DEBUG   (  464):     40507e5c  e3a070ad
> > > I/DEBUG   (  464): #00 40507e60  0019
> > > I/DEBUG   (  464):     40507e64  afe2fe38  /system/lib/libc.so
> > > I/DEBUG   (  464):     40507e68  0004a80c  [heap]
> > > I/DEBUG   (  464):     40507e6c  800030c8
> > > I/DEBUG   (  464):     40507e70  a71af168
> > > I/DEBUG   (  464):     40507e74  80002335  /system/lib/libOmxCore.so
> > > I/DEBUG   (  464): #01 40507e78  0004b6e8  [heap]
> > > I/DEBUG   (  464):     40507e7c  80003148
> > > I/DEBUG   (  464):     40507e80  
> > > I/DEBUG   (  464):     40507e84  800024a1  /system/lib/libOmxCore.so
> > > I/ServiceManager(   26): service 'media.audio_flinger' died
> > > I/ServiceManager(   26): service 'media.player' died
> > > I/ServiceManager(   26): service 'media.camera' died
> > > W/MediaPlayer(  235): MediaPlayer server died!
> > > W/AudioSyste

[android-developers] Re: Help using Eclipse to "attach" to a process on the emulator...

2009-03-06 Thread Mike Collins

We are using V1.1R1, does the V1.0R2 work better?

That seems to do a bit better, the Eclipse debugger now shows a few
of the threads in the process.  I still can't seem to set any
breakpoints
in the process and DDMS is still showing me nothing interesting.

That's a pain,
  mike


On Mar 6, 11:00 am, Videoguy  wrote:
> I saw this issue with cupcake release when I was trying to attach to
> one of the apps. Some times DDMS worked, sometimes it didn't. I
> remember I was able to attach when I used the other port for that
> process (i.e 86XX instead of 8700).
>
> Why don't you try that?
>
> Videoguy
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: WebView issue?

2009-03-06 Thread Faber Fedor
What's odd about that behavior?  IIUC, you're saying "when the user clicks
on something, don't do anything".

On Fri, Mar 6, 2009 at 1:22 PM, Marc  wrote:

>
> So I've got a WebView, and in its content is a phone number.  I
> hightlight it and click - voila, taken to the phone app.
>
> Now, all I do is add this code:
>
>wv.setWebViewClient(new WebViewClient() {
>@Override
>public boolean shouldOverrideUrlLoading(WebView view,
> String
> url) {
>return false;
>}
>});
>
> and hey, presto!, clicks no longer work.
>
> Can anyone repro/explain this odd behavior?
>
> Thanks.
>
> Marc
>
>
> >
>


-- 

Faber Fedor
Linux New Jersey
http://linuxnj.com
faberfedor.blogspot.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: Help using Eclipse to "attach" to a process on the emulator...

2009-03-06 Thread Videoguy

I saw this issue with cupcake release when I was trying to attach to
one of the apps. Some times DDMS worked, sometimes it didn't. I
remember I was able to attach when I used the other port for that
process (i.e 86XX instead of 8700).

Why don't you try that?

Videoguy
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: ContentProvider InstantiationException

2009-03-06 Thread droozen

Provider class public. Check: public class SavingsDbAdapter extends
ContentProvider

:) And I implement all the methods for a ContentProvider that Eclipse
asked me to. I do have some static code that runs first, as the
NotesList example does at the bottom of the class. That code seems to
run fine before I hit the exception. I also have added the
android:multiprocess parameter to true, but I wouldn't expect that to
have any effect either way on my problem.

On Mar 6, 12:33 pm, Marco Nelissen  wrote:
> Did you forget to mark your provider class as public?
>
> On Fri, Mar 6, 2009 at 10:25 AM, droozen  wrote:
>
> > Hence the InstantiationException. I get that. But WHY can't it be
> > instantiated or, the real kicker, how can I get it to work? From what
> > I can tell, and from what I keep reading in everything I can find on
> > ContentProviders, everything looks fine with my setup. I don't even
> > know where to look to try to fix my setup. Has anyone else ever
> > encountered this and figured out why your provider couldn't be
> > instantiated?
>
> > On Mar 6, 12:10 pm, Dianne Hackborn  wrote:
> >> When a process is started, all content providers that run in it are
> >> instantiated.  Apparently your new content provider can't be instantiated.
>
> >> On Fri, Mar 6, 2009 at 5:51 AM, droozen  wrote:
>
> >> > So, I was trying to create my own ContentProvider. I want a recurring
> >> > notification (say, once a day) so I discovered that I should be able
> >> > to do this by setting a repeating alarm that my BroadcastReceiver
> >> > class can pick up. Because it's going to perform some calcs, it
> >> > immediately starts a service. So far, so good.
>
> >> > My service will need to access some data in the SQLite database in my
> >> > application. So I made a content provider to provide that
> >> > functionality. However, after making the content provider and adding
> >> > the provider to my manifest between the application tags:
>
> >> > 
>
> >> > Now my application, when it starts up, immediately fails with a
> >> > InstantiationException for my ContentProvider. Any idea what I'm doing
> >> > wrong? Or what else I need to be doing right?
>
> >> --
> >> 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] [ListPreference] How to get the cursor index from an id

2009-03-06 Thread michael.bollm...@googlemail.com

Let's assume my cursor returns 100 items
I want to select the item that got the id 50
I assume that setSingleChoiceItems expects an index based on the
cursors
result not an id

So how do i convert the id to an result index without doing a costly
linear search

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



[android-developers] Re: ContentProvider InstantiationException

2009-03-06 Thread Marco Nelissen

Did you forget to mark your provider class as public?


On Fri, Mar 6, 2009 at 10:25 AM, droozen  wrote:
>
> Hence the InstantiationException. I get that. But WHY can't it be
> instantiated or, the real kicker, how can I get it to work? From what
> I can tell, and from what I keep reading in everything I can find on
> ContentProviders, everything looks fine with my setup. I don't even
> know where to look to try to fix my setup. Has anyone else ever
> encountered this and figured out why your provider couldn't be
> instantiated?
>
> On Mar 6, 12:10 pm, Dianne Hackborn  wrote:
>> When a process is started, all content providers that run in it are
>> instantiated.  Apparently your new content provider can't be instantiated.
>>
>>
>>
>> On Fri, Mar 6, 2009 at 5:51 AM, droozen  wrote:
>>
>> > So, I was trying to create my own ContentProvider. I want a recurring
>> > notification (say, once a day) so I discovered that I should be able
>> > to do this by setting a repeating alarm that my BroadcastReceiver
>> > class can pick up. Because it's going to perform some calcs, it
>> > immediately starts a service. So far, so good.
>>
>> > My service will need to access some data in the SQLite database in my
>> > application. So I made a content provider to provide that
>> > functionality. However, after making the content provider and adding
>> > the provider to my manifest between the application tags:
>>
>> > 
>>
>> > Now my application, when it starts up, immediately fails with a
>> > InstantiationException for my ContentProvider. Any idea what I'm doing
>> > wrong? Or what else I need to be doing right?
>>
>> --
>> 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] designMode in WebView

2009-03-06 Thread Marc

Somebody asked a while back, but got no reply...  Does anyone know if
designMode (or contentEditable) work in WebView (it seems not to)?  Is
this by design?   Coming soon?

TIA

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



[android-developers] Re: ContentProvider InstantiationException

2009-03-06 Thread droozen

Hence the InstantiationException. I get that. But WHY can't it be
instantiated or, the real kicker, how can I get it to work? From what
I can tell, and from what I keep reading in everything I can find on
ContentProviders, everything looks fine with my setup. I don't even
know where to look to try to fix my setup. Has anyone else ever
encountered this and figured out why your provider couldn't be
instantiated?

On Mar 6, 12:10 pm, Dianne Hackborn  wrote:
> When a process is started, all content providers that run in it are
> instantiated.  Apparently your new content provider can't be instantiated.
>
>
>
> On Fri, Mar 6, 2009 at 5:51 AM, droozen  wrote:
>
> > So, I was trying to create my own ContentProvider. I want a recurring
> > notification (say, once a day) so I discovered that I should be able
> > to do this by setting a repeating alarm that my BroadcastReceiver
> > class can pick up. Because it's going to perform some calcs, it
> > immediately starts a service. So far, so good.
>
> > My service will need to access some data in the SQLite database in my
> > application. So I made a content provider to provide that
> > functionality. However, after making the content provider and adding
> > the provider to my manifest between the application tags:
>
> > 
>
> > Now my application, when it starts up, immediately fails with a
> > InstantiationException for my ContentProvider. Any idea what I'm doing
> > wrong? Or what else I need to be doing right?
>
> --
> 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] WebView issue?

2009-03-06 Thread Marc

So I've got a WebView, and in its content is a phone number.  I
hightlight it and click - voila, taken to the phone app.

Now, all I do is add this code:

wv.setWebViewClient(new WebViewClient() {
@Override
public boolean shouldOverrideUrlLoading(WebView view, String
url) {
return false;
}
});

and hey, presto!, clicks no longer work.

Can anyone repro/explain this odd behavior?

Thanks.

Marc


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



[android-developers] Testing for HTC magic

2009-03-06 Thread Mattaku Betsujin
I am getting user feedback for my app "closes a lot on HTC magic, one star"

Are there any HTC magics out there? Will it be able to get an SDK/emulator
for it?

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] Help using Eclipse to "attach" to a process on the emulator...

2009-03-06 Thread Mike Collins

I have a process running on the emulator but can't figure out how to
get Eclipse to
attach to it so I can debug it.

DDMS isn't doing anything useful, it does the "ps" and shows my
process but it is
"not DDMS aware", has no description and no VM version.  Threads don't
update,
heap doesn't show anything, allocations is blank...

Debugging through Eclipse's "Remote Java Application", set to port
8700 does
nothing for a while and then fails with a failed to connect to remote
VM error.

any help would be appreciated,

  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
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



  1   2   >