[android-developers] printing key codes

2010-10-08 Thread nimish khandelwal
hi plz tell me how can i print key codes of keys pressed in phone.
actually i want to know which keys are pressed when i run my activity,so i
want them to be print.
i only find key event class but it is already taking a key codei want to
print that key code which is pressed.
plz help me

thanks
 Rachana

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Anybody experiencing a boost in sales since opening up to other countries?

2010-10-08 Thread JonFHancock
Just curious.  Are you all using anything other than the Google
Checkout interface to track sales?

I'm using a paid app called Android Market Report.  It hasn't been
particularly great, but it does show the net sales for each day/week/
month.

http://www.appbrain.com/app/android-market-report/com.wugland.marketreport

On Oct 8, 4:08 pm, "Tom / HyperBees"  wrote:
> 75% up but overall, partially because of Feint partially because of
> new countries. I'll look into the details (per app per country per
> day) over the weekend.
>
> On Oct 8, 11:32 pm, Zsolt Vasvari  wrote:
>
>
>
>
>
>
>
> > Sorry, I take that back.  There was one attempted sale in those 6
> > hours that failed with "The authorization of the customer's credit
> > card failed."
>
> > I see a lot of those in bunches, also.
>
> > On Oct 9, 6:28 am, Zsolt Vasvari  wrote:
>
> > > Yes, it is very strange.  No sales again for 6 hours, and these 6
> > > hours is when my app sells the most, as it's the afternoon/evening in
> > > the US.  I can't prove that something is wrong, but it certainly is
> > > mind-boggling.
>
> > > On Oct 9, 12:55 am, JonFHancock  wrote:
>
> > > > Another relatively slow day so far.  My app was showing in the market
> > > > (for me at least), but I unpublished and republished for good
> > > > measure.  We'll see...
>
> > > > On Oct 8, 6:29 am, Zsolt Vasvari  wrote:
>
> > > > > I just unpublushed and republished it and it showed up immediately.
> > > > > WTF
>
> > > > > On Oct 8, 9:24 pm, Zsolt Vasvari  wrote:
>
> > > > > > I can find my app if I search for it, but not if I just list the 
> > > > > > apps
> > > > > > in my category.
>
> > > > > > On Oct 8, 8:58 pm, String  wrote:
>
> > > > > > > On Oct 8, 7:20 am, Zsolt Vasvari  wrote:
>
> > > > > > > > Yes, this happened to me as well.  I think there must have been
> > > > > > > > something wrong with the market, as I haven't had a sale for 
> > > > > > > > about 10
> > > > > > > > hrs.
>
> > > > > > > You might want to see if your app is visible in the Market. My 
> > > > > > > top app
> > > > > > > has suddenly vanished, from both my G1 and N1, for no readily 
> > > > > > > apparent
> > > > > > > reason. I think the Market is going through one of its usual 
> > > > > > > periods
> > > > > > > of instability.
>
> > > > > > > String- Hide quoted text -
>
> > > > > > - Show quoted text -- Hide quoted text -
>
> > > > - Show quoted text -- Hide quoted text -
>
> > > - Show quoted text -

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


[android-developers] Re: Creating a .jar Library

2010-10-08 Thread Doug
Android project aren't meant to export jars from source code.  The
documentation makes this clear.  They export raw source which gets
compiled directly by dependent projects.  If you want to add a jar
file, I think you'll have to do arrange for Eclipse to pick up a
static jar from a different project with manual configuration.

On Oct 8, 5:39 pm, JoeSchmoe  wrote:
> Do I have to do anything special to create a .jar library with
> Android?  I'm simply creating an Android Project and then doing
> "Export Jar".
>
> I'm able to do "Add External Jar" and I can compile fine.  When I run,
> the classes are unresolved so I crash. (null exception...)
>
> I tried exporting as a "Runnable Jar", but the "Finish" button is
> greyed out.  Perhaps I need to create a different project to use a
> runnable jar?
>
> 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: WebView class from android supports xhtml, html4, html5 ?

2010-10-08 Thread 097
As I know, WebView (1.6 or above) supports XHTML and html4.
If you merely want to display text mixed with images, you can write a
html4 page.
Hope it will help you.

:-D

On Oct 8, 11:09 pm, Lidia  wrote:
> Hello,
>
> Does anyone know if the WebView class from android supports xhtml,
> html4, html5 for all platforms (from 1.5 to 2.2)?
>
> I need to use an internal browser in my app from which to open a
> sample page that contains some images.
> What is the best way to develop this pages, to make compatibbble for
> all phones?
> Has onyone idea?
>
> Thank you
> Lidia

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

2010-10-08 Thread Doug
On Oct 8, 12:26 pm, TreKing  wrote:
> fabrizio.giud...@tidalwave.it> wrote:
> > and maybe the count would fix itself with new upgrades...
>
> No. It gets better, but it's not fixed by any means. I pumped out an update
> shortly after the supposed fix - I've gone up 20% from the lowest point but
> have another 20% to go if it's to go back to "normal".

Please explain to me how exactly you know what "normal" is given that
the stat has a long reputation for being inaccurate over the past few
months.  :-)

Doug

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


Re: [android-developers] HTML5 is not working in WebView

2010-10-08 Thread rovi
I would like to first verify my webview have the correct setting. In
general, to work with HTML5 what options need to be turn on besides
enableJavaScript?

Thanks

Mark Murphy wrote:
> On Wed, Oct 6, 2010 at 12:06 PM, rovi  wrote:
> > I wrote several simple HTML5 apps which all works on Android browser,
> > but the webview in my activity doesn't work. I have enable javascript
> > in webview setting. Is there anything setting needed for HTML5 to
> > work?
>
> HTML5 is a broad concept. Could you be more specific?
>
> --
> Mark Murphy (a Commons Guy)
> http://commonsware.com | http://github.com/commonsguy
> http://commonsware.com/blog | http://twitter.com/commonsguy
>
> _Android Programming Tutorials_ Version 3.0.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: how to save a streaming into SD card?

2010-10-08 Thread 097
I'm afraid you can't at app level.

On Oct 9, 12:02 pm, Charlie88  wrote:
> hi cindy,
>
> Do you know how can I save a streaming video from the position the
> MediaPlayer is currently playing?
> Because since the streaming is already playing, I assume all the
> connection is fine. Can I use some shortcut commands to save the
> current playing streaming video? Thanks.
>
> Charlie
>
> On Oct 9, 11:53 am, cindy  wrote:
>
> > you can open a file, and write the content to file.
>
> > On Oct 8, 8:42 pm, Charlie88  wrote:
>
> > > Anyone know the mechanism of saving streaming in Android? Is it
> > > related to the network condition? And how should I specify the path of
> > > the file in SD card in my saving command? Thanks.- Hide quoted text -
>
> > - Show quoted text -

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


[android-developers] Re: where to browse the source code of Android

2010-10-08 Thread cindy
one more silly question, if I know I want to view a class, such as
MediaPlayer, how could I find it for those git files?

Thanks

Cindy

On Oct 8, 6:14 pm, Mark Murphy  wrote:
> http://source.android.comis the overall open source project home. A
> Web interface to the various git repositories can be found here:
>
> http://android.git.kernel.org/
>
> On Fri, Oct 8, 2010 at 9:12 PM, cindy  wrote:
> > Where could I browse the source code of Android?
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> _Android Programming Tutorials_ Version 3.0.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] Drawing on canvas random pngs as game pieces

2010-10-08 Thread acr
Hello,
I am in the beginning stages of developing my first 2d puzzle game
(7x7 grid kind of like bejeweled), and looking for the best method to
implement the following:

draw 49 random pieces(from 7 original pngs) on the board that can be
moved around without redrawing the whole board. I can get this drawn
out nicely with a basic for loop using
BitmapFactory.decodeResource(getResources(),... but Im not sure where
to go from here plus when I change the screen orientation the pieces
regenerate randomly. Any help pointing me in the right direction would
be greatly appreciated.

Thanks

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

2010-10-08 Thread nimish khandelwal
hi
plz elaborate this a little more...

Rachana

On Fri, Oct 8, 2010 at 11:02 AM, Bret Foreman wrote:

> That will really annoy his passengers when they can't use their phones
> to text either, especially his teenage daughter.
>
> Find the RMS sum of the accelerometer axis values and combine that
> with the deltas from the GPS. Probably best to combine them using a
> Kalman filter: http://en.wikipedia.org/wiki/Kalman_filter
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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: how to save a streaming into SD card?

2010-10-08 Thread Charlie88
hi cindy,

Do you know how can I save a streaming video from the position the
MediaPlayer is currently playing?
Because since the streaming is already playing, I assume all the
connection is fine. Can I use some shortcut commands to save the
current playing streaming video? Thanks.

Charlie

On Oct 9, 11:53 am, cindy  wrote:
> you can open a file, and write the content to file.
>
> On Oct 8, 8:42 pm, Charlie88  wrote:
>
>
>
> > Anyone know the mechanism of saving streaming in Android? Is it
> > related to the network condition? And how should I specify the path of
> > the file in SD card in my saving command? Thanks.- Hide quoted text -
>
> - Show quoted text -

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


[android-developers] Re: How to convert xml to svg in Android

2010-10-08 Thread 大风
Now I just parse the svg file the same way as xml file , in order to
get some information and the draw the picture on the Android by
myself , I can parse xml file but failed in svg file , Isn't svg based
on xml ?

On Oct 8, 11:43 pm, DanH  wrote:
> If at all possible you should use a utility to convert the SVG to some
> other format before loading it onto the phone.
>
> On Oct 8, 9:11 am, 大风  wrote:
>
>
>
> > So I want to write it myself, there are already apps that implement it
> > but no source code.
>
> > On Oct 8, 9:15 pm, jamesc  wrote:
>
> > > Android doesn't currently have SVG 
> > > support:http://developer.android.com/guide/appendix/media-formats.html
>
> > > On Oct 8, 1:03 pm, 大风  wrote:
>
> > > > Well,Now I want to parse the svg file in Android.What do I need to do?
> > > > On Oct 8, 7:06 pm, DanH  wrote:
>
> > > > > Rename it from .xml to .svg?  (Of course, this will only work if it's
> > > > > the valid XML for an SVG image.)
>
> > > > > On Oct 8, 2:12 am, 大风  wrote:
>
> > > > > > How to convert xml to svg in Android, Anybody anyideas?

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

2010-10-08 Thread cindy
you can open a file, and write the content to file.

On Oct 8, 8:42 pm, Charlie88  wrote:
> Anyone know the mechanism of saving streaming in Android? Is it
> related to the network condition? And how should I specify the path of
> the file in SD card in my saving command? Thanks.

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


[android-developers] Re: Android Web Server

2010-10-08 Thread kypriakos
Hey Bret,

I agree with you - the shift towards p2p will eventually enable this
architecture.

What did you use for a web server?

On Oct 7, 1:19 pm, Bret Foreman  wrote:
> I've run a web server from a PC using my phone as a gateway and the
> results were mixed. Some carriers will sense and block the inbound
> connection and others will not. But it's against the TOS for all
> carriers. That is set to change as more people do pier-to-pier web
> services, but it's not reliable now unless you buy a special phone
> plan that allows 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] how to save a streaming into SD card?

2010-10-08 Thread Charlie88
Anyone know the mechanism of saving streaming in Android? Is it
related to the network condition? And how should I specify the path of
the file in SD card in my saving command? 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: Is it possible

2010-10-08 Thread DanH
Well, at least partly it depends on how you're addressing the server.

On Oct 8, 9:57 pm, Jatin D Patel  wrote:
> I have developed an android app which calls the web service which runs
> smoothly on my emulator.
>
> Will the same appl work if i installed the same application on android
> mobile device and call the webservice. (server running on my laptop)
>
> --
> 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


[android-developers] Re: Checkbox are not getting selected

2010-10-08 Thread pramod.deore
Now I want to add selected checkboxes to array. Normally we checked
whether checkbox is selected or not as
if (checkBox.isChecked())
{
 //do something
}

but now I don't have reference to checkBox, then how to check whether
it is selected or not?

On Oct 9, 8:05 am, "pramod.deore"  wrote:
> Hey Rocky it works. Thanks
>
> On Oct 8, 5:25 pm, Rocky  wrote:
>
> > Hey Pramod,
> > just add  this line
>
> >  getListView().setChoiceMode(ListView.CHOICE_MODE_MULTIPLE);
>
> > On Fri, Oct 8, 2010 at 4:39 PM, pramod.deore 
> > wrote:
>
> > > Here is my .java file
>
> > > import android.app.ListActivity;
> > > import android.os.Bundle;
> > > import android.view.View;
> > > import android.widget.ArrayAdapter;
> > > import android.widget.CheckBox;
> > > import android.widget.ListView;
> > > import android.widget.Toast;
>
> > > public class MyList extends ListActivity {
>
> > >        /** Called when the activity is first created. */
> > >        public void onCreate(Bundle icicle) {
> > >                super.onCreate(icicle);
> > >                // Create an array of Strings, that will be put to our
> > > ListActivity
> > >                String[] names = new String[] { "Linux", "Windows7",
> > > "Eclipse",
> > > "Suse", "Ubuntu", "Solaris", "Android", "iPhone"};
> > >                // Create an ArrayAdapter, that will actually make the
> > > Strings above
> > >                // appear in the ListView
> > >                this.setListAdapter(new ArrayAdapter(this,
>
> > >  android.R.layout.simple_list_item_multiple_choice, names));
> > >        }
>
> > >       �...@override
> > >        protected void onListItemClick(ListView l, View v, int position,
> > > long
> > > id) {
> > >                super.onListItemClick(l, v, position, id);
> > >                // Get the item that was clicked
> > >                Object o = this.getListAdapter().getItem(position);
> > >                String keyword = o.toString();
> > >                Toast.makeText(this, "You selected: " + keyword,
> > > Toast.LENGTH_LONG)
> > >                                .show();
>
> > >        }
> > > }
>
> > > and xml file is just auto generated main.xml file.
>
> > > --
> > > You received this message because you are subscribed to the Google
> > > Groups "Android Developers" group.
> > > To post to this group, send email to android-developers@googlegroups.com
> > > To unsubscribe from this group, 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) +918030274295
> > (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: Checkbox are not getting selected

2010-10-08 Thread pramod.deore
Hey Rocky it works. Thanks

On Oct 8, 5:25 pm, Rocky  wrote:
> Hey Pramod,
> just add  this line
>
>  getListView().setChoiceMode(ListView.CHOICE_MODE_MULTIPLE);
>
> On Fri, Oct 8, 2010 at 4:39 PM, pramod.deore wrote:
>
>
>
> > Here is my .java file
>
> > import android.app.ListActivity;
> > import android.os.Bundle;
> > import android.view.View;
> > import android.widget.ArrayAdapter;
> > import android.widget.CheckBox;
> > import android.widget.ListView;
> > import android.widget.Toast;
>
> > public class MyList extends ListActivity {
>
> >        /** Called when the activity is first created. */
> >        public void onCreate(Bundle icicle) {
> >                super.onCreate(icicle);
> >                // Create an array of Strings, that will be put to our
> > ListActivity
> >                String[] names = new String[] { "Linux", "Windows7",
> > "Eclipse",
> > "Suse", "Ubuntu", "Solaris", "Android", "iPhone"};
> >                // Create an ArrayAdapter, that will actually make the
> > Strings above
> >                // appear in the ListView
> >                this.setListAdapter(new ArrayAdapter(this,
>
> >  android.R.layout.simple_list_item_multiple_choice, names));
> >        }
>
> >       �...@override
> >        protected void onListItemClick(ListView l, View v, int position,
> > long
> > id) {
> >                super.onListItemClick(l, v, position, id);
> >                // Get the item that was clicked
> >                Object o = this.getListAdapter().getItem(position);
> >                String keyword = o.toString();
> >                Toast.makeText(this, "You selected: " + keyword,
> > Toast.LENGTH_LONG)
> >                                .show();
>
> >        }
> > }
>
> > and xml file is just auto generated main.xml file.
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, 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) +918030274295
> (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] Is it possible

2010-10-08 Thread Jatin D Patel
I have developed an android app which calls the web service which runs
smoothly on my emulator.

Will the same appl work if i installed the same application on android
mobile device and call the webservice. (server running on my laptop)


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

[android-developers] Re: where to browse the source code of Android

2010-10-08 Thread DanH
Kinda off-topic:  What's a good, simple, stand-alone GIT client for
Windoze?

On Oct 8, 8:14 pm, Mark Murphy  wrote:
> http://source.android.comis the overall open source project home. A
> Web interface to the various git repositories can be found here:
>
> http://android.git.kernel.org/
>
> On Fri, Oct 8, 2010 at 9:12 PM, cindy  wrote:
> > Where could I browse the source code of Android?
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> _Android Programming Tutorials_ Version 3.0.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: Android - landscape-right and landscape-left orientation

