[android-developers] Re: reading package name from apk file

2009-08-12 Thread rk

Sudha,

Do you have automated test solution for Andorid?

thanks
raj

On Aug 13, 11:42 am, Dianne Hackborn  wrote:
> Use the aapt command's dump subcommands.  For example "aapt dump badging
> /path./to/.apk" will print various interesting meta-data about the app.
>
>
>
>
>
> On Wed, Aug 12, 2009 at 10:45 PM, Sudha  wrote:
>
> > Hello Zero,
>
> > What i want is just knowing the package name
>
> > I donot wish to reverse engineer the code
>
> > the main purpose is to write a script for automated testing like when
> > a apk file is given in the script it installs the package on the phone
> > and after testing some random test cases will uninstall the app from
> > the device or emu
>
> > for uninstalling the app from device using script what we must know is
> > the package name so i want to parse the apk file not meant to
> > reverse engineer..
>
> > - Sudha
>
> > On Aug 12, 7:22 pm, Zero  wrote:
> > > dude, maybe you should not try to mess with other ppls code if u don't
> > > know basic reverse engineering. seriously.
>
> > > On Aug 12, 3:26 pm, Sudha  wrote:
>
> > > > Hello,
>
> > > > If i have a apk file and want to know the package name and class
> > > > hierarchy, how do i do it?
>
> > > > Suppose I have some sample APK file named "SampApp.apk" which contains
> > > > classes inside "com.android.sampApp".
>
> > > > Is there any tool in Android SDK which shows the package name when APK
> > > > file is passed as a parameter.
>
> > > > As the Class files are compressed to dex file I am not able to check
> > > > the actual package name.
>
> > > > Regards:
> > > > Sudha
>
> --
> 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, and so won't reply to such e-mails.  All such
> questions should be posted on public forums, where I and others can see and
> answer them.- 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: Updating Views in a ListView when they may have been recycled

2009-08-12 Thread Jeff Sharkey

One way of doing this would be to convertView.setTag() to a well-known
value when binding each child item.

Then, when a progress event occurs, use ListView.findViewWithTag() to
find the target View, or fail silently if it doesn't exist.  Each time
a view is recycled, your bind step above would be updating the tag to
match the content.

j

On Wed, Aug 12, 2009 at 2:34 AM, Neil wrote:
>
> Hi,
>
> I've recently got into Android development and am writing a basic
> podcast app as a learning exercise. I've come up with an issue I can't
> find a good solution for. Rather than post code (it's getting big!),
> I'll try and summarise:
>
> I have an ExpandableListView showing podcasts and each podcast's
> episodes in a simple two-level tree. The podcasts are downloaded in a
> Service, and this Service 'sends' messages by using an interface
> registered by the main Activity. This interface then uses a handler to
> update the UI.
>
> The child views in the ExpandableListView are LinearLayouts with one
> TextView and two ViewStubs, one for showing an image and one for
> showing a horizontal ProgressBar. These layouts are created if needed
> in my extended BaseExpandableListAdapter's getChildView, or reused by
> using the convertView supplied.
>
> This all works fine and I'm happy with the overall model, except that
> I can't figure out how to update a download's ProgressBar efficiently
> when the Activity receives a callback from the Service. How do I get a
> reference to the correct View to set its progress?
>
> I've tried keeping a cached HashMap to track which episode currently
> has which View instance, but this didn't work due to me recycling the
> Views via convertView - I found that when more than one download is
> active the two bars can swap values back and forth.
>
> Any help would be appreciated.
>
> Thanks,
>
> Neil
>
> >
>



-- 
Jeff Sharkey
jshar...@android.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: reading package name from apk file

2009-08-12 Thread Dianne Hackborn
Use the aapt command's dump subcommands.  For example "aapt dump badging
/path./to/.apk" will print various interesting meta-data about the app.

On Wed, Aug 12, 2009 at 10:45 PM, Sudha  wrote:

>
> Hello Zero,
>
> What i want is just knowing the package name
>
> I donot wish to reverse engineer the code
>
> the main purpose is to write a script for automated testing like when
> a apk file is given in the script it installs the package on the phone
> and after testing some random test cases will uninstall the app from
> the device or emu
>
> for uninstalling the app from device using script what we must know is
> the package name so i want to parse the apk file not meant to
> reverse engineer..
>
>
> - Sudha
>
> On Aug 12, 7:22 pm, Zero  wrote:
> > dude, maybe you should not try to mess with other ppls code if u don't
> > know basic reverse engineering. seriously.
> >
> > On Aug 12, 3:26 pm, Sudha  wrote:
> >
> > > Hello,
> >
> > > If i have a apk file and want to know the package name and class
> > > hierarchy, how do i do it?
> >
> > > Suppose I have some sample APK file named "SampApp.apk" which contains
> > > classes inside "com.android.sampApp".
> >
> > > Is there any tool in Android SDK which shows the package name when APK
> > > file is passed as a parameter.
> >
> > > As the Class files are compressed to dex file I am not able to check
> > > the actual package name.
> >
> > > Regards:
> > > Sudha
> >
>


-- 
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, and so won't reply to such e-mails.  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: problems purchasing my own app

2009-08-12 Thread michael maitlen

I stand corrected, it is documented, ran across this the other day and
finally had time to look through all the links...at the bottom of this
page is specifically states that developers are not able to purchase
their apps.  Now I know!

http://market.android.com/support/bin/answer.py?hl=en&answer=141659


On Aug 11, 11:22 am, michael maitlen  wrote:
> I can see where it could be to the disadvantage of us 3rd party
> developers if those with bigger pockets could buy their apps multiple
> times with the goal of pushing up it's ratings.  But it would be nice
> to be able to buy it once just to have that last confirmation that
> everything was good.
>
> Regardless, I wish this would be confirmed by the Google folks and was
> a WELL documented "feature", like right there on the Developer Console
> page, or at least in a FAQ somewhere.
>
> On Aug 11, 8:49 am, Streets Of Boston  wrote:
>
> > I tried it a while ago and i could not buy my own app either (i got
> > the same error).
> > I read (somewhere in this forum or another forum) that buying your own
> > app is not allowed.
>
> > I just wished that the error message was more clear "you cannot buy
> > your own application" instead of "server error has occurred".
>
> > On Aug 11, 1:23 am, michael m  wrote:
>
> > > I published my first paid for app, NoteToMe, and when I went to
> > > purchase it to for testing I got the error "A server error has
> > > occurred.  Retry, or cancel and return to the previous screen."
>
> > > I tested my credit card info by successfully purchasing another app,
> > > and I've double/triple checked my settings and all the requirments for
> > > publishing an app, but haven't found anything.  Just the fact that I
> > > was able to successfully upload it to the Developer Console and see it
> > > via the market tells me that I signed the app correctly.  I even
> > > uploaded it to my blog and was able to download it and run from there.
>
> > > Does anyone have any debugging tips that I could try, or have seen
> > > this issue before.  I did a search and came up with this page,
>
> > >http://www.google.com/support/forum/p/Android%20Market/thread?tid=3f8...
>
> > > but the fact that I can purchase other apps leads me to believe
> > > something else is wrong.  I went ahead and kept it published to see if
> > > other people will be able to purchase itthis is not a solicitation
> > > for others to attempt to purchase the app , just was wondering if
> > > anyone else has had this issue.
>
> > > 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: receiver enabled=false , problems after instantiation to set to listen

2009-08-12 Thread Dianne Hackborn
If you don't want android instantiating a component, there is no reason to
declare it in a manifest.  If you just want to listen for broadcasts while
other code of yours is running, just write your class deriving from
BroadcastReceiver, and instantiate it and hand that instance to
Context.registerReceiver().

On Wed, Aug 12, 2009 at 3:08 AM, Jiri  wrote:

>
> Hello List,
>
> in my manifest I set an custom object Dots that extends a
> BroadcastReceiver to receive a certain broadcast string.
>
>  android:name=".model.Dots"
> android:enabled="false">
> 
> 
> 
> 
>
> I dont want Android to instantiate the object for me hence the
> enable=false.
>
> In the Activity a new Dots is created
>
> Dots dots = new Dots()
>
> How do i now make the Dots start listening to the broadcasting. I tried
> this, but it doesnt work and it also feels much to complicated..
>
> ComponentName cName = new
> ComponentName("org.dadata.demo","org.dadata.demo.Dots");
> PackageManager pm = this.getPackageManager();
> pm.setComponentEnabledSetting(cName ,
> PackageManager.COMPONENT_ENABLED_STATE_ENABLED ,
> PackageManager.DONT_KILL_APP);
>
> Is there a workable easy way to do this?
>
> Thank you,
>
> Jiri
>
>
>
> >
>


-- 
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, and so won't reply to such e-mails.  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: How to make chat window for IM?

2009-08-12 Thread Jeff Sharkey

If you'll be working with long conversations, you should look at using
a ListView to keep scrolling efficient.  Also, ListView offers
android:transcriptMode, which will can help automatically scroll back
to the bottom when new messages arrive.

j

On Wed, Aug 12, 2009 at 7:28 AM, Gulfam wrote:
>
> Hi every body,
>
>    I am working on IM and i want to make Chat Window but i don't know
> how to start it. Currently I am using EditText field, a text view and
> a button, after entering text in EditText field on pressing send
> button i am getting text from EditText filed and appending it to
> TextView its looking good but there are some problems, and i don't
> know its right approach or not ? Any one can refer me any tutorial or
> any useful link regarding this or any other help ?.
>
> Thanks  in advance.
>
> Gulfam Hassan
> >
>



-- 
Jeff Sharkey
jshar...@android.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: receiver enabled=false , problems after instantiation to set to listen

2009-08-12 Thread Jeff Sharkey

When building the ComponentName, you need to reference the correct
BroadcastReceiver.  In your case, it looks like you're enabling
"org.dadata.demo.Dots", when the  is over in the ".model."
subpackage.

You can also create more robust ComponentNames by using the (Context,
Class) constructor, instead of relying on strings:

new ComponentName(context, DotsReceiver.class);

j


On Wed, Aug 12, 2009 at 3:08 AM, Jiri wrote:
>
> Hello List,
>
> in my manifest I set an custom object Dots that extends a
> BroadcastReceiver to receive a certain broadcast string.
>
>  android:name=".model.Dots"
> android:enabled="false">
> 
> 
> 
> 
>
> I dont want Android to instantiate the object for me hence the enable=false.
>
> In the Activity a new Dots is created
>
> Dots dots = new Dots()
>
> How do i now make the Dots start listening to the broadcasting. I tried
> this, but it doesnt work and it also feels much to complicated..
>
> ComponentName cName = new
> ComponentName("org.dadata.demo","org.dadata.demo.Dots");
> PackageManager pm = this.getPackageManager();
> pm.setComponentEnabledSetting(cName ,
> PackageManager.COMPONENT_ENABLED_STATE_ENABLED ,
> PackageManager.DONT_KILL_APP);
>
> Is there a workable easy way to do this?
>
> Thank you,
>
> Jiri
>
>
>
> >
>



-- 
Jeff Sharkey
jshar...@android.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] hide application

2009-08-12 Thread Honest

I want to start my application  when phone start and after that i do
not want that user can know that my application is running. Is there
any way i can do it ? In phone when we press home screen for some
times it display all running application. I do not want my application
to display in that list. Is there any way to do it
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: About Custom Views

2009-08-12 Thread Sujay Krishna Suresh
An onLayout is required.

On Thu, Aug 13, 2009 at 11:55 AM, Bishesh Manandhar wrote:

> *I have used three custom views... playpanel works fine.. but
> drawHeaderpanel does not workk..*
>
> public class MainPanel extends Activity
> {
>   @Override
> protected void onCreate(Bundle savedInstanceState) {
> super.onCreate(savedInstanceState);
>
> LinearLayout ll = new LinearLayout(this);
>
> DrawHeaderPanel header=new DrawHeaderPanel(this);
>
>
> PlayPanel cv = new PlayPanel(this);
>
>
> ll.setOrientation(LinearLayout.VERTICAL);
>
> ll.addView(header);
>
> ll.addView(cv);
>
> setContentView(ll);
> }
>
> *THE drawheaderpanel extends View*
> public DrawHeaderPanel(Context context)
> {
> super(context);
> }
>
>  @Override
> public void onDraw(Canvas canvas)
> {
>
> canvas.translate(10, 10);
> mpaint.setColor(Color.GRAY);
> mpaint.setStrokeWidth(1);
> canvas.drawRect(-1, -1,320,50, mpaint);
> tTextPaint.setColor(Color.BLUE);
> canvas.drawText("Level:", 20, 20, tTextPaint);
> canvas.drawText("Score:",220,20,tTextPaint);
>
> }
>
> *onDraw renders the contents to the screen..isnt it..what else do i need
> here.. could anybody point out to me the problem here
> Plzzz help me outt.. i m stuckk herere... *
>
> >
>


-- 
Regards,
Sujay
Mike Ditka   -
"If God had wanted man to play soccer, he wouldn't have given us arms."

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

2009-08-12 Thread Bishesh Manandhar
*I have used three custom views... playpanel works fine.. but
drawHeaderpanel does not workk..*

public class MainPanel extends Activity
{
  @Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);

LinearLayout ll = new LinearLayout(this);

DrawHeaderPanel header=new DrawHeaderPanel(this);


PlayPanel cv = new PlayPanel(this);


ll.setOrientation(LinearLayout.VERTICAL);

ll.addView(header);

ll.addView(cv);

setContentView(ll);
}

*THE drawheaderpanel extends View*
public DrawHeaderPanel(Context context)
{
super(context);
}

 @Override
