Re: [android-developers] Re: Problem in height of Listview

2010-09-30 Thread Rocky
Hi Bibek,

if i'm using fill_parent, also it fill entire screen, and my bottom button
goes off, (footer button not showing that case)

is any dynamic approach, thr that i can set the height according to device,
in java file (coding)

--RKJ

On Fri, Oct 1, 2010 at 12:14 PM, Kumar Bibek  wrote:

> Wrap_content is not suitable for listview's height. AFAIK.
>
> Either you set the height, or allow it to expand, by setting
> fill_parent
>
> -Kumar Bibek
> http://techdroid.kbeanie.com
>
> On Oct 1, 11:08 am, "RKJ (Android developer)" 
> wrote:
> > Hi Techie,
> >
> > I'm facing a problem in height of ListView (in my list i'v some time 1
> > item or some times 20-30 items)
> >
> >  >  android:layout_height="330px"
> >  android:layout_width="fill_parent">
> >  
> >
> > Here I want
> > android:layout_height = " wrap_content"
> >
> > or
> >
> > android:layout_height = "fill_parent"
> >
> > but in both the case lower part of button is not showing, if i fix
> > height=330px, den its comming appropriately in my emumlator,
> >
> > i want height should be dynamic, wrap_content
> >
> > so please help me, how to fix the height of list view according to
> > devices, so that it will fit in any devices,
> >
> > thaanks
> >
> > __RKJ
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en




-- 
Thanks & Regards

Rakesh Kumar Jha
Software Developer
Symphony Services Corp (India) Pvt Ltd
Bangalore
(O) +918030273740
(R) +919886336619

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

[android-developers] Re: Problem in height of Listview

2010-09-30 Thread Kumar Bibek
Wrap_content is not suitable for listview's height. AFAIK.

Either you set the height, or allow it to expand, by setting
fill_parent

-Kumar Bibek
http://techdroid.kbeanie.com

On Oct 1, 11:08 am, "RKJ (Android developer)" 
wrote:
> Hi Techie,
>
> I'm facing a problem in height of ListView (in my list i'v some time 1
> item or some times 20-30 items)
>
>                                           android:layout_height="330px"
>                          android:layout_width="fill_parent">
>                  
>
> Here I want
> android:layout_height = " wrap_content"
>
> or
>
> android:layout_height = "fill_parent"
>
> but in both the case lower part of button is not showing, if i fix
> height=330px, den its comming appropriately in my emumlator,
>
> i want height should be dynamic, wrap_content
>
> so please help me, how to fix the height of list view according to
> devices, so that it will fit in any devices,
>
> thaanks
>
> __RKJ

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


Re: [android-developers] Re: Implement seek bar for playing videos

2010-09-30 Thread Ashok Jeevan
Hi,
I want something similar to the Youtube player where the user is able to
scroll the thumb of the seek bar, so that the video starts playing from the
position of the thumb.

Right now, in my app, I am able to move the thumb of the seekbar forward and
backward, but the video is not playing accordingly.

Has implemented the OnSeekBarChangeListener and handled onProgressChanged()

Thanks


On Fri, Oct 1, 2010 at 12:00 PM, Nightwolf  wrote:

> Implement OnSeekBarChangeListener for your seekBar and handle
> onProgressChanged().
>
> On Oct 1, 8:51 am, Ashok Jeevan  wrote:
> > Hi,
> >
> > I am using seekBar to show the progress of the video which I implemented
> > using Media Player / Video View.
> >
> > But as the thumb of the seekBar is moved back and forth, the video is not
> > starting correspondingly from the position of the thumb.
> >
> > Is there any way to locate the position of the thumb so that the video
> can
> > load from the seekBar's thumb's position?
> >
> > 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

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Issue in importing apk lib file to application

2010-09-30 Thread Namrata
When I created TestApp it automatically added
android.library.reference.1=/home/axa/test/project entry to
default.properties, and sdk.dir=/home/axa/development/android-sdk-
linux_86 entry to local.properties. Its not only about TestLib I am
getting errors about sdk too. I am confused seeing these errors. Any
thoughts on this?

On Sep 30, 10:18 pm, Mark Murphy  wrote:
> On Thu, Sep 30, 2010 at 1:16 PM, Namrata  wrote:
> > I tried setting up 2 test projects as per the instructions given in
> >http://developer.android.com/guide/developing/other-ide.html#libraryP...
> > TestLib (libray project) and TestApp (application). Setup is done
> > successfully. ant compile on TestLib works perfectly. When I tried ant
> > debug/release on TestApp it is giving me following errors.
>
> If I had to guess, TestApp does not reference TestLib:
>
> http://developer.android.com/guide/developing/other-ide.html#libraryR...
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> _The Busy Coder's Guide to Android Development_ Version 3.1 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] Re: Issue in importing apk lib file to application

2010-09-30 Thread Namrata
When I created TestApp it automatically added
android.library.reference.1=/home/axa/test/project entry to
default.properties, and sdk.dir=/home/axa/development/android-sdk-
linux_86 entry to local.properties. Its not only about TestLib I am
getting errors about sdk too. I am confused seeing these errors. Any
thoughts on this?

On Sep 30, 10:18 pm, Mark Murphy  wrote:
> On Thu, Sep 30, 2010 at 1:16 PM, Namrata  wrote:
> > I tried setting up 2 test projects as per the instructions given in
> >http://developer.android.com/guide/developing/other-ide.html#libraryP...
> > TestLib (libray project) and TestApp (application). Setup is done
> > successfully. ant compile on TestLib works perfectly. When I tried ant
> > debug/release on TestApp it is giving me following errors.
>
> If I had to guess, TestApp does not reference TestLib:
>
> http://developer.android.com/guide/developing/other-ide.html#libraryR...
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> _The Busy Coder's Guide to Android Development_ Version 3.1 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] Re: Implement seek bar for playing videos

2010-09-30 Thread Nightwolf
Implement OnSeekBarChangeListener for your seekBar and handle
onProgressChanged().

On Oct 1, 8:51 am, Ashok Jeevan  wrote:
> Hi,
>
> I am using seekBar to show the progress of the video which I implemented
> using Media Player / Video View.
>
> But as the thumb of the seekBar is moved back and forth, the video is not
> starting correspondingly from the position of the thumb.
>
> Is there any way to locate the position of the thumb so that the video can
> load from the seekBar's thumb's position?
>
> 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: LG Ally from Verizon 2.1-update1 has broken apps

2010-09-30 Thread Sheado
Hi Pete,

I got about 6 reports from LG Ally users having this same issue with
my app since the OTA update.
Unfortunately, I have not figured out if there's anything I can do
from my end to prevent this from happening in the future.

Anybody have any info on this?

Thanks!
-Chad


On Sep 26, 10:50 am, pistol  wrote:
> I have been told by one of my customers that myapp(and some others)
> no longer works on his phone since he got an OTA for2.1-update.
>
> a bit of a Google about and it sounds like yes - my customer and myappare not 
> alone.
>
> Has any-one else encountered this - is it Verizon's fault or has myappgot 
> some obscure bug?
>
> thanks,
>            Pete
>
> User's quote:
>
> The icon has changed from the normal group text icon to a generic
> android icon, and
> instead of being called group text, the name that shows up in myapp
> menu is
> "com.smallbould". When I click on the icon, every time I get an
> immediate
> message saying that Andriod Home has to be force closed. I never even
> make
> it to the group text main screen... nothing from group text loads,
> period.
>
> I can uninstall theappand then reinstall it from Android market
> and
> everything goes back to normal... the icon and theappname go back
> to
> normal and theapploads and works without a problem. But as soon as I
> power
> down the phone, theappreverts to the generic icon and becomes
> totally non
> functional
> again.
>
> For what its worth, Fandango and History Eraser also have this problem
> after
> 2.1-update1. All of these apps worked flawlessly before the update. My
> phone
> is anLG Allyfrom Verizon.

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


[android-developers] Problem in height of Listview

2010-09-30 Thread RKJ (Android developer)
Hi Techie,

I'm facing a problem in height of ListView (in my list i'v some time 1
item or some times 20-30 items)


 

Here I want
android:layout_height = " wrap_content"

or

android:layout_height = "fill_parent"

but in both the case lower part of button is not showing, if i fix
height=330px, den its comming appropriately in my emumlator,

i want height should be dynamic, wrap_content

so please help me, how to fix the height of list view according to
devices, so that it will fit in any devices,

thaanks

__RKJ

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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 application in Market

2010-09-30 Thread pramod.deore
Thanks to all your responses.

On Sep 30, 9:32 pm, Brion Emde  wrote:
> I created a blog on blogspot.com and write about my apps there and
> embed screencast video demonstrations, and stuff like that.
>
> Then I put the address of the blog in field on the Marketplace.
>
> On Sep 30, 3:13 am, "pramod.deore"  wrote:
>
>
>
> > Hi, I want to launch my application in market. I ahd go 
> > tohttp://market.android.com/publish/signupbutthere they are asking for
> > Website URL. But i don't have any website then what should I enter
> > there? or is it necessary to have our own website to launch
> > application in market?
>
> > Thanks in advance

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


[android-developers] Re: Tablet programming

2010-09-30 Thread pramod.deore
Thanks Devdroid for your reply, any other suggestions?

On Sep 30, 4:11 pm, "{ Devdroid }"  wrote:
> On 30 September 2010 06:28, pramod.deore  wrote:
>
> > Hi, everybody
> >           I want to develop application for Android Tablets, Please
> > let me know that developing application for Tablets are different than
> > Mobile application? It will be great if somebody provide me a link
> > that is from where I should start?
>
> No it's not. Beside bigger screen and (probably) some hardware features
> that may or may not be available on certan devices you write your app
> like for any other Android device

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


[android-developers] Re: Problem with reading contacts on Samsung Galaxy Europa

2010-09-30 Thread Zarah Dominguez
I was also able to insert a contact into the address book.  So far it
looks like the only action not supported is viewing the whole contacts
list.

Pasted the stacktrace I got in StackOverflow:
http://stackoverflow.com/questions/3547118/accessing-the-phonebook-on-galaxy-s-crashes-the-app

I guess what happened is that Samsung's own contacts app has an
incomplete manifest.  Oh well, for the meantime I managed to get
around it by disabling the button to access the phonebook using
PackageManager so that users won't be confused.



-Zarah.



On Oct 1, 9:10 am, mikedroid  wrote:
> actually it does show me a list (calling ACTION_VIEW or ACTION_PICK)
> using ContactsContract.Contacts.CONTENT_URI. but we wanted to call the
> samsung's native contacts activity which is named something like
> PhoneBookTopMenuActivity. Also i noticed that instead of the two
> actions i;ve mentions they are using this activity with filters
> action=main; category=launcher which is odd right?
>
> On Sep 30, 3:42 pm, Zarah Dominguez  wrote:
>
>
>
> > Yeah, hope we get feedback soon.  Mark Murphy referred me to 
> > this:http://code.google.com/p/android/issues/detail?id=10143
>
> > Hi Mike,
>
> > How did you handle this on your end?
>
> > -Zarah.
>
> > On Sep 30, 1:04 pm, mikedroid  wrote:
>
> > > yes im having this problem also hope they can check it soon
>
> > > On Sep 28, 12:45 am, Zarah Dominguez 
> > > wrote:
>
> > > > Hi Alberto,
>
> > > > Sorry, I only saw this thread again today.
>
> > > > I wasn't able to launch the Phonebook, I just added a small bit of
> > > > code to check if there is someone who can receive the phonebook
> > > > intent.
>
> > > > PackageManager pkgMgr = getPackageManager();
> > > > List list = pkgMgr.queryIntentActivities(new
> > > > Intent(Intent.ACTION_VIEW,Contacts.CONTENT_URI),
> > > > PackageManager.MATCH_DEFAULT_ONLY);
> > > > if (list.isEmpty()){
> > > >         // I just remove the menu item to access the phonebook
> > > >         menu.removeItem(R.id.app_menu_contacts);
>
> > > > }
>
> > > > Maybe you can try this approach also.
>
> > > > Hope this helps,
> > > > Zarah.
>
> > > > On Aug 28, 3:36 am, Albert  wrote:
>
> > > > > Hi Zarah,
>
> > > > > I have reports of the app launching a blank screen but not crash. I am
> > > > > getting aSamsungSpica this week but you have already stated that it
> > > > > works there so that won't be of any use. For my app is wan't so
> > > > > critical so I just instructGalaxySusers to insert those details
> > > > > manually. The best is probably to contactSamsungdevelopment
> > > > > department and find out what mess they have done and from there find a
> > > > > suitable solution.
>
> > > > > If you ever find a solution, please let me know.
>
> > > > > Alberto
>
> > > > > On Aug 23, 10:20 am, Zarah Dominguez 
> > > > > wrote:
>
> > > > > > Hi Alberto,
>
> > > > > > I saw this on theGalaxySalso.  I have tested the app on theGalaxy
> > > > > > Spica (i5700), it is working perfectly.  But when I tested the app 
> > > > > > on
> > > > > > theGalaxyS, the app crashes.
>
> > > > > > I haven't found a solution yet, but this is what I found from 
> > > > > > Logcat:
> > > > > > 08-23 17:14:30.394: INFO/ActivityManager(2244): Displayed activity
> > > > > > com.android.contacts/
> > > > > > com.sec.android.app.contacts.PhoneBookTopMenuActivity: 452 ms (total
> > > > > > 452 ms)
>
> > > > > > Versus what is seen from the emulator:
> > > > > > 08-23 17:18:08.533: INFO/ActivityManager(52): Displayed activity
> > > > > > com.android.contacts/.DialtactsContactsEntryActivity: 348 ms (total
> > > > > > 348 ms)
>
> > > > > > Looks like theGalaxyShas a different way of handling intents for
> > > > > > the Phonebook.
>
> > > > > > If you find a solution, please let me know also.
>
> > > > > > Thanks!
> > > > > > -Zarah
>
> > > > > > On Aug 12, 7:06 pm, Albert  wrote:
>
> > > > > > > I have an user from my app that has reported this issue on 
> > > > > > > aSamsung
> > > > > > >GalaxyS. Do you know why it's happening? Did you find a solution?
>
> > > > > > > -Alberto
>
> > > > > > > On Aug 6, 1:46 pm, Alok Kulkarni  wrote:
>
> > > > > > > > yeah it is only happening on that deviuce. But i have found a 
> > > > > > > > different
> > > > > > > > solution to it which i will put up here tomorrow.
>
> > > > > > > > On Wed, Aug 4, 2010 at 12:51 PM, dan raaka  
> > > > > > > > wrote:
> > > > > > > > > Is this happening only on Europa ?
>
> > > > > > > > > -Dan
>
> > > > > > > > > On Wed, Aug 4, 2010 at 12:26 PM, Alok Kulkarni 
> > > > > > > > >  wrote:
>
> > > > > > > > >> Hi , i am using
> > > > > > > > >> startActivityForResult(intent,PICK_CONTACT);
> > > > > > > > >> Its working on Android 1.5 to 2.1 except for the 2.1 
> > > > > > > > >> deviceSamsung
> > > > > > > > >> Europa..On that device , i am not able to read thecontacts, 
> > > > > > > > >> its returning
> > > > > > > > >> empty result.
> > > > > > > > >> here is the link i referred for the code
> > > > > > > > >>http://www.droid