2010-10-08 Thread DanH
Can you draw a screen upside-down?

On Oct 8, 6:02 pm, Dianne Hackborn  wrote:
> Sorry, there currently isn't any way to do this.  Even if you were to
> monitor the orientation yourself, there isn't a constant to set the screen
> to the alternative landscape orientation.  (Also trying to use the
> orientation listener for this would be very tricky since to do this
> correctly you need to know how to deal with screens that are landscape when
> not rotated etc.)
>
> A future version of the platform should have APIs to help with this.
>
>
>
> On Fri, Oct 8, 2010 at 5:07 AM, neha  wrote:
> > I have an application, that looks good in landscape orientation only
> > and i want to support both landscape-left and landscape-right
> > orientation.
>
> > If use setRequestedOrientation(SCREEN_ORIENTATION_LANDSCAPE), my
> > application gets restricted to landscape-right orientation (home key
> > is in the right direction) and does not go to landscape-left
> > orientation on device rotation.
>
> > If use setRequestedOrientation(SCREEN_ORIENTATION_SENSOR), application
> > goes to both landscape-left and landscape-right orientation but the
> > problem is that it goes to portrait orientation also, on device
> > rotation.
>
> > Can somebody please highlight, how can both landscape-right and
> > landscape-left orientations be supported without moving to portrait
> > orientation? Are there are API to set the orientation to both
> > landscape-left and landscape right orientation or some mechanism to
> > prevent application from moving to portrait orientation when
> > setRequestedOrientation(SCREEN_ORIENTATION_SENSOR) is used.
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en
>
> --
> Dianne Hackborn
> Android framework engineer
> hack...@android.com
>
> Note: please don't send private questions to me, as I don't have time to
> provide private support, and so won't reply to such e-mails.  All such
> questions should be posted on public forums, where I and others can see and
> answer them.

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


[android-developers] Re: Unit testing a class that uses android.os.Handler

2010-10-08 Thread DanH
Re starting a thread, on most JVMs it's a relatively expensive
process, and it would be better to keep a thread "warm", with a
Handler waiting, than to start new ones for every operation.

But of course that depends on how frequently you need the thread.
(Would be kinda nice if Android had an implicit async thread you could
throw stuff to, and Android started and ended the thread based on
usage and memory pressure, just like all the other components they
manage.)

Re your test case, it doesn't work because you misunderstand how the
event loop works.  Sending a Message to a Handler just queues the
message, and it doesn't get handled until the thread returns from
whatever work it's doing to the event loop.

Presumably something in the event loop triggers a call to
testHandlerShouldReceiveMessagesPostedToIt.  While that method is
running the event loop doesn't.  While you're waiting in sleep,
nothing's happening -- sleep does not run the event loop.  The event
loop will not run (and process your message) until you return from
testHandlerShouldReceiveMessagesPostedToIt.

What this means is that any sort of sequential programming where you
"wait" for something must be broken into separate segments and
threaded together via Messages and Intents and whatnot -- waiting in
any form is verboten (at least in the UI thread, or any thread that
uses an event loop).  Takes a whole new mindset to design an activity
that must, eg, handle a communication protocol or handshake with an
asynchronous activity.

On Oct 8, 6:47 pm, Jeremy Wadsack  wrote:
> Actually, having thought about this more, I recall my original intent
> was to only spawn the thread for the time needed to do the task. That
> means I don't have to worry about shutting down or closing the thread
> when the application closes. (The task responds to the application
> through one or more listeners that are Runnables, but it checks if
> they are null before calling them.)
>
> This approach assumes that the gc in Dalvik won't mind spinning up
> objects and threads and destroying them regularly. I don't know if
> that's better practice for the jvm, but this seems less likely to
> produce leaks, right?
>
> I changed the code to use a handler on the main thread. The handler,
> when it receives a message, starts a new thread with the long-running
> task. Unfortunately the handleMessage method is never called when the
> object is built from my test code.
>
> So let's take the threading out of it for a moment. Why does this
> basic test case fail?
>
> import android.os.Handler;
> import android.os.Message;
>
> public class TaskManagerExample {
>
>           // Test field for inspection
>           public boolean messageHandled = false;
>
>           private Handler handler = new Handler() {
>                 @Override
>                 public void handleMessage(Message msg) {
>                         messageHandled = true;
>                 }
>           };
>
>           public void start() {
>                   handler.sendEmptyMessage(0);
>           }
>
> }
>
> import android.app.Application;
> import android.test.ApplicationTestCase;
>
> public class TaskManagerExampleTest extends
> ApplicationTestCase {
>
>         public TaskManagerExampleTest() {
>                 super(Application.class);
>         }
>
>         public void testHandlerShouldReceiveMessagesPostedToIt() {
>                 TaskManagerExample example = new TaskManagerExample();
>                 example.start();
>                 try {
>                         Thread.sleep(500);
>                 } catch (InterruptedException e) {
>                 }
>                 assertTrue(example.messageHandled);
>         }
>
> }
>
> I put the sleep in there, just in case messages sent to the queue take
> some time to get processed. Seems half a second should be plenty of
> time (and keeps the test responsive). I tried it with five seconds and
> it still fails.
>
> What base *TestCase class should I be using the get Handlers, Loopers
> and the MessageQueue to run under test?
>
> --
> Jeremy Wadsack
>
> On Oct 8, 8:41 am, Lance Nanek  wrote:
>
> > Handler has multiple constructors. The ones that take a Looper
> > argument can take the Looper for a Thread other than the current one.
> > That way you don't need to create the Handler on that Thread and it is
> > easier to ensure it is not null on the Thread using it. There's also
> > an android.os.HandlerThread utility class that is pretty much just a
> > Thread with a Looper. It has a getLooper method that's easy to feed
> > into the Handler constructor and that avoids the issue with prepare()
> > taking a while sometimes and leaving you with a null longer than you'd
> > expect.
>
> > On Oct 7, 8:04 pm, DanH  wrote:
>
> > > Come to think of it, how would one create a Handler for another
> > > thread?  You'd have to dispatch the thread and have it create the
> > > Handler and pass the pointer back to you (we won't worry about how),
> > > but then that thread 

[android-developers] Re: Amazon android market. Anyone take the offer?

2010-10-08 Thread Lance Nanek
> I have been contacted by AppsLib and Archos. Compared to Amazon, no
> one has ever heard of AppsLib. But they are on the device, and
> Google's Market won't be. So I'll probably comply, even though some
> things won't work without GPS and compass.

The Archos 5 Internet Tablet has GPS. I don't know about their other
Android devices.

On Oct 5, 12:55 am, Nathan  wrote:
> On Oct 4, 7:14 pm, "Maps.Huge.Info (Maps API Guru)" 
> wrote:
>
> > I got the e-mail and read the terms. I decided to stick with the
> > Android market and forget this one. I think it's going to be a dud.
> > Then again, what do I know?
>
> I didn't get any offer from them. Guess I should feel slighted.
>
> They have to be planning an Android device. It doesn't make sense
> without that. And even then ...
>
> I don't know if those jumping through hoops to get the Android Market
> on a non-approved device are the same order of magnitude as those who
> would root their devices. I think the combination of Google's
> disapproval and Amazon's control will keep that away from the
> mainstream.
>
> I have been contacted by AppsLib and Archos. Compared to Amazon, no
> one has ever heard of AppsLib. But they are on the device, and
> Google's Market won't be. So I'll probably comply, even though some
> things won't work without GPS and compass.
>
> 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] where to browse the source code of Android

2010-10-08 Thread Mark Murphy
http://source.android.com is the overall open source project home. A
Web interface to the various git repositories can be found here:

http://android.git.kernel.org/

On Fri, Oct 8, 2010 at 9:12 PM, cindy  wrote:
> Where could I browse the source code of Android?

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

_Android Programming Tutorials_ Version 3.0.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] where to browse the source code of Android

2010-10-08 Thread cindy
Hi All,

Where could I browse the source code of Android?

Thanks!

Cindy

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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 intercept javascript onclick="window.close()"

2010-10-08 Thread Lance Nanek
The WebView's WebChromeClient's onCloseWindow method gets called,
provided JavaScript is enabled in the WebView's WebSettings.

On Oct 3, 11:31 pm, jgaribay  wrote:
> Hi,
>
> I am displaying web content in a WebView but I am having issues to
> identify when the user presses a cancel button which should close the
> current window.
>
> The cancel button is defined as follows in the page source code:
>  onclick="window.close();" />
>
> There are other buttons which I am able to handle using
> shouldOverrideUrlLoading() but since this cancel buttons does not
> attempt to open a new page, this is not working.
>
> Does anyone know if there is a way to intercept this cancel???
>
> By the way, when cancel button is pressed nothing happens.
>
> Thanks in advanced,
> Juan

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


[android-developers] Creating a .jar Library

2010-10-08 Thread JoeSchmoe
Do I have to do anything special to create a .jar library with
Android?  I'm simply creating an Android Project and then doing
"Export Jar".

I'm able to do "Add External Jar" and I can compile fine.  When I run,
the classes are unresolved so I crash. (null exception...)

I tried exporting as a "Runnable Jar", but the "Finish" button is
greyed out.  Perhaps I need to create a different project to use a
runnable jar?

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: Unit testing a class that uses android.os.Handler

2010-10-08 Thread Jeremy Wadsack
Actually, having thought about this more, I recall my original intent
was to only spawn the thread for the time needed to do the task. That
means I don't have to worry about shutting down or closing the thread
when the application closes. (The task responds to the application
through one or more listeners that are Runnables, but it checks if
they are null before calling them.)

This approach assumes that the gc in Dalvik won't mind spinning up
objects and threads and destroying them regularly. I don't know if
that's better practice for the jvm, but this seems less likely to
produce leaks, right?

I changed the code to use a handler on the main thread. The handler,
when it receives a message, starts a new thread with the long-running
task. Unfortunately the handleMessage method is never called when the
object is built from my test code.

So let's take the threading out of it for a moment. Why does this
basic test case fail?


import android.os.Handler;
import android.os.Message;

public class TaskManagerExample {

  // Test field for inspection
  public boolean messageHandled = false;

  private Handler handler = new Handler() {
@Override
public void handleMessage(Message msg) {
messageHandled = true;
}
  };

  public void start() {
  handler.sendEmptyMessage(0);
  }

}


import android.app.Application;
import android.test.ApplicationTestCase;

public class TaskManagerExampleTest extends
ApplicationTestCase {

public TaskManagerExampleTest() {
super(Application.class);
}

public void testHandlerShouldReceiveMessagesPostedToIt() {
TaskManagerExample example = new TaskManagerExample();
example.start();
try {
Thread.sleep(500);
} catch (InterruptedException e) {
}
assertTrue(example.messageHandled);
}

}


I put the sleep in there, just in case messages sent to the queue take
some time to get processed. Seems half a second should be plenty of
time (and keeps the test responsive). I tried it with five seconds and
it still fails.

What base *TestCase class should I be using the get Handlers, Loopers
and the MessageQueue to run under test?

--
Jeremy Wadsack

On Oct 8, 8:41 am, Lance Nanek  wrote:
> Handler has multiple constructors. The ones that take a Looper
> argument can take the Looper for a Thread other than the current one.
> That way you don't need to create the Handler on that Thread and it is
> easier to ensure it is not null on the Thread using it. There's also
> an android.os.HandlerThread utility class that is pretty much just a
> Thread with a Looper. It has a getLooper method that's easy to feed
> into the Handler constructor and that avoids the issue with prepare()
> taking a while sometimes and leaving you with a null longer than you'd
> expect.
>
> On Oct 7, 8:04 pm, DanH  wrote:
>
>
>
> > Come to think of it, how would one create a Handler for another
> > thread?  You'd have to dispatch the thread and have it create the
> > Handler and pass the pointer back to you (we won't worry about how),
> > but then that thread needs to go into a message receive loop.
>
> >  Apparently this is done via Looper.  I'm guessing the code would be
> > like this:
>
> >   class LooperThread extends Thread {
> >       public Handler mHandler;
>
> >       public void run() {
> >           Looper.prepare();
>
> >           mHandler = new Handler();
>
> >           Looper.loop();
> >       }
> >   }
>
> > You'd start this thread and then use your pointer to it to access
> > mHandler (though you'd have to guard somehow against getting a null
> > before the reference was set).  Then dispatch Runnables or Messages
> > via that handler.
>
> > (Gotta wonder where Looper stashes the instance it creates of itself
> > to attach to the Thread.  I suppose it uses ThreadLocal.)
>
> > On Oct 7, 4:38 pm, DanH  wrote:
>
> > > But I don't see anywhere in the Handler spec where it says the thread
> > > will be dispatched.  It appears to me that when the thread is posted,
> > > Handler will just run its "run" method, without starting the thread.
> > > If you wanted to run on a separate thread it appears to me that you'd
> > > have to start the thread, have that thread create a Handler and pass
> > > it back to you somehow, and then post via THAT Handler.
>
> > > At least that's how I'd interpret this:  "Each Handler instance is
> > > associated with a single thread and that thread's message queue. When
> > > you create a new Handler, it is bound to the thread / message queue of
> > > the thread that is creating it -- from that point on, it will deliver
> > > messages and runnables to that message queue and execute them as they
> > > come out of the message queue."
>
> > > On Oct 7, 4:25 pm, Jeremy Wadsack  wrote:
>
> > > > Fair point. 

Re: [android-developers] Re: Horizontal scrolling list with image and text

2010-10-08 Thread TreKing
On Fri, Oct 8, 2010 at 4:29 PM, Lance Hill  wrote:

> I haven't started yet since I wanted to make sure I wasn't heading down a
> bad path.
>

Understandable - though even if it's a bad path, you stand to learn
something.


> If this is the correct method of handling this situation
>

"Correct" is debatable - there are always multiple ways to solve any given
problem and as I said I haven't actually used Gallery so I couldn't confirm
for sure if this is even doable, but I don't see why it wouldn't be.


> and there are already examples of how to do this out there, I prefer to
> stand on the shoulders of giants.
>

If you prefer to wait for the work to be done for you and hope to find it on
the interwebs, or have someone point you to an answer, or give it outright
to you, that's clearly up to you.

However, you should consider that in the time you've posted this and waited
for a response, you could have thrown together an simple example to verify
whether this works or not. Putting together a layout with an image and text
and seeing if it shows up correctly in a Gallery should take all of 10
minutes (assuming you already have *something* to work off of).

-
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: TableLayout and displaying Database data

2010-10-08 Thread Brion Emde
I suggest you start by looking at the Notepad sample, included in the
SDK in the samples directory. That shows how to do a query and display
the result in a list view. The code can also be found in the
developer's page: 
http://developer.android.com/resources/samples/NotePad/index.html

Since you would need to build your table layout contents dynamically,
it would be best if you got the basics down first.

Forgive me if you've already done this and I'm just telling you
something you already know.

On Oct 8, 5:29 pm, Boardy  wrote:
> Hi all,
>
> I am currently looking in to developing an application for the android
> platform. I have some information that is stored within the SQLite
> Database of Android.
>
> What I want to be able to do is to perform a query to the database
> table and populate a TableLayout with the information from the
> database table.
>
> I have tried to find this on the Internet but have not had much luck.
> If anyone can help me to get about doing this would be great.
>
> Cheers.

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


[android-developers] Re: Anybody experiencing a boost in sales since opening up to other countries?

2010-10-08 Thread Tom / HyperBees
75% up but overall, partially because of Feint partially because of
new countries. I'll look into the details (per app per country per
day) over the weekend.

On Oct 8, 11:32 pm, Zsolt Vasvari  wrote:
> Sorry, I take that back.  There was one attempted sale in those 6
> hours that failed with "The authorization of the customer's credit
> card failed."
>
> I see a lot of those in bunches, also.
>
> On Oct 9, 6:28 am, Zsolt Vasvari  wrote:
>
>
>
>
>
>
>
> > Yes, it is very strange.  No sales again for 6 hours, and these 6
> > hours is when my app sells the most, as it's the afternoon/evening in
> > the US.  I can't prove that something is wrong, but it certainly is
> > mind-boggling.
>
> > On Oct 9, 12:55 am, JonFHancock  wrote:
>
> > > Another relatively slow day so far.  My app was showing in the market
> > > (for me at least), but I unpublished and republished for good
> > > measure.  We'll see...
>
> > > On Oct 8, 6:29 am, Zsolt Vasvari  wrote:
>
> > > > I just unpublushed and republished it and it showed up immediately.
> > > > WTF
>
> > > > On Oct 8, 9:24 pm, Zsolt Vasvari  wrote:
>
> > > > > I can find my app if I search for it, but not if I just list the apps
> > > > > in my category.
>
> > > > > On Oct 8, 8:58 pm, String  wrote:
>
> > > > > > On Oct 8, 7:20 am, Zsolt Vasvari  wrote:
>
> > > > > > > Yes, this happened to me as well.  I think there must have been
> > > > > > > something wrong with the market, as I haven't had a sale for 
> > > > > > > about 10
> > > > > > > hrs.
>
> > > > > > You might want to see if your app is visible in the Market. My top 
> > > > > > app
> > > > > > has suddenly vanished, from both my G1 and N1, for no readily 
> > > > > > apparent
> > > > > > reason. I think the Market is going through one of its usual periods
> > > > > > of instability.
>
> > > > > > String- Hide quoted text -
>
> > > > > - Show quoted text -- Hide quoted text -
>
> > > - Show quoted text -- Hide quoted text -
>
> > - Show quoted text -

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