public void onDraw(Canvas canvas)
{

canvas.translate(10, 10);
mpaint.setColor(Color.GRAY);
mpaint.setStrokeWidth(1);
canvas.drawRect(-1, -1,320,50, mpaint);
tTextPaint.setColor(Color.BLUE);
canvas.drawText("Level:", 20, 20, tTextPaint);
canvas.drawText("Score:",220,20,tTextPaint);

}

*onDraw renders the contents to the screen..isnt it..what else do i need
here.. could anybody point out to me the problem here
Plzzz help me outt.. i m stuckk herere... *

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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 calendar APP don't run in Android 1.5?

2009-08-12 Thread Jack Ha

Assuming you are referring to running the Calendar app in the
emulator. The reason is that the Google Service is not available.

--
Jack Ha
Open Source Development Center
・T・ ・ ・Mobile・ stick together

The views, opinions and statements in this email are those of
the author solely in their individual capacity, and do not
necessarily represent those of T-Mobile USA, Inc.


On Aug 12, 6:01 pm, luggie  wrote:
> Why calendar APP don't run in Android 1.5?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: reading package name from apk file

2009-08-12 Thread Sudha

Hello Zero,

What i want is just knowing the package name

I donot wish to reverse engineer the code

the main purpose is to write a script for automated testing like when
a apk file is given in the script it installs the package on the phone
and after testing some random test cases will uninstall the app from
the device or emu

for uninstalling the app from device using script what we must know is
the package name so i want to parse the apk file not meant to
reverse engineer..


- Sudha

On Aug 12, 7:22 pm, Zero  wrote:
> dude, maybe you should not try to mess with other ppls code if u don't
> know basic reverse engineering. seriously.
>
> On Aug 12, 3:26 pm, Sudha  wrote:
>
> > Hello,
>
> > If i have a apk file and want to know the package name and class
> > hierarchy, how do i do it?
>
> > Suppose I have some sample APK file named "SampApp.apk" which contains
> > classes inside "com.android.sampApp".
>
> > Is there any tool in Android SDK which shows the package name when APK
> > file is passed as a parameter.
>
> > As the Class files are compressed to dex file I am not able to check
> > the actual package name.
>
> > Regards:
> > Sudha
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: Spinner that looks like an EditText - Head is bloody and bruised

2009-08-12 Thread phildo

That's exactly what I was looking for.  Just as a follow up to anyone
else with this issue.  You can access the android drawables here:
'android-sdk-path'\platforms\android-1.5\data\res\drawables

android-1.5 could be whatever release you have installed.

Thanks Jeff.  I appreciate it!

On Aug 12, 12:44 am, Jeff Sharkey  wrote:
> The look of a Spinner is just defined through a framework style, and
> you can override that style in your XML.  In this case, the "look" of
> a spinner is provided by its android:background, which is defined
> here:
>
> http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob;...
>
> You could specify your own android:background, even copying the
> existing EditText:
>
> http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob;...
>
> Since the EditText resources aren't exposed in the public API, you'd
> have to copy those assets into your local project.
>
> j
>
> On Tue, Aug 11, 2009 at 1:52 PM, phildo wrote:
>
> > Ok so I spent quite a bit of time trying to find posts online about
> > how to make a spinner look like an EditText.  Basically, I want ALL
> > the functionality of a spinner but I don't want that ugly down arrow
> > that comes with the spinner.  I'm perfectly capable of writing an
> > EditText that opens a selectable list on click but theres got to be an
> > easier way to just change how the spinner looks.  Is there a way to do
> > this in styles?  or themes?  or something?
>
> > Thanks!
>
> --
> Jeff Sharkey
> jshar...@android.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: General Purpose Framework for Optimizing Software on Mobile Phones

2009-08-12 Thread Michael Leung
that is a interesting topic.

On Thu, Aug 13, 2009 at 1:50 PM, Frank Maker  wrote:

>
> Hello,
>
> I am a Ph.D. student at the University of California, Davis working on
> Embedded Software and specifically addressing power consumption on
> mobile platforms. We recently had a paper accepted into the
> "International Conference on Embedded Software" (EMSOFT 2009 -
> http://www-verimag.imag.fr/EMSOFT09/dates.shtml) called "Markov
> Decision Process (MDP) Framework for Optimizing Software on Mobile
> Phones". This framework was tested using data from an Android G1 and
> we are currently working on integrating it into the email client.
>
> We proposed a framework for tasks that are not time critical (such as
> email synchronization), but treat phone calls as the highest priority.
> The reason we did this is because we believe that smart phones are
> phones first, computers second. Our optimization works like this:
> 1) First, we look at the call records to figure out how likely a
> phone call is to be received.
> 2) Next we create an optimal decision table which will tell
> wether you should synchronize or not depending on how much time since
> you last synchronized, the amount of battery life left and the current
> time.
> 3) We create this table by predicting your charge time and then
> working backwards to figure out the best decision table. The goal is
> to synchronize as much as possible, but still ensure that you can
> receive phone calls.
> 4) We do this by using a hard to explain set mathematical
> equations to figure out if it is "worth it" to synchronize or not. (I
> can post more details about the math if people are interested, but I'm
> not sure how much interest there would be in that level of detail ;-)
>
> I am very interested in getting questions, comments and general
> feedback from you, the Android developer community, on this technique.
> You can find the full paper here:
>
> http://www.ece.ucdavis.edu/mcsg/pubs/emsoft09.pdf
>
> Thanks for your feedback!
> -Frank
>
> ABSTRACT
> We present a framework based on Markov decision process
> to optimize software on mobile phones. Unlike previous
> approaches in literature that focus on energy optimization
> while meeting a speci c task-related time constraint, we
> model the desired talk-time as an explicit user given pa-
> rameter and formulate the optimization of resources such
> as battery-life on a mobile phone as a decision processes
> that maximizes a user speci ed application speci c reward
> or utility metric while meeting the talk-time constraint. We
> propose e cient techniques to solve the optimization prob-
> lem based on dynamic programming and illustrate how it
> can be used in the context of realistic applications such as
> WiFi radio power optimization and email synchronization.
> We present a design methodology to use the proposed tech-
> nique and experimental results using the Android platform
> from Google running on the HTC mobile phone.
> >
>


-- 
Regards,
Michael Leung
http://www.itblogs.info
http://www.michaelleung.info

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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] General Purpose Framework for Optimizing Software on Mobile Phones

2009-08-12 Thread Frank Maker

Hello,

I am a Ph.D. student at the University of California, Davis working on
Embedded Software and specifically addressing power consumption on
mobile platforms. We recently had a paper accepted into the
"International Conference on Embedded Software" (EMSOFT 2009 -
http://www-verimag.imag.fr/EMSOFT09/dates.shtml) called "Markov
Decision Process (MDP) Framework for Optimizing Software on Mobile
Phones". This framework was tested using data from an Android G1 and
we are currently working on integrating it into the email client.

We proposed a framework for tasks that are not time critical (such as
email synchronization), but treat phone calls as the highest priority.
The reason we did this is because we believe that smart phones are
phones first, computers second. Our optimization works like this:
 1) First, we look at the call records to figure out how likely a
phone call is to be received.
 2) Next we create an optimal decision table which will tell
wether you should synchronize or not depending on how much time since
you last synchronized, the amount of battery life left and the current
time.
 3) We create this table by predicting your charge time and then
working backwards to figure out the best decision table. The goal is
to synchronize as much as possible, but still ensure that you can
receive phone calls.
 4) We do this by using a hard to explain set mathematical
equations to figure out if it is "worth it" to synchronize or not. (I
can post more details about the math if people are interested, but I'm
not sure how much interest there would be in that level of detail ;-)

I am very interested in getting questions, comments and general
feedback from you, the Android developer community, on this technique.
You can find the full paper here:

 http://www.ece.ucdavis.edu/mcsg/pubs/emsoft09.pdf

Thanks for your feedback!
-Frank

ABSTRACT
We present a framework based on Markov decision process
to optimize software on mobile phones. Unlike previous
approaches in literature that focus on energy optimization
while meeting a speci c task-related time constraint, we
model the desired talk-time as an explicit user given pa-
rameter and formulate the optimization of resources such
as battery-life on a mobile phone as a decision processes
that maximizes a user speci ed application speci c reward
or utility metric while meeting the talk-time constraint. We
propose e cient techniques to solve the optimization prob-
lem based on dynamic programming and illustrate how it
can be used in the context of realistic applications such as
WiFi radio power optimization and email synchronization.
We present a design methodology to use the proposed tech-
nique and experimental results using the Android platform
from Google running on the HTC mobile phone.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: Stack traces from users in the field?

2009-08-12 Thread Michael Leung
Using log in sdk
On Thu, Aug 13, 2009 at 10:38 AM, Dan Sherman  wrote:

> We've been using: http://code.google.com/p/android-remote-stacktrace/
> And have been happy with it.  It doesn't provide exactly what you're
> looking for, but its open source and could easily be extended.
>
> - Dan
>
>
> On Wed, Aug 12, 2009 at 7:37 PM, tansaku  wrote:
>
>>
>> Hi All,
>>
>> Does anyone know if there is standard way to get error reports from
>> android applications running on other people's android devices?
>>
>> E.g. I release an android app and it goes out there.  I'd love for any
>> error to trigger an apology screen that invited the user to input a
>> description of what happened, and then have that data along with
>> program state and stack trace sent back to me.
>>
>> Any ideas?
>>
>> Many thanks in advance
>> CHEERS> SAM
>>
>>
>
> >
>


-- 
Regards,
Michael Leung
http://www.itblogs.info
http://www.michaelleung.info

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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] YAFFS2 filesystem in Android linux?

2009-08-12 Thread Hugo

Hi all,

I am a newbie to Android development.  The robustness of the file
system is very critical for a mobile device.  YAFFS2 is a file system
that was designed specifically for NAND  flash, which is supposed to
be more robust than EXT3 file system in terms of
NAND flash.

I wonder if there is YAFF2 support in Android platform? or there is an
alternative other than EXT3?

Any hint is very appreciated.

Best

Hugo
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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 edit CLF file for source insight?

2009-08-12 Thread 长华 朱

Just edit in sourceInsight using the language properties dialogue,
then export it as clf file.

On 8月12日, 上午9时27分, 长华 朱  wrote:
> Which tool can be used toedittheCLFfile for sourceInsight?

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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 messages in logcat while browsing!

2009-08-12 Thread ysadhu

Hello Android developers,

While browsing the net i am getting Error messages in logcat.
And this comes only while typing the URL on the browser.
Any pointers for this error, will be appreciated.

E/ActivityThread( 1108): Failed to find provider info for
android.server.checkin
E/GoogleHttpClient( 1108): Error recording stats
E/GoogleHttpClient( 1108): java.lang.IllegalArgumentException: Unknown
URL content://android.server.checkin/stats
E/GoogleHttpClient( 1108):  at
android.content.ContentResolver.insert(ContentResolver.java:476)
E/GoogleHttpClient( 1108):  at
com.google.android.net.GoogleHttpClient.executeWithoutRewriting
(GoogleHttpClient.java:243
E/GoogleHttpClient( 1108):  at
com.google.android.net.GoogleHttpClient.execute(GoogleHttpClient.java:
280)
E/GoogleHttpClient( 1108):  at
com.google.android.net.GoogleHttpClient.execute(GoogleHttpClient.java:
350)
E/GoogleHttpClient( 1108):  at
com.android.googlesearch.SuggestionProvider.query
(SuggestionProvider.java:154)
E/GoogleHttpClient( 1108):  at android.content.ContentProvider
$Transport.bulkQuery(ContentProvider.java:112)
E/GoogleHttpClient( 1108):  at
android.content.ContentProviderNative.onTransact
(ContentProviderNative.java:97)
E/GoogleHttpClient( 1108):  at android.os.Binder.execTransact
(Binder.java:287)
E/GoogleHttpClient( 1108):  at dalvik.system.NativeStart.run
(Native Method)

thanks in advance,
ysadhu
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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] Why calendar APP don't run in Android 1.5?

2009-08-12 Thread luggie

Why calendar APP don't run in Android 1.5?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: Datepicker / Timepicker Widgets

2009-08-12 Thread alkar

Thank you both for your answers, seems I was on the right path. Good
to know for sure.

In fact, my ongoing attempt at an implementation of that is called
NumberPicker.

And yea I won't be calling internal APIs, I'm aware :)

--
alkar

On Aug 13, 2:13 am, "Yusuf Saib (T-Mobile USA)"  wrote:
> NumberPicker is 
> internal:http://groups.google.com/group/android-developers/browse_thread/threa...
>
> So you will have to roll your own, but you can reuse internal code
> from the platform as needed. Just don't call internal APIs from your
> app.
>
> Yusuf Saib
> Android
> ·T· · ·Mobile· stick together
> The views, opinions and statements in this email are those of the
> author solely in their individual capacity, and do not necessarily
> represent those of T-Mobile USA, Inc.
>
> On Aug 12, 4:00 pm, alkar  wrote:
>
> > It is of course, but how would you call the elements that are used to
> > pick the date (day, month, year), if not widgets themselves? Well in
> > the case they are not standarized by themselves, they are just
> > elements.
>
> > Please, if you don't have anything to say that would help, refrain
> > from just "correcting" me. If you had something that would help but
> > didn't understand my question, that'd be fine. Otherwise... it's just
> > annoying.
>
> > --
> > alkar
>
> > On Aug 13, 1:15 am, Mark Murphy  wrote:
>
> > > alkar wrote:
> > > > Are the widgets used in Datepicker standarized?
>
> > > DatePicker *is* a widget.
>
> > >http://developer.android.com/reference/android/widget/DatePicker.html
>
> > > --
> > > Mark Murphy (a Commons 
> > > Guy)http://commonsware.com|http://twitter.com/commonsguy
>
> > > Android Development Wiki:http://wiki.andmob.org
>
>
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Dialog windowBackground makes parent window go black