[android-developers] Re: New countries !!!!

2010-09-30 Thread Kumar Bibek
Pretty disappointed for not having India in the list. But congrats to
others. Go make some money. I guess, it will be another year that the
next set of countries are announced, and I really hope the see India
in that list.

On Oct 1, 9:20 am, gjs  wrote:
> Many many thanks Google 
>
> This has been a long long time coming, glad the day has finally
> arrived ( I was thinking Australia was still too small a market &
> would likely miss out again... )
>
> Look forward to you bringing the rest of the world in as well.
>
> Regards :-)
>
> On Oct 1, 2:00 pm, metal mikey  wrote:
>
> > G'day Google,
> > 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] Implement seek bar for playing videos

2010-09-30 Thread Ashok Jeevan
Hi,

I am using seekBar to show the progress of the video which I implemented
using Media Player / Video View.

But as the thumb of the seekBar is moved back and forth, the video is not
starting correspondingly from the position of the thumb.

Is there any way to locate the position of the thumb so that the video can
load from the seekBar's thumb's position?

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: Setting/Passing values

2010-09-30 Thread rb
Thanks for the handy method.  First of all, I have to get this
working,
then I may try this out.  Good thing to know..

:RB

On Sep 30, 9:03 pm, davemac  wrote:
> You should also check out this handy method:
>
> PreferenceManager.setDefaultValues(Context context, int resId, boolean
> readAgain)
>
> Assuming you've defined default values for preferences in your
> preferences.xml file, this method will use those to initialize your
> saved preferences file. Which means you shouldn't have to define
> default values in your code. Which is nice.
>
> - davewww.androidbook.com
>
> On Sep 30, 9:41 pm, Mark Murphy  wrote:
>
>
>
> > On Thu, Sep 30, 2010 at 9:15 PM, rb  wrote:
> > > I looked at the URL's that you provided and tried some coding with it,
> > > but I am failing to understand
> > > the proper coding methods.
>
> > BTW, the preference chapter in my book has not changed that much from
> > earlier editions, so you're welcome to read the relevant chapter in
> > the most recent Creative Commons edition:
>
> >http://commonsware.com/Android/Android-1_4-CC.pdf
>
> > That should give you more context for all of this preference stuff.
>
> > --
> > Mark Murphy (a Commons 
> > Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> > Android Training in Atlanta:http://bignerdranch.com/classes/android

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


[android-developers] Re: Setting/Passing values

2010-09-30 Thread rb
Thanks for the link to your book.  I have tried your examples from it
and now I get the app forcing to close.
Perhaps you can shed some light on this?

Here's my code:
-- Calculator.java--

package com.calculator;

import android.app.Activity;
import android.content.Intent;
import android.graphics.Color;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.RadioButton;
import android.widget.TextView;

public class Calculator extends Activity {

private static final int MY_SETUP = 0;
private static final int MY_ABOUT = 1;

// These are from the layout of the setup menu
RadioButton rb1 = (RadioButton) findViewById(R.id.RadioButton01);
RadioButton rb2 = (RadioButton) findViewById(R.id.RadioButton02);
RadioButton rb3 = (RadioButton) findViewById(R.id.RadioButton03);
RadioButton rb4 = (RadioButton) findViewById(R.id.RadioButton04);
RadioButton rb5 = (RadioButton) findViewById(R.id.RadioButton05);
RadioButton rb6 = (RadioButton) findViewById(R.id.RadioButton06);
EditText ed1 = (EditText) findViewById(R.id.EditText01);
EditText ed2 = (EditText) findViewById(R.id.EditText02);
EditText ed3 = (EditText) findViewById(R.id.EditText03);
EditText ed4 = (EditText) findViewById(R.id.EditText04);
EditText ed5 = (EditText) findViewById(R.id.EditText05);

/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);

 // code of the calculator goes here //

}

 // options menu

// Called only the first time the options menu is displayed.
// Create the menu entries.
// Menu adds items in the order shown.
public boolean onCreateOptionsMenu(Menu menu) {
super.onCreateOptionsMenu(menu);
menu.add("Setup")
.setIcon(android.R.drawable.ic_menu_preferences);
menu.add("About")
.setIcon(android.R.drawable.ic_menu_info_details);
return(super.onCreateOptionsMenu(menu));
//return true;
}

// handle menu selected
public boolean onOptionsItemSelected(MenuItem item){

 if (item.getTitle().equals("Setup")){
Intent intent = new Intent(this,
com.calculator.setup.class);
startActivityForResult(intent, MY_SETUP);
return true;
 }

 if (item.getTitle().equals("About")){
 Intent intent = new Intent(this, com.calculator.about.class);
 startActivityForResult(intent, MY_ABOUT);
return true;
 }
return(super.onOptionsItemSelected(item));
//return false;
}
}

-- setup (setup.java) --
// code handles radio click & buttons ex: setting default values back
in to the EditText box  etc.//
package com.calculator;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.RadioButton;
import android.widget.RadioGroup;

public class setup  extends Activity {
public Boolean changeGroup = false;
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);

setContentView(R.layout.dialogsetup);

  // code to handle button clicks goes here //
  }
}

-- EditPreferences.java --
package com.calculator;

import android.os.Bundle;
import android.preference.PreferenceActivity;

public class EditPreferences extends PreferenceActivity {
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);

addPreferencesFromResource(R.xml.preferences);
}
}

// NOTE: as per your example from your book, this does not have
"import android.app.Activity;" //
// Tried to import, but it would not take //

-- preferences.xml --


http://schemas.android.com/apk/res/android";
  android:layout="@layout/dialogsetup">

// only 1 preference for testing //




-- strings.xml --


Calculator
#F2F5A9
#00
#FF8000
#F5D0A9
#00
#0B0B61
#FF
#CECEF6
#424242
#848484
#E6E6E6
#868A08
#FF
#08088A
#0B610B
30


-- manifest.xml --

http://schemas.android.com/apk/res/android";
  package="com.calculator"
  android:versionCode="1"
  android:versionName="1.0">















Other than the screen layouts, that is it.

What could be the error?


On Sep 30, 7:41 pm, Mark Murphy  wrote:
> On Thu, Sep 30, 2010 at 9:15 PM, rb  wrote:
> > I looked at the URL's tha

[android-developers] Re: New countries !!!!

2010-09-30 Thread gjs
Many many thanks Google 

This has been a long long time coming, glad the day has finally
arrived ( I was thinking Australia was still too small a market &
would likely miss out again... )

Look forward to you bringing the rest of the world in as well.

Regards :-)


On Oct 1, 2:00 pm, metal mikey  wrote:
> G'day Google,
> Thank you!!

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


[android-developers] Re: New countries !!!!

2010-09-30 Thread metal mikey
G'day Google,
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] Problem in using Document Builder parser on Device

2010-09-30 Thread Mrid
Hello All,

I am using document builder parser for parsing xml response from the
server. It works fine on emulator (SDK 1.6 and 2.2 both) but when I
tried to use that on LG Moment (SDK 2.1), it failed.
Found out that it is not able to load the xml response as a whole
document. Also,  XML response is very small, so it cant be a memory
problem. Can anyone suggest an approach to solve this??

Thank you

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


[android-developers] Re: Setting/Passing values

2010-09-30 Thread davemac
You should also check out this handy method:

PreferenceManager.setDefaultValues(Context context, int resId, boolean
readAgain)

Assuming you've defined default values for preferences in your
preferences.xml file, this method will use those to initialize your
saved preferences file. Which means you shouldn't have to define
default values in your code. Which is nice.

- dave
www.androidbook.com

On Sep 30, 9:41 pm, Mark Murphy  wrote:
> On Thu, Sep 30, 2010 at 9:15 PM, rb  wrote:
> > I looked at the URL's that you provided and tried some coding with it,
> > but I am failing to understand
> > the proper coding methods.
>
> BTW, the preference chapter in my book has not changed that much from
> earlier editions, so you're welcome to read the relevant chapter in
> the most recent Creative Commons edition:
>
> http://commonsware.com/Android/Android-1_4-CC.pdf
>
> That should give you more context for all of this preference stuff.
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> Android Training in Atlanta:http://bignerdranch.com/classes/android

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


[android-developers] Re: New countries !!!!

2010-09-30 Thread Denis Souza
I just registered here in Brazil. It links to your AdSense account so
you can receive the payments. I thought it was a pretty clever way to
do it, using the existing AdSense system so they wouldn't have to
implement payment systems for every country. Maybe the restrictions to
Czech Republic and Poland have something to do with the availability
of AdSense in those countries (can anyone from those countries
enlighten us?).
It's lame, but having 20 additional countries selling apps is a pretty
big deal (from the handful that there was before) and I'm sure they'll
continue expanding, especially with Android's increased growth in
market share.


On Sep 30, 8:07 pm, "{ Devdroid }"  wrote:
> On 1 October 2010 00:55, { Devdroid }  wrote:
>
> > (namely South Korea and Poland)
>
> I meant "Czech Republic and Poland" of course

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Anyway to pre allocate memory for a Bitmap?

2010-09-30 Thread Brian
bump

On Sep 27, 5:58 pm, Brian  wrote:
> and how would I reload them with the contents of png from the SD card?
>
> On Sep 27, 4:31 pm, Yahel  wrote:
>
>
>
> > > Hello is there any way to pre allocate the memory required for a
> > > bitmap.  Android's memory model is making it very difficult for me to
> > > cache images I need to cache.
>
> > You can simply create your bitmaps using one of the various :
>
> > Bitmap.createBitmap
>
> >http://developer.android.com/intl/de/reference/android/graphics/Bitma...
>
> > This will create bitmaps at the size you want, holding up memory, and
> > then you just have to reload them from wherever they are using
> > BitmapFactory.
>
> > Yahel

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


[android-developers] Forum Real Slow last couple of days?

2010-09-30 Thread BobG
Is this slowdown due to lots of new traffic from the new customers in
the new countries?

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


[android-developers] Re: Problem with interecepting outgoing calls on HTC Desire

2010-09-30 Thread Denis Souza
Anyone had any progress or ideas with this?

It's a bit hard to test it when you don't have the device.
Anyway, I got two reports from Motorola users with the same problem...
but the interesting thing is they only started having any problems
after upgrading to my app's latest version.
It occurred to me that the phone might have a limit to the time it
waits for a response from the app (since my latest version does a few
extra things before dialing) but I wrote a special super fast test
version for one of the users and it still didn't work. Also I tried it
on my HTC Hero making the phone wait 10 seconds but it worked fine,
which means that's probably not the problem.

Nicholas, you said you had the Desire with 2.2. Have you tried playing
with the intent filter's priority values? Maybe using 1 or 0 or even
removing the priority parameter altogether? That would be my next
hunch.


On Aug 27, 11:28 am, Denis Souza  wrote:
> Just had a report a few days ago from a user on HTCDesire(2.2) that
> says a previous version of my app worked fine. This is confirmed since
> I sent him a previous version and it worked. It might be just this one
> case since I've had another user say it didn't work with the same
> previous version.
>
> I'm trying to find out exactly which change made the difference (both
> versions do essentially the same thing with subtle differences) so I
> sent him a changed version to test it. If I find out anything I'll
> post it here, but don't hold your breath.. he's not very responsive.
>
> The workaround placing a new Intent seems reasonable in these cases. I
> think I'll add an option in my app for people having this issue though
> it's awful that I even have to think about doing that. One would think
> a company like HTC would test the whole API before releasing a new ROM
> (after all they sure take their time to do it).
>
> On Aug 27, 5:48 am, billas  wrote:
>
>
>
>
>
>
>
> > As it seems the HTCDesire(2.2) responds to "setResultData(null)"
> > wich will stop the out dial. Then you can place a new intent
> > (Action.CALL) to call the new number.
> > Not so nice workaround, but as a user you hardly notice it.
>
> > On 26 Aug, 14:42, billas  wrote:
>
> > > Here to. Exact same problem. Tested onHTCDesire2.2 (not working).
> > > It seems like it ignoring the resultData from the broadcastreceiver.
> > > Earlier tested onHTCHero build 2.73.405.x (android 1.5) where the
> > > "Dialer" application doesn't even send a broadcast!!
> > > Current build onHTCHero (android 2.1) works perfectly.
>
> > > I'm getting a bit desperate for a good workaround
>
> > > ./tobias
>
> > > On 18 Aug, 21:31, Denis Souza  wrote:
>
> > > > I'm getting the exact same problem.
> > > > I have an app that changes the number being dialed.
> > > > It works on everything except theHTCDesirewith Android2.2. Works
> > > > withDesireon 2.1 and with any other device I tested with2.2. There
> > > > are reports from several of my users using2.2devices and it works on
> > > > all of them except for theHTCDesire.
>
> > > > I'm think it might be a bug introduced byHTC.
>
> > > > If you find a workaround let me know.. I'm still looking...
>
> > > > Denis Souza
>
> > > > On Aug 18, 10:20 am, Nicolas Zerr  wrote:
>
> > > > > Hello,
>
> > > > > I'm having troubles with intercepting outgoing calls. In fact, it
> > > > > works perfectly on emulator 2.1 and2.2, and was running also
> > > > > perfectly on myHTCDesirewhen i was in 2.1 version.
>
> > > > > Here is some source code :
>
> > > > > package com.testcallcatch.test;
>
> > > > > import android.content.BroadcastReceiver;
> > > > > import android.content.Context;
> > > > > import android.content.Intent;
> > > > > import android.util.Log;
>
> > > > > public class OutgoingCallReceiver extends BroadcastReceiver {
> > > > >     @Override
> > > > >     public void onReceive(Context context, Intent intent) {
> > > > >         Log.d("LOOK HERE", "->" + getResultData());
> > > > >         setResultData("0123456789");
> > > > >         Log.d("LOOK HERE", "Setting to 0123456789");
> > > > >     }
>
> > > > > }
>
> > > > > And the manifest :
>
> > > > > 
> > > > > http://schemas.android.com/apk/res/android";
> > > > >         package="com.testcallcatch.test" android:versionCode="1"
> > > > >         android:versionName="1.0">
> > > > >          > > > > android:label="@string/
> > > > > app_name">
>
> > > > >                  > > > > android:label="@string/
> > > > > app_name">
> > > > >                         
> > > > >                                  > > > > android:name="android.intent.action.MAIN" />
> > > > >                                  > > > > android:name="android.intent.category.LAUNCHER" />
> > > > >                         
> > > > >                 
>
> > > > >                 
> > > > >                         
> > > > >                                  > > > > android:name="android.intent.action.NEW_OUTGOING_CALL" />
> > > > >                         
> > > > >                 
> > 