Re: [android-developers] Re: Creating a vertical spacer

2010-10-08 Thread Mark Murphy
On Fri, Oct 8, 2010 at 7:04 PM, DanH  wrote:
> Yeah, I need to study up on RelativeLayout a bit.  Haven't quite
> figured out what it can do that others can't (other than to make
> things much more confusing).

Among other things, it does Z-axis ordering, which LinearLayout and
TableLayout cannot do.

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

_Android Programming Tutorials_ Version 3.0.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] Slow initial showing/drawing of Activities when using own Theme

2010-10-08 Thread Dianne Hackborn
First, a theme MUST inherit from one of the standard ones.  If it doesn't,
some things won't work now, some things will break in the future, etc.

When an app is being launched for the first time, a preview of it is first
shown by constructing a window with the theme from its manifest and showing
that.  The delay from when that empty window is shown until the actual app
is faded in is the time it is taking your app to launch.  If you want to
reduce that, you need to profile and optimize your app's launch time.

On Fri, Oct 8, 2010 at 3:50 PM, Streets Of Boston
wrote:

> When i create an activity that uses a custom-theme, e.g.
> android:theme="@style/MyLogonTheme".
>
> I create my theme in styles.xml:
>
> 
>sans
>@drawable/
> android_screen_logon_bg
> 
>
> (note that i have a few more themes and plenty more styles in
> styles.xml, but they are not in use for this particular activity).
>
>
> When the activity is started brand new (e.g. after the process has
> just started), it starts VERY slowly:
> 1. The background (windowBackground) appears quickly, in a timely
> manner and the activity's 'setContentView' is called almost
> immediately in the onCreate.
> 2. However, the activity's content-view (setContentView) finally shows
> up 0.5 - 2 seconds later (depending on the speed of the phone)!
>
> When i remove the 'parent' from MyLogonTheme's definition:
> 
>sans
>@drawable/
> android_screen_logon_bg
> 
> Both the background and the content-view appear quickly!
>
> Somehow, including the inheritance from the "android:Theme" slows
> things down quite considerably.
>
> Why is this the case?
> Is there a way around it?
>
>
> I looked at the log... no special output that may indicate
> something... it is just slow.
>
>
> BTW:
> If i do remove the parent="android:Theme" part, things do load/show
> quickly, but i get quite a few warnings in the log. The warnings
> complain about layout_height is missing and some ColorStateList with
> TypedValue (0x2/0x1010059 a=-1) can not be found. They are just
> warnings... i see no other side effects.
> If i specify the parent="android:Theme", I don't get these warnings.
>
> Can I just remove the parent="android:Theme" part and live with the
> warnings?
>
>
> 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
>



-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

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

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

[android-developers] Re: Creating a vertical spacer

2010-10-08 Thread DanH
Yeah, I need to study up on RelativeLayout a bit.  Haven't quite
figured out what it can do that others can't (other than to make
things much more confusing).

On Oct 8, 4:57 pm, Mark Murphy  wrote:
> On Fri, Oct 8, 2010 at 5:37 PM, DanH  wrote:
> > Well, it doesn't die when I add layout_height.  Doesn't do what I want
> > (of course), but doesn't die.
>
> Remember that you are putting it in a RelativeLayout. Unless you
> specify some other widget as being relative to the View, it's just
> going to sit there.
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> _Android Programming Tutorials_ Version 3.0.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] Gone element blocking the view

2010-10-08 Thread Yahel
Hi all,

I have a fairly easy layout : Two relative layouts filling the parent
frame layout.

firstRelativeLayout appears first in the xml and secondRelativeLayout
appears next.

firstRelativeLayout  has it's visibility not set in the xml (visible
by default).
secondRelativeLayout has it's visibility set to gone.

firstRelativeLayout respond to touch perfectly.

Then I programmatically set secondRelativeLayout visibility to visible
and back to gone.

firstRelativeLayout does not respond to touch anymore.

Any idea what can go wrong ?

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] Android - landscape-right and landscape-left orientation

2010-10-08 Thread Dianne Hackborn
Sorry, there currently isn't any way to do this.  Even if you were to
monitor the orientation yourself, there isn't a constant to set the screen
to the alternative landscape orientation.  (Also trying to use the
orientation listener for this would be very tricky since to do this
correctly you need to know how to deal with screens that are landscape when
not rotated etc.)

A future version of the platform should have APIs to help with this.

On Fri, Oct 8, 2010 at 5:07 AM, neha  wrote:

> I have an application, that looks good in landscape orientation only
> and i want to support both landscape-left and landscape-right
> orientation.
>
> If use setRequestedOrientation(SCREEN_ORIENTATION_LANDSCAPE), my
> application gets restricted to landscape-right orientation (home key
> is in the right direction) and does not go to landscape-left
> orientation on device rotation.
>
> If use setRequestedOrientation(SCREEN_ORIENTATION_SENSOR), application
> goes to both landscape-left and landscape-right orientation but the
> problem is that it goes to portrait orientation also, on device
> rotation.
>
> Can somebody please highlight, how can both landscape-right and
> landscape-left orientations be supported without moving to portrait
> orientation? Are there are API to set the orientation to both
> landscape-left and landscape right orientation or some mechanism to
> prevent application from moving to portrait orientation when
> setRequestedOrientation(SCREEN_ORIENTATION_SENSOR) is used.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

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

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

[android-developers] Re: Possible to check .apk signature?

2010-10-08 Thread DanH
Yeah, I did some poking around in a small apk and that's what I'd
found.  Just hadn't gotten around to coming back and reporting on it.
(Kinda want to do a little more research, just to satisfy my own
curiosity.)