2009-08-12 Thread CraigsRace

Well, I did it this way.  Create your dialog that extends Dialog.  In
the constructor call:
requestWindowFeature(Window.FEATURE_NO_TITLE);
this.getContext().setTheme(R.style.MyCustomTheme);
setContentView(R.layout.your_layout);

Put all the initialisation of all your stuff in onCreate.

Then to open the dialog from an activity simply do this:
new YourDialog(this).show();

No need for anything in the manifest.  You may want to add a
OnDismissListener also.

One downside of this approach is that if the screen orientation
changes, the dialog dies.  I think you can code around this, but I
haven't done that yet.


On Aug 11, 7:12 pm, LambergaR  wrote:
> Hi!
>
> I am facing a similar problem. All I want to do is remove the title
> from an Activity that I am trying to show as a Dialog. Could you
> please post some more details on how you managed to solve the problem?
>
> I am using the following code to modify the Dialog theme:
>
> 
> 
>   
>     true
>   
> 
>
> It doesn't matter where I apply the theme, I always loose the
> background.
>
> Thanks!
>
> On 11 avg., 08:02, CraigsRace  wrote:
>
> > I kept running into this problem, and I think I have found the cause.
>
> > Specifying an activity is a dialog in the manifest, for me, kept
> > causing the background screen to be lost (not all the time - some
> > dialogs would work ok).  However, if I made my dialogs via code, Ie:
> > sub-classed Dialog, and in the dialog I call this.getContext().setTheme
> > (R.style.SpecialDialog);  Then, so far, it keeps the background
> > screen.  Hooray!
>
> > On Aug 7, 12:03 am, CraigsRace  wrote:
>
> > > The parent window had a 120Kb jpeg picture on it.  I used more
> > > compression on the jpeg and got it down to 32Kb, and bingo, the parent
> > > window stopped disappearing!  Yay me!
>
> > > On Aug 6, 10:39 am, CraigsRace  wrote:
>
> > > > Hi,
>
> > > > I wanted to change the frame around my Dialog.  So I set up a style:
> > > > 
> > > >     
> > > >         @drawable/my_frame > > > item>
> > > >     
> > > > 
>
> > > > and assigned it in the manifest:
> > > >         
>
> > > > And yay! I get my new frame.  However, the parent window disappears
> > > > (goes black).
>
> > > > Having a normal dialog:
> > > > 
> > > > keeps the parent window visible.
>
> > > > Can I have a custom frame on a dialog and keep the parent window
> > > > visible?
>
> > > > 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: Stack traces from users in the field?

2009-08-12 Thread Dan Sherman
We've been using: http://code.google.com/p/android-remote-stacktrace/
And have been happy with it.  It doesn't provide exactly what you're looking
for, but its open source and could easily be extended.

- Dan

On Wed, Aug 12, 2009 at 7:37 PM, tansaku  wrote:

>
> Hi All,
>
> Does anyone know if there is standard way to get error reports from
> android applications running on other people's android devices?
>
> E.g. I release an android app and it goes out there.  I'd love for any
> error to trigger an apology screen that invited the user to input a
> description of what happened, and then have that data along with
> program state and stack trace sent back to me.
>
> Any ideas?
>
> Many thanks in advance
> CHEERS> SAM
> >
>

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

2009-08-12 Thread plun

I'm also having trouble getting a FileDescriptor from a
DatagramSocket. You can make a java socket and get a
ParcelFileDescriptor using fromSocket, but there doesn't seem to be
any way to do this using DatagramSockets.  If anyone has a way, it
would be great to know.

On Aug 6, 9:56 pm, Mark Spencer  wrote:
> So how can you get a FileDescriptor from a DatagramSocket (or even a
> Socket for that matter)?  I notice there is a DatagramSocketImpl
> function which has a protected class for getFileDescriptor() but how
> do I extend the standard one to expose that somehow?   Is there
> another way?
>
> Mark
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Connection status

2009-08-12 Thread Roman ( T-Mobile USA)

Sorry, forgot to define this

private String mWifiService = Context.WIFI_SERVICE;

For being able to obtain a WifiMgr instance you need a handle to a
context. When you do this within your extended activity class you have
not to worry about the context handle. You get the context with
getBaseContext() in your activity class.

--
Roman Baumgaertner
Sr. SW Engineer-OSDC
·T· · ·Mobile· stick together
The views, opinions and statements in this email are those of the
author solely in their individual capacity, and do not necessarily
represent those of T-Mobile USA, Inc.

On Aug 12, 1:00 pm, SkySte  wrote:
> Thanks :) I'll give it a try tomorrow, just a question, what is
> mContext and mWifiService?
>
> A little confused,
>
> Cheers
>
> Steve
>
> On Aug 12, 4:52 pm, "Roman ( T-Mobile USA)" 
> mobile.com> wrote:
> > You want to use a WifiManager instead the TelephonyManager to find out
> > about the WifiConnection state.
>
> > Use the following APIs below
>
> > private WifiManager mWifiMgr;
> > mWifiMgr = (WifiManager)mContext.getSystemService(mWifiService);
> > mWifiMgr.getConnectionInfo();
>
> > If you are interested to find out in general whether you are connected
> > using a radio interface you also can use the ConnectionManager.
>
> > Hope, this helps.
>
> > --
> > Roman Baumgaertner
> > Sr. SW Engineer-OSDC
> > ·T· · ·Mobile· stick together
> > The views, opinions and statements in this email are those of the
> > author solely in their individual capacity, and do not necessarily
> > represent those of T-Mobile USA, Inc.
>
> > On Aug 12, 7:35 am,SkySte wrote:
>
> > > Hi, My Java knowledge is very limited so it's quite an easy question
> > > (probably) but how can I get the code below to work? I'm basically
> > > trying to check that the device is connected to the internet to that I
> > > can access and parse an RSS feed. This is also the 1st android app I
> > > have written so I'm still finding my way around so any help/advice
> > > would be appreciated.
>
> > > I'm sure the variables should be assigned to something but I don't
> > > know what. The classes don't appear to have public constructors so I
> > > can't do "WifiInfo info = new WifiInfo()"
>
> > > package com.Weather;
> > > import android.net.wifi.WifiInfo;
> > > import android.widget.Toast;
> > > import android.telephony.TelephonyManager;
>
> > > public class AirportWeather {
>
> > >         public AirportWeather() {
>
> > >         }
>
> > >         /**
> > >          * Check the device is connected to the internet
> > >          * @return int 1 = connected, 0 = not connected
> > >          */
> > >         private static int checkInternetStatus()
> > >         {
> > >                 WifiInfo info;
> > >                 TelephonyManager data;
> > >                 Toast.makeText(null, info.getNetworkId(), 200);
> > >                 if(data.getDataState() == 2)
> > >                         //mobile network is connected then return 1)
> > >                 {
> > >                         return 1;
> > >                 }else if(info.getNetworkId() != 0)
> > >                 {
> > >                         return 1;
> > >                 }
> > >                 return 0;
> > >         }
>
> > > }
>
> > > Thanks
> > > Steve
>
>
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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] ambiguous column name: _id when querying the contacts list

2009-08-12 Thread whaledawg

So I have a bit of code that takes a list of contact ID's that have
been selected and return a cursor with other data I might be
interested in for those ID's

protected Cursor collectUserData(ArrayList friends)
{
  String[] PROJECTION=new String[] { Contacts.People._ID,
 
Contacts.PeopleColumns.DISPLAY_NAME   };
  String WHERE = new String();
  WHERE += Contacts.People._ID;
  WHERE += "  IN (";
  for(int i = 0; i < friends.size(); i++)
  {
WHERE += friends.get(i).toString();
if(i < friends.size() - 1)
{
 WHERE += ",";
 }
 else
 {
WHERE += ")";
 }
  }
  return managedQuery(Contacts.People.CONTENT_URI, PROJECTION, WHERE,
null,
 
Contacts.People.DEFAULT_SORT_ORDER);
}

And this code gives me the following error:
#
08-12 15:49:53.013: ERROR/DatabaseUtils(102): Writing exception to
parcel
#
08-12 15:49:53.013: ERROR/DatabaseUtils(102):
android.database.sqlite.SQLiteException: ambiguous column name: _id: ,
while compiling: SELECT people._id AS _id, (CASE WHEN (name IS NOT
NULL AND name != '') THEN name ELSE (CASE WHEN primary_organization is
NOT NULL THEN (SELECT company FROM organizations WHERE
organizations._id = primary_organization) ELSE (CASE WHEN
primary_phone IS NOT NULL THEN (SELECT number FROM phones WHERE
phones._id = primary_phone) ELSE (CASE WHEN primary_email IS NOT NULL
THEN (SELECT data FROM contact_methods WHERE contact_methods._id =
primary_email) ELSE null END) END) END) END)  AS display_name FROM
people LEFT OUTER JOIN phones ON people.primary_phone=phones._id LEFT
OUTER JOIN presence ON (presence.person=people._id) WHERE (_id  IN
(20)) ORDER BY name ASC

I can get rid of the error if I change the WHERE clause to start  like
this instead:
String WHERE = new String();
WHERE += "people._id";

But this seems a little brittle. How should I be doing this query?

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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 DROP a Database in Android ?

2009-08-12 Thread 王心锋
If u wanna delete a tables. Use the drop sql in upgrade method in
sqlitehelper sub class

在 2009-8-13 7:52 AM,"Emre A. Yavuz"  说:


Hi,

Does anybody know how to DROP a database in Android ?

I've tried ContextWrapper.deleteDatabase(), mDb.close(), mDbHelper.close()
etc. methods with no luck so far. I tried to remove it using the shell, but
I don't have the permission to do it. I was able to drop the TABLES etc. in
the database that I had created but nothing further than that.

Any help is appreciated.

Cheers,

Emre

--
More storage. Better anti-spam and antivirus protection. Hotmail makes it
simple. 

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



[android-developers] Error messages while browsing!

2009-08-12 Thread ysadhu

Hello Android developers,

While browsing the net i am getting Error messages in logcat.
And this comes only while typing the URL on the browser.
Any pointers for this error, will be appreciated.

E/ActivityThread( 1108): Failed to find provider info for
android.server.checkin
E/GoogleHttpClient( 1108): Error recording stats
E/GoogleHttpClient( 1108): java.lang.IllegalArgumentException: Unknown
URL content://android.server.checkin/stats
E/GoogleHttpClient( 1108):  at
android.content.ContentResolver.insert(ContentResolver.java:476)
E/GoogleHttpClient( 1108):  at
com.google.android.net.GoogleHttpClient.executeWithoutRewriting
(GoogleHttpClient.java:243
E/GoogleHttpClient( 1108):  at
com.google.android.net.GoogleHttpClient.execute(GoogleHttpClient.java:
280)
E/GoogleHttpClient( 1108):  at
com.google.android.net.GoogleHttpClient.execute(GoogleHttpClient.java:
350)
E/GoogleHttpClient( 1108):  at
com.android.googlesearch.SuggestionProvider.query
(SuggestionProvider.java:154)
E/GoogleHttpClient( 1108):  at android.content.ContentProvider
$Transport.bulkQuery(ContentProvider.java:112)
E/GoogleHttpClient( 1108):  at
android.content.ContentProviderNative.onTransact
(ContentProviderNative.java:97)
E/GoogleHttpClient( 1108):  at android.os.Binder.execTransact
(Binder.java:287)
E/GoogleHttpClient( 1108):  at dalvik.system.NativeStart.run
(Native Method)

thanks in advance,
ysadhu

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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 DROP a Database in Android ?

2009-08-12 Thread Emre A. Yavuz


Hi,

 

Does anybody know how to DROP a database in Android ? 

 

I've tried ContextWrapper.deleteDatabase(), mDb.close(), mDbHelper.close() etc. 
methods with no luck so far. I tried to remove it using the shell, but I don't 
have the permission to do it. I was able to drop the TABLES etc. in the 
database that I had created but nothing further than that. 

 

Any help is appreciated.

 

Cheers,

 

Emre

_
More storage. Better anti-spam and antivirus protection. Hotmail makes it 
simple.
http://go.microsoft.com/?linkid=9671357
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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] Stack traces from users in the field?

2009-08-12 Thread tansaku

Hi All,

Does anyone know if there is standard way to get error reports from
android applications running on other people's android devices?

E.g. I release an android app and it goes out there.  I'd love for any
error to trigger an apology screen that invited the user to input a
description of what happened, and then have that data along with
program state and stack trace sent back to me.

Any ideas?

Many thanks in advance
CHEERS> SAM
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: ADC2

2009-08-12 Thread nEx.Software

Mark - LOL

Yeah, I thought for sure there would be a slew of really great
applications hitting the Market on or shortly after August 1st... Oh
well. I hope everyone is just waiting for the submission site to open
and not that there are just few entries. Of course the fewer the
entries the better the chances of winning...