Re: [android-developers] WebView - Documentation of JavaScript and Java Interaction

2010-09-30 Thread Mark Murphy
On Thu, Sep 30, 2010 at 9:34 PM, Dan  wrote:
> Second, what object types should we expect
> when going to and from JavaScript. I have done some trial and error
> and it appears that complex types can cross the boundary, for example
> java.util.Vector. However when a Java method returns a byte array to
> JavaScript it has a type of undefined and I have been unable to coerce
> it to any other type.

Personally, I recommend people stick with the basic primitives that
are shared between the two environments, using JSON for anything that
is complex. The precise roster of Java types/classes and Javascript
counterparts is undocumented AFAIK, and the code is rather nasty...

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

Android Training in Atlanta: http://bignerdranch.com/classes/android

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


Re: [android-developers] Re: Setting/Passing values

2010-09-30 Thread Mark Murphy
On Thu, Sep 30, 2010 at 9:15 PM, rb  wrote:
> I looked at the URL's that you provided and tried some coding with it,
> but I am failing to understand
> the proper coding methods.

BTW, the preference chapter in my book has not changed that much from
earlier editions, so you're welcome to read the relevant chapter in
the most recent Creative Commons edition:

http://commonsware.com/Android/Android-1_4-CC.pdf

That should give you more context for all of this preference stuff.

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

Android Training in Atlanta: http://bignerdranch.com/classes/android

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


[android-developers] WebView - Documentation of JavaScript and Java Interaction

2010-09-30 Thread Dan
Hello Developers,

I have found that there is a significant lack of documentation of
WebView's ability to communicate with Java via WebView.addJavaScript()
method.  First, the debug document
http://developer.android.com/guide/developing/debug-tasks.html#DebuggingWebPages
appears to no longer work.  Second, what object types should we expect
when going to and from JavaScript. I have done some trial and error
and it appears that complex types can cross the boundary, for example
java.util.Vector. However when a Java method returns a byte array to
JavaScript it has a type of undefined and I have been unable to coerce
it to any other type. Finally, there is great potential with this
interface and with some more attention we could go far.

-Dan

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


Re: [android-developers] Re: Setting/Passing values

2010-09-30 Thread Mark Murphy
On Thu, Sep 30, 2010 at 9:15 PM, rb  wrote:
> I believe that I need this to read the preferences still in the main
> and set a textview as such:
>
>        public void onResume() {
>                super.onResume();
>
>                SharedPreferences prefs=PreferenceManager
>                        .getDefaultSharedPreferences(this);
>                TextView tv = (TextView) findViewById(R.id.TextView01);
>                tv.setText(prefs.getString("tview1", ""));
>
> The preference name for this textview is called "tview1".  According
> to the example, it looks like you have
> to give it a value.

You have to give it a default value, in case the preference has not
yet been set by the user. That is the second parameter to getString()
("Value to return if this preference does not exist", per the
documentation):

http://developer.android.com/reference/android/content/SharedPreferences.html#getString(java.lang.String,
java.lang.String)

>  I just want to read that preference, and take the
> value it has, and place it in the TextView01 text
> but according to the example, you have to give it a value.

I repeat, you have to give it a default value, in case the preference
has not yet been set by the user.

> In the setup, I created this:
>   �...@override
>    protected void onStop(){
>       super.onStop();
>
>      // We need an Editor object to make preference changes.
>      // All objects are from android.context.Context
>      SharedPreferences settings = getSharedPreferences(PREFS_NAME,
> 0);
>      SharedPreferences.Editor editor = settings.edit();
>
>      editor.putString("tview1","this is a test");
>
>      // Commit the edits!
>      editor.commit();
>    }

This should not be needed.

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

_The Busy Coder's Guide to Android Development_ Version 3.1 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] Re: What is the URI for the Contacts content provider on Samsung phones? ActivityNotFoundException:

2010-09-30 Thread mikedroid
still not Contacts.UI.LIST_ALL_CONTACTS_ACTION , tried it