On Oct 8, 5:19 pm, Dianne Hackborn  wrote:
> An .apk is a super-set of a .jar, and uses the standard Java certificate and
> signing mechanisms in a .jar.  If you are concerned about this being
> broken...  well, not sure what to say. :}
>
>
>
> On Fri, Oct 8, 2010 at 6:00 AM, DanH  wrote:
> > I may have misinterpreted.  Presumably there's a checksum of the APK
> > data in the signed certificate.  I would assume (hope) that's a
> > cryptographically strong checksum.  (If not, the entire Android
> > platform is in jeopardy.)
>
> > If one wants a sure "signature" (in a generic sense) that uniquely and
> > reliably identifies a SPECIFIC version of code, that cryptographic
> > checksum would be what you want (though I don't know how you'd access
> > that).  Otherwise, the public key (which Diane has finally explained
> > is what the package "signature" is) is a secure, reliable way to
> > identify the publisher (and, with the package name, the specific app
> > (though not it's version)).
>
> > There's no point in creating a separate CRC32 over the app, to use as
> > an identity to send back to a server or whatever.
>
> > On Oct 8, 6:21 am, Mark Murphy  wrote:
> > > What CRC32 checksum?
>
> > > Trevor Johns, in a discussion of LVL, offered up CRC32 as a means of
> > > helping detect tampering, but that was simply an example. Otherwise, I
> > > am coming up with zero references to the use of CRC32 with respect to
> > > APKs.
>
> > > Do you have a pointer to somewhere in the open source code where they
> > > are using a CRC32 checksum in this fashion?
>
> > > Thanks!
>
> > > On Fri, Oct 8, 2010 at 7:12 AM, DanH  wrote:
> > > > What I mean is that if the bad actor can manipulate the apk bytes
> > > > while still maintaining the same checksum, then the whole scheme is
> > > > insecure -- there's no point in having it signed.  A CRC32 checksum is
> > > > easily spoofed -- the apk bytes need to be checksummed with a
> > > > cryptographic checksum of some sort.
>
> > > --
> > > Mark Murphy (a Commons Guy)http://commonsware.com|
> >http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> > > Warescription: Three Android Books, Plus Updates, One Low Price!
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en
>
> --
> Dianne Hackborn
> Android framework engineer
> hack...@android.com
>
> Note: please don't send private questions to me, as I don't have time to
> provide private support, and so won't reply to such e-mails.  All such
> questions should be posted on public forums, where I and others can see and
> answer them.

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


[android-developers] Re: Exception every time I launch the application

2010-10-08 Thread DanH
Speak of the devil! (Just had this problem myself.)  Read carefully
the first few lines in your exception stack:

Binary XML file line #25: You must supply a layout_height attribute.

On Oct 8, 4:42 pm, Pankaj  wrote:
> Hi all,
>
> I get an exception every time I launch the application. Here is the
> stacktrace for the exception
>
> 10-01 14:49:35.321: WARN/WindowManager(61): Exception when adding
> starting window
> 10-01 14:49:35.321: WARN/WindowManager(61):
> java.lang.RuntimeException: Binary XML file line #25: You must supply
> a layout_height attribute.
> 10-01 14:49:35.321: WARN/WindowManager(61):     at
> android.content.res.TypedArray.getLayoutDimension(TypedArray.java:438)
> 10-01 14:49:35.321: WARN/WindowManager(61):     at
> android.view.ViewGroup$LayoutParams.setBaseAttributes(ViewGroup.java:
> 3468)
> 10-01 14:49:35.321: WARN/WindowManager(61):     at
> android.view.ViewGroup$MarginLayoutParams.(ViewGroup.java:3547)
> 10-01 14:49:35.321: WARN/WindowManager(61):     at
> android.widget.LinearLayout$LayoutParams.(LinearLayout.java:
> 1265)
> 10-01 14:49:35.321: WARN/WindowManager(61):     at
> android.widget.LinearLayout.generateLayoutParams(LinearLayout.java:
> 1191)
> 10-01 14:49:35.321: WARN/WindowManager(61):     at
> android.widget.LinearLayout.generateLayoutParams(LinearLayout.java:45)
> 10-01 14:49:35.321: WARN/WindowManager(61):     at
> android.view.LayoutInflater.rInflate(LayoutInflater.java:620)
> 10-01 14:49:35.321: WARN/WindowManager(61):     at
> android.view.LayoutInflater.inflate(LayoutInflater.java:407)
> 10-01 14:49:35.321: WARN/WindowManager(61):     at
> android.view.LayoutInflater.inflate(LayoutInflater.java:320)
> 10-01 14:49:35.321: WARN/WindowManager(61):     at
> android.view.LayoutInflater.inflate(LayoutInflater.java:276)
> 10-01 14:49:35.321: WARN/WindowManager(61):     at
> com.android.internal.policy.impl.PhoneWindow.generateLayout(PhoneWindow.java:
> 2153)
> 10-01 14:49:35.321: WARN/WindowManager(61):     at
> com.android.internal.policy.impl.PhoneWindow.installDecor(PhoneWindow.java:
> 2207)
> 10-01 14:49:35.321: WARN/WindowManager(61):     at
> com.android.internal.policy.impl.PhoneWindow.getDecorView(PhoneWindow.java:
> 1395)
> 10-01 14:49:35.321: WARN/WindowManager(61):     at
> com.android.internal.policy.impl.PhoneWindowManager.addStartingWindow(PhoneWindowManager.java:
> 818)
> 10-01 14:49:35.321: WARN/WindowManager(61):     at
> com.android.server.WindowManagerService
> $H.handleMessage(WindowManagerService.java:8794)
> 10-01 14:49:35.321: WARN/WindowManager(61):     at
> android.os.Handler.dispatchMessage(Handler.java:99)
> 10-01 14:49:35.321: WARN/WindowManager(61):     at
> android.os.Looper.loop(Looper.java:123)
> 10-01 14:49:35.321: WARN/WindowManager(61):     at
> com.android.server.WindowManagerService
> $WMThread.run(WindowManagerService.java:531)
>
> I am also posting the XML files I'm using.
>
> 
>
> http://schemas.android.com/apk/res/
> android"
>     android:id="@+id/arw_layout" android:orientation="horizontal"
>     android:layout_width="fill_parent"
> android:layout_height="wrap_content">
>              android:layout_height="40px"
> android:layout_alignParentRight="true" />
>     http://schemas.android.com/apk/res/
> android"
>         android:orientation="horizontal"
> android:layout_width="fill_parent"
>         android:layout_height="wrap_content" android:gravity="center"
>         android:layout_alignParentLeft="true">
>          android:layout_width="wrap_content"
>             android:layout_height="wrap_content" android:text="@string/
> arw_left"
>             android:textSize="25sp" android:paddingLeft="10dp"
>             android:paddingRight="10dp"
> android:gravity="center_vertical" />
>          android:layout_width="wrap_content"
>             android:layout_height="wrap_content" android:minEms="10"
>             android:text="@string/arw_title"
> android:paddingLeft="10dp"
>             android:paddingRight="10dp" android:gravity="center" />
>          android:layout_width="wrap_content"
>             android:layout_height="wrap_content" android:text="@string/
> arw_right"
>             android:textSize="25sp" android:paddingLeft="10dp"
>             android:paddingRight="10dp"
> android:gravity="center_vertical" />
>     
> 
>
> 
> http://schemas.android.com/apk/res/android";
>     android:shape="rectangle">
>          android:startColor="#FF493538"
>       android:centerColor="#FF00"
>       android:endColor="#FF00"
>       android:angle="270" />
> 
>
> 
> http://schemas.android.com/apk/res/
> android"
>     android:orientation="vertical"
>     android:layout_width="fill_parent"
>     android:layout_height="fill_parent"
>     >
>      android:layout_width="fill_parent"
>     android:layout_height="wrap_content"
>     android:text="@string/hello"
>     />
> 
>
> 
> 
> 
>         
>     
> 
>
> 
>     
>          parent="android:WindowTitleBackground">
>             @drawable/gradient

[android-developers] Re: What is the URL for an app on android market?

2010-10-08 Thread Zsolt Vasvari
Make sure you don't try this from your PC.  The URL only works from
the phone.

On Oct 9, 6:49 am, Kostya Vasilyev  wrote:
> Just tried both of your links, both worked fine (I chose Market from "open
> with..." dialog).
>
> If you just published your app, there might be a short delay before it's
> available.
>
> --
> Kostya Vasilyev --http://kmansoft.wordpress.com
>
> 09.10.2010 2:46 пользователь "softak"  написал:
>
> Trying to figure out working URL for my app on Android Market.
> Used tutorial from "http://developer.android.com/intl/zh-TW/guide/
> publishing/publishing.html" nothing works.
> For http:// getting 404 and for market:// getting "to many
> redirectiones"
>
> My app id is com.softakgames.tappuzzle, for both links I am 
> gettinghttp://market.android.com/details?id=com.softakgames.tappuzzle 
> andhttp://market.android.com/search?q=com.softakgames.tappuzzle
>
> 404 Error (Not Found)
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group 
> athttp://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] Slow initial showing/drawing of Activities when using own Theme

2010-10-08 Thread Streets Of Boston
When i create an activity that uses a custom-theme, e.g.
android:theme="@style/MyLogonTheme".

I create my theme in styles.xml:


sans
@drawable/
android_screen_logon_bg


(note that i have a few more themes and plenty more styles in
styles.xml, but they are not in use for this particular activity).


When the activity is started brand new (e.g. after the process has
just started), it starts VERY slowly:
1. The background (windowBackground) appears quickly, in a timely
manner and the activity's 'setContentView' is called almost
immediately in the onCreate.
2. However, the activity's content-view (setContentView) finally shows
up 0.5 - 2 seconds later (depending on the speed of the phone)!

When i remove the 'parent' from MyLogonTheme's definition:

sans
@drawable/
android_screen_logon_bg

Both the background and the content-view appear quickly!

Somehow, including the inheritance from the "android:Theme" slows
things down quite considerably.

Why is this the case?
Is there a way around it?


I looked at the log... no special output that may indicate
something... it is just slow.


BTW:
If i do remove the parent="android:Theme" part, things do load/show
quickly, but i get quite a few warnings in the log. The warnings
complain about layout_height is missing and some ColorStateList with
TypedValue (0x2/0x1010059 a=-1) can not be found. They are just
warnings... i see no other side effects.
If i specify the parent="android:Theme", I don't get these warnings.

Can I just remove the parent="android:Theme" part and live with the
warnings?


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] What is the URL for an app on android market?

2010-10-08 Thread Kostya Vasilyev
Just tried both of your links, both worked fine (I chose Market from "open
with..." dialog).

If you just published your app, there might be a short delay before it's
available.

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

09.10.2010 2:46 пользователь "softak"  написал:

Trying to figure out working URL for my app on Android Market.
Used tutorial from "http://developer.android.com/intl/zh-TW/guide/
publishing/publishing.html" nothing works.
For http:// getting 404 and for market:// getting "to many
redirectiones"

My app id is com.softakgames.tappuzzle, for both links I am getting
http://market.android.com/details?id=com.softakgames.tappuzzle  and
http://market.android.com/search?q=com.softakgames.tappuzzle

404 Error (Not Found)

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] What is the URL for an app on android market?

2010-10-08 Thread softak
Trying to figure out working URL for my app on Android Market.
Used tutorial from "http://developer.android.com/intl/zh-TW/guide/
publishing/publishing.html" nothing works.
For http:// getting 404 and for market:// getting "to many
redirectiones"

My app id is com.softakgames.tappuzzle, for both links I am getting
http://market.android.com/details?id=com.softakgames.tappuzzle  and
http://market.android.com/search?q=com.softakgames.tappuzzle

404 Error (Not Found)

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

2010-10-08 Thread Kostya Vasilyev
Don't call edit() multiple times.

Every call to edit() creates a new "change session", so you're changing the
value but not committing the change, and then starting a new changeset and
committing it with no new values.

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

09.10.2010 2:36 пользователь "JoelDuggan"  написал:

Hey there all,

I'm having a problem that i don't know how to resolve.

I have a broadcast receiver catching a call from the system.  I need
this receiver to set a flag so that the next time my app runs it can
do something different.

I am trying to do this with a shared pref but it is not working.

In the receiver I do:

 SharedPreferences sharedPreferences =
context.getSharedPreferences(PREFS_NAME, Context.MODE_PRIVATE);
 sharedPreferences.edit().putBoolean("changed", true);
 sharedPreferences.edit().commit();

Then when i start my app I check like so:

sharedPreferences = getSharedPreferences(PREFS_NAME,
MODE_PRIVATE);
if (sharedPreferences.getBoolean("changed", false)){
   hasChanged = true;
   sharedPreferences.edit().putBoolean("changed", false);
   sharedPreferences.edit().commit();
}


This does not work.  If I download the file from the emulator after
the receiver has triggered it is empty.  It exists but there is no key
value pair.

What am I doing wrong?  Is there a better way to flag my app to run
differently on next startup?

Any help???

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

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

[android-developers] Trouble with Shared Prefs.

2010-10-08 Thread JoelDuggan
Hey there all,

I'm having a problem that i don't know how to resolve.

I have a broadcast receiver catching a call from the system.  I need
this receiver to set a flag so that the next time my app runs it can
do something different.

I am trying to do this with a shared pref but it is not working.

In the receiver I do:

  SharedPreferences sharedPreferences =
context.getSharedPreferences(PREFS_NAME, Context.MODE_PRIVATE);
  sharedPreferences.edit().putBoolean("changed", true);
  sharedPreferences.edit().commit();

Then when i start my app I check like so:

 sharedPreferences = getSharedPreferences(PREFS_NAME,
MODE_PRIVATE);
 if (sharedPreferences.getBoolean("changed", false)){
hasChanged = true;
sharedPreferences.edit().putBoolean("changed", false);
sharedPreferences.edit().commit();
 }


This does not work.  If I download the file from the emulator after
the receiver has triggered it is empty.  It exists but there is no key
value pair.

What am I doing wrong?  Is there a better way to flag my app to run
differently on next startup?

Any help???

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


Re: [android-developers] bugreport tutorial

2010-10-08 Thread Dianne Hackborn
Um.

Ahahah.  Hah.  Ouch.

It's probably better to specify fairly specifically what information you
want to get out of one...   there is obvious a *lot* of information, for a
wide variety of things, ranging from hard core kernel developers to
individual app developers.  Nobody understands everything in there.  It's
just everything that we can reasonably generate that might be useful to
diagnose some problem that has happened.

On Fri, Oct 8, 2010 at 3:23 PM, Dan Raaka  wrote:

> Is there any documentation around how to interpret
> adb bugreport
>
> -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
>



-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

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

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

[android-developers] Re: Anybody experiencing a boost in sales since opening up to other countries?

2010-10-08 Thread Zsolt Vasvari
Sorry, I take that back.  There was one attempted sale in those 6
hours that failed with "The authorization of the customer's credit
card failed."

I see a lot of those in bunches, also.

On Oct 9, 6:28 am, Zsolt Vasvari  wrote:
> Yes, it is very strange.  No sales again for 6 hours, and these 6
> hours is when my app sells the most, as it's the afternoon/evening in
> the US.  I can't prove that something is wrong, but it certainly is
> mind-boggling.
>
> On Oct 9, 12:55 am, JonFHancock  wrote:
>
>
>
> > Another relatively slow day so far.  My app was showing in the market
> > (for me at least), but I unpublished and republished for good
> > measure.  We'll see...
>
> > On Oct 8, 6:29 am, Zsolt Vasvari  wrote:
>
> > > I just unpublushed and republished it and it showed up immediately.
> > > WTF
>
> > > On Oct 8, 9:24 pm, Zsolt Vasvari  wrote:
>
> > > > I can find my app if I search for it, but not if I just list the apps
> > > > in my category.
>
> > > > On Oct 8, 8:58 pm, String  wrote:
>
> > > > > On Oct 8, 7:20 am, Zsolt Vasvari  wrote:
>
> > > > > > Yes, this happened to me as well.  I think there must have been
> > > > > > something wrong with the market, as I haven't had a sale for about 
> > > > > > 10
> > > > > > hrs.
>
> > > > > You might want to see if your app is visible in the Market. My top app
> > > > > has suddenly vanished, from both my G1 and N1, for no readily apparent
> > > > > reason. I think the Market is going through one of its usual periods
> > > > > of instability.
>
> > > > > String- Hide quoted text -
>
> > > > - Show quoted text -- Hide quoted text -
>
> > - Show quoted text -- Hide quoted text -
>
> - Show quoted text -

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


[android-developers] Re: Anybody experiencing a boost in sales since opening up to other countries?

2010-10-08 Thread Zsolt Vasvari
Yes, it is very strange.  No sales again for 6 hours, and these 6
hours is when my app sells the most, as it's the afternoon/evening in
the US.  I can't prove that something is wrong, but it certainly is
mind-boggling.

On Oct 9, 12:55 am, JonFHancock  wrote:
> Another relatively slow day so far.  My app was showing in the market
> (for me at least), but I unpublished and republished for good
> measure.  We'll see...
>
> On Oct 8, 6:29 am, Zsolt Vasvari  wrote:
>
>
>
> > I just unpublushed and republished it and it showed up immediately.
> > WTF
>
> > On Oct 8, 9:24 pm, Zsolt Vasvari  wrote:
>
> > > I can find my app if I search for it, but not if I just list the apps
> > > in my category.
>
> > > On Oct 8, 8:58 pm, String  wrote:
>
> > > > On Oct 8, 7:20 am, Zsolt Vasvari  wrote:
>
> > > > > Yes, this happened to me as well.  I think there must have been
> > > > > something wrong with the market, as I haven't had a sale for about 10
> > > > > hrs.
>
> > > > You might want to see if your app is visible in the Market. My top app
> > > > has suddenly vanished, from both my G1 and N1, for no readily apparent
> > > > reason. I think the Market is going through one of its usual periods
> > > > of instability.
>
> > > > String- Hide quoted text -
>
> > > - Show quoted text -- Hide quoted text -
>
> - Show quoted text -

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


[android-developers] bugreport tutorial

2010-10-08 Thread Dan Raaka
Is there any documentation around how to interpret
adb bugreport

-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: Possible to check .apk signature?

2010-10-08 Thread Dianne Hackborn
An .apk is a super-set of a .jar, and uses the standard Java certificate and
signing mechanisms in a .jar.  If you are concerned about this being
broken...  well, not sure what to say. :}

On Fri, Oct 8, 2010 at 6:00 AM, DanH  wrote:

> I may have misinterpreted.  Presumably there's a checksum of the APK
> data in the signed certificate.  I would assume (hope) that's a
> cryptographically strong checksum.  (If not, the entire Android
> platform is in jeopardy.)
>
> If one wants a sure "signature" (in a generic sense) that uniquely and
> reliably identifies a SPECIFIC version of code, that cryptographic
> checksum would be what you want (though I don't know how you'd access
> that).  Otherwise, the public key (which Diane has finally explained
> is what the package "signature" is) is a secure, reliable way to
> identify the publisher (and, with the package name, the specific app
> (though not it's version)).
>
> There's no point in creating a separate CRC32 over the app, to use as
> an identity to send back to a server or whatever.
>
> On Oct 8, 6:21 am, Mark Murphy  wrote:
> > What CRC32 checksum?
> >
> > Trevor Johns, in a discussion of LVL, offered up CRC32 as a means of
> > helping detect tampering, but that was simply an example. Otherwise, I
> > am coming up with zero references to the use of CRC32 with respect to
> > APKs.
> >
> > Do you have a pointer to somewhere in the open source code where they
> > are using a CRC32 checksum in this fashion?
> >
> > Thanks!
> >
> > On Fri, Oct 8, 2010 at 7:12 AM, DanH  wrote:
> > > What I mean is that if the bad actor can manipulate the apk bytes
> > > while still maintaining the same checksum, then the whole scheme is
> > > insecure -- there's no point in having it signed.  A CRC32 checksum is
> > > easily spoofed -- the apk bytes need to be checksummed with a
> > > cryptographic checksum of some sort.
> >
> > --
> > Mark Murphy (a Commons Guy)http://commonsware.com|
> http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
> >
> > Warescription: Three Android Books, Plus Updates, One Low Price!
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
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] Re: Creating a vertical spacer

2010-10-08 Thread Mark Murphy
On Fri, Oct 8, 2010 at 5:37 PM, DanH  wrote:
> Well, it doesn't die when I add layout_height.  Doesn't do what I want
> (of course), but doesn't die.

Remember that you are putting it in a RelativeLayout. Unless you
specify some other widget as being relative to the View, it's just
going to sit there.

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

_Android Programming Tutorials_ Version 3.0.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] Re: Creating a vertical spacer

2010-10-08 Thread Tom Gibara
It's not really possible for the system to know this at build time. The
presence of the layout_ attributes can be provided by styles that may be
absent in some resource configurations. Because of this their omission is
essentially a runtime condition.

Tom.

On 8 October 2010 22:33, Kostya Vasilyev  wrote:

> Would be nice if this could be reported at build time.
>
> --
> Kostya Vasilyev -- http://kmansoft.wordpress.com
>
> 09.10.2010 1:29 пользователь "DanH"  написал:
>
>
> Curse the LogCat view on Eclipse!  I see this when I export the
> exception:  "java.lang.RuntimeException: Binary XML file line #10: You
> must supply a layout_height attribute."
>
>
> 10-08 16:24:13.603: DEBUG/AndroidRuntime(1572): Shutting down VM
> 10-08 16:24:13.603: WARN/dalvikvm(1572): threadid=1: thread exiting
> with uncaught exception (group=0x4001d800)
> 10-08 16:24:13.622: DEBUG/FlurryAgent(1572): Ending session
> 10-08 16:24:14.142: ERROR/AndroidRuntime(1572): FATAL EXCEPTION: main
> 10-08 16:24:14.142: ERROR/AndroidRuntime(1572):
> java.lang.RuntimeException: Unable to start activity
> ComponentInfo{com.boosti.temodar.android/
> com.boosti.temodar.android.TemodarHome}: java.lang.RuntimeException:
> Binary XML file line #10: You must supply a layout_height attribute.
> 10-08 16:24:14.142: ERROR/AndroidRuntime(1572): at
> android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
> 2663)
> 10-08 16:24:14.142: ERROR/AndroidRuntime(1572): at
> android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:
> 2679)
> 10-08 16:24:14.142: ERROR/AndroidRuntime(1572): at
> android.app.ActivityThread.access$2300(ActivityThread.java:125)
> 10-08 16:24:14.142: ERROR/AndroidRuntime(1572): at
> android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033)
> 10-08 16:24:14.142: ERROR/AndroidRuntime(1572): at
> android.os.Handler.dispatchMessage(Handler.java:99)
> 10-08 16:24:14.142: ERROR/AndroidRuntime(1572): at
> android.os.Looper.loop(Looper.java:123)
> 10-08 16:24:14.142: ERROR/AndroidRuntime(1572): at
> android.app.ActivityThread.main(ActivityThread.java:4627)
> 10-08 16:24:14.142: ERROR/AndroidRuntime(1572): at
> java.lang.reflect.Method.invokeNative(Native Method)
> 10-08 16:24:14.142: ERROR/AndroidRuntime(1572): at
> java.lang.reflect.Method.invoke(Method.java:521)
> 10-08 16:24:14.142: ERROR/AndroidRuntime(1572): at
> com.android.internal.os.ZygoteInit
> $MethodAndArgsCaller.run(ZygoteInit.java:868)
> 10-08 16:24:14.142: ERROR/AndroidRuntime(1572): at
> com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
> 10-08 16:24:14.142: ERROR/AndroidRuntime(1572): at
> dalvik.system.NativeStart.main(Native Method)
> 10-08 16:24:14.142: ERROR/AndroidRuntime(1572): Caused by:
> java.lang.RuntimeException: Binary XML file line #10: You must supply
> a layout_height attribute.
> 10-08 16:24:14.142: ERROR/AndroidRuntime(1572): at
> android.content.res.TypedArray.getLayoutDimension(TypedArray.java:491)
> 10-08 16:24:14.142: ERROR/AndroidRuntime(1572): at
> android.view.ViewGroup$LayoutParams.setBaseAttributes(ViewGroup.java:
> 3593)
> 10-08 16:24:14.142: ERROR/AndroidRuntime(1572): at
> android.view.ViewGroup$MarginLayoutParams.(ViewGroup.java:3672)
> 10-08 16:24:14.142: ERROR/AndroidRuntime(1572): at
> android.widget.RelativeLayout$LayoutParams.(RelativeLayout.java:
> 1047)
> 10-08 16:24:14.142: ERROR/AndroidRuntime(1572): at
> android.widget.RelativeLayout.generateLayoutParams(RelativeLayout.java:
> 917)
> 10-08 16:24:14.142: ERROR/AndroidRuntime(1572): at
> android.widget.RelativeLayout.generateLayoutParams(RelativeLayout.java:
> 66)
> 10-08 16:24:14.142: ERROR/AndroidRuntime(1572): at
> android.view.LayoutInflater.rInflate(LayoutInflater.java:620)
> 10-08 16:24:14.142: ERROR/AndroidRuntime(1572): at
> android.view.LayoutInflater.inflate(LayoutInflater.java:407)
> 10-08 16:24:14.142: ERROR/AndroidRuntime(1572): at
> android.view.LayoutInflater.inflate(LayoutInflater.java:320)
> 10-08 16:24:14.142: ERROR/AndroidRuntime(1572): at
> android.view.LayoutInflater.inflate(LayoutInflater.java:276)
> 10-08 16:24:14.142: ERROR/AndroidRuntime(1572): at
>
> com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:
> 198)
> 10-08 16:24:14.142: ERROR/AndroidRuntime(1572): at
> android.app.Activity.setContentView(Activity.java:1647)
> 10-08 16:24:14.142: ERROR/AndroidRuntime(1572): at
> com.boosti.temodar.android.TemodarHome.onCreate(TemodarHome.java:47)
> 10-08 16:24:14.142: ERROR/AndroidRuntime(1572): at
> android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:
> 1047)
> 10-08 16:24:14.142: ERROR/AndroidRuntime(1572): at
> android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
> 2627)
> 10-08 16:24:14.142: ERROR/AndroidRuntime(1572): ... 11 more
> 10-08 16:24:14.331: WARN/ActivityManager(78):   Force finishing
> activity com.boosti.temodar.android/.TemodarHome

[android-developers] Exception every time I launch the application

2010-10-08 Thread Pankaj
Hi all,

I get an exception every time I launch the application. Here is the
stacktrace for the exception