On Aug 12, 3:11 pm, Mark Murphy  wrote:
> wimbet wrote:
> > Couldn't a dev put their app in the Market now and get feedback on it
> > while they wait for the submission site?
>
> That's certainly my interpretation of matters.
>
> Of course, my interpretation of matters also assumed the submission
> process would have begun. :-(
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://twitter.com/commonsguy
>
> Android Development Wiki:http://wiki.andmob.org
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Datepicker / Timepicker Widgets

2009-08-12 Thread Yusuf Saib (T-Mobile USA)

NumberPicker is internal: 
http://groups.google.com/group/android-developers/browse_thread/thread/65da9820998fddc9

So you will have to roll your own, but you can reuse internal code
from the platform as needed. Just don't call internal APIs from your
app.



Yusuf Saib
Android
·T· · ·Mobile· stick together
The views, opinions and statements in this email are those of the
author solely in their individual capacity, and do not necessarily
represent those of T-Mobile USA, Inc.



On Aug 12, 4:00 pm, alkar  wrote:
> It is of course, but how would you call the elements that are used to
> pick the date (day, month, year), if not widgets themselves? Well in
> the case they are not standarized by themselves, they are just
> elements.
>
> Please, if you don't have anything to say that would help, refrain
> from just "correcting" me. If you had something that would help but
> didn't understand my question, that'd be fine. Otherwise... it's just
> annoying.
>
> --
> alkar
>
> On Aug 13, 1:15 am, Mark Murphy  wrote:
>
>
>
> > alkar wrote:
> > > Are the widgets used in Datepicker standarized?
>
> > DatePicker *is* a widget.
>
> >http://developer.android.com/reference/android/widget/DatePicker.html
>
> > --
> > Mark Murphy (a Commons 
> > Guy)http://commonsware.com|http://twitter.com/commonsguy
>
> > Android Development Wiki:http://wiki.andmob.org
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Datepicker / Timepicker Widgets

2009-08-12 Thread Mark Murphy

alkar wrote:
> It is of course, but how would you call the elements that are used to
> pick the date (day, month, year), if not widgets themselves? 

The term "widgets" has multiple specific meanings in Android. Your
original post suggested you were unfamiliar with the terminology.

To determine the underlying implementation of DatePicker (or anything in
Android), you would need to look up the implementation of DatePicker in
the Android source code. Google Code Search is good for that -- put
package:android as a qualifier in the search box, and it will return
only "DatePicker" occurrences in code believed to be related to Android.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy

Android Training in Germany, 18-22 January 2010: http://bignerdranch.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: Datepicker / Timepicker Widgets

2009-08-12 Thread alkar

It is of course, but how would you call the elements that are used to
pick the date (day, month, year), if not widgets themselves? Well in
the case they are not standarized by themselves, they are just
elements.

Please, if you don't have anything to say that would help, refrain
from just "correcting" me. If you had something that would help but
didn't understand my question, that'd be fine. Otherwise... it's just
annoying.

--
alkar

On Aug 13, 1:15 am, Mark Murphy  wrote:
> alkar wrote:
> > Are the widgets used in Datepicker standarized?
>
> DatePicker *is* a widget.
>
> http://developer.android.com/reference/android/widget/DatePicker.html
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://twitter.com/commonsguy
>
> Android Development Wiki:http://wiki.andmob.org
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] How can I get the reversion No of my downloaded android source code

2009-08-12 Thread max

Hi All,

I get the android source code from the git repository, now I want to
trace back to the original download, How can I get the reversion No of
my downloaded android source code?

Max
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: Datepicker / Timepicker Widgets

2009-08-12 Thread Mark Murphy

alkar wrote:
> Are the widgets used in Datepicker standarized?

DatePicker *is* a widget.

http://developer.android.com/reference/android/widget/DatePicker.html

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy

Android Development Wiki: http://wiki.andmob.org

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



[android-developers] Datepicker / Timepicker Widgets

2009-08-12 Thread alkar

Are the widgets used in Datepicker standarized? Meaning, can I employ
them in my layout, or do I have to build them on my own? Are there
standard versions of them or even, can they be "created" through
settings or would I have to build them from scratch using EditText and
buttons?

I hope I'm clear enough on that :)

Thanks,
alkar
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: ADC2

2009-08-12 Thread Mark Murphy

wimbet wrote:
> Couldn't a dev put their app in the Market now and get feedback on it
> while they wait for the submission site?

That's certainly my interpretation of matters.

Of course, my interpretation of matters also assumed the submission
process would have begun. :-(

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy

Android Development Wiki: http://wiki.andmob.org

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



[android-developers] Re: ADC2

2009-08-12 Thread wimbet

Also looking for instructions...

Several devs have told me they were waiting for the submission site to
release their app.  According to the rules, any app on the market
after Aug 1 is eligible so is there any reason for a dev to hold their
app back?  Other than trying to keep their project a secret?

Couldn't a dev put their app in the Market now and get feedback on it
while they wait for the submission site?

On Aug 10, 3:19 am, CraigsRace  wrote:
> > Wait for instructions to appear onhttp://code.google.com/android/adc/
>
> *bump* Still waiting for instructions...

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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] Crashes with no usefull stacktrace

2009-08-12 Thread Klaus Kartou
Hi!

My app has been pretty stable so forth, and suddenly I keep getting these
crashes that kill the entire process.
What do they mean and how should I deal with them? Since I dont get any
usefull stacktrace I really dont know how to debug this.
Below is the dump from my error log.

Any help is much welcome!
Best regards,
Klaser



08-12 23:07:40.701: INFO/DEBUG(32): *** *** *** *** *** *** *** *** *** ***
*** *** *** *** *** ***
08-12 23:07:40.701: INFO/DEBUG(32): Build fingerprint:
'android-devphone1/dream_devphone/dream/trout:1.5/CRB21/147201:userdebug/adp,test-keys'
08-12 23:07:40.701: INFO/DEBUG(32): pid: 7414, tid: 7415  >>>
com.android.Eva <<<
08-12 23:07:40.701: INFO/DEBUG(32): signal 7 (SIGBUS), fault addr 
08-12 23:07:40.711: INFO/DEBUG(32):  r0 002ea4d8  r1 80ff80ff  r2 002ea4c8
 r3 80ff80ff
08-12 23:07:40.711: INFO/DEBUG(32):  r4 f000  r5 0024de00  r6 
 r7 0378
08-12 23:07:40.711: INFO/DEBUG(32):  r8 100ffd00  r9 4100afb0  10 4100afa0
 fp 0001
08-12 23:07:40.711: INFO/DEBUG(32):  ip 0001  sp 100ffc90  lr afe0e940
 pc afe0af22  cpsr 8030
08-12 23:07:41.671: INFO/DEBUG(32):  #00  pc af22
 /system/lib/libc.so
08-12 23:07:41.701: INFO/DEBUG(32):  #01  pc 0003eac6
 /system/lib/libicuuc.so
08-12 23:07:41.731: INFO/DEBUG(32):  #02  pc 0003849c
 /system/lib/libicuuc.so
08-12 23:07:41.731: INFO/DEBUG(32):  #03  pc 0005018a
 /system/lib/libicui18n.so
08-12 23:07:41.751: INFO/DEBUG(32):  #04  pc 000517c8
 /system/lib/libicui18n.so
08-12 23:07:41.761: INFO/DEBUG(32):  #05  pc 0008d65c
 /system/lib/libicui18n.so
08-12 23:07:41.781: INFO/DEBUG(32):  #06  pc dcb6
 /system/lib/libnativehelper.so
08-12 23:07:41.811: INFO/DEBUG(32):  #07  pc e3b4
 /system/lib/libdvm.so
08-12 23:07:41.821: INFO/DEBUG(32):  #08  pc 00040a8a
 /system/lib/libdvm.so
08-12 23:07:41.821: INFO/DEBUG(32):  #09  pc 00013118
 /system/lib/libdvm.so
08-12 23:07:41.841: INFO/DEBUG(32):  #10  pc 00017b1c
 /system/lib/libdvm.so
08-12 23:07:41.841: INFO/DEBUG(32):  #11  pc 00017560
 /system/lib/libdvm.so
08-12 23:07:41.861: INFO/DEBUG(32):  #12  pc 000520ec
 /system/lib/libdvm.so
08-12 23:07:41.861: INFO/DEBUG(32):  #13  pc 0005210a
 /system/lib/libdvm.so
08-12 23:07:41.871: INFO/DEBUG(32):  #14  pc 000494c4
 /system/lib/libdvm.so
08-12 23:07:41.871: INFO/DEBUG(32):  #15  pc 0004954c
 /system/lib/libdvm.so
08-12 23:07:41.891: INFO/DEBUG(32):  #16  pc 00049896
 /system/lib/libdvm.so
08-12 23:07:41.891: INFO/DEBUG(32):  #17  pc 00046f6a
 /system/lib/libdvm.so
08-12 23:07:41.911: INFO/DEBUG(32):  #18  pc f880
 /system/lib/libc.so
08-12 23:07:41.911: INFO/DEBUG(32):  #19  pc f3f4
 /system/lib/libc.so
08-12 23:07:41.931: INFO/DEBUG(32): stack:
08-12 23:07:41.931: INFO/DEBUG(32): 100ffc50  410978e8
08-12 23:07:41.931: INFO/DEBUG(32): 100ffc54  ad0520f5
 /system/lib/libdvm.so
08-12 23:07:41.931: INFO/DEBUG(32): 100ffc58  002ff5c0  [heap]
08-12 23:07:41.931: INFO/DEBUG(32): 100ffc5c  afe0e940
 /system/lib/libc.so
08-12 23:07:41.931: INFO/DEBUG(32): 100ffc60  2bb0
08-12 23:07:41.941: INFO/DEBUG(32): 100ffc64  afe0ecd4
 /system/lib/libc.so
08-12 23:07:41.941: INFO/DEBUG(32): 100ffc68  0024de08  [heap]
08-12 23:07:41.941: INFO/DEBUG(32): 100ffc6c  afe0e940
 /system/lib/libc.so
08-12 23:07:41.941: INFO/DEBUG(32): 100ffc70  0024de08  [heap]
08-12 23:07:41.941: INFO/DEBUG(32): 100ffc74  afe3c980
08-12 23:07:41.941: INFO/DEBUG(32): 100ffc78  2bb0
08-12 23:07:41.951: INFO/DEBUG(32): 100ffc7c  afe39dd0
08-12 23:07:41.951: INFO/DEBUG(32): 100ffc80  100ffd00
08-12 23:07:41.951: INFO/DEBUG(32): 100ffc84  4100afb0
08-12 23:07:41.951: INFO/DEBUG(32): 100ffc88  df002777
08-12 23:07:41.961: INFO/DEBUG(32): 100ffc8c  e3a070ad
08-12 23:07:41.961: INFO/DEBUG(32): #00 100ffc90  100ffd00
08-12 23:07:41.961: INFO/DEBUG(32): 100ffc94  afe0af93
 /system/lib/libc.so
08-12 23:07:41.961: INFO/DEBUG(32): 100ffc98  afe3c980
08-12 23:07:41.971: INFO/DEBUG(32): 100ffc9c  afe39dd0
08-12 23:07:41.971: INFO/DEBUG(32): 100ffca0  a000  [heap]
08-12 23:07:41.971: INFO/DEBUG(32): 100ffca4  afe39dd0
08-12 23:07:41.971: INFO/DEBUG(32): 100ffca8  a000  [heap]
08-12 23:07:41.981: INFO/DEBUG(32): 100ffcac  
08-12 23:07:41.981: INFO/DEBUG(32): 100ffcb0  0024de0c  [heap]
08-12 23:07:41.981: INFO/DEBUG(32): 100ffcb4  0024de08  [heap]
08-12 23:07:41.981: INFO/DEBUG(32): 100ffcb8  4100afb8
08-12 23:07:42.002: INFO/DEBUG(32): 100ffcbc  ad53eacb
 /system/lib/libicuuc.so
08-12 23:07:42.002: INFO/DEBUG(32): #01 100ffcc0  0024de0c  [heap]
08-12 23:07:42.002: INFO/DEBUG(32): 100ffcc4  ad5384a1
 /system/lib/libicuuc.so

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Develop

[android-developers] donut dalvik vm

2009-08-12 Thread jmt

I would like to port the dalvik vm from the donut branch to an
system.img. What files should I copy?

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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] Determining soft input method used

2009-08-12 Thread PonziPanda


Is there a way to determine which soft keyboard is used as input
method for a specific view?

I can fetch the InputMethod list by doing:

List inputMethodInfoList =
inputManager.getEnabledInputMethodList();

.. But I can't seem to find a way to determine which of the keyboards
in the list is actually enabled.

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



[android-developers] Re: Sending data to android dev phone using 3G connection

2009-08-12 Thread Jack Ha

Your phone is most likely behind a NAT when it is on 3G.

--
Jack Ha
Open Source Development Center
・T・ ・ ・Mobile・ stick together

The views, opinions and statements in this email are those of
the author solely in their individual capacity, and do not
necessarily represent those of T-Mobile USA, Inc.


On Aug 3, 2:55 pm, Pushkar Sachdeva  wrote:
> I have a server application listening on port 5001 on an anroid dev
> phone. The client application running on my laptop tries to send data
> to the server application.
>
> The client can successfully connect and send data to the server
> machine when the phone has wifi enabled. The command to do this is -
> iperf -c 
>
> But when I enable the 3G connection and try to send data then it
> fails.
> iperf -c 
>
> I cannot even ping the .  Is there any
> port blocking enforced in case of external 3G network connection. Can
> anyone please tell me how can I send data to the server application on
> 3G network. Is there any specific port on which the server application
> should be listening??
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: can someone help with hello world?

2009-08-12 Thread Jason Proctor

might i politely suggest the android-beginners list for this question?

good luck :-)