On Aug 5, 12:21 am, Dmitri Plotnikov  wrote:
> You are right - I forgot that this intent is hidden API.
>
> Ironically, the deprecated equivalent Contacts.UI.LIST_ALL_CONTACTS_ACTION
> is public and therefore is supposed to work.  ;)
>
>
>
> On Wed, Aug 4, 2010 at 1:28 AM, pistol  wrote:
> > Unless of course this is not officially supported by Android - in
> > which case I shouldn't do it at all.
>
> > On 2 Aug, 09:02, pistol  wrote:
> > > Currently I think the only fix is to not offer the option toSamsung
> > > phones - a very bad solution.
>
> > > On 31 July, 13:32, pistol  wrote:
>
> > > > You are right - I needn't startActivityForResult() - just
> > > > startActivity().
> > > > I still would get the ActivityNotFiundException though.
> > > > ;-(
>
> > > > I just want the Contacts 'view' opened up so the user can look at
> > > > them.  Not to pick or return (a specific) one.
>
> > > > I works fine on all my phones and emulators.
>
> > > > Pete
>
> > > > On 28 July, 22:05, Dmitri Plotnikov  wrote:
>
> > > > > The code appears to be correct - it is supposed to work on any
> > Android phone
> > > > > :-(
>
> > > > > However, calling it for result does not really make sense.  It is
> > supposed
> > > > > to launch the activity and that's that - no result will be returned.
>
> > > > > If you need to user to pick a contact from the list, do this instead:
>
> > > > > new Intent(Intent.ACTION_PICK, Contacts.CONTENT_URI)
>
> > > > > Cheers,
> > > > > - Dmitri
>
> > > > > On Wed, Jul 28, 2010 at 1:47 PM, Indicator Veritatis <
> > mej1...@yahoo.com>wrote:
>
> > > > > > My guess is that it is the non-Samsungphones that are doing
> > something
> > > > > > non-standard, something you cannot rely on. For as I read your
> > code,
> > > > > > you are trying to view not just a contact, but an entire contact
> > > > > > database. I don't think Android guarantees that that Action is
> > > > > > supported on the entire database.
>
> > > > > > Try appending a specific ID to the Uri.
>
> > > > > > On Jul 28, 7:09 am, pistol  wrote:
> > > > > > > Some of my users withSamsungphones (GT-I9000, SGH-I897 to name at
> > > > > > > least 2) cannot open the Contacts view on their phones - thew way
> > my
> > > > > > > app has this coded is like this:
>
> > > > > > > Uri uri = ContactsContract.Contacts.CONTENT_URI;
> > > > > > > Intent intent = new Intent(Intent.ACTION_VIEW, uri);
> > > > > > > startActivityForResult(intent, Constants.ACTIVITY_CALL_CONTACTS);
>
> > > > > > > This causes an ActivityNotFoundException.
>
> > > > > > > Is the problem that this is not the way to call the Contacts
> > provider
> > > > > > > or thatSamsunghave not implementeed it?
>
> > > > > > > If it is down toSamsungcan some-one give me the correct Uri?
> >  though
> > > > > > > it will be terrible to have to have phone specific code.
>
> > > > > > > thanks,
> > > > > > >            Pete
>
> > > > > > --
> > > > > > You received this message because you are subscribed to the Google
> > > > > > Groups "Android Developers" group.
> > > > > > To post to this group, send email to
> > android-developers@googlegroups.com
> > > > > > To unsubscribe from this group, send email to
> > > > > > android-developers+unsubscr...@googlegroups.com > > > > >  cr...@googlegroups.com>
> >  > nsubscr...@googlegroups.com>
>
> > > > > > For more options, visit this group at
> > > > > >http://groups.google.com/group/android-developers?hl=en
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com > cr...@googlegroups.com>
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Setting/Passing values

2010-09-30 Thread rb
I looked at the URL's that you provided and tried some coding with it,
but I am failing to understand
the proper coding methods.

In the main, I have the options menu as:

// options menu

// Called only the first time the options menu is displayed.
// Create the menu entries.
// Menu adds items in the order shown.
public boolean onCreateOptionsMenu(Menu menu) {
super.onCreateOptionsMenu(menu);
menu.add("Setup")
.setIcon(android.R.drawable.ic_menu_preferences);
menu.add("About")
.setIcon(android.R.drawable.ic_menu_info_details);
return(super.onCreateOptionsMenu(menu));
//return true;
}

// handle menu selected
public boolean onOptionsItemSelected(MenuItem item){

 if (item.getTitle().equals("Setup")){
Intent intent = new Intent(this,
com.tccalculator.setup.class);
startActivityForResult(intent, MY_SETUP);
return true;
 }

 if (item.getTitle().equals("About")){
 Intent intent = new Intent(this,
com.tccalculator.about.class);
 startActivityForResult(intent, MY_ABOUT);
return true;
 }
return(super.onOptionsItemSelected(item));
//return false;
}

I believe that I need this to read the preferences still in the main
and set a textview as such:

public void onResume() {
super.onResume();

SharedPreferences prefs=PreferenceManager
.getDefaultSharedPreferences(this);
TextView tv = (TextView) findViewById(R.id.TextView01);
tv.setText(prefs.getString("tview1", ""));

The preference name for this textview is called "tview1".  According
to the example, it looks like you have
to give it a value.  I just want to read that preference, and take the
value it has, and place it in the TextView01 text
but according to the example, you have to give it a value.

In the setup, I created this:
@Override
protected void onStop(){
   super.onStop();

  // We need an Editor object to make preference changes.
  // All objects are from android.context.Context
  SharedPreferences settings = getSharedPreferences(PREFS_NAME,
0);
  SharedPreferences.Editor editor = settings.edit();

  editor.putString("tview1","this is a test");

  // Commit the edits!
  editor.commit();
}

The PREFS_NAME was declared at the top:
public static final String PREFS_NAME = "calcsettings";

If I am following this, the "editor" creates the name/value pair
("tview1" = "this is a test") then writes it to the preferences
by calling the editor.commit();

What am I doing wrong?  As I am testing, I am attempting to creating/
retrievie
one preference (name/value).

Thanks again for all your help.

:RB


On Sep 30, 4:59 pm, Mark Murphy  wrote:
> On Thu, Sep 30, 2010 at 6:51 PM, rb  wrote:
> > Thanks for shedding some light on this issue.
>
> > Here's some of my code:
>
> :: snip ::
>
> > I was going to save and read the data from a file which would be
> > stored
> > in the phones default applications directory as one file.
>
> All the more reason to use a PreferenceActivity.
>
> > Not sure how you would use the preference activity for storing name/
> > values as
> > I need to store and retrieve 6 different items.
>
> Ever looked at the Settings application in your device? That's a
> PreferenceActivity. That has well more than "6 different items".
>
> > Any chance you could reply with some code on how I could utilize the
> > preferences activity
> > from the code I have provided?
>
> http://developer.android.com/guide/topics/data/data-storage.html#prefhttp://developer.android.com/reference/android/preference/PreferenceA...http://github.com/commonsguy/cw-android/tree/master/Prefs/Dialogs/
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> _The Busy Coder's Guide to Android Development_ Version 3.1 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] Re: Problem with reading contacts on Samsung Galaxy Europa

2010-09-30 Thread mikedroid
actually it does show me a list (calling ACTION_VIEW or ACTION_PICK)
using ContactsContract.Contacts.CONTENT_URI. but we wanted to call the
samsung's native contacts activity which is named something like
PhoneBookTopMenuActivity. Also i noticed that instead of the two
actions i;ve mentions they are using this activity with filters
action=main; category=launcher which is odd right?

On Sep 30, 3:42 pm, Zarah Dominguez  wrote:
> Yeah, hope we get feedback soon.  Mark Murphy referred me to 
> this:http://code.google.com/p/android/issues/detail?id=10143
>
> Hi Mike,
>
> How did you handle this on your end?
>
> -Zarah.
>
> On Sep 30, 1:04 pm, mikedroid  wrote:
>
>
>
> > yes im having this problem also hope they can check it soon
>
> > On Sep 28, 12:45 am, Zarah Dominguez 
> > wrote:
>
> > > Hi Alberto,
>
> > > Sorry, I only saw this thread again today.
>
> > > I wasn't able to launch the Phonebook, I just added a small bit of
> > > code to check if there is someone who can receive the phonebook
> > > intent.
>
> > > PackageManager pkgMgr = getPackageManager();
> > > List list = pkgMgr.queryIntentActivities(new
> > > Intent(Intent.ACTION_VIEW,Contacts.CONTENT_URI),
> > > PackageManager.MATCH_DEFAULT_ONLY);
> > > if (list.isEmpty()){
> > >         // I just remove the menu item to access the phonebook
> > >         menu.removeItem(R.id.app_menu_contacts);
>
> > > }
>
> > > Maybe you can try this approach also.
>
> > > Hope this helps,
> > > Zarah.
>
> > > On Aug 28, 3:36 am, Albert  wrote:
>
> > > > Hi Zarah,
>
> > > > I have reports of the app launching a blank screen but not crash. I am
> > > > getting aSamsungSpica this week but you have already stated that it
> > > > works there so that won't be of any use. For my app is wan't so
> > > > critical so I just instructGalaxySusers to insert those details
> > > > manually. The best is probably to contactSamsungdevelopment
> > > > department and find out what mess they have done and from there find a
> > > > suitable solution.
>
> > > > If you ever find a solution, please let me know.
>
> > > > Alberto
>
> > > > On Aug 23, 10:20 am, Zarah Dominguez 
> > > > wrote:
>
> > > > > Hi Alberto,
>
> > > > > I saw this on theGalaxySalso.  I have tested the app on theGalaxy
> > > > > Spica (i5700), it is working perfectly.  But when I tested the app on
> > > > > theGalaxyS, the app crashes.
>
> > > > > I haven't found a solution yet, but this is what I found from Logcat:
> > > > > 08-23 17:14:30.394: INFO/ActivityManager(2244): Displayed activity
> > > > > com.android.contacts/
> > > > > com.sec.android.app.contacts.PhoneBookTopMenuActivity: 452 ms (total
> > > > > 452 ms)
>
> > > > > Versus what is seen from the emulator:
> > > > > 08-23 17:18:08.533: INFO/ActivityManager(52): Displayed activity
> > > > > com.android.contacts/.DialtactsContactsEntryActivity: 348 ms (total
> > > > > 348 ms)
>
> > > > > Looks like theGalaxyShas a different way of handling intents for
> > > > > the Phonebook.
>
> > > > > If you find a solution, please let me know also.
>
> > > > > Thanks!
> > > > > -Zarah
>
> > > > > On Aug 12, 7:06 pm, Albert  wrote:
>
> > > > > > I have an user from my app that has reported this issue on aSamsung
> > > > > >GalaxyS. Do you know why it's happening? Did you find a solution?
>
> > > > > > -Alberto
>
> > > > > > On Aug 6, 1:46 pm, Alok Kulkarni  wrote:
>
> > > > > > > yeah it is only happening on that deviuce. But i have found a 
> > > > > > > different
> > > > > > > solution to it which i will put up here tomorrow.
>
> > > > > > > On Wed, Aug 4, 2010 at 12:51 PM, dan raaka  
> > > > > > > wrote:
> > > > > > > > Is this happening only on Europa ?
>
> > > > > > > > -Dan
>
> > > > > > > > On Wed, Aug 4, 2010 at 12:26 PM, Alok Kulkarni 
> > > > > > > >  wrote:
>
> > > > > > > >> Hi , i am using
> > > > > > > >> startActivityForResult(intent,PICK_CONTACT);
> > > > > > > >> Its working on Android 1.5 to 2.1 except for the 2.1 
> > > > > > > >> deviceSamsung
> > > > > > > >> Europa..On that device , i am not able to read thecontacts, 
> > > > > > > >> its returning
> > > > > > > >> empty result.
> > > > > > > >> here is the link i referred for the code
> > > > > > > >>http://www.droidnova.com/use-intents-to-start-other-activities,76.html
> > > > > > > >> Is thr something i m missing ?
> > > > > > > >> --
> > > > > > > >> You received this message because you are subscribed to the 
> > > > > > > >> Google
> > > > > > > >> Groups "Android Developers" group.
> > > > > > > >> To post to this group, send email to 
> > > > > > > >> android-developers@googlegroups.com
> > > > > > > >> To unsubscribe from this group, send email to
> > > > > > > >> android-developers+unsubscr...@googlegroups.com > > > > > > >>  cr...@googlegroups.com>
> > > > > > > >> For more options, visit this group at
> > > > > > > >>http://groups.google.com/group/android-developers?hl=en
>
> > > > > > > >  --
> > > > > > > > You received this message because you are subscribed to the 
> > > > > > > > Goo

[android-developers] scaleType="fitXY" works scaleType="centerInside" doesnt

2010-09-30 Thread Shawn Brown
Hi,

If you know or can guess please tell me why:

In the FrameLayout below, scaleType="fitXY" will adjust the image to
fit the screen but scaleType="centerInside" doesn't.  I need the
aspect ratio preserved which fitXY doesn't do.  Please look at the
-> below.






http://schemas.android.com/apk/res/android";
   android:orientation="vertical"
>

>>>->  no effect, image is too large





--> scales but aspect ratio lost


   










Thanks,

Shawn

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


[android-developers] Re: New countries !!!!

2010-09-30 Thread William Ferguson
Hey its definitely a step in the right direction.
And should hold out hope that it will be rolled out further.

Its certainly opened up the type of apps that I will consider
developing now that I can sell into the market.

On Oct 1, 8:55 am, "{ Devdroid }"  wrote:
> On 1 October 2010 00:37, Yahel  wrote:
>
> > Effective today, developers from 20 additional countries (Argentina,
> > Australia, Belgium, Brazil, Canada, Denmark, Finland, Hong Kong,
> > Ireland, Israel, Mexico, New Zealand, Norway, Portugal, Russia,
> > Singapore, South Korea, Sweden, Switzerland and Taiwan) can now sell
> > paid apps on Android Market. Over the next 2 weeks, users from 18 new
> > countries (Argentina, Brazil, Belgium, Czech Republic, Denmark,
> > Finland, Hong Kong, India, Ireland, Israel, Mexico, Norway, Poland,
> > Portugal, Russia, Singapore, Sweden, and Taiwan) will be able to
> > purchase paid apps from Android Market.
>
> This still sucks as there's 18 new sellers vs 20 buyers, which
> means that developers from 2 countries (namely South Korea and
> Poland) are still left behind and can't sell anyting to users in
> their own countries. That's lame.

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


[android-developers] Re: New countries !!!!

2010-09-30 Thread Craigo
I registered an account in the United States (gave up waiting), and
now I would like to switch the country to my actual country, however,
it doesn't let me.  Anyone know if this is possible?


On Sep 30, 5:37 pm, Yahel  wrote:
> Effective today, developers from 20 additional countries (Argentina,
> Australia, Belgium, Brazil, Canada, Denmark, Finland, Hong Kong,
> Ireland, Israel, Mexico, New Zealand, Norway, Portugal, Russia,
> Singapore, South Korea, Sweden, Switzerland and Taiwan) can now sell
> paid apps on Android Market. Over the next 2 weeks, users from 18 new
> countries (Argentina, Brazil, Belgium, Czech Republic, Denmark,
> Finland, Hong Kong, India, Ireland, Israel, Mexico, Norway, Poland,
> Portugal, Russia, Singapore, Sweden, and Taiwan) will be able to
> purchase paid apps from Android Market.
>
> Is that awsome or what !!
>
> Good job Android !!
>
> Yahel

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


Re: [android-developers] New countries !!!!

2010-09-30 Thread { Devdroid }
On 1 October 2010 00:55, { Devdroid }  wrote:

> (namely South Korea and Poland)

I meant "Czech Republic and Poland" of course

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Settings.Secure.ANDROID_ID not unique on DROID2?

2010-09-30 Thread JonFHancock
The last update from Google/Verzion was half a month ago.  Is there
any progress to report?

On Sep 13, 11:48 am, "suzanne.alexandra"
 wrote:
> Motorola is working on a fix for the ANDROID_ID issue on DROID 2. Any
> fix that becomes available will be upgraded to devices over the air. I
> don't have a timeline though.
>
> - Suzanne
>
> On Sep 8, 9:03 pm, gcstang  wrote:
>
>
>
>
>
>
>
> > Permission isn't as big an issue but the non phone part is definitely
> > a concern.
>
> > Thank you for you answers
>
> > On Sep 8, 10:56 pm, William Ferguson 
> > wrote:
>
> > > It also assumes the device is a phone.
> > > It may be a wifi only tablet, or whatever.
>
> > > On Sep 9, 2:09 am, "Maps.Huge.Info (Maps API Guru)" 
> > > wrote:
>
> > > > Using IMEI requires an additional permission. Using ANDROID_ID
> > > > doesn't.
>
> > > > -John Coryat

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


Re: [android-developers] Re: Setting/Passing values

2010-09-30 Thread Mark Murphy
On Thu, Sep 30, 2010 at 6:51 PM, rb  wrote:
> Thanks for shedding some light on this issue.
>
> Here's some of my code:

:: snip ::

> I was going to save and read the data from a file which would be
> stored
> in the phones default applications directory as one file.

All the more reason to use a PreferenceActivity.

> Not sure how you would use the preference activity for storing name/
> values as
> I need to store and retrieve 6 different items.

Ever looked at the Settings application in your device? That's a
PreferenceActivity. That has well more than "6 different items".

> Any chance you could reply with some code on how I could utilize the
> preferences activity
> from the code I have provided?

http://developer.android.com/guide/topics/data/data-storage.html#pref
http://developer.android.com/reference/android/preference/PreferenceActivity.html
http://github.com/commonsguy/cw-android/tree/master/Prefs/Dialogs/

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

_The Busy Coder's Guide to Android Development_ Version 3.1 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] Re: VerifyError reloaded

2010-09-30 Thread DanH
Of course, the real problem is that the verifier is mis-designed.  I'm
guessing it uses reference chains.  I redid the one for iSeries to use
sparse bit vectors and cut the heap requirements by about a factor of
100, and made it much faster as well.

On Sep 30, 12:29 pm, fadden  wrote:
> On Sep 29, 11:32 am, Dirk  wrote:
>
> > In order to get around the problem, I tried to replace the whole
> > switch-statement with lots of if-elseif statements.
> > Unfortunately, another problem arose. The Verifyer now says:
>
> > 09-29 18:02:44.058: WARN/dalvikvm(450): VFY: arbitrarily rejecting
> > large method (regs=127 count=34916)
>
> I fixed that one too while I was at it.  The limit was intended to
> prevent the verifier from soaking up huge amounts of memory, but (a)
> the limit is too low, and (b) there are better mechanisms in the
> system for doing that.  So now it's just a warning that says, "hey,
> this is huge".
>
> With both fixes in place, the original code passes.

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


Re: [android-developers] New countries !!!!

2010-09-30 Thread { Devdroid }
On 1 October 2010 00:37, Yahel  wrote:
> Effective today, developers from 20 additional countries (Argentina,
> Australia, Belgium, Brazil, Canada, Denmark, Finland, Hong Kong,
> Ireland, Israel, Mexico, New Zealand, Norway, Portugal, Russia,
> Singapore, South Korea, Sweden, Switzerland and Taiwan) can now sell
> paid apps on Android Market. Over the next 2 weeks, users from 18 new
> countries (Argentina, Brazil, Belgium, Czech Republic, Denmark,
> Finland, Hong Kong, India, Ireland, Israel, Mexico, Norway, Poland,
> Portugal, Russia, Singapore, Sweden, and Taiwan) will be able to
> purchase paid apps from Android Market.


This still sucks as there's 18 new sellers vs 20 buyers, which
means that developers from 2 countries (namely South Korea and
Poland) are still left behind and can't sell anyting to users in
their own countries. That's lame.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Setting/Passing values

2010-09-30 Thread rb
Thanks for shedding some light on this issue.

Here's some of my code:

--- Main --

package com.calculator;

import android.app.Activity;
import android.content.Intent;
import android.graphics.Color;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;

public class Calculator extends Activity {

private static final int MY_SETUP = 0;
private static final int MY_ABOUT = 1;

/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);

-- code of main calculation --

// options menu

// Called only the first time the options menu is displayed.
// Create the menu entries.
// Menu adds items in the order shown.
public boolean onCreateOptionsMenu(Menu menu) {
super.onCreateOptionsMenu(menu);
menu.add("Setup")
.setIcon(android.R.drawable.ic_menu_preferences);
menu.add("About")
.setIcon(android.R.drawable.ic_menu_info_details);
return true;
}

// handle menu selected
public boolean onOptionsItemSelected(MenuItem item){

 if (item.getTitle().equals("Setup")){
Intent intent = new Intent(this,
com.calculator.setup.class);
startActivityForResult(intent, MY_SETUP);
return true;
 }

 if (item.getTitle().equals("About")){
 Intent intent = new Intent(this, com.calculator.about.class);
 startActivityForResult(intent, MY_ABOUT);
return true;
 }
return false;
}
}
--- Setup --

package com.calculator;

import java.io.DataInputStream;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.util.Arrays;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.RadioButton;
import android.widget.RadioGroup;


public class setup extends Activity {
public Boolean changeGroup = false;
public int fps;
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);

setContentView(R.layout.dialogsetup);

-- code of setup  Here you check for various clicks for radio and
regular buttons. --
}


I was going to save and read the data from a file which would be
stored
in the phones default applications directory as one file.

Not sure how you would use the preference activity for storing name/
values as
I need to store and retrieve 6 different items.

An example would be:
radioButtonValue = "30"
editTextValue = "5:02"

I need to take those values and use them in the main screen for either
calculation or display.

Any chance you could reply with some code on how I could utilize the
preferences activity
from the code I have provided?


On Sep 30, 4:14 pm, Mark Murphy  wrote:
> On Thu, Sep 30, 2010 at 6:09 PM, rb  wrote:
> > How do you set/pass values from one screen (activity) to another?
>
> That depends on the nature of the "values".
>
> > When you press the menu button, you get the options menu.  If you
> > select "Setup", then
> > it will display the setup screen.  Now what I need to do is take the
> > values from the setup screen (radio button and text values)
> > and place them in the main screen so that when you exit the setup
> > screen and go back to the main
> > screen, you can take those values and use them in your main code.
>
> That sounds like:
>
> -- the "setup screen" should be a PreferenceActivity
> -- the main activity should load its preferences in onStart(), or use
> a preference-change listener, to pick up the changed preferences
>
> If, for whatever reason, you want to collect preferences by means
> other than the preferences system, and so your setup screen is just an
> ordinary activity, have the main activity use startActivityForResult()
> and have the setup screen use setResult() to pass back the data via
> Intent extras.
>
> However, I really recommend that preferences be collected by the
> preference system wherever possible. People bitch and moan about how
> Android applications have no consistent UI. Preferences is one of the
> few places where Android makes it relatively painless to offer a
> consistent UI.
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> _The Busy Coder's Guide to Android Development_ Version 3.1 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

[android-developers] Re: scrollbarAlwaysDrawVerticalTrack doesn't work with ListView

2010-09-30 Thread jlopeznava...@gmail.com
Ok, thanks for the tip.

On Sep 30, 6:50 pm, Romain Guy  wrote:
> The track is not the scrollbar, the track is what the scrollbar
> "slides" into. The default theme does not have a track anymore. The
> track is normally shown only when the view can scroll and this
> attribute can be used to show the track even when you can't scroll. In
> your case I believe you want to disable scrollbars fading instead. Or
> you should provide your own scrollbar track drawable.
>
> On Thu, Sep 30, 2010 at 8:10 AM, jlopeznava...@gmail.com
>
>
>
>
>
>  wrote:
> > Hi, I have a ListView and I want it show the vertical scrollbar always
> > so the user can know there are more options below.
> > I ha tried the scrollbarAlwaysDrawVerticalTrack="true" but it doesn't
> > work, any idea/suggestion?
>
> > Thanks in advance.
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en
>
> --
> Romain Guy
> Android framework engineer
> romain...@android.com
>
> Note: please don't send private questions to me, as I don't have time
> to provide private support.  All such questions should be posted on
> public forums, where I and others can see and answer them

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


[android-developers] New countries !!!!

2010-09-30 Thread Yahel
Effective today, developers from 20 additional countries (Argentina,
Australia, Belgium, Brazil, Canada, Denmark, Finland, Hong Kong,
Ireland, Israel, Mexico, New Zealand, Norway, Portugal, Russia,
Singapore, South Korea, Sweden, Switzerland and Taiwan) can now sell
paid apps on Android Market. Over the next 2 weeks, users from 18 new
countries (Argentina, Brazil, Belgium, Czech Republic, Denmark,
Finland, Hong Kong, India, Ireland, Israel, Mexico, Norway, Poland,
Portugal, Russia, Singapore, Sweden, and Taiwan) will be able to
purchase paid apps from Android Market.

Is that awsome or what !!

Good job Android !!

Yahel

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


[android-developers] No access to Errors reports for unpublished apps?

2010-09-30 Thread { Devdroid }
Hi,

I noticed that when I unpublish app for which I see fresh error
reports in Market console I no longer can access
these error reports as long as app is unpublised. When I publish it
back, "Errors" reappears. Is is it me, or Market
sucks there too?

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


Re: [android-developers] Setting/Passing values

2010-09-30 Thread Mark Murphy
On Thu, Sep 30, 2010 at 6:09 PM, rb  wrote:
> How do you set/pass values from one screen (activity) to another?

That depends on the nature of the "values".

> When you press the menu button, you get the options menu.  If you
> select "Setup", then
> it will display the setup screen.  Now what I need to do is take the
> values from the setup screen (radio button and text values)
> and place them in the main screen so that when you exit the setup
> screen and go back to the main
> screen, you can take those values and use them in your main code.

That sounds like:

-- the "setup screen" should be a PreferenceActivity
-- the main activity should load its preferences in onStart(), or use
a preference-change listener, to pick up the changed preferences

If, for whatever reason, you want to collect preferences by means
other than the preferences system, and so your setup screen is just an
ordinary activity, have the main activity use startActivityForResult()
and have the setup screen use setResult() to pass back the data via
Intent extras.

However, I really recommend that preferences be collected by the
preference system wherever possible. People bitch and moan about how
Android applications have no consistent UI. Preferences is one of the
few places where Android makes it relatively painless to offer a
consistent UI.

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

_The Busy Coder's Guide to Android Development_ Version 3.1 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] Setting/Passing values

2010-09-30 Thread rb
How do you set/pass values from one screen (activity) to another?

What I have in the R.layout.main view labeled Calculator contains the
code for doing calculations.
The main.xml contains the layout (view) of the main screen.

I have created an options menu which has another screen which shows
you setup (R.layout.setup).
The dialogsetup.xml contains the layout (view) for it.

When you press the menu button, you get the options menu.  If you
select "Setup", then
it will display the setup screen.  Now what I need to do is take the
values from the setup screen (radio button and text values)
and place them in the main screen so that when you exit the setup
screen and go back to the main
screen, you can take those values and use them in your main code.

Any coding would be appreciated.

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


[android-developers] JavaScript Debugging

2010-09-30 Thread Dan
Hello,

I've been trying to debug JavaScript in the emulator using the
instructions provided at 
http://developer.android.com/guide/developing/debug-tasks.html#DebuggingWebPages
but it has not worked. I am not using a customized WebView so I have
not overridden  WebView.onConsoleMessage(). Also, the same page works
well in Chrome and Firefox.  Is there anything I could be missing?

-Dan

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: "Proguard, Android, and the Licensing Server", or...

2010-09-30 Thread Dan Galpin
I'm glad we can finally talk about this.

http://android-developers.blogspot.com/2010/09/more-countries-more-sellers-more-buyers.html

Cheers,
Dan
-
Dan Galpin
Developer Advocate
Google, Inc.
-
If you actually want answers to your questions, it's far better to
post them here, because the collective brain of this forum far exceeds
my own.
-
On Sep 24, 12:54 am, gjs  wrote:
> Hi,
>
> I'd love to be in a position of being concerned about piracy, LVL,
> Progard & obfuscated stack traces.
>
> But alas I'm still one of the many dev's situated in a region
> (Australia) were I can buy apps from the Android Market but not
> publish a paid app.
>
> This is a big ongoing disincentive and leaves me to just publish free
> apps for kudos alone.
>
> Regards
>
> Plugs his free app anyway -
>
> Imageotag is a precision field camera app for Android V1.5+ devices.
> Imageotag snaps 16:9 geo-tagged images, embedding GPS & NET location,
> accelerometer, bearing, compass, date, light lux, magnetic field,
> pitch, proximity, roll, speed, temperature & time data.
> Imageotag creates Google Earth Tours from GPS image sequences.
>
> http://www.imageotag.com
>
> On Sep 24, 5:04 pm, Indicator Veritatis  wrote:
>
> > Google has too long a history of stonewalling and foot dragging. You
> > NEED that kind of 'motivation' -- unless you finally learn to take
> > responsibility for committing to fix your bugs without such unpleasant
> > prodding.
>
> > When, for example, are you going to fix AAC+ support in StageFright?
> > When will you fix 5211? It has been open since Dec 4, 2009! And what
> > about 2207? It has been open for longer, since March 2009. And it is
> > much more serious. You are losing customers because of this bug, yet
> > you do nothing.
>
> > Finally, would you consider the previous poster's proposal of "running
> > for the hills" more motivating? Which would you rather have?
> > Developers abandoning the Android platform because of the poor
> > prognosis for Proguard, or developers who stick with the platform but
> > loudly call for badly needed change?
>
> > On Sep 23, 9:34 pm, Dianne Hackborn  wrote:
>
> > > On Thu, Sep 23, 2010 at 6:50 PM, Indicator Veritatis 
> > > wrote:
>
> > > > But rather than run for the hills, we should pepper Google with
> > > > uncomplimentary speculations concerning their motives for this "turd
> > > > layering" until they 'fess up and give us a release date for a version
> > > > of ADT that will allow us to include Proguard in an Eclipse build
> > > > WITHOUT these problems.
>
> > > You sure know how to motivate people.
>
> > > --
> > > 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


Re: [android-developers] default email

2010-09-30 Thread Kostya Vasilyev
Take a look at k9mail - it's an open-sourced project based on the built-in
email client, with improvements and fixes. Perhaps it would be a good place
to contribute, or fork your own efforts while leveraging their work.

--
Kostya Vasilyev -- http://kmansoft.wordpress.com

30.09.2010 23:53 пользователь "richie rich"  написал:

did google write the default email app?

is the source code anywhere?

i guess i'll have to fix it myself, because it is utter crap. loses my
account settings weekly, and now, it is pulling in my gmail account
bodies (that isn't even setup in that client) for the emails in my
exchange account.

brand new phone. shiny 2.1 os

i know this is the dev site, so i'll just fix it myself and roll my
own email client since google apparently is too busy fixing the bugs
in cars nowadays to deliver decent applications that work.

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

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

[android-developers] "Unknown" group for SyncAdapter

2010-09-30 Thread Stephen Lau
I've built my own SyncAdapter and things seem to work okay, except on 
TouchWiz & Motoblur phones, there seems to be a label set as "Unknown"


On TouchWiz, this is visible if you look at the linked contacts for a 
contact, it shows "Unknown" as the provider.  Similarly if I go to the 
Groups tab in Contacts, it calls the group that all my SyncAdapter 
managed contacts are in as "Unknown".


It seems like I'm just not setting a label somewhere somehow, but I 
can't figure out where.  Anyone familiar with this?


cheers,
steve
--
stephen lau | st...@grommit.com | http://whacked.net | @stevel

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: OpenGL lockups in 2.2

2010-09-30 Thread timedilation
Jeremy, Glad to note that is has so far worked out for you.

Leigh, to your point, I also tested this with an explicit call to
eglWaitGL() function in my own version of GLSurfaceView (basically
this call was added just before the eglSwapBuffer() call). This also
fixed the freezing in my case. I just resorted to using glFinish()
because that way I didn't have to use my own version of GLSurfaceView.
So if Google changed their GLSurfaceView in the next release, my code
will not be affected much.

When I mentioned this to a Google developer advocate and he said that
this still needs to be fixed in the OS since it is an OS level bug.
eglSwapBuffers() called glFlush() internally anyways but it ends up
getting deadlocked once in a while on some of these devices we have
seen. Explicitly calling eglWaitGL() or glFinish() in the renderloop
*before* the eglSwapBuffers() appears to have fixed this issue in many
(if not all) cases. I still have users reporting to me that their
phones freezing even with the latest update, albeit much less
frequently.

Let's hope for Google to fix this once and for all in their next
release.



On Sep 30, 2:26 pm, Leigh McRae 
wrote:
>   You might want to look into the eglWait functions that are used to
> synchronize with the native rendering system.
>
> On 9/30/2010 2:07 PM, Jeremy Statz wrote:
>
>
>
>
>
> > I've tested this extensively at this point (including a 20-hour run on
> > an Incredible) and I think you're right, calling glFinish() seems like
> > it largely fixes the problem.  Wow, I'd really thought that one was
> > outmoded.
>
> > Related to this, the most recent EVO update was causing the
> > framebuffer to flicker with black squares sometimes on my wallpapers,
> > and calling glFinish() fixed that too.  And it fixed a similar
> > corruption I had reported a few days ago on the Nexus one.  It's the
> > magic HTC fixer-upper!
>
> > TimeDilation, you're my hero.
>
> > On Sep 21, 3:26 pm, timedilation  wrote:
> >> It was happening between 1 - 45 minutes into the app. Every single
> >> time.
> >> Maybe this is not a permanent fix and maybe it has just reduced the
> >> frequency of freezings. But as I mentioned before, so far I have not
> >> seen a single freeze since I made that change 2 days ago.
>
> >> On Sep 21, 4:05 pm, Robert Green  wrote:
>
> >>> And it was happening reliably before?
> >>> On Sep 21, 12:48 pm, timedilation  wrote:
>  I haven't seen any freeze since making that change (I am only testing
>  this on the HTC Desire running 2.2)
>  On Sep 21, 1:32 pm, Robert Green  wrote:
> > So after finishing with glFinish(), you haven't seen a freeze at all
> > or you just saw one now?  I'm not sure what to make of the "until now"
> > part :)
> > If you really think that's making a difference, I'll try it out and
> > see if it makes a difference for my games as well, though I have to
> > play for about an hour to see it happen.
> > On Sep 21, 12:10 pm, timedilation  wrote:
> >> Not sure if the following will fix the freezing in all cases but it
> >> appears to have fixed it in my app. I still have my fingers crossed
> >> about it although my app hasn't frozen for a while now - even when I
> >> let it run overnight on an HTC Desire 2.2.
> >> I first took the source code of GLSurfaceView into my custom class and
> >> added this line immediately before the eglSwapBuffer() call in the
> >> EGLHelper class function:
> >> mEgl.glWaitGL();
> >> This is a blocking call that waits for all existing GL commands to be
> >> processed before returning. With this line, the freezing seems to have
> >> stopped.
> >> I then realized that the glFinish() function does the same thing. So I
> >> went back to using the built-in GLSurfaceView and added the glFinish()
> >> call at the very end of my renderer.onDrawFrame() function. This had
> >> the same effect and I haven't seen a freeze until now. I suspect this
> >> call is just making the loop wait explicitly for all GL commands to be
> >> processed before rendering again. I took a look in the profiler and
> >> this call did not add any extra overhead (likely because the
> >> eglSwapBuffers() is also a blocking call and does the same thing -
> >> except that it freezes randomly).
> >> If the freezing starts again, I will update this post.
> >> Hope this works for you all out there too.
> >> On Sep 17, 7:46 am, String  wrote:
> >>> It's not all OpenGL implementations, that's for sure. I have 2 apps
> >>> with OpenGL live wallpapers; one has had the lockup problem, the other
> >>> hasn't. Architecturally, they're very similar - I based the later one
> >>> off the earlier. It was by pursuing the differences (like changing
> >>> textures mid-stream, as I discussed in an earlier post) that I've been
> >>> able to stop the lockups so far.
> >>> String
> >>> On Sep 17, 4:26 am, timedilation 