10-01 14:49:35.321: WARN/WindowManager(61): Exception when adding
starting window
10-01 14:49:35.321: WARN/WindowManager(61):
java.lang.RuntimeException: Binary XML file line #25: You must supply
a layout_height attribute.
10-01 14:49:35.321: WARN/WindowManager(61): at
android.content.res.TypedArray.getLayoutDimension(TypedArray.java:438)
10-01 14:49:35.321: WARN/WindowManager(61): at
android.view.ViewGroup$LayoutParams.setBaseAttributes(ViewGroup.java:
3468)
10-01 14:49:35.321: WARN/WindowManager(61): at
android.view.ViewGroup$MarginLayoutParams.(ViewGroup.java:3547)
10-01 14:49:35.321: WARN/WindowManager(61): at
android.widget.LinearLayout$LayoutParams.(LinearLayout.java:
1265)
10-01 14:49:35.321: WARN/WindowManager(61): at
android.widget.LinearLayout.generateLayoutParams(LinearLayout.java:
1191)
10-01 14:49:35.321: WARN/WindowManager(61): at
android.widget.LinearLayout.generateLayoutParams(LinearLayout.java:45)
10-01 14:49:35.321: WARN/WindowManager(61): at
android.view.LayoutInflater.rInflate(LayoutInflater.java:620)
10-01 14:49:35.321: WARN/WindowManager(61): at
android.view.LayoutInflater.inflate(LayoutInflater.java:407)
10-01 14:49:35.321: WARN/WindowManager(61): at
android.view.LayoutInflater.inflate(LayoutInflater.java:320)
10-01 14:49:35.321: WARN/WindowManager(61): at
android.view.LayoutInflater.inflate(LayoutInflater.java:276)
10-01 14:49:35.321: WARN/WindowManager(61): at
com.android.internal.policy.impl.PhoneWindow.generateLayout(PhoneWindow.java:
2153)
10-01 14:49:35.321: WARN/WindowManager(61): at
com.android.internal.policy.impl.PhoneWindow.installDecor(PhoneWindow.java:
2207)
10-01 14:49:35.321: WARN/WindowManager(61): at
com.android.internal.policy.impl.PhoneWindow.getDecorView(PhoneWindow.java:
1395)
10-01 14:49:35.321: WARN/WindowManager(61): at
com.android.internal.policy.impl.PhoneWindowManager.addStartingWindow(PhoneWindowManager.java:
818)
10-01 14:49:35.321: WARN/WindowManager(61): at
com.android.server.WindowManagerService
$H.handleMessage(WindowManagerService.java:8794)
10-01 14:49:35.321: WARN/WindowManager(61): at
android.os.Handler.dispatchMessage(Handler.java:99)
10-01 14:49:35.321: WARN/WindowManager(61): at
android.os.Looper.loop(Looper.java:123)
10-01 14:49:35.321: WARN/WindowManager(61): at
com.android.server.WindowManagerService
$WMThread.run(WindowManagerService.java:531)




I am also posting the XML files I'm using.





http://schemas.android.com/apk/res/
android"
android:id="@+id/arw_layout" android:orientation="horizontal"
android:layout_width="fill_parent"
android:layout_height="wrap_content">

http://schemas.android.com/apk/res/
android"
android:orientation="horizontal"
android:layout_width="fill_parent"
android:layout_height="wrap_content" android:gravity="center"
android:layout_alignParentLeft="true">








http://schemas.android.com/apk/res/android";
android:shape="rectangle">
  




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
















@drawable/gradient






@style/
WindowTitleBackground





can anyone tell me which XML produces this exception.

I get it only when I launch the app. After that while browsing through
different activities no such exception occurs

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

2010-10-08 Thread DanH
Well, it doesn't die when I add layout_height.  Doesn't do what I want
(of course), but doesn't die.

On Oct 8, 4:28 pm, DanH  wrote:
> Curse the LogCat view on Eclipse!  I see this when I export the
> exception:  "java.lang.RuntimeException: Binary XML file line #10: You
> must supply a layout_height attribute."
>
> 10-08 16:24:13.603: DEBUG/AndroidRuntime(1572): Shutting down VM
> 10-08 16:24:13.603: WARN/dalvikvm(1572): threadid=1: thread exiting
> with uncaught exception (group=0x4001d800)
> 10-08 16:24:13.622: DEBUG/FlurryAgent(1572): Ending session
> 10-08 16:24:14.142: ERROR/AndroidRuntime(1572): FATAL EXCEPTION: main
> 10-08 16:24:14.142: ERROR/AndroidRuntime(1572):
> java.lang.RuntimeException: Unable to start activity
> ComponentInfo{com.boosti.temodar.android/
> com.boosti.temodar.android.TemodarHome}: java.lang.RuntimeException:
> Binary XML file line #10: You must supply a layout_height attribute.
> 10-08 16:24:14.142: ERROR/AndroidRuntime(1572):     at
> android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
> 2663)
> 10-08 16:24:14.142: ERROR/AndroidRuntime(1572):     at
> android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:
> 2679)
> 10-08 16:24:14.142: ERROR/AndroidRuntime(1572):     at
> android.app.ActivityThread.access$2300(ActivityThread.java:125)
> 10-08 16:24:14.142: ERROR/AndroidRuntime(1572):     at
> android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033)
> 10-08 16:24:14.142: ERROR/AndroidRuntime(1572):     at
> android.os.Handler.dispatchMessage(Handler.java:99)
> 10-08 16:24:14.142: ERROR/AndroidRuntime(1572):     at
> android.os.Looper.loop(Looper.java:123)
> 10-08 16:24:14.142: ERROR/AndroidRuntime(1572):     at
> android.app.ActivityThread.main(ActivityThread.java:4627)
> 10-08 16:24:14.142: ERROR/AndroidRuntime(1572):     at
> java.lang.reflect.Method.invokeNative(Native Method)
> 10-08 16:24:14.142: ERROR/AndroidRuntime(1572):     at
> java.lang.reflect.Method.invoke(Method.java:521)
> 10-08 16:24:14.142: ERROR/AndroidRuntime(1572):     at
> com.android.internal.os.ZygoteInit
> $MethodAndArgsCaller.run(ZygoteInit.java:868)
> 10-08 16:24:14.142: ERROR/AndroidRuntime(1572):     at
> com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
> 10-08 16:24:14.142: ERROR/AndroidRuntime(1572):     at
> dalvik.system.NativeStart.main(Native Method)
> 10-08 16:24:14.142: ERROR/AndroidRuntime(1572): Caused by:
> java.lang.RuntimeException: Binary XML file line #10: You must supply
> a layout_height attribute.
> 10-08 16:24:14.142: ERROR/AndroidRuntime(1572):     at
> android.content.res.TypedArray.getLayoutDimension(TypedArray.java:491)
> 10-08 16:24:14.142: ERROR/AndroidRuntime(1572):     at
> android.view.ViewGroup$LayoutParams.setBaseAttributes(ViewGroup.java:
> 3593)
> 10-08 16:24:14.142: ERROR/AndroidRuntime(1572):     at
> android.view.ViewGroup$MarginLayoutParams.(ViewGroup.java:3672)
> 10-08 16:24:14.142: ERROR/AndroidRuntime(1572):     at
> android.widget.RelativeLayout$LayoutParams.(RelativeLayout.java:
> 1047)
> 10-08 16:24:14.142: ERROR/AndroidRuntime(1572):     at
> android.widget.RelativeLayout.generateLayoutParams(RelativeLayout.java:
> 917)
> 10-08 16:24:14.142: ERROR/AndroidRuntime(1572):     at
> android.widget.RelativeLayout.generateLayoutParams(RelativeLayout.java:
> 66)
> 10-08 16:24:14.142: ERROR/AndroidRuntime(1572):     at
> android.view.LayoutInflater.rInflate(LayoutInflater.java:620)
> 10-08 16:24:14.142: ERROR/AndroidRuntime(1572):     at
> android.view.LayoutInflater.inflate(LayoutInflater.java:407)
> 10-08 16:24:14.142: ERROR/AndroidRuntime(1572):     at
> android.view.LayoutInflater.inflate(LayoutInflater.java:320)
> 10-08 16:24:14.142: ERROR/AndroidRuntime(1572):     at
> android.view.LayoutInflater.inflate(LayoutInflater.java:276)
> 10-08 16:24:14.142: ERROR/AndroidRuntime(1572):     at
> com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:
> 198)
> 10-08 16:24:14.142: ERROR/AndroidRuntime(1572):     at
> android.app.Activity.setContentView(Activity.java:1647)
> 10-08 16:24:14.142: ERROR/AndroidRuntime(1572):     at
> com.boosti.temodar.android.TemodarHome.onCreate(TemodarHome.java:47)
> 10-08 16:24:14.142: ERROR/AndroidRuntime(1572):     at
> android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:
> 1047)
> 10-08 16:24:14.142: ERROR/AndroidRuntime(1572):     at
> android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
> 2627)
> 10-08 16:24:14.142: ERROR/AndroidRuntime(1572):     ... 11 more
> 10-08 16:24:14.331: WARN/ActivityManager(78):   Force finishing
> activity com.boosti.temodar.android/.TemodarHome
>
> On Oct 8, 4:10 pm, Mark Murphy  wrote:
>
> > I'd use android:layout_marginTop="200dip" on whatever is below your
> > View, instead of a separate spacer.
>
> > Can you post the exception associated with the "horrible death"?
>
> > On Fri, Oct 8, 2010 at 5:05 PM, DanH  wrote:
> > > Kind of an newbie question, I suppose -- I haven't done much playin

Re: [android-developers] Re: Creating a vertical spacer

2010-10-08 Thread Kostya Vasilyev
Would be nice if this could be reported at build time.

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

09.10.2010 1:29 пользователь "DanH"  написал:

Curse the LogCat view on Eclipse!  I see this when I export the
exception:  "java.lang.RuntimeException: Binary XML file line #10: You
must supply a layout_height attribute."


10-08 16:24:13.603: DEBUG/AndroidRuntime(1572): Shutting down VM
10-08 16:24:13.603: WARN/dalvikvm(1572): threadid=1: thread exiting
with uncaught exception (group=0x4001d800)
10-08 16:24:13.622: DEBUG/FlurryAgent(1572): Ending session
10-08 16:24:14.142: ERROR/AndroidRuntime(1572): FATAL EXCEPTION: main
10-08 16:24:14.142: ERROR/AndroidRuntime(1572):
java.lang.RuntimeException: Unable to start activity
ComponentInfo{com.boosti.temodar.android/
com.boosti.temodar.android.TemodarHome}: java.lang.RuntimeException:
Binary XML file line #10: You must supply a layout_height attribute.
10-08 16:24:14.142: ERROR/AndroidRuntime(1572): at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
2663)
10-08 16:24:14.142: ERROR/AndroidRuntime(1572): at
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:
2679)
10-08 16:24:14.142: ERROR/AndroidRuntime(1572): at
android.app.ActivityThread.access$2300(ActivityThread.java:125)
10-08 16:24:14.142: ERROR/AndroidRuntime(1572): at
android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033)
10-08 16:24:14.142: ERROR/AndroidRuntime(1572): at
android.os.Handler.dispatchMessage(Handler.java:99)
10-08 16:24:14.142: ERROR/AndroidRuntime(1572): at
android.os.Looper.loop(Looper.java:123)
10-08 16:24:14.142: ERROR/AndroidRuntime(1572): at
android.app.ActivityThread.main(ActivityThread.java:4627)
10-08 16:24:14.142: ERROR/AndroidRuntime(1572): at
java.lang.reflect.Method.invokeNative(Native Method)
10-08 16:24:14.142: ERROR/AndroidRuntime(1572): at
java.lang.reflect.Method.invoke(Method.java:521)
10-08 16:24:14.142: ERROR/AndroidRuntime(1572): at
com.android.internal.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit.java:868)
10-08 16:24:14.142: ERROR/AndroidRuntime(1572): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
10-08 16:24:14.142: ERROR/AndroidRuntime(1572): at
dalvik.system.NativeStart.main(Native Method)
10-08 16:24:14.142: ERROR/AndroidRuntime(1572): Caused by:
java.lang.RuntimeException: Binary XML file line #10: You must supply
a layout_height attribute.
10-08 16:24:14.142: ERROR/AndroidRuntime(1572): at
android.content.res.TypedArray.getLayoutDimension(TypedArray.java:491)
10-08 16:24:14.142: ERROR/AndroidRuntime(1572): at
android.view.ViewGroup$LayoutParams.setBaseAttributes(ViewGroup.java:
3593)
10-08 16:24:14.142: ERROR/AndroidRuntime(1572): at
android.view.ViewGroup$MarginLayoutParams.(ViewGroup.java:3672)
10-08 16:24:14.142: ERROR/AndroidRuntime(1572): at
android.widget.RelativeLayout$LayoutParams.(RelativeLayout.java:
1047)
10-08 16:24:14.142: ERROR/AndroidRuntime(1572): at
android.widget.RelativeLayout.generateLayoutParams(RelativeLayout.java:
917)
10-08 16:24:14.142: ERROR/AndroidRuntime(1572): at
android.widget.RelativeLayout.generateLayoutParams(RelativeLayout.java:
66)
10-08 16:24:14.142: ERROR/AndroidRuntime(1572): at
android.view.LayoutInflater.rInflate(LayoutInflater.java:620)
10-08 16:24:14.142: ERROR/AndroidRuntime(1572): at
android.view.LayoutInflater.inflate(LayoutInflater.java:407)
10-08 16:24:14.142: ERROR/AndroidRuntime(1572): at
android.view.LayoutInflater.inflate(LayoutInflater.java:320)
10-08 16:24:14.142: ERROR/AndroidRuntime(1572): at
android.view.LayoutInflater.inflate(LayoutInflater.java:276)
10-08 16:24:14.142: ERROR/AndroidRuntime(1572): at
com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:
198)
10-08 16:24:14.142: ERROR/AndroidRuntime(1572): at
android.app.Activity.setContentView(Activity.java:1647)
10-08 16:24:14.142: ERROR/AndroidRuntime(1572): at
com.boosti.temodar.android.TemodarHome.onCreate(TemodarHome.java:47)
10-08 16:24:14.142: ERROR/AndroidRuntime(1572): at
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:
1047)
10-08 16:24:14.142: ERROR/AndroidRuntime(1572): at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
2627)
10-08 16:24:14.142: ERROR/AndroidRuntime(1572): ... 11 more
10-08 16:24:14.331: WARN/ActivityManager(78):   Force finishing
activity com.boosti.temodar.android/.TemodarHome



On Oct 8, 4:10 pm, Mark Murphy  wrote:
> I'd use android:layout_marginTop...

> On Fri, Oct 8, 2010 at 5:05 PM, DanH  wrote:
> > Kind of an newbie question, I ...
> Mark Murphy (a Commons Guy)http://commonsware.com|
http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy

>
> _Android Programming Tutorials_ Version 3.0.1 Available!

-- 
You received this message because ...

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

[android-developers] TableLayout and displaying Database data

2010-10-08 Thread Boardy
Hi all,

I am currently looking in to developing an application for the android
platform. I have some information that is stored within the SQLite
Database of Android.

What I want to be able to do is to perform a query to the database
table and populate a TableLayout with the information from the
database table.

I have tried to find this on the Internet but have not had much luck.
If anyone can help me to get about doing this would be great.

Cheers.

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


[android-developers] Re: Horizontal scrolling list with image and text

2010-10-08 Thread Lance Hill
I haven't started yet since I wanted to make sure I wasn't heading
down a bad path. If this is the correct method of handling this
situation and there are already examples of how to do this out there,
I prefer to stand on the shoulders of giants.

On Oct 8, 3:08 pm, TreKing  wrote:
> On Fri, Oct 8, 2010 at 11:26 AM, Lance Hill  wrote:
> > Is it possible to display a list of images+text descriptions in a Gallery,
> > and if it is, does anyone have  an example of how to do this?
>
> I have not used Gallery, but considering it's just another ViewGroup, I
> don't see why you couldn't just add your custom layout / view to it with
> your image + text. Have you actually tried anything yet?
>
> -
> 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: Creating a vertical spacer

2010-10-08 Thread DanH
Curse the LogCat view on Eclipse!  I see this when I export the
exception:  "java.lang.RuntimeException: Binary XML file line #10: You
must supply a layout_height attribute."