>well, i am a noob at java.. so i decided to start at the android dev
>guide and go through their tutorials. naturally i started with this
>one: http://developer.android.com/guide/tutorials/hello-world.html. i
>followed the instructions, ran the program when the guide said to, and
>it all seemed to work without any errors... except that the program
>didn't display the text i had written in the setText() part. it infact
>displayed the words "Hello world, HelloAndroid!". the only thing that
>bugs me about that is my setText looks like "tv.setText("Hello,
>Android");". the word world doesn't even come up anywhere in the
>project!! so what's going on here? did i miss something?
>
>

-- 
jason.software.particle

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



[android-developers] Re: can someone help with hello world?

2009-08-12 Thread Jack Ha

Can you post your complete file here?

--
Jack Ha
Open Source Development Center
・T・ ・ ・Mobile・ stick together

The views, opinions and statements in this email are those of
the author solely in their individual capacity, and do not
necessarily represent those of T-Mobile USA, Inc.


On Aug 12, 11:49 am, Zunden  wrote:
> well, i am a noob at java.. so i decided to start at the android dev
> guide and go through their tutorials. naturally i started with this
> one:http://developer.android.com/guide/tutorials/hello-world.html. i
> followed the instructions, ran the program when the guide said to, and
> it all seemed to work without any errors... except that the program
> didn't display the text i had written in the setText() part. it infact
> displayed the words "Hello world, HelloAndroid!". the only thing that
> bugs me about that is my setText looks like "tv.setText("Hello,
> Android");". the word world doesn't even come up anywhere in the
> project!! so what's going on here? did i miss something?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: Sending data to android dev phone using 3G connection

2009-08-12 Thread Shanjaq

I, too, would like to know how to connect to my IP address over the 3G
network.  Are they running a Great Firewall?



On Aug 3, 2:55 pm, Pushkar Sachdeva  wrote:
> I have a server application listening on port 5001 on an anroid dev
> phone. The client application running on my laptop tries to send data
> to the server application.
>
> The client can successfully connect and send data to the server
> machine when the phone has wifi enabled. The command to do this is -
> iperf -c 
>
> But when I enable the 3G connection and try to send data then it
> fails.
> iperf -c 
>
> I cannot even ping the .  Is there any
> port blocking enforced in case of external 3G network connection. Can
> anyone please tell me how can I send data to the server application on
> 3G network. Is there any specific port on which the server application
> should be listening??

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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 someone help with hello world?

2009-08-12 Thread Zunden

well, i am a noob at java.. so i decided to start at the android dev
guide and go through their tutorials. naturally i started with this
one: http://developer.android.com/guide/tutorials/hello-world.html. i
followed the instructions, ran the program when the guide said to, and
it all seemed to work without any errors... except that the program
didn't display the text i had written in the setText() part. it infact
displayed the words "Hello world, HelloAndroid!". the only thing that
bugs me about that is my setText looks like "tv.setText("Hello,
Android");". the word world doesn't even come up anywhere in the
project!! so what's going on here? did i miss something?

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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] Getting certain information off a web page

2009-08-12 Thread Bagz

Hi All,

I was wondering if anyone can help me out and point me in the right
direction...

For an example, lets say i have a url which returns stats about a
certain football team (the team name is a parameter on the url) and it
displays the information purely as text (with maybe a bit of text
before and after):

Stadium: MyStadium
Capacity: 100,000
Shirt Colour: Red

Is anyone able to give me any advice on how i would go about
retrieving only the information i need so i can put it into my own
format and display it nicer? Would i need an xml parser, would i need
the page source code, if so how could i get it?

Thanks in advance,
Craig


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

2009-08-12 Thread SkySte

Thanks :) I'll give it a try tomorrow, just a question, what is
mContext and mWifiService?

A little confused,

Cheers

Steve

On Aug 12, 4:52 pm, "Roman ( T-Mobile USA)"  wrote:
> You want to use a WifiManager instead the TelephonyManager to find out
> about the WifiConnection state.
>
> Use the following APIs below
>
> private WifiManager mWifiMgr;
> mWifiMgr = (WifiManager)mContext.getSystemService(mWifiService);
> mWifiMgr.getConnectionInfo();
>
> If you are interested to find out in general whether you are connected
> using a radio interface you also can use the ConnectionManager.
>
> Hope, this helps.
>
> --
> Roman Baumgaertner
> Sr. SW Engineer-OSDC
> ·T· · ·Mobile· stick together
> The views, opinions and statements in this email are those of the
> author solely in their individual capacity, and do not necessarily
> represent those of T-Mobile USA, Inc.
>
> On Aug 12, 7:35 am,SkySte wrote:
>
>
>
> > Hi, My Java knowledge is very limited so it's quite an easy question
> > (probably) but how can I get the code below to work? I'm basically
> > trying to check that the device is connected to the internet to that I
> > can access and parse an RSS feed. This is also the 1st android app I
> > have written so I'm still finding my way around so any help/advice
> > would be appreciated.
>
> > I'm sure the variables should be assigned to something but I don't
> > know what. The classes don't appear to have public constructors so I
> > can't do "WifiInfo info = new WifiInfo()"
>
> > package com.Weather;
> > import android.net.wifi.WifiInfo;
> > import android.widget.Toast;
> > import android.telephony.TelephonyManager;
>
> > public class AirportWeather {
>
> >         public AirportWeather() {
>
> >         }
>
> >         /**
> >          * Check the device is connected to the internet
> >          * @return int 1 = connected, 0 = not connected
> >          */
> >         private static int checkInternetStatus()
> >         {
> >                 WifiInfo info;
> >                 TelephonyManager data;
> >                 Toast.makeText(null, info.getNetworkId(), 200);
> >                 if(data.getDataState() == 2)
> >                         //mobile network is connected then return 1)
> >                 {
> >                         return 1;
> >                 }else if(info.getNetworkId() != 0)
> >                 {
> >                         return 1;
> >                 }
> >                 return 0;
> >         }
>
> > }
>
> > Thanks
> > Steve
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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] Computing height for ListView based upon items height

2009-08-12 Thread MarcoAndroid

Hello all,

So I've got a ListView setup in my xml with height 0dip (I don't know
the height yet).

Then I setup an adapter with my custom getView() implementation and
set is as the ListView's adapter.

I then get the layout params from the ListView via getLayoutParams()
into variable 'infoLayoutParams'.

If I then set the height of the ListView via infoLayoutParams to like
400 and do a requestLayout(), the ListView is shown. So far so good.

But the height 400 is just for testpurposes. I'd like to compute the
height, based upon the height of items in the ListView. Let's say I
want to set the height of the ListView to the height of the first 5
entries added up (so at least those 5 will  always be shown). Thus I
need to retrieve the height for each item; since they are of variable
height, I can't take some constant value.

So I tried getHeight() on the view --> returns 0.
Then I tried getting the adapter from the ListView and requesting its
views myself via getView() and doing a getHeight() on that view -->
returns 0.
Is 0 being returned because none of the (item and list) views have
been layout-ed yet?

I searched on the forums for an answer but no luck ther either.

Thus the question is: is there a way to get the height of each item in
a ListView, while for the ListVIew the height has not been set yet?
(on one hand it makes sense you can't because the LV isn't layout-ed
yet. But that then implies you can never compute based upon the height
of the items right?)

Regards,
Marco





--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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] Process.setThreadPriority() & high priorities

2009-08-12 Thread Dmitry.Skiba

I'm curious, what does remark "Applications can not normally change to
this priority" for some priorities in android.os.Process mean?
I can successfully change thread priority to
THREAD_PRIORITY_URGENT_DISPLAY or THREAD_PRIORITY_AUDIO (and I can
confirm the effect). But I use ADP firmware, maybe on 'normal' G1 this
method will throw? Or is it just an documentation glitch? If not,
should we absolutely not use these priorities, or we can try, but be
prepared for an exception?


Dmitry
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: Running linux commands from java code

2009-08-12 Thread Dianne Hackborn
On Wed, Aug 12, 2009 at 10:54 AM, Jason Proctor <
jason.android.li...@gmail.com> wrote:

> IMHO, much better to do this from Java with File.listFiles()
> much fewer clock cycles die this way :-)


And much less likely to break in the future. :)

Because running shell commands is not part of the SDK, we shouldn't be
helping people do this here.

-- 
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, and so won't reply to such e-mails.  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: Regarding the Java Version

2009-08-12 Thread Yusuf Saib (T-Mobile USA)

As you probably already know, you don't need to build the Android
source to develop apps, you just need to install the prebuilt SDK. You
should post Android platform building questions to the android-
platform mailing list. And I should not answer them here either, but
here goes anyway:

You may be attempting to build Android platform source from within
Eclipse; I would recommend building it from the command line. If (as
Fred suggested) your java version is not 1.5 even though you installed
it, then you need to set the path to point to the right version.



Yusuf Saib
Android
·T· · ·Mobile· stick together
The views, opinions and statements in this email are those of the
author solely in their individual capacity, and do not necessarily
represent those of T-Mobile USA, Inc.



On Aug 12, 8:18 am, "Fred Grott(shareme)" 
wrote:
> n command line what does java -version command produce?
>
> On Aug 12, 8:07 am, Vinu  wrote:
>
>
>
> > Hello,
>
> > I am trying to compile the Latest android & i got the below errors,
>
> > 
> > You are attempting to build with the incorrect version
> > of java.
>
> > Your version is: java version "1.6.0_10".
> > The correct version is: 1.5.
>
> > Please follow the machine setup instructions at
> >    http://source.android.com/download
> > 
> > build/core/main.mk:105: *** stop.  Stop.
> > ---
>
> > then i upgraded to java Version 1.5.
>
> > After this upgradation ,When i tried building, i got the below error,
>
> > 
> > You are attempting to build with the incorrect version
> > of javac.
>
> > Your version is: Eclipse Java Compiler v_774_R33x, 3.3.1, Copyright
> > IBM Corp 2000, 2007. All rights reserved..
> > The correct version is: 1.5.
>
> > Please follow the machine setup instructions at
> >    http://source.android.com/download
> > 
> > build/core/main.mk:121: *** stop.  Stop.
> > ---
>
> > Please let me know which javac version or Eclipse Java Compiler , i
> > need to install .
>
> > Thanks in Advance
> > Vinay
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: Ubuntu Jaunty and adb not playing well together

2009-08-12 Thread poekie3000

I had the same problem with adb and jaunty.

What worked for me was to add “SYMLINK+=”android_adb”" to the rules
file so it would read:
SUBSYSTEM=="usb", SYSFS{idVendor}=="0bb4", SYMLINK+="android_adb",
MODE="0666"

And I also use 51 as the number.


This solution is described here:
http://eddieringle.com/debugging-your-android-application-on-the-g1-or-any-android-device-in-ubuntu-904/




On 3 jul, 01:34, Anidel  wrote:
> On May 16, 1:41 am, avrono  wrote:
>
> > All,
>
> > I had the same problem  however I cannot seem to get the same
> > working result.
>
> > I have /etc/udev/rules.d/51-android.rules
>
> > SUBSYSTEM=="usb", SYSFS{idVendor}=="0bb4", MODE="0666"
>
> Use ATTRS instead of SYSFS.
>
> SUBSYSTEM=="usb", ATTRS{idVendor}=="0bb4", MODE="0666"
>
> Then be sure to:
>
> > chmod a+rw 51-android.rules
>
> and finally:
>
> > /ect/init.d/udev reload
>
> --
> anidel

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

2009-08-12 Thread Jason Proctor

i mean the code inside my application which calls MediaRecorder to 
record video.

btw, since 1.5 i have not found any problems with MediaRecorder. the 
order of the configuration set() methods must be right, but if you 
read the documentation and look at the error log, the order becomes 
clear.



>  Hi Jason.
>  What do you mean with "my own MediaRecorder code"?
>
>
>On Jul 17, 11:50 am, Jason Proctor 
>wrote:
>>  if you're using the camera on the emulator, then you have to disable
>>  auto orientation changes to get it to work. at least, i picked this
>>  info off the network and it worked for me.
>>
>>  i'm doing manual capture with my own MediaRecorder code, and remote
>>  capture with the vide capture intent, successfully on emulator and
>>  real phone (in this case, ADP and Ion).
>>
>>
>>
>>  >does it mean there is a bug in this intent
>>  >android.provider.MediaStore.ACTION_VIDEO_CAPTURE
>>
>>  >is anybody have luck?
>>
>>  >On Mon, Jul 13, 2009 at 9:11 PM, hanged_man
>>  ><majd...@gmail.com> wrote:
>>
>>  >Muhammad, i tried the issue locally and it seems to be something wrong
>>  >with the camcorder itself (in the emulator), my previously suggested
>>  >workaround
>>  
>> >(http://groups.google.com/group/android-developers/
>>
>>  >browse_thread/thread/60005bb7fff2e14f/eec39e24877d8b42?
>>
>>  >hl=en&lnk=gst&q=black+screen+camera+hanged_man#eec39e24877d8b42) works
>>  >only with the Camera app, i've tested it by not running it via the
>>  >intents but by running it directly from the home screen, however
>>  >trying to run the camcorder app results in a black screen and no idea
>>  >why.
>>  >And another stupid thing, try running the camcorder first (ofcourse
>>  >you will get a black screen) then try running the camera and
>>  >surprisingly you will get another black screen, i remember that i've
>>  >read somewhere that the camera-related apps hold a lock on certain
>>  >resource related to the camera which explains why this is happening.
>>  >Now this is stupid, i was counting on the fact that the camcorder is
>>  >working and trying to implement my own is going to be painfully
>>  >annoying :(
>>
>>  --
>>  jason.software.particle
>
>

-- 
jason.software.particle

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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] Running linux commands from java code

2009-08-12 Thread Jason Proctor

IMHO, much better to do this from Java with File.listFiles()

much fewer clock cycles die this way :-)