Re: [android-developers] default email

2010-09-30 Thread Chris Stewart
I'd love to see your attempt to "fix it" yourself.  No really, I would...

--
Chris Stewart
http://chriswstewart.com

Fantasy 
Football-
Android app for MFL fantasy football owners


On Thu, Sep 30, 2010 at 3:53 PM, richie rich  wrote:

> did google write the default email app?
>
> is the source code anywhere?
>
> i guess i'll have to fix it myself, because it is utter crap. loses my
> account settings weekly, and now, it is pulling in my gmail account
> bodies (that isn't even setup in that client) for the emails in my
> exchange account.
>
> brand new phone. shiny 2.1 os
>
> i know this is the dev site, so i'll just fix it myself and roll my
> own email client since google apparently is too busy fixing the bugs
> in cars nowadays to deliver decent applications that work.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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

Re: [android-developers] Re: Is anyone's active install % dropping like a rock lately?

2010-09-30 Thread Greg Donald
On Thu, Sep 30, 2010 at 2:43 PM, Justin Giles  wrote:
> I updated one of my apps on Tuesday.  I have noticed that the active install
> numbers were accumulating at a higher rate than my download numbers.  So, I
> think as people update the app, it is putting the active installs back to
> normal.  So far I've only gone up 1%, but it's nice to see it seemingly go
> back to normal.
> Justin

Normal?  You mean like all the way back to December when it broke?
Yeah, that'd be nice.


-- 
Greg Donald
destiney.com | gregdonald.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: Anchors aren't working

2010-09-30 Thread paladin
OK, found the answer. The WebView was in a ScrollView, when that is
unnecessary, and that was messing up the navigation.

On Sep 30, 3:20 pm, paladin  wrote:
> In an HTML page, I have at one place, , but in a
> WebView, when I click on updates, it doesn't
> jump to the correct place. It works fine if I load that page in a
> browser. It does nothing but mark that link as visited in the WebView.
> Is there some setting that I'm not correctly configuring?

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


Re: [android-developers] Anchors aren't working

2010-09-30 Thread Greg Donald
On Thu, Sep 30, 2010 at 2:20 PM, paladin  wrote:
> In an HTML page, I have at one place, , but in a
> WebView, when I click on updates, it doesn't
> jump to the correct place. It works fine if I load that page in a
> browser. It does nothing but mark that link as visited in the WebView.
> Is there some setting that I'm not correctly configuring?

You might try using full urls and implement you own shouldOverrideUrlLoading():

public class MyWebViewClient extends WebViewClient
{
  public boolean shouldOverrideUrlLoading( WebView view, String url )
  {
view.loadUrl( url );
return true;
  }
}

I'm guessing it's failing because your hrefs to your named anchors
aren't full urls, or you need to tell your webview to follow your
clicks, or both.


-- 
Greg Donald
destiney.com | gregdonald.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] default email