10-08 16:24:13.603: DEBUG/AndroidRuntime(1572): Shutting down VM
10-08 16:24:13.603: WARN/dalvikvm(1572): threadid=1: thread exiting
with uncaught exception (group=0x4001d800)
10-08 16:24:13.622: DEBUG/FlurryAgent(1572): Ending session
10-08 16:24:14.142: ERROR/AndroidRuntime(1572): FATAL EXCEPTION: main
10-08 16:24:14.142: ERROR/AndroidRuntime(1572):
java.lang.RuntimeException: Unable to start activity
ComponentInfo{com.boosti.temodar.android/
com.boosti.temodar.android.TemodarHome}: java.lang.RuntimeException:
Binary XML file line #10: You must supply a layout_height attribute.
10-08 16:24:14.142: ERROR/AndroidRuntime(1572): at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
2663)
10-08 16:24:14.142: ERROR/AndroidRuntime(1572): at
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:
2679)
10-08 16:24:14.142: ERROR/AndroidRuntime(1572): at
android.app.ActivityThread.access$2300(ActivityThread.java:125)
10-08 16:24:14.142: ERROR/AndroidRuntime(1572): at
android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033)
10-08 16:24:14.142: ERROR/AndroidRuntime(1572): at
android.os.Handler.dispatchMessage(Handler.java:99)
10-08 16:24:14.142: ERROR/AndroidRuntime(1572): at
android.os.Looper.loop(Looper.java:123)
10-08 16:24:14.142: ERROR/AndroidRuntime(1572): at
android.app.ActivityThread.main(ActivityThread.java:4627)
10-08 16:24:14.142: ERROR/AndroidRuntime(1572): at
java.lang.reflect.Method.invokeNative(Native Method)
10-08 16:24:14.142: ERROR/AndroidRuntime(1572): at
java.lang.reflect.Method.invoke(Method.java:521)
10-08 16:24:14.142: ERROR/AndroidRuntime(1572): at
com.android.internal.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit.java:868)
10-08 16:24:14.142: ERROR/AndroidRuntime(1572): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
10-08 16:24:14.142: ERROR/AndroidRuntime(1572): at
dalvik.system.NativeStart.main(Native Method)
10-08 16:24:14.142: ERROR/AndroidRuntime(1572): Caused by:
java.lang.RuntimeException: Binary XML file line #10: You must supply
a layout_height attribute.
10-08 16:24:14.142: ERROR/AndroidRuntime(1572): at
android.content.res.TypedArray.getLayoutDimension(TypedArray.java:491)
10-08 16:24:14.142: ERROR/AndroidRuntime(1572): at
android.view.ViewGroup$LayoutParams.setBaseAttributes(ViewGroup.java:
3593)
10-08 16:24:14.142: ERROR/AndroidRuntime(1572): at
android.view.ViewGroup$MarginLayoutParams.(ViewGroup.java:3672)
10-08 16:24:14.142: ERROR/AndroidRuntime(1572): at
android.widget.RelativeLayout$LayoutParams.(RelativeLayout.java:
1047)
10-08 16:24:14.142: ERROR/AndroidRuntime(1572): at
android.widget.RelativeLayout.generateLayoutParams(RelativeLayout.java:
917)
10-08 16:24:14.142: ERROR/AndroidRuntime(1572): at
android.widget.RelativeLayout.generateLayoutParams(RelativeLayout.java:
66)
10-08 16:24:14.142: ERROR/AndroidRuntime(1572): at
android.view.LayoutInflater.rInflate(LayoutInflater.java:620)
10-08 16:24:14.142: ERROR/AndroidRuntime(1572): at
android.view.LayoutInflater.inflate(LayoutInflater.java:407)
10-08 16:24:14.142: ERROR/AndroidRuntime(1572): at
android.view.LayoutInflater.inflate(LayoutInflater.java:320)
10-08 16:24:14.142: ERROR/AndroidRuntime(1572): at
android.view.LayoutInflater.inflate(LayoutInflater.java:276)
10-08 16:24:14.142: ERROR/AndroidRuntime(1572): at
com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:
198)
10-08 16:24:14.142: ERROR/AndroidRuntime(1572): at
android.app.Activity.setContentView(Activity.java:1647)
10-08 16:24:14.142: ERROR/AndroidRuntime(1572): at
com.boosti.temodar.android.TemodarHome.onCreate(TemodarHome.java:47)
10-08 16:24:14.142: ERROR/AndroidRuntime(1572): at
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:
1047)
10-08 16:24:14.142: ERROR/AndroidRuntime(1572): at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
2627)
10-08 16:24:14.142: ERROR/AndroidRuntime(1572): ... 11 more
10-08 16:24:14.331: WARN/ActivityManager(78):   Force finishing
activity com.boosti.temodar.android/.TemodarHome


On Oct 8, 4:10 pm, Mark Murphy  wrote:
> I'd use android:layout_marginTop="200dip" on whatever is below your
> View, instead of a separate spacer.
>
> Can you post the exception associated with the "horrible death"?
>
>
>
> On Fri, Oct 8, 2010 at 5:05 PM, DanH  wrote:
> > Kind of an newbie question, I suppose -- I haven't done much playing
> > with layouts yet --
>
> > I want a spacer in a layout to space some text down below the "live"
> > part of a background image.  I tried this:
>
> > 
> >        http://schemas.android.com/apk/res/
> > android"
> >        android:id="@+id/CheckDeviceConnectivityView"
> >                android:layout_widt

[android-developers] Re: When is android market opening to India??

2010-10-08 Thread Pent
> India got paid apps on the 6th and I have since had orders from
> customers in India.

Ditto, though not many.

Pent

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

2010-10-08 Thread Mark Murphy
I'd use android:layout_marginTop="200dip" on whatever is below your
View, instead of a separate spacer.

Can you post the exception associated with the "horrible death"?

On Fri, Oct 8, 2010 at 5:05 PM, DanH  wrote:
> Kind of an newbie question, I suppose -- I haven't done much playing
> with layouts yet --
>
> I want a spacer in a layout to space some text down below the "live"
> part of a background image.  I tried this:
>
> 
>        http://schemas.android.com/apk/res/
> android"
>        android:id="@+id/CheckDeviceConnectivityView"
>                android:layout_width="fill_parent"
> android:layout_height="fill_parent"
>            android:orientation="vertical"
>            android:background="@drawable/i_notice_background"
>            android:paddingLeft="15dip" android:paddingRight="15dip">
>
>                 added
>                        android:minHeight="200dip"
>                        android:layout_width="fill_parent"
>                        />
> . . .
>
> Which seems straight-forward enough.  But setContentView dies a
> horrible death when passed the layout.  (And it works fine without
> that View element.)
>
> What am I doing wrong?  What's the best way to create a spacer?

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

_Android Programming Tutorials_ Version 3.0.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] Creating a vertical spacer

2010-10-08 Thread Tom Gibara
Difficult to say without the stack trace, but I notice that there's no
layout_height attribute on the View.

Tom.

On 8 October 2010 22:05, DanH  wrote:

> Kind of an newbie question, I suppose -- I haven't done much playing
> with layouts yet --
>
> I want a spacer in a layout to space some text down below the "live"
> part of a background image.  I tried this:
>
> 
>http://schemas.android.com/apk/res/
> android"
>android:id="@+id/CheckDeviceConnectivityView"
>android:layout_width="fill_parent"
> android:layout_height="fill_parent"
>android:orientation="vertical"
>android:background="@drawable/i_notice_background"
>android:paddingLeft="15dip" android:paddingRight="15dip">
>
> added
>android:minHeight="200dip"
>android:layout_width="fill_parent"
>/>
> . . .
>
> Which seems straight-forward enough.  But setContentView dies a
> horrible death when passed the layout.  (And it works fine without
> that View element.)
>
> What am I doing wrong?  What's the best way to create a spacer?
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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: Wierd memory leak

2010-10-08 Thread DanH
> "Greatly discourages sharing" seems like a bit of an over-statement.
> The Java programming language provides well-defined methods of sharing
> data between threads, and the Java memory model rigorously defines
> what is and isn't expected to work.  (Or were you referring to
> something else?)

I was referring to the fact that the Android app model makes most of
that stuff useless, since virtually all communications between threads
is via Intents, Messages, et al, vs actually sharing memory.

On Oct 8, 3:17 pm, fadden  wrote:
> On Oct 8, 3:57 am, DanH  wrote:
>
> > Well, I would hope that the Java threadsafe classes are still
> > threadsafe.  But essentially none of the UI is, and the structure of
> > the system greatly discourages sharing data between threads.
>
> Allowing multiple threads direct access to UI state causes a lot of
> pain (every data structure needs to be synchronized, lots of
> opportunities for races and funky timing issues).  You really want the
> UI to be single-threaded.
>
> "Greatly discourages sharing" seems like a bit of an over-statement.
> The Java programming language provides well-defined methods of sharing
> data between threads, and the Java memory model rigorously defines
> what is and isn't expected to work.  (Or were you referring to
> something else?)

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


[android-developers] Creating a vertical spacer

2010-10-08 Thread DanH
Kind of an newbie question, I suppose -- I haven't done much playing
with layouts yet --

I want a spacer in a layout to space some text down below the "live"
part of a background image.  I tried this:


http://schemas.android.com/apk/res/
android"
android:id="@+id/CheckDeviceConnectivityView"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical"
android:background="@drawable/i_notice_background"
android:paddingLeft="15dip" android:paddingRight="15dip">


. . .

Which seems straight-forward enough.  But setContentView dies a
horrible death when passed the layout.  (And it works fine without
that View element.)

What am I doing wrong?  What's the best way to create a spacer?

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

2010-10-08 Thread fadden
On Oct 8, 3:57 am, DanH  wrote:
> Well, I would hope that the Java threadsafe classes are still
> threadsafe.  But essentially none of the UI is, and the structure of
> the system greatly discourages sharing data between threads.

Allowing multiple threads direct access to UI state causes a lot of
pain (every data structure needs to be synchronized, lots of
opportunities for races and funky timing issues).  You really want the
UI to be single-threaded.

"Greatly discourages sharing" seems like a bit of an over-statement.
The Java programming language provides well-defined methods of sharing
data between threads, and the Java memory model rigorously defines
what is and isn't expected to work.  (Or were you referring to
something else?)

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: GLSurface doesn't draw anything when i came back again.

2010-10-08 Thread Lance Nanek
Well, one thing I can think of, make sure you are reloading your
textures in Renderer#onSurfaceChanged. They get cleared more often
than onSurfaceCreated is called. Also make sure your Activity is
calling GLSurfaceView#onPause and onResume at the right times.

On Oct 5, 9:36 pm, choi  wrote:
> Hello,
>
> I'm tryting to switch between normal view and glsurface view. For
> doing these operation, i assume it as
>
> Intent myIntent = new Intent(this, GLActivity.class);
> startActivityForResult(myIntent, 0);
> finish();
>
> but when i come back again to GLActivty, i see nothing on the screen.
> It has to draw all images.
> black screen is only i can see there. Anyone knows what am i doing
> wrong?
>
> Regards.

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


[android-developers] Re: reliable app store?

2010-10-08 Thread CindyC
Check www.netmobo.com. There's an API that supports collecting
payments regardless of app store and regardless of country as long as
you have the ability to receive supported payment methods in your
country. Supported payment methods are credit cards, Paypal and Google
Checkout. Cash cards in your country may also be supported.

On Oct 8, 6:27 am, Éva Lovrencsics  wrote:
> Hello all,
>
> I think it's a common problem.
> I'd like to sell my apps, but my country is not supported for merchants 
> already.
> Do you know a reliable app store where I can sell apps?
>
> Evi

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


[android-developers] Re: When is android market opening to India??

2010-10-08 Thread jtoolsdev
India got paid apps on the 6th and I have since had orders from
customers in India.

On Oct 6, 10:51 pm, Kumar Bibek  wrote:
> All I can say is "Wait and Watch" :(
>
> On Thu, Oct 7, 2010 at 11:20 AM, Vijay Vikrant Balyan <
>
>
>
> vijayvikran...@gmail.com> wrote:
>
> > Hello,
> >      Does anybody know about when exactly is the android market opening to
> > India.
>
> > Thanks,
> > Vikrant
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en
>
> --
> Kumar Bibekhttp://techdroid.kbeanie.comhttp://www.kbeanie.com

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


[android-developers] Re: Android - landscape-right and landscape-left orientation

2010-10-08 Thread DanH
Could you create an OrientationEventListener and set the orientation
yourself?  (The documentation seems to imply, but not specifically
state, that this operates independently of the setRequestedOrientation
value.)

On Oct 8, 7:07 am, neha  wrote:
> I have an application, that looks good in landscape orientation only
> and i want to support both landscape-left and landscape-right
> orientation.
>
> If use setRequestedOrientation(SCREEN_ORIENTATION_LANDSCAPE), my
> application gets restricted to landscape-right orientation (home key
> is in the right direction) and does not go to landscape-left
> orientation on device rotation.
>
> If use setRequestedOrientation(SCREEN_ORIENTATION_SENSOR), application
> goes to both landscape-left and landscape-right orientation but the
> problem is that it goes to portrait orientation also, on device
> rotation.
>
> Can somebody please highlight, how can both landscape-right and
> landscape-left orientations be supported without moving to portrait
> orientation? Are there are API to set the orientation to both
> landscape-left and landscape right orientation or some mechanism to
> prevent application from moving to portrait orientation when
> setRequestedOrientation(SCREEN_ORIENTATION_SENSOR) is used.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Follow up for the active install count problem

2010-10-08 Thread TreKing
On Fri, Oct 8, 2010 at 11:13 AM, Fabrizio Giudici <
fabrizio.giud...@tidalwave.it> wrote:

> and maybe the count would fix itself with new upgrades...
>

No. It gets better, but it's not fixed by any means. I pumped out an update
shortly after the supposed fix - I've gone up 20% from the lowest point but
have another 20% to go if it's to go back to "normal". I've also dropped
like 4 spots in my category since this fiasco but of course there's no way
of knowing for sure if it's related.

What would you do now?
>

Accept this as part of working with the Android Market, focus on the Google
Checkout number, and move on with your life?

-
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: Checkbox with multiple lines with different font size

2010-10-08 Thread DanH
You can supposedly do some formatting of text in TextView (and
subclasses) by creating a Spanned object out of
android.text.HTML.fromHtml() and then doing setText with that Spanned
object.  The documentation's a little (OK, a lot) vague as to what
subset of HTML is supported, though.

On Oct 8, 10:05 am, scadaguru  wrote:
> I am trying to put CheckBox with multiple lines and all lines after
> fist with smaller font size same as
> we have under from home page Menu->Settings->Sound & Display->Silent
> mode.
> It shows text "Silent mode" on first line and then some more text
> (kind of help/current settings) for this option
> and still CheckBox itself is aligned in the center of all the lines
> (may be on left or right side).
> Is that can be done by only one control/widget or group of many
> controls/widgets?
>
> I can only think of by using table but it is complex. I tried
> android:contentDescription but it did not work. Looks like it is for
> accessibility.
> Any help will be appreciated.
> Thanks,
> JP

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Horizontal scrolling list with image and text

2010-10-08 Thread TreKing
On Fri, Oct 8, 2010 at 11:26 AM, Lance Hill  wrote:

> Is it possible to display a list of images+text descriptions in a Gallery,
> and if it is, does anyone have  an example of how to do this?
>

I have not used Gallery, but considering it's just another ViewGroup, I
don't see why you couldn't just add your custom layout / view to it with
your image + text. Have you actually tried anything yet?

-
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: button placement problem

2010-10-08 Thread TreKing
On Fri, Oct 8, 2010 at 11:11 AM, Varun Khanduja wrote:

> The button at the bottom of the picture in the tutorial is somethign I am
> trying to achieve.
>

Not a very good tutorial if you can't get it to work :P

I don't know about that, but I would start by looking at setting a footer
view on the ListView.


-
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] Checkbox with multiple lines with different font size

2010-10-08 Thread TreKing
On Fri, Oct 8, 2010 at 10:05 AM, scadaguru  wrote:

> I am trying to put CheckBox with multiple lines and all lines after fist
> with smaller font size same as we have under from home page
> Menu->Settings->Sound & Display->Silent mode.
>

What you're looking at is a preference. You can achieve the same effect by
using a CheckBoxPreference yourself. If a preference is not what you want,
you can create a simple layout that has two text views and a check box setup
the way you want.

-
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: how to send data to server while recording

2010-10-08 Thread cindy
If it is possible, can you share some code ?

Thanks!

April

On Oct 8, 12:18 am, ko5tik  wrote:
> On Oct 8, 2:44 am,cindy wrote:
>
> > why we need base64 encoding? Is that AMR ?
>
> Because HTTP is text based protocol  - your server will barf on binary
> data
> (mine does ;) )

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

2010-10-08 Thread DanH
One MIGHT be able to work a deal with the phone's service provider
where it would be reported as the other number.  But this would
probably not work when roaming, even if you could swing it.

On Oct 7, 4:40 pm, Greg Donald  wrote:
> I've searched and found nothing helpful so I'm now asking for guidance.
>
> I have a client who wishes to spoof the caller id for his phones he
> assigns to his sales staff.  He wants the number to appear to be from
> his main office to better handle return calls from potential buyers.
>
> Is this possible?  After reading many posts on this list and much time
> Google'ng, I'm thinking it's not.  Meanwhile he is pointing to his
> internal phone system which does exactly as he described.  All his
> office phones appear to dial out from the same number as far as the
> receivers caller id is concerned.  How can I pull off the same on
> Android?
>
> Thanks,
>
> --
> 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: Simulating USB connection

2010-10-08 Thread Doug
What device does this occur on?  Is the app listening for any
broadcast intents, and if so, which?

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

2010-10-08 Thread MB
Why don't you sell/make the app available  on your own website?

On Oct 8, 3:27 am, Éva Lovrencsics  wrote:
> Hello all,
>
> I think it's a common problem.
> I'd like to sell my apps, but my country is not supported for merchants 
> already.
> Do you know a reliable app store where I can sell apps?
>
> Evi

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

2010-10-08 Thread MB
What's the use case you are trying to address?