>Runtime.getRuntime().exec("ls -a");
>
>
>--
>Roman Baumgaertner
>Sr. SW Engineer-OSDC
>·T· · ·Mobile· stick together
>The views, opinions and statements in this email are those of the
>author solely in their individual capacity, and do not necessarily
>represent those of T-Mobile USA, Inc.
>On Aug 11, 8:26 pm, human android  wrote:
>>  I am trying to execute "ls -a" from java code, any idea how to do so.
>

-- 
jason.software.particle

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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 read Sensors from home screen Widget (1.5 cupcake)?

2009-08-12 Thread nEx.Software

Getting GPS location is a very different thing than hooking into the
orientation sensors. For GPS, you fire off (at certain intervals) or
as it seems in your response, upon turning on the screen. I'd imagine
it is not hooked to the screen turning on, to be honest, but tied to
other events or timers. But I don't have access to a Hero to know what
is the case exactly. So from your response, I am guessing you are
trying to make a compass widget so you can just go to your home screen
and check which way you are headed? Updating the Widget constantly to
display your bearing is going to be very very costly. This seems
unnecessary, especially since you are bound not to need to know your
bearing all the time. If this is what you are doing, I would highly
recommend you create a Compass activity that you can open when needed.
That being said... As I indicated before, you should look into using a
service to listen for orientation events then push them out to the
widget. If the Hero widget truly does update your location when you
turn the screen on, then it probably has a broadcast listener that
listens for the screen on event, and fires off a service to pull down
GPS coordinates and the corresponding weather information, then pushes
that data out to the widget.

On Aug 12, 6:33 am, pcm2a  wrote:
> The main Hero widget is a clock with the weather.  Every time you turn
> your screen on, it reads your gps locations and gives you the weather
> in that location.  It is obviously reading the gps sensor from the
> widget.  I am looking to do something similar, except I want to read
> the compass.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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 read Sensors from home screen Widget (1.5 cupcake)?

2009-08-12 Thread String

On Aug 12, 2:33 pm, pcm2a  wrote:

> The main Hero widget is a clock with the weather.  Every time you turn
> your screen on, it reads your gps locations and gives you the weather
> in that location.  It is obviously reading the gps sensor from the
> widget.

Also, it's probably not reading the GPS in the same way you want to
read the compass. It's probably using LocationManager to get the last
known location, which doesn't require an Activity. At least, that's
what I do in my location-aware appwidget.

String

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



[android-developers] Re: Can an end user disable 2G data, or GSM function?

2009-08-12 Thread Roman ( T-Mobile USA)

Airplane mode does switch of all radios also GPS.

--
Roman Baumgaertner
Sr. SW Engineer-OSDC
·T· · ·Mobile· stick together
The views, opinions and statements in this email are those of the
author solely in their individual capacity, and do not necessarily
represent those of T-Mobile USA, Inc.

On Aug 11, 7:39 pm, "Eric Wong (hdmp4.com)" 
wrote:
> On Aug 10, 9:47 am, brycen  wrote:
>
> > Is there a way for end users to disable 2G data services (e.g. make
> > the phone just a phone)?  Or disable the GSM function as well (say,
> > for a device used on a hiking trip as a GPS tracker, where there is no
> > coverage)?
>
> Just ask the user to enable airplane mode!!!
>
> ;)
>
>
>
> > Is there enough control in the SDK to pursue writing an app with a
> > control screen like:
> > [x] Enable Voice (GSM)
> > [ ] Enable 2G Data
> > [ ] Enable 3G Data (uses more battery than 2G)
> > [ ] Enable Data When Roaming (may result in extra charges)
> > [x] Enable WiFi
> > [x] Enable WiFi even if device is sleeping
> > [x] Enable Bluetooth
> > [x] Enable GPS
> > [ ] Airplane mode (disable all radios)
>
>
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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 read Sensors from home screen Widget (1.5 cupcake)?

2009-08-12 Thread Dianne Hackborn
The built-in widgets on the hero do not use the widget framework.  They run
inside integrated inside of the home screen.  What you can do with the
platform widget framework is more limited, since it needs to carefully
juggle security, overhead, and performance issues while allowing for two
completely unrelated pieces of code (the home screen and the widget) to work
together.

On Wed, Aug 12, 2009 at 6:33 AM, pcm2a  wrote:

>
> The main Hero widget is a clock with the weather.  Every time you turn
> your screen on, it reads your gps locations and gives you the weather
> in that location.  It is obviously reading the gps sensor from the
> widget.  I am looking to do something similar, except I want to read
> the compass.
>
> >
>


-- 
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, and so won't reply to such e-mails.  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: Running linux commands from java code

2009-08-12 Thread Roman ( T-Mobile USA)

Runtime.getRuntime().exec("ls -a");


--
Roman Baumgaertner
Sr. SW Engineer-OSDC
·T· · ·Mobile· stick together
The views, opinions and statements in this email are those of the
author solely in their individual capacity, and do not necessarily
represent those of T-Mobile USA, Inc.
On Aug 11, 8:26 pm, human android  wrote:
> I am trying to execute "ls -a" from java code, any idea how to do so.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: Running linux commands from java code

2009-08-12 Thread Roman ( T-Mobile USA)

Runtime.getRuntime().exec("ls -a");


--
Roman Baumgaertner
Sr. SW Engineer-OSDC
·T· · ·Mobile· stick together
The views, opinions and statements in this email are those of the
author solely in their individual capacity, and do not necessarily
represent those of T-Mobile USA, Inc.
On Aug 11, 8:26 pm, human android  wrote:
> I am trying to execute "ls -a" from java code, any idea how to do so.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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] OpenCore RTP session streaming?

2009-08-12 Thread ivan

1.) Does OpenCore Handle RTP creation and RTP sessions?

I'm looking to implement a phone based streaming server broadcasting
RTP over UDP.


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: Launching/Installing an APK with command-line like options

2009-08-12 Thread Doug

Thanks Roman,

That's pretty much what I came up with too.
To my knowledge an application is a single APK, so if I wanted to have
two APK's installed I'd have to get the user to download both, and run
through the install process for each.
Installing apps outside of the Market isn't exactly a picnic for the
user - especially if it's their first time...