2010-09-30 Thread richie rich
did google write the default email app?

is the source code anywhere?

i guess i'll have to fix it myself, because it is utter crap. loses my
account settings weekly, and now, it is pulling in my gmail account
bodies (that isn't even setup in that client) for the emails in my
exchange account.

brand new phone. shiny 2.1 os

i know this is the dev site, so i'll just fix it myself and roll my
own email client since google apparently is too busy fixing the bugs
in cars nowadays to deliver decent applications that work.

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


Re: [android-developers] Re: Is anyone's active install % dropping like a rock lately?

2010-09-30 Thread Justin Giles
I updated one of my apps on Tuesday.  I have noticed that the active install
numbers were accumulating at a higher rate than my download numbers.  So, I
think as people update the app, it is putting the active installs back to
normal.  So far I've only gone up 1%, but it's nice to see it seemingly go
back to normal.

Justin


On Thu, Sep 30, 2010 at 2:34 PM, Greg Donald  wrote:

> On Thu, Sep 30, 2010 at 2:12 PM, scott19_68  wrote:
> > FYI:  Updated one of my apps that was affected by this issue - active
> > install percentage holding steady now, but has not returned to
> > anywhere close to 4 weeks ago.  Would like to know if past cases where
> > updates were counted as uninstalls are ever going to be corrected...
>
> Surely Google has log files they can use to fix things.
>
>
> --
> Greg Donald
> destiney.com | gregdonald.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
>

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

[android-developers] Need Ur Suggestion with Remote Service.

2010-09-30 Thread Jatin D Patel
My project is highly dependent on retrieving data via Remote Service.

For that i have one option of writing php scripts for calling via remote
http urls.

1. Is the methodology which i am going to adopt Efficient, bec there will be
almsot 15 php scripts for a single user throught an app.?
2. If Not plz suggest . an alternative.

Thanks for reply.

-- 
Thanks,
Jatin D N Patel
Masters, Computer Sci.
Suny Binghamton Univ, NY.

You Got To Think HIGH to RISE.

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

Re: [android-developers] Re: Is anyone's active install % dropping like a rock lately?

2010-09-30 Thread Greg Donald
On Thu, Sep 30, 2010 at 2:12 PM, scott19_68  wrote:
> FYI:  Updated one of my apps that was affected by this issue - active
> install percentage holding steady now, but has not returned to
> anywhere close to 4 weeks ago.  Would like to know if past cases where
> updates were counted as uninstalls are ever going to be corrected...

Surely Google has log files they can use to fix things.


-- 
Greg Donald
destiney.com | gregdonald.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] Anchors aren't working

2010-09-30 Thread paladin
In an HTML page, I have at one place, , but in a
WebView, when I click on updates, it doesn't
jump to the correct place. It works fine if I load that page in a
browser. It does nothing but mark that link as visited in the WebView.
Is there some setting that I'm not correctly configuring?

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


[android-developers] Re: Is anyone's active install % dropping like a rock lately?

2010-09-30 Thread scott19_68
FYI:  Updated one of my apps that was affected by this issue - active
install percentage holding steady now, but has not returned to
anywhere close to 4 weeks ago.  Would like to know if past cases where
updates were counted as uninstalls are ever going to be corrected...

On Sep 18, 1:37 pm, Peter Sinnott  wrote:
> Received this update this morning :
>
> Hello,
>
> We'd like to give you an update on this issue. We've previously stated
> that some application updates are incorrectly being counted as pure
> uninstalls rather than updates, causing the active installs metric to
> drop. We have now identified the root cause, and are working on a fix
> that we hope to release next week. However, due to the nature of the
> interaction between the Market client and our reporting
> infrastructure, it may take up to several weeks for your metrics in
> the Developer Console to return to normal. Again, we apologize for any
> inconvenience, and will keep you posted on our progress.
>
> Thank you for your continued patience.

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


Re: [android-developers] Hi All, Please help me!!

2010-09-30 Thread TreKing
On Thu, Sep 30, 2010 at 12:56 PM, Ulzii  wrote:

> The certificate that signed this apk is not valid until the future.


This usually means the time on your computer, at the time you signed your
app, was ahead of the real current time.

Try manually resetting your system clock to like a day in the past and try
again.

-
TreKing  - Chicago
transit tracking app for Android-powered devices

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

Re: [android-developers] Re: Java classes not inclded in android

2010-09-30 Thread Fabrizio Giudici

 On 9/28/10 01:49 , Lance Nanek wrote:

I kind of managed this the other day in a hackish sort of way. I
wanted to use an open source RSS library that used java.beans.** Java
classes, which aren't in Android. So I downloaded the source for those
classes from the Apache Harmony project, ripped out all the references
to AWT stuff, and got the library source code imported and compiling
against it. Then I refactored the packages to notjava.beans.**. So
anyway, sometimes you can work out a substitute for the missing Java
classes and alter all references to point to that substitute.
I've answered to this question a number of times recently... The 
quickest way to do this is not by refactoring the classes, but by using 
static bytecode manipulation tools. They are able to replace the 
references directly in bytecode, without need of patching sources and 
recompile them. They are available both for Ant and Maven.


--
Fabrizio Giudici - Java Architect, Project Manager
Tidalwave s.a.s. - "We make Java work. Everywhere."
java.net/blog/fabriziogiudici - www.tidalwave.it/people
fabrizio.giud...@tidalwave.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] Mount sdcard USB Storage through adb.

2010-09-30 Thread Nathan
I can't seem to find a command that will allow me to mount/unmount the
sdcard from the adb prompt.

>From the documentation, it appears that this can't be done in an
emulator, so I am trying with a Nexus One.

I would like to simulate the card being mounted or unmounted while my
Activity is active. I can't do this on the Nexus One through the
notification menu, because this will pause and then resume and
activity, during which time storage card broadcast notifications are
not sent.

I know other devices can and do mount the storage without leaving an
Activity, in particular because they will automount the storage
whenever the USB is plugged in (according to users, even if you tell
it not to). For that reason, this is a case I want to test.

Nathan

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


Re: [android-developers] Re: OpenGL lockups in 2.2

2010-09-30 Thread Leigh McRae
 You might want to look into the eglWait functions that are used to 
synchronize with the native rendering system.


On 9/30/2010 2:07 PM, Jeremy Statz wrote:

I've tested this extensively at this point (including a 20-hour run on
an Incredible) and I think you're right, calling glFinish() seems like
it largely fixes the problem.  Wow, I'd really thought that one was
outmoded.

Related to this, the most recent EVO update was causing the
framebuffer to flicker with black squares sometimes on my wallpapers,
and calling glFinish() fixed that too.  And it fixed a similar
corruption I had reported a few days ago on the Nexus one.  It's the
magic HTC fixer-upper!

TimeDilation, you're my hero.


On Sep 21, 3:26 pm, timedilation  wrote:

It was happening between 1 - 45 minutes into the app. Every single
time.
Maybe this is not a permanent fix and maybe it has just reduced the
frequency of freezings. But as I mentioned before, so far I have not
seen a single freeze since I made that change 2 days ago.

On Sep 21, 4:05 pm, Robert Green  wrote:








And it was happening reliably before?
On Sep 21, 12:48 pm, timedilation  wrote:

I haven't seen any freeze since making that change (I am only testing
this on the HTC Desire running 2.2)
On Sep 21, 1:32 pm, Robert Green  wrote:

So after finishing with glFinish(), you haven't seen a freeze at all
or you just saw one now?  I'm not sure what to make of the "until now"
part :)
If you really think that's making a difference, I'll try it out and
see if it makes a difference for my games as well, though I have to
play for about an hour to see it happen.
On Sep 21, 12:10 pm, timedilation  wrote:

Not sure if the following will fix the freezing in all cases but it
appears to have fixed it in my app. I still have my fingers crossed
about it although my app hasn't frozen for a while now - even when I
let it run overnight on an HTC Desire 2.2.
I first took the source code of GLSurfaceView into my custom class and
added this line immediately before the eglSwapBuffer() call in the
EGLHelper class function:
mEgl.glWaitGL();
This is a blocking call that waits for all existing GL commands to be
processed before returning. With this line, the freezing seems to have
stopped.
I then realized that the glFinish() function does the same thing. So I
went back to using the built-in GLSurfaceView and added the glFinish()
call at the very end of my renderer.onDrawFrame() function. This had
the same effect and I haven't seen a freeze until now. I suspect this
call is just making the loop wait explicitly for all GL commands to be
processed before rendering again. I took a look in the profiler and
this call did not add any extra overhead (likely because the
eglSwapBuffers() is also a blocking call and does the same thing -
except that it freezes randomly).
If the freezing starts again, I will update this post.
Hope this works for you all out there too.
On Sep 17, 7:46 am, String  wrote:

It's not all OpenGL implementations, that's for sure. I have 2 apps
with OpenGL live wallpapers; one has had the lockup problem, the other
hasn't. Architecturally, they're very similar - I based the later one
off the earlier. It was by pursuing the differences (like changing
textures mid-stream, as I discussed in an earlier post) that I've been
able to stop the lockups so far.
String
On Sep 17, 4:26 am, timedilation  wrote:

I have played games like Winds of Steel for hours on my HTC desire.
Surely they must be using opengl as well (I think). And the FPS is
also pretty good. How's it that those games do not freeze at all? I
need to dissect those and see what calls they are making.
On Sep 15, 12:17 pm, Jeremy Statz  wrote:

I just let the same wallpaper run uninterrupted on a Motorola Droid
for something like 16 hours and it's still fine.  I would've expected
my Incredible to have hit the problem by then.  I also haven't heard
any reports of this from folks with a  Galaxy S variant.
On Sep 14, 7:38 pm, timedilation  wrote:

This appears to be an HTC specific bug. My app never freezes on the
Motorla Droid. EVER. It is very stable on the Droid and I have tested
it for about 4months without a single freeze. Interestingly though it
never froze on my G1 either. The G1 I have is the ADP1 phone I bought
directly from Google.
All other HTC phones that I have exhibit the freezing - Evo, Desire
and Nexus One (which is also from HTC I believe).
Apart from that I tested it for a month on Samsung Moment. There was
NO freezing there either.
I have been in touch with a Google developer advocate and I have
submitted the bug report to his team. They are looking into this as
well.
On Sep 14, 8:23 pm, Jeremy Statz  wrote:

That's my experience as well.  All my log results say that there's no
loading or anything necessary -- the frame it dies on is bog standard,
with drawFrame going from beginning to end.  Any loading is long since
done.
I'm currently wondering if this is an HTC driver bug.  I'm going to
let this run on a Motorola Dr

[android-developers] Re: Hi All, Please help me!!

2010-09-30 Thread Andy Burns

Ulzii wrote:


When I upload my Android App to market it gives as next message:
The certificate that signed this apk is not valid until the future.
Create a new certificate.
I setup my duration 50 years. I have signed my App from Eclippse.


Sounds like the problem isn't the expiry time of your certificate, but 
the issued at time ...



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


[android-developers] AndroidHttpClient documentation error - no ability to add interceptor

2010-09-30 Thread Carl H.
The documentation mention that AndroidHttpClient subclass
DefaultHttpClient while it implements HttpClient. Furthermore, it says
that it gives the ability to users to add interceptors which is not
the case. Currently implementing my own until fixed.

Thanks,
Carl

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: OpenGL lockups in 2.2

2010-09-30 Thread Jeremy Statz
I've tested this extensively at this point (including a 20-hour run on
an Incredible) and I think you're right, calling glFinish() seems like
it largely fixes the problem.  Wow, I'd really thought that one was
outmoded.

Related to this, the most recent EVO update was causing the
framebuffer to flicker with black squares sometimes on my wallpapers,
and calling glFinish() fixed that too.  And it fixed a similar
corruption I had reported a few days ago on the Nexus one.  It's the
magic HTC fixer-upper!

TimeDilation, you're my hero.


On Sep 21, 3:26 pm, timedilation  wrote:
> It was happening between 1 - 45 minutes into the app. Every single
> time.
> Maybe this is not a permanent fix and maybe it has just reduced the
> frequency of freezings. But as I mentioned before, so far I have not
> seen a single freeze since I made that change 2 days ago.
>
> On Sep 21, 4:05 pm, Robert Green  wrote:
>
>
>
>
>
>
>
> > And it was happening reliably before?
>
> > On Sep 21, 12:48 pm, timedilation  wrote:
>
> > > I haven't seen any freeze since making that change (I am only testing
> > > this on the HTC Desire running 2.2)
>
> > > On Sep 21, 1:32 pm, Robert Green  wrote:
>
> > > > So after finishing with glFinish(), you haven't seen a freeze at all
> > > > or you just saw one now?  I'm not sure what to make of the "until now"
> > > > part :)
>
> > > > If you really think that's making a difference, I'll try it out and
> > > > see if it makes a difference for my games as well, though I have to
> > > > play for about an hour to see it happen.
>
> > > > On Sep 21, 12:10 pm, timedilation  wrote:
>
> > > > > Not sure if the following will fix the freezing in all cases but it
> > > > > appears to have fixed it in my app. I still have my fingers crossed
> > > > > about it although my app hasn't frozen for a while now - even when I
> > > > > let it run overnight on an HTC Desire 2.2.
>
> > > > > I first took the source code of GLSurfaceView into my custom class and
> > > > > added this line immediately before the eglSwapBuffer() call in the
> > > > > EGLHelper class function:
>
> > > > > mEgl.glWaitGL();
>
> > > > > This is a blocking call that waits for all existing GL commands to be
> > > > > processed before returning. With this line, the freezing seems to have
> > > > > stopped.
>
> > > > > I then realized that the glFinish() function does the same thing. So I
> > > > > went back to using the built-in GLSurfaceView and added the glFinish()
> > > > > call at the very end of my renderer.onDrawFrame() function. This had
> > > > > the same effect and I haven't seen a freeze until now. I suspect this
> > > > > call is just making the loop wait explicitly for all GL commands to be
> > > > > processed before rendering again. I took a look in the profiler and
> > > > > this call did not add any extra overhead (likely because the
> > > > > eglSwapBuffers() is also a blocking call and does the same thing -
> > > > > except that it freezes randomly).
>
> > > > > If the freezing starts again, I will update this post.
> > > > > Hope this works for you all out there too.
>
> > > > > On Sep 17, 7:46 am, String  wrote:
>
> > > > > > It's not all OpenGL implementations, that's for sure. I have 2 apps
> > > > > > with OpenGL live wallpapers; one has had the lockup problem, the 
> > > > > > other
> > > > > > hasn't. Architecturally, they're very similar - I based the later 
> > > > > > one
> > > > > > off the earlier. It was by pursuing the differences (like changing
> > > > > > textures mid-stream, as I discussed in an earlier post) that I've 
> > > > > > been
> > > > > > able to stop the lockups so far.
>
> > > > > > String
>
> > > > > > On Sep 17, 4:26 am, timedilation  wrote:
>
> > > > > > > I have played games like Winds of Steel for hours on my HTC 
> > > > > > > desire.
> > > > > > > Surely they must be using opengl as well (I think). And the FPS is
> > > > > > > also pretty good. How's it that those games do not freeze at all? 
> > > > > > > I
> > > > > > > need to dissect those and see what calls they are making.
>
> > > > > > > On Sep 15, 12:17 pm, Jeremy Statz  wrote:
>
> > > > > > > > I just let the same wallpaper run uninterrupted on a Motorola 
> > > > > > > > Droid
> > > > > > > > for something like 16 hours and it's still fine.  I would've 
> > > > > > > > expected
> > > > > > > > my Incredible to have hit the problem by then.  I also haven't 
> > > > > > > > heard
> > > > > > > > any reports of this from folks with a  Galaxy S variant.
>
> > > > > > > > On Sep 14, 7:38 pm, timedilation  wrote:
>
> > > > > > > > > This appears to be an HTC specific bug. My app never freezes 
> > > > > > > > > on the
> > > > > > > > > Motorla Droid. EVER. It is very stable on the Droid and I 
> > > > > > > > > have tested
> > > > > > > > > it for about 4months without a single freeze. Interestingly 
> > > > > > > > > though it
> > > > > > > > > never froze on my G1 either. The G1 I have is the ADP1 phone 
> > > > > > > > > I bought
> > > > > > 