On Oct 8, 4:21 am, Amit Mangal  wrote:
> Hi,
> Is it possible to write a background service in android which is
> undetectable ? it should not me present is app manager also.
>
> Thankyou

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

2010-10-08 Thread MB

How about an app that does offline routing?
You would get a lot of AT&T, T-mobile  customers.

On Oct 8, 9:59 am, DanH  wrote:
> The automotive test tool business is fairly big.  Mostly they use
> specialized equipment, but there may be a niche for using a phone with
> some sort of dongle to read computer info, do ignition analysis, etc.
>
> Trucking companies may be in the market for specialized apps for
> tracking their routes, etc.
>
> Otherwise, how about an app that just shoots the driver if he attempts
> to text while driving?  ;)
>
> On Oct 8, 8:55 am, kalyan kumar  wrote:
>
>
>
> > Hi Guys,
> > Can any one help me by providing some innovative automobile(car ) related
> > projects.
> > --
> > k.kalyankumar

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

2010-10-08 Thread DanH
Of course, that's what your app version is for.  ;)

On Oct 8, 12:01 pm, JonFHancock  wrote:
> I think we're finally  understanding each other, Dan.  I am using the
> public key as a secure way of identifying that the app is mine before
> I pass data back from the server.  The CRC323 isn't really used.  I do
> pass it as an extra piece of information that loosely identifies a
> specific build.
>
> The key identifies the app as validly signed by me.  The CRC32 just
> loosely says that this build is different from that build.  I do not
> depend on it for anything important.
>
> On Oct 8, 6:00 am, DanH  wrote:
>
> > I may have misinterpreted.  Presumably there's a checksum of the APK
> > data in the signed certificate.  I would assume (hope) that's a
> > cryptographically strong checksum.  (If not, the entire Android
> > platform is in jeopardy.)
>
> > If one wants a sure "signature" (in a generic sense) that uniquely and
> > reliably identifies a SPECIFIC version of code, that cryptographic
> > checksum would be what you want (though I don't know how you'd access
> > that).  Otherwise, the public key (which Diane has finally explained
> > is what the package "signature" is) is a secure, reliable way to
> > identify the publisher (and, with the package name, the specific app
> > (though not it's version)).
>
> > There's no point in creating a separate CRC32 over the app, to use as
> > an identity to send back to a server or whatever.
>
> > On Oct 8, 6:21 am, Mark Murphy  wrote:
>
> > > What CRC32 checksum?
>
> > > Trevor Johns, in a discussion of LVL, offered up CRC32 as a means of
> > > helping detect tampering, but that was simply an example. Otherwise, I
> > > am coming up with zero references to the use of CRC32 with respect to
> > > APKs.
>
> > > Do you have a pointer to somewhere in the open source code where they
> > > are using a CRC32 checksum in this fashion?
>
> > > Thanks!
>
> > > On Fri, Oct 8, 2010 at 7:12 AM, DanH  wrote:
> > > > What I mean is that if the bad actor can manipulate the apk bytes
> > > > while still maintaining the same checksum, then the whole scheme is
> > > > insecure -- there's no point in having it signed.  A CRC32 checksum is
> > > > easily spoofed -- the apk bytes need to be checksummed with a
> > > > cryptographic checksum of some sort.
>
> > > --
> > > Mark Murphy (a Commons 
> > > Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> > > Warescription: Three Android Books, Plus Updates, One Low Price!

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Goo Market Frustration(s) -- a request to experienced app developers

2010-10-08 Thread Nathan
The failure may very well be non specific to a Hero.
In addition, there are some things that may break on Hero that won't
break on others.

If you run it in a 1.5 emulator, you will already find out if you are
using APIs that weren't available in 1.5.
Also try to run it hundreds of times consecutively in the emulator to
see if you can trigger OutOfMemory.

The HERO handles memory poorly and has less RAM allowed per app than
other devices.
1.5 does not allow certain flags on BitmapFactory that would help the
memory situation a lot.

The combination of these two things is what I believe is causing a
crash that a user reported ( still without many details).

Except for the fact that I've already had 1.5 enabled for some time, I
would consider not supporting 1.5 in the manifest.

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


[android-developers] Re: 2.2 apk does not install in 2.1 droid

2010-10-08 Thread JonFHancock
Always a pleasure.

On Oct 8, 1:50 am, kavitha b  wrote:
> Thanks JonFHancock.
>
> It solved my problem.
>
>
>
>
>
>
>
> On Fri, Oct 8, 2010 at 12:31 PM, JonFHancock  wrote:
> > Sorry, I should have linked to the relevant documentation.
>
> >http://developer.android.com/guide/topics/manifest/uses-sdk-element.html
>
> > and
>
> >http://developer.android.com/guide/topics/manifest/manifest-intro.html
>
> > On Oct 7, 11:59 pm, JonFHancock  wrote:
> > > In your manifest file, you have probably set the minSDKVersion to 8.
> > > Set it to 7 or maybe lower.  If you set it at 8, it will be a 2.2 only
> > > app.  7 is 2.1 and so on.  5 and 6 are irrelevant.  If you want to
> > > work on 1.6 (there are still new devices being sold with 1.6), you
> > > need to set it to 4.
>
> > > On Oct 7, 11:36 pm, kavitha b  wrote:
>
> > > > Hi All,
>
> > > > I have created a project in Android 2.2 SDK .
>
> > > > The droid I am having is of OS 2.1 .
>
> > > > I am not able to install the project in droid,because of OS change
> > version.
>
> > > > How to make it install apk in old OS versions.
>
> > > > Please reply,it is urgent.
>
> > > > Thanks
> > > > Kavitha
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To 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: Possible to check .apk signature?

2010-10-08 Thread JonFHancock
I think we're finally  understanding each other, Dan.  I am using the
public key as a secure way of identifying that the app is mine before
I pass data back from the server.  The CRC323 isn't really used.  I do
pass it as an extra piece of information that loosely identifies a
specific build.

The key identifies the app as validly signed by me.  The CRC32 just
loosely says that this build is different from that build.  I do not
depend on it for anything important.


On Oct 8, 6:00 am, DanH  wrote:
> I may have misinterpreted.  Presumably there's a checksum of the APK
> data in the signed certificate.  I would assume (hope) that's a
> cryptographically strong checksum.  (If not, the entire Android
> platform is in jeopardy.)
>
> If one wants a sure "signature" (in a generic sense) that uniquely and
> reliably identifies a SPECIFIC version of code, that cryptographic
> checksum would be what you want (though I don't know how you'd access
> that).  Otherwise, the public key (which Diane has finally explained
> is what the package "signature" is) is a secure, reliable way to
> identify the publisher (and, with the package name, the specific app
> (though not it's version)).
>
> There's no point in creating a separate CRC32 over the app, to use as
> an identity to send back to a server or whatever.
>
> On Oct 8, 6:21 am, Mark Murphy  wrote:
>
>
>
>
>
>
>
> > What CRC32 checksum?
>
> > Trevor Johns, in a discussion of LVL, offered up CRC32 as a means of
> > helping detect tampering, but that was simply an example. Otherwise, I
> > am coming up with zero references to the use of CRC32 with respect to
> > APKs.
>
> > Do you have a pointer to somewhere in the open source code where they
> > are using a CRC32 checksum in this fashion?
>
> > Thanks!
>
> > On Fri, Oct 8, 2010 at 7:12 AM, DanH  wrote:
> > > What I mean is that if the bad actor can manipulate the apk bytes
> > > while still maintaining the same checksum, then the whole scheme is
> > > insecure -- there's no point in having it signed.  A CRC32 checksum is
> > > easily spoofed -- the apk bytes need to be checksummed with a
> > > cryptographic checksum of some sort.
>
> > --
> > Mark Murphy (a Commons 
> > Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> > Warescription: Three Android Books, Plus Updates, One Low Price!

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

2010-10-08 Thread DanH
The automotive test tool business is fairly big.  Mostly they use
specialized equipment, but there may be a niche for using a phone with
some sort of dongle to read computer info, do ignition analysis, etc.

Trucking companies may be in the market for specialized apps for
tracking their routes, etc.

Otherwise, how about an app that just shoots the driver if he attempts
to text while driving?  ;)

On Oct 8, 8:55 am, kalyan kumar  wrote:
> Hi Guys,
> Can any one help me by providing some innovative automobile(car ) related
> projects.
> --
> k.kalyankumar

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Anybody experiencing a boost in sales since opening up to other countries?

2010-10-08 Thread JonFHancock
Another relatively slow day so far.  My app was showing in the market
(for me at least), but I unpublished and republished for good
measure.  We'll see...

On Oct 8, 6:29 am, Zsolt Vasvari  wrote:
> I just unpublushed and republished it and it showed up immediately.
> WTF
>
> On Oct 8, 9:24 pm, Zsolt Vasvari  wrote:
>
>
>
>
>
>
>
> > I can find my app if I search for it, but not if I just list the apps
> > in my category.
>
> > On Oct 8, 8:58 pm, String  wrote:
>
> > > On Oct 8, 7:20 am, Zsolt Vasvari  wrote:
>
> > > > Yes, this happened to me as well.  I think there must have been
> > > > something wrong with the market, as I haven't had a sale for about 10
> > > > hrs.
>
> > > You might want to see if your app is visible in the Market. My top app
> > > has suddenly vanished, from both my G1 and N1, for no readily apparent
> > > reason. I think the Market is going through one of its usual periods
> > > of instability.
>
> > > String- Hide quoted text -
>
> > - Show quoted text -

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


Re: [android-developers] Follow up for the active install count problem

2010-10-08 Thread Stephen Jungels
My count had dropped to the point where it looked like an abandoned
app (about 33% at the lowest, I think).  It started to stabilize and
then go up again, and after I did a release a few days ago it jumped
from 37% to 45%, so I think releasing an update will get things back
to normal more quickly than waiting it out.

--SJ

On Fri, Oct 8, 2010 at 12:13 PM, Fabrizio Giudici
 wrote:
>  Just received this from the Market support:
>
>
> We wanted to follow-up. By now, you should have noticed that the installs
> metrics for your applications have been restored. We identified the problem
> as occurring with application updates only, have made some changes recently
> that should resolve and prevent this problem. Please let us know if this
> error persists.
>
> If we can assist you further, please let us know.
>
>
>
> In my case, things have not changed at all. Downloads are increasing (1550)
> and active installs stabilized at 29% (the value before the drop was
> 44/45%). So, indeed active installs are increasing again - 29% is stable
> since three weeks - but the original percentage was not restored. Now, I
> don't know what to think... Maybe the problem is not solved, maybe in my
> specific case the active installs really dropped for a while (but it's
> curious that it only happened for a while...).
> BTW, I didn't release any new upgrade since then (I have a new one almost
> ready, but I'm beyond schedule because of personal problems) - and maybe the
> count would fix itself with new upgrades...
>
> What would you do now? Is there anybody else for which the problem was not
> solved?
>
> --
> 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

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

2010-10-08 Thread DanH
Getting back to the original topic, there is a scheme that would be
fairly secure if the regular JDK were used but is probably broken by
Dalvik:  Have the server specify a random class in the application,
and random start/end offsets in the class's bytecodes, and have he
application then do ClassLoader.getResourceAsStream to open the class
file, access the bytes, and compute a checksum on them.  The
combinations would be innumerable, so there's no way the values could
be precomputed, and by using getResourceAsStream you're sure that the
actual code bytes are being referenced.

Alas, it's not perfect, though:  The hacker could install a separate
copy of the original code as a raw file and write his own replacement
for getResourceAsStream.  Would be a fair challenge, though.

And, of course, the whole scheme is torpedoed by Dalvik, since the
bytecodes are not preserved and getResourceAsStream on a class file
likely errors out.

On Oct 8, 8:00 am, DanH  wrote:
> I may have misinterpreted.  Presumably there's a checksum of the APK
> data in the signed certificate.  I would assume (hope) that's a
> cryptographically strong checksum.  (If not, the entire Android
> platform is in jeopardy.)
>
> If one wants a sure "signature" (in a generic sense) that uniquely and
> reliably identifies a SPECIFIC version of code, that cryptographic
> checksum would be what you want (though I don't know how you'd access
> that).  Otherwise, the public key (which Diane has finally explained
> is what the package "signature" is) is a secure, reliable way to
> identify the publisher (and, with the package name, the specific app
> (though not it's version)).
>
> There's no point in creating a separate CRC32 over the app, to use as
> an identity to send back to a server or whatever.
>
> On Oct 8, 6:21 am, Mark Murphy  wrote:
>
> > What CRC32 checksum?
>
> > Trevor Johns, in a discussion of LVL, offered up CRC32 as a means of
> > helping detect tampering, but that was simply an example. Otherwise, I
> > am coming up with zero references to the use of CRC32 with respect to
> > APKs.
>
> > Do you have a pointer to somewhere in the open source code where they
> > are using a CRC32 checksum in this fashion?
>
> > Thanks!
>
> > On Fri, Oct 8, 2010 at 7:12 AM, DanH  wrote:
> > > What I mean is that if the bad actor can manipulate the apk bytes
> > > while still maintaining the same checksum, then the whole scheme is
> > > insecure -- there's no point in having it signed.  A CRC32 checksum is
> > > easily spoofed -- the apk bytes need to be checksummed with a
> > > cryptographic checksum of some sort.
>
> > --
> > Mark Murphy (a Commons 
> > Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> > Warescription: Three Android Books, Plus Updates, One Low Price!

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


[android-developers] 3D Model Loading Problem

2010-10-08 Thread souza
Hi everyone,

I'm developing an android application for my thesis and I need to load
a 3D model into it. I have decided to use the .obj file structure as
input. After some searching in the internet and also here in the
Android Developers group I found an object loader provided by the
project android-gl (http://code.google.com/p/android-gl/). Its
ObjectLoader.java file provides the following load methods:

public Model load(InputStream in)
throws IOException

public Model load(String file)
throws IOException

My problem at the moment is to correctly load the model into my
application so that I can see it on the display. I have integrated the
loader call inside the onDrawFrame method:

public void onDrawFrame(GL10 gl) {

gl.glClear(GL10.GL_COLOR_BUFFER_BIT);
gl.glFrontFace(GL10.GL_CW);
gl.glEnable(GL10.GL_CULL_FACE);
gl.glCullFace(GL10.GL_BACK);

for(int loop = 0; loop < 2; loop++) {

if(loop==0) {
gl.glViewport(0, 0, w, h);
gl.glMatrixMode(GL10.GL_PROJECTION);
gl.glLoadIdentity();
gl.glOrthof(-1.0f, 1.0f, -1.0f * h / w, 1.0f * 
h / w, -2.0f,
10.0f);
}

if(loop==1) {
gl.glViewport(0, 65, w/2, w/2);
gl.glMatrixMode(GL10.GL_PROJECTION);
gl.glLoadIdentity();
GLU.gluPerspective(gl, 45.0f, (float) w / 
(float) h, -2.0f,
10.0f);
}

gl.glMatrixMode(GL10.GL_MODELVIEW);
gl.glLoadIdentity();

gl.glClear(GL10.GL_DEPTH_BUFFER_BIT);

if(loop==0) {
gl.glPushMatrix();

gl.glEnableClientState(GL10.GL_VERTEX_ARRAY);

gl.glEnableClientState(GL10.GL_TEXTURE_COORD_ARRAY);
gl.glBindTexture(GL10.GL_TEXTURE_2D, 
textureId);

gl.glTranslatef(0.0f, 0.0f, 10.0f);

gl.glVertexPointer(2, GL10.GL_FLOAT, 0, 
vertices);
gl.glEnable(GL10.GL_TEXTURE_2D);
gl.glTexCoordPointer(2, GL10.GL_FLOAT, 
0, texCoords);
gl.glDrawElements(GL10.GL_TRIANGLES, 
mIndices.length,
GL10.GL_UNSIGNED_SHORT, indices);
gl.glPopMatrix();
gl.glDisable(GL10.GL_TEXTURE_2D);
}


// NOW THE PART WITH THE LOADER


if(loop==1) {
gl.glPushMatrix();
gl.glTranslatef(0.0f, 0.0f, 5.0f);
// loading 3D model
try {
-> loader.load(new 
FileInputStream("sdcard/
pixbag.obj"));
} catch (FileNotFoundException e) {
   e.printStackTrace();
} catch (Exception e) {
   e.printStackTrace();
}
gl.glPopMatrix();
}
}

gl.glDisable(GL10.GL_CULL_FACE);
gl.glFlush();
}

Since I'm working with the android emulator I wanted to load the obj
file out of the emulated sdcard device. But when I'm trying to push a
file onto it using DDMS in eclipse the console returns the following
lines:

Failed to push the item(s).
(null)

I also tried to push the file using the command line tool without
result :( So for now without the model I'm even not sure if the loader
does what it's supposed to do.

Another way I tried was to have the obj file in the assets folder of
my eclipse project from where I also load my texture file. So I have
modified the above-mentioned lines concerning the loader to:

InputStream in = getAssets().open("pixbag.obj");
loader.load(in);

This revision neither worked. I still cannot see the 3d model. Any
help and advise on how I can load and display the 3d data in the
emulator is more than appreciated!

thanks in advance,
Sadi






-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Goo Market Frustration(s) -- a request to experienced app developers

2010-10-08 Thread Kostya Vasilyev

 08.10.2010 19:29, Streets Of Boston пишет:

Also, your app may not work on HIS hero-phone.
It could be tons of things, depending on your app, that may have
nothing to do with a particular (brand of) device, but with software
loaded on it.


[snip]

And i agree with Nathan; someone giving a one-star rating with just a
"Does not work" type of comment is unlikely to contact you even if he
or she could so easily.


Right, they usually don't.

Curiously enough, if a task killer or custom firmware is involved, users 
tend to blame the most recently installed application, or one that 
misbehaves (while being killed repeatedly, never having a chance to do 
what it's supposed to).


I'm glad to see this tightened in Froyo.

-- Kostya



On Oct 7, 10:45 am, Nathan  wrote:

On Oct 7, 7:27 am, tony obrien  wrote:>  I was going to say, 
"So if I can't test on EVERY device..." but

perhaps that's my first question...
{a} Was I absent the day they told us in Android SDK class that any
actual DEVICE may react differently from some other? I understand that
if the device does not support somthing then, of course, it can't
comply to my app's request.
Example:  I have 100's of downloads for an app... then I get a 1-STAR
with the comment: "Does not work on HERO."
So I can imagine that he may be right OR he might be a twit and many
others with HEROs had no problem.

Yep.


I find the communications facilities between the DEVELOPER and his
AUDIENCE via the GOO Market to be quite unsophisticated.

Yep


So...
{b} Is there some mechanism that I am not aware of that allows me to
'confront' my downloaders directly (i.e. an email address or
something?) so that I can help them or at least discover what the heck
someone means by "It don't work" ??

No. The one star person is unlikely to come back or help you anyway.


At the moment I am planning on adding an entire new "layout" to all of
my apps which would beg them to get in touch with me if they have
*any* problem at all ...  is this my only means to accomplish this?

Yes, that is probably your best option. Loading up the app with
admonitions is what works best. Get them subscribed to your
newsletter, give them handy error report buttons, walk them through
every step they have to take avoid errors.

Even then, you won't completely prevent comments like you've seen.
Many don't spend more than seven seconds on an app, and not everyone
wants to help improve or fix an app. The app can be working fine, but
not work the way *they* expect, and you will still get that comment.

Nathan



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


Re: [android-developers] Re: Undetectable Android Service

2010-10-08 Thread Kostya Vasilyev
 Even so, the process can still be around and visible in a task killer 
/ process manager / settings screen.


-- Kostya

08.10.2010 20:08, Bret Foreman пишет:

Well, sort of. You can build a service that listens for an Intent,
then wakes up and does something. This will not be "running" in the
background, but it will be waiting to spring into action when the
right event occurs.




--
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] Horizontal scrolling list with image and text

2010-10-08 Thread Lance Hill
It seems like the best way to create a horizontal scrolling list of
images is to use the Gallery widget. I need to display sidebar text
with each image.The examples I have seen showing how to use the
Gallery widget only show images. Is it possible to display a list of
images+text descriptions in a Gallery, and if it is, does anyone have
an example of how to do this?

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


[android-developers] Re: javax.sound alternative

2010-10-08 Thread Mrid
Does Android supports recording in u-law format. I can see PCM-16 and
PCM-8bit raw format.
If not, what can be done like adding header separately?

On Oct 7, 4:37 pm, Mrid  wrote:
> Thank you Mark for the reply.
> I am here uptil now.
>
>                         int bufferSize =
> AudioRecord.getMinBufferSize(8000,
> AudioFormat.CHANNEL_CONFIGURATION_MONO,
> AudioFormat.ENCODING_PCM_16BIT);
>                         AudioRecord recorder = new
> AudioRecord(MediaRecorder.AudioSource.MIC, 8000,
> AudioFormat.CHANNEL_CONFIGURATION_MONO,
> AudioFormat.ENCODING_PCM_16BIT,bufferSize*4);
>                         recorder.startRecording();
>                         al.length(4000);
>
>                         byte[] tempBuffer = new byte[bufferSize];
>                         bufferRead = recorder.read(tempBuffer, 0, bufferSize);
>
>                         for (int idxBuffer = 0; idxBuffer < bufferRead; 
> ++idxBuffer) {
>                                 Log.i(""+idxBuffer, ""+tempBuffer[idxBuffer]);
>                         }
>                         recorder.stop();
>                         return tempBuffer;
>
> which is uptil step 7 in my above post. I dont know how to proceed
> from here. I tried to pass this byte array on to the server (which
> accepts above format), and the server responded me with incorrect
> format error.
> Do you have any idea how to proceed from here?
>
> On Oct 7, 2:56 pm, OldSkoolMark  wrote:
>
>
>
> > The current Android audio API's are rather spotty in terms of what
> > they provide. You'll have to write your own .wav converter at the very
> > least.
>
> > On Oct 7, 2:09 pm, Mrid  wrote:
>
> > > can anyone please help me on this ?
>
> > > On Oct 6, 3:37 pm, Mrid  wrote:
>
> > > > Hi All,
>
> > > > wanted to know is there any alternative ofjavax.sound.sampled package
> > > > specially AudioSystem and TargetDataLine class. Here is the sample
> > > > code in java I am referring to :
>
> > > >                 1       AudioFormat af = new
> > > > AudioFormat(AudioFormat.Encoding.PCM_SIGNED, 8000.0F, 16, 1, 2,
> > > > 8000.0F, false);
> > > >                 2       DataLine.Info info = new
> > > > DataLine.Info(TargetDataLine.class, af);
> > > >                 3       TargetDataLine line = (TargetDataLine) 
> > > > AudioSystem.getLine(info);
> > > >                 4       line.open(af, 800);
> > > >                 5       SoundRecorder recorder = new 
> > > > SoundRecorder(line, this,
> > > > seconds);                          //  this class records the sound
> > > > and returns recording in byte array
> > > >                 6       recorder.start();
> > > >                 7       recorder.join();
> > > >                 8
> > > >                 9       // Write with headers
> > > >                 10      ByteArrayInputStream soundbytes = new
> > > > ByteArrayInputStream(recorder.getRecording());
> > > >                 11      ByteArrayOutputStream byteswithheaders = new
> > > > ByteArrayOutputStream();
> > > >                 12      AudioSystem.write(new 
> > > > AudioInputStream(soundbytes, af,
> > > > soundbytes.available() / 2), AudioFileFormat.Type.WAVE,
> > > > byteswithheaders);
> > > >                 13      return byteswithheaders.toByteArray();
>
> > > > So far I am able to record the data in format specified in step 1. and
> > > > convert it into byte array.
> > > > My doubts:
> > > > ->I recorded sound without using Dataline class, will that make any
> > > > difference
> > > > ->Which class should I use in Android, instead of step 12.
> > > > -> or some one has any other idea??

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


[android-developers] Follow up for the active install count problem

2010-10-08 Thread Fabrizio Giudici

 Just received this from the Market support:


We wanted to follow-up. By now, you should have noticed that the installs 
metrics for your applications have been restored. We identified the problem as 
occurring with application updates only, have made some changes recently that 
should resolve and prevent this problem. Please let us know if this error 
persists.

If we can assist you further, please let us know.



In my case, things have not changed at all. Downloads are increasing 
(1550) and active installs stabilized at 29% (the value before the drop 
was 44/45%). So, indeed active installs are increasing again - 29% is 
stable since three weeks - but the original percentage was not restored. 
Now, I don't know what to think... Maybe the problem is not solved, 
maybe in my specific case the active installs really dropped for a while 
(but it's curious that it only happened for a while...).
BTW, I didn't release any new upgrade since then (I have a new one 
almost ready, but I'm beyond schedule because of personal problems) - 
and maybe the count would fix itself with new upgrades...


What would you do now? Is there anybody else for which the problem was 
not solved?


--
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] Re: button placement problem

2010-10-08 Thread Varun Khanduja
The button at the bottom of the picture in the tutorial is somethign I
am trying to achieve.

http://blog.maxaller.name/2010/05/attaching-a-sticky-headerfooter-to-an-android-listview/

On Oct 8, 5:33 am, TreKing  wrote:
> On Thu, Oct 7, 2010 at 6:13 PM, Varun Khanduja wrote:
>
> > I am trying to get a button at bottom of a screen having a list view.
>
> Could you add more detail to the problem you're having and the outcome
> you're trying to achieve?
> A picture of each case would help as well if you have it.
>
> --- 
> --
> 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: Undetectable Android Service

2010-10-08 Thread Bret Foreman
Well, sort of. You can build a service that listens for an Intent,
then wakes up and does something. This will not be "running" in the
background, but it will be waiting to spring into action when the
right event occurs.

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

2010-10-08 Thread TreKing
On Fri, Oct 8, 2010 at 6:21 AM, Amit Mangal wrote:

> Hi,
> Is it possible to write a background service in android which is
> undetectable ? it should not me present is app manager also.
>

Negative.

-
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: automotive related project ideas

2010-10-08 Thread Bret Foreman
Use the accelerometer to give people advice about how to achieve
better fuel economy by minimizing excessive braking and moderating
acceleration. Make the screen graphics big and simple so they don't
have to look down for more than a split second - no text, just shapes
and colors.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Goo Market Frustration(s) -- a request to experienced app developers

2010-10-08 Thread Bret Foreman
When my app encounters an error it pops up a message with two buttons
- "Dismiss" and "Email Error Report". The error report builds an XML
document with every detail I can query about the phone and emails it
to a dedicated address. This tends to give me at least basic data even
from someone who just downloaded, tried it once, discovered it didn't
work on their phone, and uninstalled it. Half the time, they also
click the "Email Error Report" button so I have both their email
address (in case I have questions or want to let them know I fixed
their problem) and the report data.

In the next release of my app, I plan to record a "menu history" which
will be included in the error report, enabling me to replay the user's
actions. All of this is fairly easy to implement, especially compared
to the normal cat-and-mouse game of trying to get enough data from a
user to diagnose his/her issue.

Users also get a chance to add comments to the email before it's sent,
or to opt out at the last minute. So far this approach is working
great and total implementation time was about a day.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Why doesn't my 2d polygon get filled?

2010-10-08 Thread Romain Guy
That is not how drawVertices() works. drawVertices() only fills with
shaders. If you want to draw an arbitrary shape, just use a Path
instead.

On Fri, Oct 8, 2010 at 12:35 AM, MobileVisuals  wrote:
> I can draw polygons with canvas.drawVertices, but I can not fill them.
> I have set Paint.Style.FILL on the paint object,but the polygon
> doesn't get filled. Why doesn't the polygon get filled? This is my
> code:
>
> mLinePaint2 = new Paint();
> mLinePaint2.setARGB(255, 255, 0, 0);
> mLinePaint2.setStyle(Paint.Style.FILL);
>
> canvas.drawVertices(Canvas.VertexMode.TRIANGLES, verts.length, verts,
> 0, null, 0, null, 0, null, 0, 0, mLinePaint2);
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] Re: How to convert xml to svg in Android

2010-10-08 Thread DanH
If at all possible you should use a utility to convert the SVG to some
other format before loading it onto the phone.

On Oct 8, 9:11 am, 大风  wrote:
> So I want to write it myself, there are already apps that implement it
> but no source code.
>
> On Oct 8, 9:15 pm, jamesc  wrote:
>
> > Android doesn't currently have SVG 
> > support:http://developer.android.com/guide/appendix/media-formats.html
>
> > On Oct 8, 1:03 pm, 大风  wrote:
>
> > > Well,Now I want to parse the svg file in Android.What do I need to do?
> > > On Oct 8, 7:06 pm, DanH  wrote:
>
> > > > Rename it from .xml to .svg?  (Of course, this will only work if it's
> > > > the valid XML for an SVG image.)
>
> > > > On Oct 8, 2:12 am, 大风  wrote:
>
> > > > > How to convert xml to svg in Android, Anybody anyideas?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Unit testing a class that uses android.os.Handler

2010-10-08 Thread Lance Nanek
Handler has multiple constructors. The ones that take a Looper
argument can take the Looper for a Thread other than the current one.
That way you don't need to create the Handler on that Thread and it is
easier to ensure it is not null on the Thread using it. There's also
an android.os.HandlerThread utility class that is pretty much just a
Thread with a Looper. It has a getLooper method that's easy to feed
into the Handler constructor and that avoids the issue with prepare()
taking a while sometimes and leaving you with a null longer than you'd
expect.

On Oct 7, 8:04 pm, DanH  wrote:
> Come to think of it, how would one create a Handler for another
> thread?  You'd have to dispatch the thread and have it create the
> Handler and pass the pointer back to you (we won't worry about how),
> but then that thread needs to go into a message receive loop.
>
>  Apparently this is done via Looper.  I'm guessing the code would be
> like this:
>
>   class LooperThread extends Thread {
>       public Handler mHandler;
>
>       public void run() {
>           Looper.prepare();
>
>           mHandler = new Handler();
>
>           Looper.loop();
>       }
>   }
>
> You'd start this thread and then use your pointer to it to access
> mHandler (though you'd have to guard somehow against getting a null
> before the reference was set).  Then dispatch Runnables or Messages
> via that handler.
>
> (Gotta wonder where Looper stashes the instance it creates of itself
> to attach to the Thread.  I suppose it uses ThreadLocal.)
>
> On Oct 7, 4:38 pm, DanH  wrote:
>
> > But I don't see anywhere in the Handler spec where it says the thread
> > will be dispatched.  It appears to me that when the thread is posted,
> > Handler will just run its "run" method, without starting the thread.
> > If you wanted to run on a separate thread it appears to me that you'd
> > have to start the thread, have that thread create a Handler and pass
> > it back to you somehow, and then post via THAT Handler.
>
> > At least that's how I'd interpret this:  "Each Handler instance is
> > associated with a single thread and that thread's message queue. When
> > you create a new Handler, it is bound to the thread / message queue of
> > the thread that is creating it -- from that point on, it will deliver
> > messages and runnables to that message queue and execute them as they
> > come out of the message queue."
>
> > On Oct 7, 4:25 pm, Jeremy Wadsack  wrote:
>
> > > Fair point. The "// Do some tasks" is doing long-running (Internet-
> > > connected) stuff, so I want it to run in a separate thread. As I
> > > understand, posting the Runnable without a thread would run it on the
> > > main thread.
>
> > > I assume the gc will clean up the Threads as they expire, but I could
> > > also redesign this to have a single active thread that posts Runnables
> > > (or even just messages) to it's own MessageQueue at specified
> > > intervals. Then I'd be managing the looper myself (that is, calling
> > > Looper.loop), which would probably resolve this issue.
>
> > > That doesn't answer the original question but it may be the right
> > > approach if it's more "android-y".
>
> > > --
> > > Jeremy Wadsack
>
> > > On Oct 7, 1:20 pm, DanH  wrote:
>
> > > > Kind of off-topic, but why are you creating a new Thread with each
> > > > post, vs simply posting the Runnable?
>
> > > > On Oct 5, 5:47 pm, Jeremy Wadsack  wrote:
>
> > > > > I have a class that uses a Handler for a timed, asynchronous activity.
> > > > > Something like this:
>
> > > > > public class SampleClass {
> > > > >   private static final long DELAY = 3;
> > > > >   private boolean isRunning = false;
> > > > >   private Handler handler = new Handler();
>
> > > > >   public start() {
> > > > >     if (!isRunning) {
> > > > >       isRunning = true;
> > > > >       handler.post(new Thread(task));
> > > > >     }
> > > > >   }
>
> > > > >   public stop() {
> > > > >     isRunning = false;
> > > > >   }
>
> > > > >   private Runnable task = new Runnable() {
> > > > >     public void run() {
> > > > >       if (!isRunning) {
> > > > >         return;
> > > > >       }
>
> > > > >       // Do some tasks
> > > > >       handler.postDelayed(new Thread(this), DELAY);
> > > > >     }
> > > > >   }
>
> > > > > }
>
> > > > > I am trying to write a unit test (without having to implement an
> > > > > activity that instantiates the class) but I can't seem to get the
> > > > > items that are posted to the MessageQueue to ever be fired. Inheriting
> > > > > from junit.framework.TestCase doesn't work, but then there wouldn't be
> > > > > a MessageQueue for the handler, I'd expect (although, there's no
> > > > > error, but the Runnable never gets called). I tried inheriting the
> > > > > test class from AndroidTestCase and ApplicationTestCase
> > > > > but neither of those works, even though the former is supposed to
> > > > > provide a Context and the latter "all the life cycle of an
> > > > > application."
>
> > > > > Anyone 

  1   2   >