1. Download the APK via a link
2. Try to "open" it - phone complains that "Install from unknown
sources is not on"
3. Go ahead and enable that
4. Now, where did that download go?  What do you mean I have to get
back to the browser and re-download the file (or know how to get into
the "Downloads" screen in the browser)?
5. Lets try that install again
6. And lets not forget the wonderful "Force Close" that the installer
presents to the user if they stupidly rotate their phone at any time
between tapping "Install" and getting back to the browser (
http://code.google.com/p/android/issues/detail?id=2707 )
7. Rinse and repeat for the second APK.


My slight tweak on the above is to have APK #1 (the first installed)
do nothing more than:

1. Write the "vendor specific" details to a place that the "real" app
can use
2. Start a "market:" intent - so all the user needs to do is tap the
"Install" button from the market.


I have a feeling that going through all the steps to download and
install from a non-market source will prove a disincentive for a good
number of potential users.

Doug


On Aug 11, 10:22 am, Roman  wrote:
> Doug,
>
> I could think of the following
>
> - your partner specific version comes in two APKs.
> - when your client downloads the app from your web server two APKs are
> downloaded and installed on the device
> - The additional APK is only used to write an entry in a persistent
> data record (sharedPreferences or DB) after your apps are installed.
> - The persistent data is used to distinguish which kind of version is
> installed on the device. If a user downloads the normal version the
> persistent data record would be empty or not existing.
> - the second APK can be uninstalled after the persistent data record
> is created
>
> This might be not the best way to do this but pretty easy to
> implement. Let me know whether you come up with another solution.
>
> --
> Roman Baumgaertner
> Sr. SW Engineer-OSDC
> ·T· · ·Mobile· stick together
> The views, opinions and statements in this email are those of the
> author solely in their individual capacity, and do not necessarily
> represent those of T-Mobile USA, Inc.
>
> On Aug 10, 7:03 pm, Doug  wrote:
>
>
>
> > Hi,
>
> > I have an interesting problem:
>
> > My boss/the-marketing-team want to be able to distribute a separate
> > version of our application to a number of 'partners'.  The application
> > itself would be *exactly* the same app, except that they'd like a
> > partner-specific property to be passed to our web-service when the app
> > runs (for tracking).
>
> > The last thing I want to do is have 'n' builds of the product, each
> > with a single constant changed (or a difference in the Manifest).
> > This would be a maintenance nightmare, as well as the obvious issues
> > you have when you have multiple mostly-identical versions of a product
> > floating around.  I also suspect the Android Market would have a
> > problem with "MyProduct for X users", "MyProduct for Y users", etc...
> > showing up for download.
>
> > In a perfect world everyone would download the same app, and there
> > would be some cool undiscovered Android feature where the Market URL
> > could include "&vendorcode=X" that would be passed into the app on
> > install.
>
> > My question is this:
>
> > Since the install process would be initiated by the user clicking on a
> > link in their browser of choice (on the Android device), is there
> > *any* way that the web server could be sent some 'device specific
> > identifier' by the browser that would also be available to my APK?
> > (In this way the web server would be able to match up the original
> > install request and the first run of the app after install).
>
> > Thanks
> > Doug
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: Switching Content Providers for the same Content URI

2009-08-12 Thread Dianne Hackborn
Hi, sorry there is no way to do this.

On Wed, Aug 12, 2009 at 3:11 AM, Chirag Patel  wrote:

>
> Hi, this may seem like a stupid question but I need to be sure. I was
> wondering if it was possible to programmatically change the Content
> Provider used when making a query given a Content URI. The reason
> being I need to know if it's possible to force the Calendar/Contacts
> applications to read from a different database via a different Content
> Provider temporarily while my application is running, so that I can
> reuse those applications to display my own data. Since the Content
> URIs are hard coded in each of these applications the only way it
> might be possible is if we could somehow temporarily change the
> Content Provider used for a given URI. I know this probably isn't
> possible, I just need to show it isn't. Could someone confirm this
> can't be done?
>
> Cheers
>
> >
>


-- 
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, and so won't reply to such e-mails.  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 codecs

2009-08-12 Thread Mark Murphy

LT wrote:
> How can get a list of the codecs for video playback that Android will
> support?

http://developer.android.com/guide/appendix/media-formats.html

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy

_Android Programming Tutorials_ Version 1.0 Available!

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

2009-08-12 Thread LT

How can get a list of the codecs for video playback that Android will
support?

thanks,


LT
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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 / Java Developer Wanted

2009-08-12 Thread iPaul Pro

Spot filled!

Thanks to everyone that replied.

Paul

On Aug 4, 1:57 pm, iPaul Pro  wrote:
> I am in independent Android developer, creating an app to enter the
> Second Android Developer Challenge. I am looking for a developer
> experienced in RESTful or JSON web API's. Specifically, requesting and
> parsing responses in Java, using HttpClient (org.apache.http.client)
> and SAX (javax.xml.parsers or org.xml.sax).
>
> I do not have money to offer, only an opportunity to be involved in a
> team, creating an Android app that legitimately has a chance at
> claiming one of the 33 prizes from ADC2.
>
> My Android publisher id is "iPaul Pro". I currently have 5
> independently created apps published (2 paid), with over 20,000
> downloads in less than 3 months. I truly believe that if I can finish
> this project on time, it has a real chance at winning a prize. I am
> looking for only one partner and will obviously share the prize based
> on commitment.
>
> If you are seriously interested, and understand that there is no
> guaranteed compensation but only a chance at a share of $250,000,
> please respond immediately. The deadline is August 31.
>
> contact me at info [at] ipaulpro.com or retrieve my personal email
> from this group.
>
> For more information on the Android Developer Challenge 
> visit:http://code.google.com/android/adc/
>
> Hope to hear back soon,
>
> Paul Burke
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: audio video inconsistency

2009-08-12 Thread Justin (Google Employee)

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

Cheers,
Justin
Android Team @ Google

On Aug 12, 7:32 am, Christine  wrote:
> In my app, a user picks video content with
>    Intent i = new Intent(Intent.ACTION_GET_CONTENT);
>    i.setType("video/*");
>    startActivityForResult(i, MEDIA_SELECTED);
>
> and they start recording video with
>    Intent i = new Intent(MediaStore.ACTION_VIDEO_CAPTURE);
>    startActivityForResult(i, MEDIA_SELECTED);
>
> Now, I want to do the same for audio, but I can't:
>    Intent i = new Intent(Intent.ACTION_GET_CONTENT);
>    i.setType("audio/*");
>    startActivityForResult(i, MEDIA_SELECTED);
> doesn't start audio selection, but it triggers a chooser with which a
> user can select audio capture or selection. There's no
> ACTION_AUDIO_CAPTURE intent.
>
> Why is the behavior for video and audio different?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Slow GPS updates

2009-08-12 Thread CG

Even tough the updates ticks with 500ms, it still takes about 3-4
seconds for the device to discover that I stopped moving.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: Connection status

2009-08-12 Thread Roman ( T-Mobile USA)

You want to use a WifiManager instead the TelephonyManager to find out
about the WifiConnection state.

Use the following APIs below

private WifiManager mWifiMgr;
mWifiMgr = (WifiManager)mContext.getSystemService(mWifiService);
mWifiMgr.getConnectionInfo();

If you are interested to find out in general whether you are connected
using a radio interface you also can use the ConnectionManager.

Hope, this helps.

--
Roman Baumgaertner
Sr. SW Engineer-OSDC
·T· · ·Mobile· stick together
The views, opinions and statements in this email are those of the
author solely in their individual capacity, and do not necessarily
represent those of T-Mobile USA, Inc.


On Aug 12, 7:35 am, SkySte  wrote:
> Hi, My Java knowledge is very limited so it's quite an easy question
> (probably) but how can I get the code below to work? I'm basically
> trying to check that the device is connected to the internet to that I
> can access and parse an RSS feed. This is also the 1st android app I
> have written so I'm still finding my way around so any help/advice
> would be appreciated.
>
> I'm sure the variables should be assigned to something but I don't
> know what. The classes don't appear to have public constructors so I
> can't do "WifiInfo info = new WifiInfo()"
>
> package com.Weather;
> import android.net.wifi.WifiInfo;
> import android.widget.Toast;
> import android.telephony.TelephonyManager;
>
> public class AirportWeather {
>
>         public AirportWeather() {
>
>         }
>
>         /**
>          * Check the device is connected to the internet
>          * @return int 1 = connected, 0 = not connected
>          */
>         private static int checkInternetStatus()
>         {
>                 WifiInfo info;
>                 TelephonyManager data;
>                 Toast.makeText(null, info.getNetworkId(), 200);
>                 if(data.getDataState() == 2)
>                         //mobile network is connected then return 1)
>                 {
>                         return 1;
>                 }else if(info.getNetworkId() != 0)
>                 {
>                         return 1;
>                 }
>                 return 0;
>         }
>
> }
>
> Thanks
> Steve
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: Image with a Button, or text with ImageButton

2009-08-12 Thread monsoon

Thanks for the feedback Atif - I'll give that a try.
Cheers
Steve

On Aug 12, 9:57 pm, Atif Gulzar  wrote:
> you can use a default button. Just use Drawable bottom | top | right | left
> for image.
>
> --
> Best Regards,
> Atif Gulzar
>
> I  Unicode, ɹɐzlnƃ ɟıʇɐ
>
> On Wed, Aug 12, 2009 at 5:53 PM, gosh  wrote:
>
> > Hi there,
>
> > A 'Button' view comes up with text, while the 'ImageButton' widget
> > comes up with an image but no text, is there a way to relatively
> > easily (e.g. method calls, say), either:
>
> > 1. Add text to ImageButton (like those buttons that appear in menu
> > item/via the physical menu button)?
>
> > or
>
> > 2. Add an icon/image to a Button?
>
> > without resorting to constructing a new button class?
>
> > I.e. I could put text within the image, but then I can't use
> > Localization properly/effectively.
>
> > Any suggests, much appreciated here.
> > Steve
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: Video with MediaRecorder

2009-08-12 Thread Greivin Lopez


 Hi Jason.
 What do you mean with "my own MediaRecorder code"?


On Jul 17, 11:50 am, Jason Proctor 
wrote:
> if you're using the camera on the emulator, then you have to disable
> auto orientation changes to get it to work. at least, i picked this
> info off the network and it worked for me.
>
> i'm doing manual capture with my own MediaRecorder code, and remote
> capture with the vide capture intent, successfully on emulator and
> real phone (in this case, ADP and Ion).
>
>
>
> >does it mean there is a bug in this intent
> >android.provider.MediaStore.ACTION_VIDEO_CAPTURE
>
> >is anybody have luck?
>
> >On Mon, Jul 13, 2009 at 9:11 PM, hanged_man
> ><majd...@gmail.com> wrote:
>
> >Muhammad, i tried the issue locally and it seems to be something wrong
> >with the camcorder itself (in the emulator), my previously suggested
> >workaround
> >(http://groups.google.com/group/android-developers/
>
> >browse_thread/thread/60005bb7fff2e14f/eec39e24877d8b42?
>
> >hl=en&lnk=gst&q=black+screen+camera+hanged_man#eec39e24877d8b42) works
> >only with the Camera app, i've tested it by not running it via the
> >intents but by running it directly from the home screen, however
> >trying to run the camcorder app results in a black screen and no idea
> >why.
> >And another stupid thing, try running the camcorder first (ofcourse
> >you will get a black screen) then try running the camera and
> >surprisingly you will get another black screen, i remember that i've
> >read somewhere that the camera-related apps hold a lock on certain
> >resource related to the camera which explains why this is happening.
> >Now this is stupid, i was counting on the fact that the camcorder is
> >working and trying to implement my own is going to be painfully
> >annoying :(
>
> --
> jason.software.particle

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



[android-developers] Re: Does cupcake support Webview with Gears ?

2009-08-12 Thread Justin (Google Employee)

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

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

Cheers,
Justin
Android Team @ Google

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



[android-developers] Re: Regarding the Java Version

2009-08-12 Thread Fred Grott(shareme)

n command line what does java -version command produce?

On Aug 12, 8:07 am, Vinu  wrote:
> Hello,
>
> I am trying to compile the Latest android & i got the below errors,
>
> 
> You are attempting to build with the incorrect version
> of java.
>
> Your version is: java version "1.6.0_10".
> The correct version is: 1.5.
>
> Please follow the machine setup instructions at
>    http://source.android.com/download
> 
> build/core/main.mk:105: *** stop.  Stop.
> ---
>
> then i upgraded to java Version 1.5.
>
> After this upgradation ,When i tried building, i got the below error,
>
> 
> You are attempting to build with the incorrect version
> of javac.
>
> Your version is: Eclipse Java Compiler v_774_R33x, 3.3.1, Copyright
> IBM Corp 2000, 2007. All rights reserved..
> The correct version is: 1.5.
>
> Please follow the machine setup instructions at
>    http://source.android.com/download
> 
> build/core/main.mk:121: *** stop.  Stop.
> ---
>
> Please let me know which javac version or Eclipse Java Compiler , i
> need to install .
>
> Thanks in Advance
> Vinay
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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 download TourIt application Source code

2009-08-12 Thread Mark Murphy

abu wrote:
> can anyone tell me that where can i download the source code of TourIt
> application. I have read the busy coder's android development ebook.
> it was very nice if i get that application source code it would be
> helpful to reference.
> 
> their source code bundle don have this sample application

As I wrote to you when you emailed me directly about this, the TourIt
application is for last summer's Android version, not a current edition.
It was pulled from the book nearly a year ago and is not being
distributed, because it will not work with modern Android, and I do not
wish to confuse readers or have to try to maintain TourIt.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy

Android Development Wiki: http://wiki.andmob.org

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



[android-developers] Re: Compass still crashing.

2009-08-12 Thread Justin (Google Employee)

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

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

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

Cheers,
Justin
Android Team @ Google

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

[android-developers] Re: How i can create usable android project's library

2009-08-12 Thread Mark Murphy

Ali Adnan wrote:
> How i can create android project's library that can be used in any
> different project.
> 
> Problem:
> I create a jar file that contains all activities and add this jar file
> into my eclipse project build path. But if i need to use any activity
> then i must need to register this jar activity into my project
> AndroidManifest.xml. This looks very odd. I need a solution in which i
> have a jar or any other deployable file that contains multiple
> activities and any user can use them in his project without
> registering these jar activities into NEW android application
> AndroidManifest.xml file.

That is not possible.

As I wrote 5 hours ago:

Bear in mind also that your library cannot package any resources, making
activities that much more difficult to package in a library.

You can see a library that I package with an activity here:

https://github.com/commonsguy/cwac-custmenu/tree

Anyone using this library will need to both list my MenuCustomizer
activity in their manifest, but also pass in a couple of resource IDs by
integer extras on the launching Intent, to get around the fact that
MenuCustomizer cannot have its own resources.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy

Android Development Wiki: http://wiki.andmob.org

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



[android-developers] Compass still crashing.

2009-08-12 Thread Declan

I've modified the code a bit since the last time, and now it crashes
at runtime.
I've got the log-cat and code below.
Any suggestions, or links to a tutoiral on how to go about debugging
would be appreciated.
Thanks,
Declan

package com.wissen.android;

import java.util.List;

import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.graphics.Point;
import android.graphics.drawable.Drawable;
import android.hardware.SensorManager;
import android.location.Location;
import android.location.LocationListener;
import android.location.LocationManager;
import android.os.Bundle;
import android.os.Vibrator;
import android.util.Config;
import android.util.Log;
import android.view.KeyEvent;
import android.view.ViewGroup;
import android.view.ViewGroup.LayoutParams;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;
import android.widget.ZoomControls;

import com.google.android.maps.GeoPoint;
import com.google.android.maps.MapActivity;
import com.google.android.maps.MapController;
import com.google.android.maps.MapView;
import com.google.android.maps.Overlay;

public class Hello extends MapActivity implements LocationListener {
/** Called when the activity is first created. */

EditTexttxted   = null;
Button  btnSimple   = null;
MapView gMapView= null;
MapController   mc  = null;
DrawabledefaultMarker   = null;
GeoPointp   = null;
double  latitude= 0.0, longitude = 0.0; 
// for current location
double  desLat, desLong;// for current destination
private SensorManager mSensorManager;
private float[] mValues;
private static final String TAG = "Compass";
// for compasse

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

// makes the field with text
txted = (EditText) findViewById(R.id.id1);
String currentLocation = "Lat: " + latitude + " Lng: " + 
longitude;
txted.setText(currentLocation);
// Creating and initializing Map
gMapView = (MapView) findViewById(R.id.myGMap);
p = new GeoPoint((int) (latitude * 100), (int) (longitude *
100));
gMapView.setSatellite(true);
mc = gMapView.getController();
mc.setCenter(p);
mc.setZoom(14);

/** Add a location mark**/
MyLocationOverlay myLocationOverlay = new MyLocationOverlay();
List list = gMapView.getOverlays();
list.add(myLocationOverlay);

// Adding zoom controls to Map
ZoomControls zoomControls = (ZoomControls) 
gMapView.getZoomControls
();
zoomControls.setLayoutParams(new ViewGroup.LayoutParams
(LayoutParams.WRAP_CONTENT,
LayoutParams.WRAP_CONTENT));

gMapView.addView(zoomControls);
gMapView.displayZoomControls(true);

// Getting locationManager and reflecting changes over map if
distance travel by
// user is greater than 500m from current location.
LocationManager lm = (LocationManager) getSystemService
(Context.LOCATION_SERVICE);
lm.requestLocationUpdates(LocationManager.GPS_PROVIDER, 1000L,
500.0f, this);

}
public void onSensorChanged(int sensor, float[] values) {
if (Config.LOGD) Log.d(TAG, "sensorChanged (" + values[0] + ",
" + values[1] + ", " + values[2] + ")");{
mValues = values;
//Doesn't work, should appear if this section is called,
never called?
String currentLocation = "Got magnetic
==";

txted.setText(currentLocation);

int i=90;
if (mValues != null) {
if(mValues[0]i-3)
{
Vibrator vibrator = 
(Vibrator)getSystemService
(Context.VIBRATOR_SERVICE);
vibrator.vibrate((long) 300.0);
}
}
//Code needed to make a compasse vibrate, I should be 
from baring
methad

Vibrator vibrator = (Vibrator)getSystemService
(Context.VIBRATOR_SERVICE);
vibrator.vibrate((long) 300.0);

}
}
/* This method is called when use position will get changed */
public void onLocationChanged(Location loca

[android-developers] When launch browser, can you set http header?

2009-08-12 Thread Jack

Hi,

Can you set custom http headers when launch url in the native browser?

Ex:
Intent myIntent = new Intent(Intent.VIEW_ACTION,
Uri.parse("http://www.google.com";));

// set additional http headers below?
...
startActivity(i);


Thanks,
Jack


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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 use Thread with SurfaceView, ie draw in a separate thread?

2009-08-12 Thread Neil

I found that too with the LunarLander model - especially when trying
to develop a touch and drag style game. Do you know of any other
example app/code that demonstrates a better method?

On Jul 22, 3:56 pm, Micah  wrote:
> Check out the LunarLander example that comes with the Android SDK.  It
> is a very simple game that runs in it's ownthread(separate from the
> UIthread).  While it's not my favorite design (too much locking) for
> a large game, for most cell phone games (ie: simple) it gets the job
> done.
>
> On Jul 22, 5:31 am, Streets Of Boston  wrote:
>
> > A seperatethreadshould not implement/extend SurfaceView or any other
> >view.
>
> > You still create your GameView as you had before, but you add a new
> > class called (for example) GameRenderer.
> > This GameRenderer will implement aThread.
>
> > The GameRenderer will execute its 'run()' method at some point. This
> > method should contain a 'while' loop, that only stops/pauses when the
> > game is halting (e.g. halt when onPause is called on your activity;
> > stop when onDestroy is called).
>
> > In the while loop, get hold of the GameView (actually; get hold of a
> > SurfaceHolder from your GameView) lock it and obtain a Canvas from it
> > when you're about to draw onto it.
> > When done, unlock the canvas.
>
> > Search a little more on these forums and you'll find more info.
>
> > On Jul 22, 6:15 am, klirr  wrote:
>
> > > I want to do the drawing in anotherthreadto speed up the game(it is
> > > way to slow right now). I was told to do this but don't quite
> > > understand why that would speed things up.
> > > Is it GameView that should implement Runnable?
> > > Should I make thethreadsleep when not drawing?
> > > where should I start thethread?
>
> > > package com.android.WWS;
>
> > > import android.app.Activity;
> > > import android.content.Context;
> > > import android.graphics.*;
> > > import android.os.Bundle;
> > > import android.view.SurfaceView;
> > > import android.view.KeyEvent;
> > > import android.view.View;
> > > import android.view.View.OnKeyListener;
> > > import java.lang.Runnable;
> > > import java.lang.Thread;
>
> > > public class WWS extends Activity {
>
> > >     @Override
> > >     protected void onCreate(Bundle savedInstanceState) {
> > >         super.onCreate(savedInstanceState);
> > >         GameView gv = new GameView(this);
> > >         setContentView(gv);
> > >         gv.setOnKeyListener(new OnKeyListener() {
> > >             public boolean onKey(Viewv, int keyCode, KeyEvent event)
> > > {
> > >                 GameView gv = (GameView) v;
> > >                 if (keyCode == KeyEvent.KEYCODE_DPAD_UP) {
> > >                     gv.decrY(3);
> > >                     v.invalidate();
> > >                 } else if (keyCode == KeyEvent.KEYCODE_DPAD_LEFT) {
> > >                     gv.decrX(3);
> > >                     v.invalidate();
> > >                 } else if (keyCode == KeyEvent.KEYCODE_DPAD_DOWN) {
> > >                     gv.incrY(3);
> > >                     v.invalidate();
> > >                 } else if (keyCode == KeyEvent.KEYCODE_DPAD_RIGHT) {
> > >                     gv.incrX(3);
> > >                     v.invalidate();
> > >                 }
> > >                 return true;
> > >             }
> > >         });
> > >     }
>
> > >     private static class GameView extends SurfaceView implements
> > > Runnable {
> > >         private Paint mPaint = new Paint();
> > >         private int x;
> > >         private int y;
>
> > >         public GameView(Context context) {
> > >             super(context);
> > >             x = 135;
> > >             y = 303;
> > >             setWillNotDraw(false);
> > >             setFocusable(true);
> > >             requestFocus();
> > >            Threadt = newThread(this);
> > >             t.start();
> > >         }
>
> > >         public void run() {}
>
> > >         @Override
> > >         public void onDraw(Canvas canvas) {
> > >             Paint paint = mPaint;
> > >             canvas.translate(10, 10);
> > >             canvas.drawColor(Color.rgb(184,134,11));
> > >             paint.setColor(Color.rgb(107,142,35));
> > >             paint.setStrokeWidth(1);
> > >             canvas.drawRect(x, y, x+30, y+7, paint);
> > >             canvas.drawRect(x+10, y+7, x+20, y+27, paint);
> > >             canvas.drawRect(x+5, y+27, x+25, y+32, paint);
> > >         }
>
> > >         public void decrY(int length) {
> > >                 y -= length;
> > >         }
>
> > >         public void incrY(int length) {
> > >                 y += length;
> > >         }
>
> > >         public void decrX(int length) {
> > >                 x -= length;
> > >         }
>
> > >         public void incrX(int length) {
> > >                 x += length;
> > >         }
>
> > >     }
>
> > > }- Hide quoted text -
>
> > > - Show quoted text -

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups 

[android-developers] Re: How to read Sensors from home screen Widget (1.5 cupcake)?

2009-08-12 Thread pcm2a

The main Hero widget is a clock with the weather.  Every time you turn
your screen on, it reads your gps locations and gives you the weather
in that location.  It is obviously reading the gps sensor from the
widget.  I am looking to do something similar, except I want to read
the compass.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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] Sync Account "non_syncable"

2009-08-12 Thread Jim (sjjh)

Hello all,
How many people out there are using the above?

My team tell me that "non_syncable" appears to be a special value that
can be set in the Sync Account field of Contacts and Calendar data
tables. When set, the PIM object in question is not sync'd with the
device's linked Gmail address book or Google calendar.

Cheers, Jim

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



[android-developers] Re: Does cupcake support Webview with Gears ?

2009-08-12 Thread Samuel Michelot

I really need this feature also !

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

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



[android-developers] Regarding the Java Version

2009-08-12 Thread Vinu

Hello,

I am trying to compile the Latest android & i got the below errors,


You are attempting to build with the incorrect version
of java.

Your version is: java version "1.6.0_10".
The correct version is: 1.5.

Please follow the machine setup instructions at
http://source.android.com/download

build/core/main.mk:105: *** stop.  Stop.
---

then i upgraded to java Version 1.5.


After this upgradation ,When i tried building, i got the below error,


You are attempting to build with the incorrect version
of javac.

Your version is: Eclipse Java Compiler v_774_R33x, 3.3.1, Copyright
IBM Corp 2000, 2007. All rights reserved..
The correct version is: 1.5.

Please follow the machine setup instructions at
http://source.android.com/download

build/core/main.mk:121: *** stop.  Stop.
---


Please let me know which javac version or Eclipse Java Compiler , i
need to install .


Thanks in Advance
Vinay









--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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] Switching Content Providers for the same Content URI