[android-developers] A problem regarding Alarm Clock application in Android

2010-09-30 Thread Tarun S
Hi,
I am pretty new in Android.
I have noticed a problem in Alarm Clock application that comes with
the Android Codebase.
Let me explain the problem first.
Current Time is 12:15 pm. Snooze time is 10 mins.
I have set an alarm at 12:30 pm.
I have set another alarm at 12:35 pm.
When the fist alarm fires I snooze the alarm. It will ring again at
12:40 pm.
In this case the second alarm which I have set at 12:35pm does not
fire.

Please help me in this.
As per I know in Android at a time one alarm can be set using
AlarmManager.set () method. In this case in AlarmReceiver.java class
when on alarm fires it set the next alarm. But if I snooze the alarm
it will overwrite the previous alarm the snooze alarm. I may not be
correct. Please tell me the solution of this problem.

Thanks and Regards,
Tarun S

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


[android-developers] Hi All, Please help me!!

2010-09-30 Thread Ulzii
When I upload my Android App to market it gives as next message:

The certificate that signed this apk is not valid until the future.
Create a new certificate.

Help me to solve this problem.

I setup my duration 50 years. I have signed my App from Eclippse.

Thanks,
Ulzii

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


Re: [android-developers] Re: Icons to support different screens

2010-09-30 Thread Brad Gies


Thanks... I'll definitely have a look at that today sometime. Appreciate 
it very much...



Sincerely,

Brad Gies
---
Bistro Bot - Bistro Blurb
http://bgies.com
http://bistroblurb.com
http://ihottonight.com
http://forcethetruth.com
---

Everything in moderation, including abstinence

Never doubt that a small group of thoughtful, committed people can
change the world. Indeed. It is the only thing that ever has - Margaret Mead


On 30/09/2010 9:53 AM, Yahel wrote:

I'm not sure this might help you, this is what I use on the server
side for my app 'a World of Faces' : It allows to get an image to a
specified size no matter what. It's very efficient and does not
consume much cpu or memory on the server. I tweaked the code quite a
lot for my purpose but it works fine :

// Smart Image Resizer 1.4.1
http://shiftingpixel.com/2008/03/03/smart-image-resizer/

People can then send you any size of graphics and you'll be able to
use them however you like.

Yahel
http://www.a-world-of-faces.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: VerifyError reloaded

2010-09-30 Thread fadden
On Sep 29, 11:32 am, Dirk  wrote:
> In order to get around the problem, I tried to replace the whole
> switch-statement with lots of if-elseif statements.
> Unfortunately, another problem arose. The Verifyer now says:
>
> 09-29 18:02:44.058: WARN/dalvikvm(450): VFY: arbitrarily rejecting
> large method (regs=127 count=34916)

I fixed that one too while I was at it.  The limit was intended to
prevent the verifier from soaking up huge amounts of memory, but (a)
the limit is too low, and (b) there are better mechanisms in the
system for doing that.  So now it's just a warning that says, "hey,
this is huge".

With both fixes in place, the original code passes.

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


Re: [android-developers] How to show notification while service is running..?

2010-09-30 Thread TreKing
On Thu, Sep 30, 2010 at 12:00 PM, Gold  wrote:

> I want to show notification in service..!


OK..! 

-
TreKing  - Chicago
transit tracking app for Android-powered devices

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

Re: [android-developers] Re: Issue in importing apk lib file to application

2010-09-30 Thread Mark Murphy
On Thu, Sep 30, 2010 at 1:16 PM, Namrata  wrote:
> I tried setting up 2 test projects as per the instructions given in
> http://developer.android.com/guide/developing/other-ide.html#libraryP...
> TestLib (libray project) and TestApp (application). Setup is done
> successfully. ant compile on TestLib works perfectly. When I tried ant
> debug/release on TestApp it is giving me following errors.

If I had to guess, TestApp does not reference TestLib:

http://developer.android.com/guide/developing/other-ide.html#libraryReference

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

_The Busy Coder's Guide to Android Development_ Version 3.1 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] Re: Issue in importing apk lib file to application

2010-09-30 Thread Namrata
Mark,
I tried setting up 2 test projects as per the instructions given in
http://developer.android.com/guide/developing/other-ide.html#libraryP...
TestLib (libray project) and TestApp (application). Setup is done
successfully. ant compile on TestLib works perfectly. When I tried ant
debug/release on TestApp it is giving me following errors.

compile:
[javac] Compiling 4 source files to /home/axa/test/project2/bin/
classes
[javac] /home/axa/backup/project2/src/com/axa/testapp/
TestAppView.java:6: cannot find symbol
[javac] symbol: class TestLib
[javac] public class TestAppView extends TestLib
[javac]  ^
[javac] /home/axa/test/project2/src/com/axa/testapp/
TestAppView.java:12: cannot find symbol
[javac] symbol  : variable super
[javac] location: class com.axa.testapp.TestAppView
[javac] super.onCreate(savedInstanceState);
[javac] ^
[javac] /home/axa/backup/project2/src/com/axa/testapp/
TestAppView.java:13: cannot find symbol
[javac] symbol  : method setContentView(int)
[javac] location: class com.axa.testapp.TestAppView
[javac] setContentView(R.layout.main);
[javac] ^
[javac] /home/axa/backup/project2/src/com/axa/testapp/
TestAppView.java:9: method does not override or implement a method
from a supertype
[javac] @Override
[javac] ^
[javac] 4 errors


Did I missed anything which I supposed to do here?


On Sep 30, 7:41 pm, Namrata  wrote:
> thanks Mark..will give it a try..thank you very much
>
> On Sep 30, 7:33 pm, Mark Murphy  wrote:
>
> > On Thu, Sep 30, 2010 at 10:23 AM, Namrata  wrote:
> > > ok..so you mean I can't import apk..Is there a way to import complete
> > > code(src folder) of other project to current application?
>
> > Put the common code in an Android library project and reference that
> > library project from both applications:
>
> >http://developer.android.com/guide/developing/eclipse-adt.html#librar..
>
> > Or, have one project build a JAR that the other project uses, though
> > this technique does not support the use of resources and other
> > Android-specific stuff.
>
> > --
> > Mark Murphy (a Commons 
> > Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> > _The Busy Coder's Guide to *Advanced* Android Development_ Version 1.9
> > 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] Re: Interactive Touchscreen plays sounds twice

2010-09-30 Thread Sarwar Erfan

Two events are generated...
First : ACTION_DOWN
Second: ACTION_UP

Try something like this in your event handler:

if (event.getAction() == MotionEvent.ACTION_DOWN) {
 //play sound here
}

Regards
Sarwar Erfan

On Sep 30, 4:11 am, ericmahlon  wrote:
> I have an interactive image which uses OnTouchListener to get the
> coordinates.  In doing so...if a user places their finger on the area
> it may hit it multiple times thus getting new coordinates within the
> area that plays the sounds...thus playing the sound twice.  Any
> suggestions on how to clear up this issue?
>
> 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


Re: [android-developers] Re: Free version or not?

2010-09-30 Thread Greg Donald
On Wed, Sep 29, 2010 at 5:22 PM, dm1973  wrote:
> Google doesn't set eCPMs. The market does. eCPMs function on a supply/
> demand curve. The supply went way up when they let more developers
> into the program. Hence the eCPM drop. In my experience google pays
> about as well as anyone.

Not for me.  When I first got into the beta program I began making a
lot more than the ad guys I was using before: Greystrip and AdMob.
That huge increase in revenue has since gone away and now I see no
reason to choose AdSense over anyone else.

> And it isn't so much that users don't
> understand about the arrow (that is some of it). It is more that
> developers are no longer getting paid for misclicks.

All my ad integrations were reviewed by Google before launch.  There
was only the tiniest chance of any mis-clicks because my banner
placement was not close to anything else the user would ever click.

> The net is the
> same (you get less money) but it isn't like Google is making more off
> your lower reimbursements. They are making more by cranking up the
> volume of ads they serve. And yeah it sucks as a developer when your
> revenue is cut in 1/3 over 2 days.

I saw a 90% drop in AdSense revenue overall from June and July to now.
 And that's the difference between thinking I could do Android
development fulltime or not.  I can only hope it picks back up before
the holiday season.  It seems more likely that ship has sailed.


-- 
Greg Donald
destiney.com | gregdonald.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


Re: [android-developers] Icons to support different screens

2010-09-30 Thread Kostya Vasilyev

 Brad,

30.09.2010 20:12, Brad Gies пишет:


Actually, just confirmation that the 24, 32 and 48 are the right sizes 
for the smaller icons is quite helpful. I can guess at the correct 
sizes for the larger icons, and then adjust as I test the different 
AVD's...


The "reference" device densities are: 120 / 160 / 240 for ldpi / mdpi / 
hdpi respectively.


http://developer.android.com/guide/practices/screens_support.html#range

This means that if you design the artwork you call "larger icons" at a 
certain size, then the hdpi version should be 6/4 (== 3/2), and ldpi - 
3/4 the size of the mdpi version (so hdpi artwork is exactly twice as 
tall / wide as ldpi).


The mdpi size should preferably be such it can be scaled to 3/2 and 3/4 
of the original size without producing fractional pixels.


I am another developer who loathes doing graphics for his programs, and 
rightly so, since I'm pretty bad at it.


What I found useful is to design my artwork in Photoshop at mdpi (== 
"normal") density first, trying to use shape objects and to avoid 
pixel-based tools as much as possible. This is important for next step: 
scaling the image up in Photoshop to go from mdpi to hdpi, since shapes 
scale up much better than raster data.


At this point I have with two Photoshop files, one for mdpi and one for 
hdpi. I then use "File | Save for Web & Devices" to export optimized 
.PNG images.


The mdpi and hdpi already have the right dimensions for exporting, so no 
problem there. To create the ldpi version, I export the mdpi file and 
specify smaller dimensions right in the export parameters window. I 
found that Photoshop often produces a better quality reduced size image 
than Android does at runtime, so having pre-built ldpi images is useful. 
Not all images need this, though: for some, it's ok to just have the 
mdpi and hdpi versions, and let Android do the scaling down for ldpi.


This workflow could be simplified by working in Photoshop only at hdpi 
density, and scaling during export for mdpi as well as ldpi. My first 
Android phone was an HTC Hero (mdpi), so I kind of made mdpi the center 
of my artwork-related process.


And finally, the link below lists standard icon sizes for various screen 
densities depending on where and how they are to be used (Launcher, 
Dialog, List View, etc.)


http://developer.android.com/guide/practices/ui_guidelines/icon_design.html

--
Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.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] How to show notification while service is running..?

2010-09-30 Thread Gold
Hi,

I want to show notification in service..!

While I click button in my home screen I just call
service.!

That service run every 30 seconds with the help of
timer..! I want to show result to user..!

How can I implement this..! Herewith I attached
code..


HOme screen
--

package com.servicetest;

import java.util.Timer;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.Toast;

public class Home extends Activity
{
private Button btn;
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
btn = (Button)findViewById(R.id.Button01);

btn.setOnClickListener(new OnClickListener() {

@Override
public void onClick(View v)
{
// TODO Auto-generated method stub
Toast.makeText(getApplicationContext(), "Hai",
Toast.LENGTH_SHORT).show();
Intent in = new Intent();
in.setClassName("com.servicetest", 
"com.servicetest.ServiceTest");
startService(in);
}
});
}
}


ServiceTest.java
---


package com.servicetest;

import java.util.Date;
import java.util.Timer;
import java.util.TimerTask;

import android.app.AlertDialog;
import android.app.Notification;
import android.app.NotificationManager;
import android.app.Service;
import android.content.Intent;
import android.media.MediaPlayer;
import android.os.IBinder;
import android.util.Log;
import android.widget.Toast;

public class ServiceTest extends Service
{
private Timer timer = new Timer();
private static final String TAG = "MyService";
MediaPlayer player;
WebserviceConnect wsConnect = new WebserviceConnect();
String result = "";
boolean flag = true;
private long delay = 1000;
public static final int NOTIFICATION_ID_RECEIVED = 01221;

@Override
public IBinder onBind(Intent intent)
{
return null;
}

@Override
public void onCreate()
{
Toast.makeText(this, "My Service Created",
Toast.LENGTH_LONG).show();
Log.d(TAG, "onCreate");
}

@Override
public void onDestroy()
{
Toast.makeText(this, "My Service Stopped",
Toast.LENGTH_LONG).show();
Log.d(TAG, "onDestroy");
}

@Override
public void onStart(Intent intent, int startid) {
Toast.makeText(this, "My Service Started",
Toast.LENGTH_LONG).show();
Log.d(TAG, "onStart");

timer.scheduleAtFixedRate(new TimerTask()
{

@Override
public void run()
{
// TODO Auto-generated method stub
result = wsConnect.Connect("CheckStatus", "ID", 
"7x897");
Log.d(TAG,result);
}

}, delay  , delay);

Log.d(TAG,result);
Toast.makeText(getApplicationContext(), result, 5).show();
if (result.equals("Success"))
{
timer.cancel();
timer = null;
}
}

}