2009-08-12 Thread Chirag Patel

Hi, this may seem like a stupid question but I need to be sure. I was
wondering if it was possible to programmatically change the Content
Provider used when making a query given a Content URI. The reason
being I need to know if it's possible to force the Calendar/Contacts
applications to read from a different database via a different Content
Provider temporarily while my application is running, so that I can
reuse those applications to display my own data. Since the Content
URIs are hard coded in each of these applications the only way it
might be possible is if we could somehow temporarily change the
Content Provider used for a given URI. I know this probably isn't
possible, I just need to show it isn't. Could someone confirm this
can't be done?

Cheers

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



[android-developers] Updating Views in a ListView when they may have been recycled

2009-08-12 Thread Neil

Hi,

I've recently got into Android development and am writing a basic
podcast app as a learning exercise. I've come up with an issue I can't
find a good solution for. Rather than post code (it's getting big!),
I'll try and summarise:

I have an ExpandableListView showing podcasts and each podcast's
episodes in a simple two-level tree. The podcasts are downloaded in a
Service, and this Service 'sends' messages by using an interface
registered by the main Activity. This interface then uses a handler to
update the UI.

The child views in the ExpandableListView are LinearLayouts with one
TextView and two ViewStubs, one for showing an image and one for
showing a horizontal ProgressBar. These layouts are created if needed
in my extended BaseExpandableListAdapter's getChildView, or reused by
using the convertView supplied.

This all works fine and I'm happy with the overall model, except that
I can't figure out how to update a download's ProgressBar efficiently
when the Activity receives a callback from the Service. How do I get a
reference to the correct View to set its progress?

I've tried keeping a cached HashMap to track which episode currently
has which View instance, but this didn't work due to me recycling the
Views via convertView - I found that when more than one download is
active the two bars can swap values back and forth.

Any help would be appreciated.

Thanks,

Neil

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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 download TourIt application Source code

2009-08-12 Thread abu

Hi


can anyone tell me that where can i download the source code of TourIt
application. I have read the busy coder's android development ebook.
it was very nice if i get that application source code it would be
helpful to reference.

their source code bundle don have this sample application


-abu

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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 get the Count for the Outgoing SMS in between the particular date

2009-08-12 Thread Damodhar

Hi,

in Android Mobile i need to get the SMS count for the outgoing message
between the particular date /  or taken the count from the given date
to the current Date.


as the same like the call counts also out going call counts

Please Help me to found that  email me to my Id :
damu...@gmail.com


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] develop picasa in android

2009-08-12 Thread arthur

i modify the android source code.after capture a picture i want to
upload this image to picasa.when run the application,it shows  Could
not find class 'com.google.gdata.client.photos.PicasawebService',
referenced from method com.google.gdata.client.photos.PicasawebService
$Versions..can anyone help,thanks

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



[android-developers] French Version Of Datepicker

2009-08-12 Thread vir

Hi to all :) i need a help. Actually i am doing an application in
french and i am using the DatePicker. I am wondering of is it psooible
to have the datepicker UI to be in french > for example the Month
Spinner to be displayed as Aout instead of Aug >

Many 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 i can create usable android project's library

2009-08-12 Thread Ali Adnan

How i can create android project's library that can be used in any
different project.

Problem:
I create a jar file that contains all activities and add this jar file
into my eclipse project build path. But if i need to use any activity
then i must need to register this jar activity into my project
AndroidManifest.xml. This looks very odd. I need a solution in which i
have a jar or any other deployable file that contains multiple
activities and any user can use them in his project without
registering these jar activities into NEW android application
AndroidManifest.xml file.

Ali Adnan.

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

2009-08-12 Thread SkySte

Hi, My Java knowledge is very limited so it's quite an easy question
(probably) but how can I get the code below to work? I'm basically
trying to check that the device is connected to the internet to that I
can access and parse an RSS feed. This is also the 1st android app I
have written so I'm still finding my way around so any help/advice
would be appreciated.

I'm sure the variables should be assigned to something but I don't
know what. The classes don't appear to have public constructors so I
can't do "WifiInfo info = new WifiInfo()"

package com.Weather;
import android.net.wifi.WifiInfo;
import android.widget.Toast;
import android.telephony.TelephonyManager;



public class AirportWeather {

public AirportWeather() {

}


/**
 * Check the device is connected to the internet
 * @return int 1 = connected, 0 = not connected
 */
private static int checkInternetStatus()
{
WifiInfo info;
TelephonyManager data;
Toast.makeText(null, info.getNetworkId(), 200);
if(data.getDataState() == 2)
//mobile network is connected then return 1)
{
return 1;
}else if(info.getNetworkId() != 0)
{
return 1;
}
return 0;
}
}


Thanks
Steve

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

2009-08-12 Thread Christine

In my app, a user picks video content with
   Intent i = new Intent(Intent.ACTION_GET_CONTENT);
   i.setType("video/*");
   startActivityForResult(i, MEDIA_SELECTED);

and they start recording video with
   Intent i = new Intent(MediaStore.ACTION_VIDEO_CAPTURE);
   startActivityForResult(i, MEDIA_SELECTED);

Now, I want to do the same for audio, but I can't:
   Intent i = new Intent(Intent.ACTION_GET_CONTENT);
   i.setType("audio/*");
   startActivityForResult(i, MEDIA_SELECTED);
doesn't start audio selection, but it triggers a chooser with which a
user can select audio capture or selection. There's no
ACTION_AUDIO_CAPTURE intent.

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



[android-developers] Re: how to package several android projects

2009-08-12 Thread Zero

currently i don't think there's an easy to use or explain solution to
that. you can do this by crafting your own ant scripts, either calling
different targets or using some sort of conditions, but the
implementation depends on the specifics of your project. not much of a
help, sorry :/

On Aug 12, 12:16 pm, zeeshan  wrote:
> Hi Dear,
>
> i have 5 versions of an android application and wanted to package them
> all in my eclipse environment.
> i believe there is xcode tool does the similar job for iphone but dont
> know about the android.
>
> can anybody 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] How to make chat window for IM?

2009-08-12 Thread Gulfam

Hi every body,

I am working on IM and i want to make Chat Window but i don't know
how to start it. Currently I am using EditText field, a text view and
a button, after entering text in EditText field on pressing send
button i am getting text from EditText filed and appending it to
TextView its looking good but there are some problems, and i don't
know its right approach or not ? Any one can refer me any tutorial or
any useful link regarding this or any other help ?.

Thanks  in advance.

Gulfam Hassan
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: R.arawable visuals

2009-08-12 Thread Atif Gulzar
Thanks Jack


--
Best Regards,
Atif Gulzar

I  Unicode, ɹɐzlnƃ ɟıʇɐ



On Wed, Aug 12, 2009 at 8:23 PM, Jack Ha  wrote:

>
> Try this link:
>
>http://kapsencode.com/android_drawable/
>
> If you extract android.jar, you will also find them under the "res/
> drawable" directory.
>
> --
> Jack Ha
> Open Source Development Center
> ・T・ ・ ・Mobile・ stick together
>
> The views, opinions and statements in this email are those of
> the author solely in their individual capacity, and do not
> necessarily represent those of T-Mobile USA, Inc.
>
>
> On Aug 12, 5:17 am, Atif Gulzar  wrote:
> > There are many drawables defined under R.drawable "
> http://developer.android.com/reference/android/R.drawable.html";. Just
> > curious if their visuals are available somewhere?
> >
> > --
> > Best Regards,
> > Atif Gulzar
> >
> > I  Unicode, ɹɐzlnƃ ɟıʇɐ
> >
>

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

2009-08-12 Thread Jack Ha

Try this link:

http://kapsencode.com/android_drawable/

If you extract android.jar, you will also find them under the "res/
drawable" directory.

--
Jack Ha
Open Source Development Center
・T・ ・ ・Mobile・ stick together

The views, opinions and statements in this email are those of
the author solely in their individual capacity, and do not
necessarily represent those of T-Mobile USA, Inc.


On Aug 12, 5:17 am, Atif Gulzar  wrote:
> There are many drawables defined under R.drawable 
> "http://developer.android.com/reference/android/R.drawable.html";. Just
> curious if their visuals are available somewhere?
>
> --
> Best Regards,
> Atif Gulzar
>
> I  Unicode, ɹɐzlnƃ ɟıʇɐ
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: reading package name from apk file

2009-08-12 Thread Zero

dude, maybe you should not try to mess with other ppls code if u don't
know basic reverse engineering. seriously.


On Aug 12, 3:26 pm, Sudha  wrote:
> Hello,
>
> If i have a apk file and want to know the package name and class
> hierarchy, how do i do it?
>
> Suppose I have some sample APK file named "SampApp.apk" which contains
> classes inside "com.android.sampApp".
>
> Is there any tool in Android SDK which shows the package name when APK
> file is passed as a parameter.
>
> As the Class files are compressed to dex file I am not able to check
> the actual package name.
>
> Regards:
> Sudha
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: receive post using a DefaultHttpServerConnection object

2009-08-12 Thread Vermouth

EDIT:
action="localhost:8080" -> action=""

I first do a get method for give this html page...
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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   >