Thanks & Warm Regards,
Gold

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Icons to support different screens

2010-09-30 Thread Yahel
I'm not sure this might help you, this is what I use on the server
side for my app 'a World of Faces' : It allows to get an image to a
specified size no matter what. It's very efficient and does not
consume much cpu or memory on the server. I tweaked the code quite a
lot for my purpose but it works fine :

// Smart Image Resizer 1.4.1
http://shiftingpixel.com/2008/03/03/smart-image-resizer/

People can then send you any size of graphics and you'll be able to
use them however you like.

Yahel
http://www.a-world-of-faces.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


Re: [android-developers] scrollbarAlwaysDrawVerticalTrack doesn't work with ListView

2010-09-30 Thread Romain Guy
The track is not the scrollbar, the track is what the scrollbar
"slides" into. The default theme does not have a track anymore. The
track is normally shown only when the view can scroll and this
attribute can be used to show the track even when you can't scroll. In
your case I believe you want to disable scrollbars fading instead. Or
you should provide your own scrollbar track drawable.

On Thu, Sep 30, 2010 at 8:10 AM, jlopeznava...@gmail.com
 wrote:
> Hi, I have a ListView and I want it show the vertical scrollbar always
> so the user can know there are more options below.
> I ha tried the scrollbarAlwaysDrawVerticalTrack="true" but it doesn't
> work, any idea/suggestion?
>
> Thanks in advance.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
Romain Guy
Android framework engineer
romain...@android.com

Note: please don't send private questions to me, as I don't have time
to provide private support.  All such questions should be posted on
public forums, where I and others can see and answer them

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


Re: [android-developers] Re: PDF Libraries for android

2010-09-30 Thread Mark Murphy
On Thu, Sep 30, 2010 at 12:44 PM, Bret Foreman  wrote:
> But it does support Linux so an Android port seems at least feasible.

Oh, no doubt. I'm just making sure the OP doesn't think it's ready for
Android immediately.

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

_The Busy Coder's Guide to Android Development_ Version 3.1 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] Re: PDF Libraries for android

2010-09-30 Thread Bret Foreman
But it does support Linux so an Android port seems at least feasible.

On Sep 30, 9:07 am, Mark Murphy  wrote:
> On Thu, Sep 30, 2010 at 12:03 PM, Bret 
> Foremanbegin_of_the_skype_highlighting end_of_the_skype_highlighting
>  wrote:
> >http://www.icepdf.org/
>
> Note that this doesn't support Android, at least based on their list
> of supported platforms:
>
> http://www.icepdf.org/product/supported-platforms.html
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> _The Busy Coder's Guide to *Advanced* Android Development_ Version 1.9
> 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


Re: [android-developers] Android Widget

2010-09-30 Thread Mark Murphy
On Thu, Sep 30, 2010 at 12:34 PM, yenpei  wrote:
> When I add a widget, there always the widget label name let's say
> "Weather widget" with "HTC" as the provider in 2 lines.

That is a feature of HTC Sense. It does not work that way on all phones.

> How do I add the creator of the widget like "HTC". All my current
> widget are showing "Android" as provider. Can we change it to some
> other name?

I am not aware that HTC has documented any way to specify this. My
guess is that they are simply distinguishing between ones they created
and other ones from elsewhere. Earlier versions of Sense had those in
separate groups rather than intermingled.

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

_The Busy Coder's Guide to Android Development_ Version 3.1 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 Widget

2010-09-30 Thread yenpei
Hi,

When I add a widget, there always the widget label name let's say
"Weather widget" with "HTC" as the provider in 2 lines.

How do I add the creator of the widget like "HTC". All my current
widget are showing "Android" as provider. Can we change it to some
other name?

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


[android-developers] Re: Launching application in Market

2010-09-30 Thread Brion Emde
I created a blog on blogspot.com and write about my apps there and
embed screencast video demonstrations, and stuff like that.

Then I put the address of the blog in field on the Marketplace.



On Sep 30, 3:13 am, "pramod.deore"  wrote:
> Hi, I want to launch my application in market. I ahd go 
> tohttp://market.android.com/publish/signupbut there they are asking for
> Website URL. But i don't have any website then what should I enter
> there? or is it necessary to have our own website to launch
> application in market?
>
> Thanks in advance

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


Re: [android-developers] Icons to support different screens

2010-09-30 Thread Mark Murphy
On Thu, Sep 30, 2010 at 12:12 PM, Brad Gies  wrote:
>> With respect to your larger icons, I have no clue what to tell you.
>
> Hah... Mark... now you're scaring me... you know as much about screen
> size/density etc. as anyone I know :).

You need to know more people, then, particularly ones that aren't as
graphically challenged as I. :-)

> In my case, I absolutely do not have the ability to learn this... my brain
> totally shuts down as soon as image/screen size/density etc. are mentioned.

Conversely, the reason I can't give you any more advice is that my
brain shuts down with your proposed UI. I just have no idea how you'll
ever get that to look good across multiple screen sizes. Any UI design
that effectively has to assume certain dimensions scares the heck out
of me.

> My preferred method of working has always been to build it and make it
> work well, then turn it over to someone with some artistic ability and have
> them make it look nice :).

You and me both.

> Actually, just confirmation that the 24, 32 and 48 are the right sizes for
> the smaller icons is quite helpful.

Well, it's more that they are a logical set of sizes if they are
applied to different densities. I can't tell you what is "right",
since that applies aesthetics, and there are hamsters with greater
aesthetic sense than I possess. But, they're a good starting point.

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

_The Busy Coder's Guide to Android Development_ Version 3.1 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


Re: [android-developers] Icons to support different screens

2010-09-30 Thread Brad Gies




With respect to your larger icons, I have no clue what to tell you.


Hah... Mark... now you're scaring me... you know as much about screen 
size/density etc. as anyone I know :).


In my case, I absolutely do not have the ability to learn this... my 
brain totally shuts down as soon as image/screen size/density etc. are 
mentioned. I just don't have any interest in graphics or display issues 
:).but ask me to design a web service to move data around... and 
great things happen :). My preferred method of working has always been 
to build it and make it work well, then turn it over to someone with 
some artistic ability and have them make it look nice :).


Actually, just confirmation that the 24, 32 and 48 are the right sizes 
for the smaller icons is quite helpful. I can guess at the correct sizes 
for the larger icons, and then adjust as I test the different AVD's...


Sincerely,

Brad Gies
---
Bistro Bot - Bistro Blurb
http://bgies.com
http://bistroblurb.com
http://ihottonight.com
http://forcethetruth.com
---

Everything in moderation, including abstinence

Never doubt that a small group of thoughtful, committed people can
change the world. Indeed. It is the only thing that ever has - Margaret Mead


On 30/09/2010 4:47 AM, Mark Murphy wrote:

On Wed, Sep 29, 2010 at 9:30 PM, Brad Gies  wrote:

For the smaller icons they will be in the typical position in the list view
on the left side, with text beside them, so this one is simpler, just need
to choose the correct icon size. From the reading I've done it looks like
24x24 for small screens, 32x32 for normal and 48x48 for large.




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


[android-developers] ResourceBundle.Control supported?

2010-09-30 Thread Eurig Jones
I have code that subclasses ResourceBundle.Control which allows it to
support XML based property bundles in an external library that I'm
using. Android doesn't like it though even though ResourceBundle
itself is supported...

Unable to resolve superclass of package.util.XMLControl (366)

XMLControl above extends ResourceBundle.Control.


I would suggest that this is a bug, although not completely sure
before reporting it. Anyone?

Regards,
Eurig Jones

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


Re: [android-developers] Re: PDF Libraries for android

2010-09-30 Thread Mark Murphy
On Thu, Sep 30, 2010 at 12:03 PM, Bret Foreman  wrote:
> http://www.icepdf.org/

Note that this doesn't support Android, at least based on their list
of supported platforms:

http://www.icepdf.org/product/supported-platforms.html

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

_The Busy Coder's Guide to *Advanced* Android Development_ Version 1.9
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] Re: Is anyone's active install % INCREASING lately?

2010-09-30 Thread OldSkoolMark
I'm wondering what happens to the counts when somebody upgrades to a
new phone, and doesn't reinstall an app that they had on their old
phone. Or does reinstall.

On Sep 30, 2:02 am, Doug  wrote:
> On Sep 28, 3:10 pm, JonFHancock  wrote:
>
> > It was.  I went up from 33% to 42%.  Now I'm back down to 39%.
>
> I've only been increasing, now from 44% to 45%.  No change in rank (in
> my category).

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: PDF Libraries for android

2010-09-30 Thread Bret Foreman
http://www.icepdf.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: PDF Libraries for android

2010-09-30 Thread Alessandro Pellizzari
Il Thu, 30 Sep 2010 11:57:51 -0400, Mark Murphy ha scritto:

> Sure. On the other hand, I am not aware of a PDF viewing library for
> Android.

There are a couple of projects on code.google.com, using mupdf, if I 
remember correctly.

But I think the license is GPL, so you must release your software as GPL 
if you use it.

Bye.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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 application in Market

2010-09-30 Thread Bret Foreman
I create a (free) website for each app and put up a capture of every
screen. Then, as questions come in about a particular screen or
function, I add commends below the relevant screen shot on the
website. After a while, most questions have been answered on the
website and I can just email a link when a repeat question comes in.
Quite useful for reducing support load over time.

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


Re: [android-developers] Re: PDF Libraries for android

2010-09-30 Thread Mark Murphy
On Thu, Sep 30, 2010 at 11:41 AM, viktor  wrote:
> I cant inform all app users that for viewing pdf from site, will need
> download additional application.
>
> It is not very comfortable to download app for simple thing.
>
> If you what to see YouTube video you don't need additional software,
> you can yous build-in.
>
> Am I right?

Sure. On the other hand, I am not aware of a PDF viewing library for
Android. And if one existed, there is a good chance it would be
commercial and priced well beyond your budget.

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

_The Busy Coder's Guide to *Advanced* Android Development_ Version 1.9
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


Re: [android-developers] Launching application in Market

2010-09-30 Thread TreKing
On Thu, Sep 30, 2010 at 2:13 AM, pramod.deore wrote:

> But i don't have any website then what should I enter there? or is it
> necessary to have our own website to launch application in market?
>

I don't think you need one, but you probably should have one.
Just leave it blank and see what happens. Worst case, you get an error and
have to put in something temporary.

-
TreKing  - Chicago
transit tracking app for Android-powered devices

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: PDF Libraries for android

2010-09-30 Thread viktor
Thanks DanH

I cant inform all app users that for viewing pdf from site, will need
download additional application.

It is not very comfortable to download app for simple thing.

If you what to see YouTube video you don't need additional software,
you can yous build-in.

Am I right?



On 30 Вер, 18:21, DanH  wrote:
> Certainly you can install a 3rd-party viewer as a separate app.  I
> don't know why you wouldn't be able to install something as a part of
> another app.
>
> On Sep 30, 9:44 am, viktor  wrote:
>
>
>
> > Hi,
>
> > Is it possible to use third-party libraries for display pdf?
>
> > I mean to use custom pdf view, in which I can pass pdf url and view it
> > in new Activity.
>
> > I want include libs into project and use their as resources.
>
> > It will be great to do that.

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


[android-developers] Cryptic ANR trace file from Android Market

2010-09-30 Thread LinusOnline
I'm analyzing some ANR traces that were reported by users of my
application via Android Market. I have some questions about ANR traces
in general:

How reliable are the traces? Most the traces I have make sense, but
many don't. There is one which doesn't mention any of my code at all,
like it's been created after my application was closed.

Other traces are missing one or more of the permanent threads of my
program. When, and under what circumstances, could a single thread
within a process be killed by the system? Or could my whole
application have been killed, while part of the trace went through
just before?

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


Re: [android-developers] Free version or not?

2010-09-30 Thread TreKing
On Tue, Sep 28, 2010 at 3:34 PM, Darrin Smith  wrote:

> Do you offer a slightly crippled free version, go for a full fledged
> version that has nuisance screens that tell people to upgrade, try the fully
> functional but with advertising route, or just release one app for purchase
> only?


Limited version w/ ads for me. Don't do nuisance screens, that'll just annoy
people.

My $0.02. If you're already releasing a paid app, you might as well release
a free version - it's not much more work and you'll get probably around 10X
more people trying your free version - a large pool of potential customers
that will translate to more sales than just having a paid app with no way to
let people test drive it (I'm assuming the number of people that actually
realize there's a refund option is limited).

-
TreKing  - Chicago
transit tracking app for Android-powered devices

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: PDF Libraries for android

2010-09-30 Thread DanH
Certainly you can install a 3rd-party viewer as a separate app.  I
don't know why you wouldn't be able to install something as a part of
another app.

On Sep 30, 9:44 am, viktor  wrote:
> Hi,
>
> Is it possible to use third-party libraries for display pdf?
>
> I mean to use custom pdf view, in which I can pass pdf url and view it
> in new Activity.
>
> I want include libs into project and use their as resources.
>
> It will be great to do that.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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 save the state of checked item in ListView having Checkbox

2010-09-30 Thread viktor
Do you use adapter with domain objects?

You can set the state(CheckBox) what you want into object.

While you make your views in a adapter set Tag for every checkboxes
with the item position.

Add listener for checkboxes, when checkbox is checked or unchecked set
this state to the odject.


On 30 Вер, 18:08, TreKing  wrote:
> On Wed, Sep 29, 2010 at 10:11 PM, Rocky  wrote:
> > so is any way so that i can store (print) the all the checked item not the
> > last item.
>
> What are you doing now that's not working?
>
> --- 
> --
> TreKing  - Chicago
> transit tracking app for Android-powered devices

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


[android-developers] scrollbarAlwaysDrawVerticalTrack doesn't work with ListView

2010-09-30 Thread jlopeznava...@gmail.com
Hi, I have a ListView and I want it show the vertical scrollbar always
so the user can know there are more options below.
I ha tried the scrollbarAlwaysDrawVerticalTrack="true" but it doesn't
work, any idea/suggestion?

Thanks in advance.

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


  1   2   >