Re: [android-developers] Re: Moving from free app to a paid model

2011-05-30 Thread Chris
I already have an export to SD, import to whatever version design so even if 
I had to force them to install a new app it'd be easy.  I'm mostly worried 
about what the conversion rate might be.  My app is based on long-term data 
storage and analysis, so old users who simply can't upgrade (eg, due to 
market limitations & etc.) might be put off.

Most of my traction came from overseas.  Fragmentation is an issue (I really 
want to drop support for Android 1.x) and I'm guessing I'm going to be 
supporting a "final" free version forever.

I'm thinking in-app billing for upgrades to a "pro" version might be the 
best way at this point... any advice on handling this?

Cheers again,
- C

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

2011-05-30 Thread Abhishek Kumar Gupta
I am a newbie, I want to place a widget by default on homescreen i.e., when 
we switch-on the phone(or emulator) that particular widget should display on 
the homescreen. Please help me.

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

Re: [android-developers] Re: Mac or PC for development

2011-05-30 Thread Jonas Petersson

On 2011-05-31 02:52, Doug wrote:

On May 30, 1:24 am, Raghav Sood  wrote:

I am currently using a PC running Ubuntu 11.04. Money is not a problem so I
think I'll get a Macbook Pro and dual boot OS X and Ubuntu 11.04 on it.


How are you going to dual boot with Linux on a MacBook?  Boot Camp
only supports Windows products.


Um, I've been running various kinds of Linux on my company provided 
MacBookPros for 5+ years without problems. Theoretically, I guess I'm 
"dual booting" (as I kept a small OSX partition just in case), but in 
reality I don't boot that partition. Remember: pretty much anything that 
boots x86 Windows will also work with Linux. These days it isn't even 
particularly tricky to install - in fact, I consider the way the 
multi-touch pad works in Linux better than how it is used in OSX (YMMV).


The MBP hardware is pretty good in my experience, the only iffy part is 
the BCM wifi.



If you want to run any kind of Linux on a MacBook, then you'll need to
get a product such as VMWare or Parallels to run some Linux in a VM
hosted within OS X.


Nope. You certainly can if you like, though.


I've been doing all my Android dev on OS X for two years and haven't
needed Linux for anything, even NDK work.  And I have never had to
find and and install device drivers like my peers using Windows.  One
major exception is with Samsung Galaxy S products -- if you want to
install a new firmware on those devices, you need Windows to run
Samsung's crappy Kies software.


Oh, I have a vbox with Windows on my MacBookPro (currently running 
Ubuntu 11.04) for the odd Windows-only stuff I need to do. Upgraded my 
Milestone that way for instance. So of the three OSes, OSX is actually 
used the least.


Don't get me wrong, these days I could get used to OSX if I had to (I 
selected Linux when OSX still didn't exist), but for various reasons I 
still prefer Linux (comparing uptime with my colleagues - identical 
hardware - I have better uptimes) and Linux is also the target platform 
of my day job.


Best / Jonas

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


[android-developers] OBEX OPP Specific transfer

2011-05-30 Thread Shekhar
Hello,

I am developing an OBEX OPP client application in android
phone.Through the client application
i will send an object to the non Android device (which will act as the
OPP server).I have created the RFCOMM socket connection using the API

createRfcommSocketToServiceRecord(OPP_UUID);  I have use the UUID of
the OBEX Push i.e.

private static final UUID OPP_UUID = UUID
.fromString("1105--1000-8000-00805F9B34FB");

I have observed that through this the socket connection is successful
and I got the input and output stream of the socket to send and
recieve the data.But when I send the data the data recieved the other
device is not in the right format. What I mean by this is in the
reciever device the data is recieved with the error. BT Air sniffer
indicates that the in the retrieved_opcode Data is not present.OBEX
response code is Bad request.

Can anyone guide me what is wrong in this ? or the steps to make an
OBEX OPP connection with the device which is not paired.

Your valuable inputs will help me to overcome this.

Thanks,
Shekhar

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


[android-developers] Re: 回覆:Re: 回覆:facebook

2011-05-30 Thread Ali Chousein
Warenix,

First, it was not me who asked the question, I answered to Bob's post.

Second, it's very poor practice to make one application depend on
another. Once again, an application should be developed on a stand-
alone way; its correct execution should not depend whether a user
installed some other application from the market or not. Maybe someone
would choose this approach for pure marketing reasons. Technically
it's not required and practically is not desirable.

Last but not least; Facebook provides an Android SDK which is very,
very helpful. However, using this SDK definitely does not depend on
whether or not you've installed the official Facebook application.
I've not checked the latest version, maybe they let the SDK interact
with the official application (pure marketing reasons) but interacting
with the Facebook Graph API does not depend whether or not you've
installed the official Facebook application on your device.

-Ali


On May 30, 11:20 am, warenix  wrote:
> Hi Ali,
>
> Quoted fromhttps://github.com/facebook/facebook-android-sdk
>
> Testing
>
> Here are some tips to help test your application:
>
>    -
>
>    You will need to have the Facebook application in your test environment.
>    The SDK includes a developer release of the Facebook application that can 
> be
>    side-loaded for testing purposes. On an actual device, you can just 
> download
>    the latest version of the app from the Android Market, but on the emulator
>    you will have to install it yourself:
>
>    adb install FBAndroid.apk
>    -
>
>    Use a signed build. You can sign with a debug key, but make sure that the
>    key you used to sign matches the *Key Hash* field in the Facebook
>    developer settings.
>    -
>
>    Make sure to test both with and without the Facebook application. The SDK
>    will fall back to a Webview if the Facebook app is not installed.
>    -
>
>    You can use this guide to developing on a 
> device
>    .
>
> User authentication & authorization are performed by Facebook SDK for
> android. If you have official app installed, the process will be seamless.
> In you app, all you need is to provide the SDK your facebook APP_ID, no need
> to store the SECRET KEY.
>
> The only trick I found is the key hash, please follow this web page on how
> to get the 
> hash.http://www.helloandroid.com/tutorials/using-facebook-sdk-android-deve...

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


[android-developers] Re: switching from one app to another

2011-05-30 Thread harsh chandel
in manifest file put intent filter as callback and browseable


On May 29, 1:02 pm, Dianne Hackborn  wrote:
> This will also cause the browser to add new windows/tabs to the single task
> it maintains.  Please don't do this kind of thing. :}
>
>
>
> On Sun, May 29, 2011 at 12:01 AM, Doug  wrote:
> > On May 26, 5:06 pm, bob  wrote:
> > > I have an app that opens a web browser, but after awhile I want the
> > > app to switch from the web browser back to itself.  Is there an easy
> > > way to do this?
>
> > I agree with Justin and Mark, but I don't have any ethical qualms in
> > sharing a solution that does what you want anyway!  :-)
>
> > Below, if the started Dummy class just called finish() when launched,
> > this will achieve the effect you are looking for, but the browser task
> > will still be alive and the user could return to it if they want.
>
> > By the way, don't do this unless you really understand what you're
> > getting into.
>
> > Doug
>
> > public class Main extends Activity {
> >    Handler handler;
>
> >    @Override
> >    public void onCreate(final Bundle savedInstanceState) {
> >        super.onCreate(savedInstanceState);
> >        setContentView(R.layout.main);
> >        handler = new Handler();
> >        findViewById(R.id.button).setOnClickListener(new
> > View.OnClickListener() {
> >            public void onClick(final View v) {
> >                startActivity(new Intent(Intent.ACTION_VIEW,
> > Uri.parse("http://www.google.com";)));
> >                handler.postDelayed(new Runnable() {
> >                    public void run() {
> >                        final Intent intent = new Intent(Main.this,
> > Dummy.class);
>
> > intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
> >                        getApplicationContext().startActivity(intent);
> >                    }
> >                }, 1);
> >            }
> >        });
> >     }
> > }
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, 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: Mac or PC for development

2011-05-30 Thread Raghav Sood
Thanks,

I have an LG Otimus P500 device so I suppose I can get away without ubuntu.

Thanks

On Tue, May 31, 2011 at 8:41 AM, Francisco Dalla Rosa soares  wrote:

> Funny to see how people still look at Macs like a blackbox.
>
>
> https://help.ubuntu.com/community/MactelSupportTeam/AppleIntelInstallation#Dual-Boot:
> Mac OSX and Ubuntu
>
> 2011/5/31 Doug 
>
>> On May 30, 1:24 am, Raghav Sood  wrote:
>> > Thanks everyone,
>> >
>> > I am currently using a PC running Ubuntu 11.04. Money is not a problem
>> so I
>> > think I'll get a Macbook Pro and dual boot OS X and Ubuntu 11.04 on it.
>>
>> How are you going to dual boot with Linux on a MacBook?  Boot Camp
>> only supports Windows products.
>>
>> If you want to run any kind of Linux on a MacBook, then you'll need to
>> get a product such as VMWare or Parallels to run some Linux in a VM
>> hosted within OS X.
>>
>> I've been doing all my Android dev on OS X for two years and haven't
>> needed Linux for anything, even NDK work.  And I have never had to
>> find and and install device drivers like my peers using Windows.  One
>> major exception is with Samsung Galaxy S products -- if you want to
>> install a new firmware on those devices, you need Windows to run
>> Samsung's crappy Kies software.
>>
>> 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
>>
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
Raghav Sood
http://www.raghavsood.com/
http://www.androidappcheck.com/
http://www.telstop.tel/

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
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 much HTML5 does the Honeycomb Android Browser support?

2011-05-30 Thread Peter Sinnott
I wouldn't wish the honeycomb emulator on my worst enemy.

My transformer gets 228 + 3 bonus points.

On May 31, 4:16 am, Francisco Dalla Rosa soares 
wrote:
> ever thought of accessing that URL through the emulator?
>
> 2011/5/31 Robert Massaioli 
>
> > I was wondering how much of the HTML5 spec a Honeycomb Tablet supports. So
> > could somebody with 3.0 or 3.1 please go to this page and tell me what
> > results you get?http://html5test.com/index.html
>
> > I hereby swear that this is not a spam link. I really want to know what
> > HTML5 features I can use.
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en

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


Re: [android-developers] Re: How to search & find the way between 2 point in google maps api?

2011-05-30 Thread Kristopher Micinski
On Tue, May 31, 2011 at 12:14 AM, Cong Danh Pham <
phamcongdanh06hc...@gmail.com> wrote:

> Thanks for your reply, Spiral.
> One more question. How to make voice command to search in my app? I don't
> know speech recognizability that cans help to make voice command?
> For example:
> I have many tabs: tab1, tab2,...tabn. I want to make voice command to
> navigate to tab that i need. And make voice command to search on map. But I
> don't know how to do.
>
> http://developer.android.com/resources/articles/speech-input.html


> Thanks & Regards,
> D
>
>
> On Mon, May 30, 2011 at 9:31 PM, Spiral123  wrote:
>
>> use the directions API:
>> http://code.google.com/apis/maps/documentation/directions/
>>
>> On May 30, 4:07 am, danhpc  wrote:
>> > Hi all,
>> >
>> > I'm newbie in android programming. I'm doing a application call google
>> > maps api. It worked. I can zoom in/out. Mark a position on map. But I
>> > don't know how to navigate search on google maps in my app?
>> > And how to find the way between 2 point in google maps api? Does it
>> > support this feature?
>> >
>> > I use Google API 3.1.
>> >
>> > Thanks & Regards,
>> > D
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, 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

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: How to search & find the way between 2 point in google maps api?

2011-05-30 Thread Cong Danh Pham
Thanks for your reply, Spiral.
One more question. How to make voice command to search in my app? I don't
know speech recognizability that cans help to make voice command?
For example:
I have many tabs: tab1, tab2,...tabn. I want to make voice command to
navigate to tab that i need. And make voice command to search on map. But I
don't know how to do.

Thanks & Regards,
D


On Mon, May 30, 2011 at 9:31 PM, Spiral123  wrote:

> use the directions API:
> http://code.google.com/apis/maps/documentation/directions/
>
> On May 30, 4:07 am, danhpc  wrote:
> > Hi all,
> >
> > I'm newbie in android programming. I'm doing a application call google
> > maps api. It worked. I can zoom in/out. Mark a position on map. But I
> > don't know how to navigate search on google maps in my app?
> > And how to find the way between 2 point in google maps api? Does it
> > support this feature?
> >
> > I use Google API 3.1.
> >
> > Thanks & Regards,
> > D
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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: Context Menu

2011-05-30 Thread OktaEndy
thanks for your help

On May 30, 6:17 pm, Mark Murphy  wrote:
> On Mon, May 30, 2011 at 3:37 AM, OktaEndy  wrote:
> > i want to make a context menu which is depend on selected listview
> > item, for example :
>
> > list view item :
> > a
> > b
> > c
> > d
>
> > if i press longclick on item :
> > - a,b, context menu will show menu x, y
> > - c, context menu will show menu z
> > - d, doesn't show context menu
>
> Your last scenario may not be possible and would be lousy UX even if it were.
>
> The first two are simply a matter of examining the
> ContextMenu.ContextMenuInfo object passed to onCreateContextMenu().
> For a context menu on a ListView, that object will really be an
> instance of AdapterView.AdapterContextMenuInfo. Once you cast the
> object to be a AdapterView.AdapterContextMenuInfo, you can access the
> position of the list item that was long-clicked (also it's _id value,
> if this is backed by a CursorAdapter).
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> Android Training in Oslo:http://bit.ly/fjBo24

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


Re: [android-developers] How much HTML5 does the Honeycomb Android Browser support?

2011-05-30 Thread Francisco Dalla Rosa soares
ever thought of accessing that URL through the emulator?

2011/5/31 Robert Massaioli 

> I was wondering how much of the HTML5 spec a Honeycomb Tablet supports. So
> could somebody with 3.0 or 3.1 please go to this page and tell me what
> results you get? http://html5test.com/index.html
>
> I hereby swear that this is not a spam link. I really want to know what
> HTML5 features I can use.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] XLIFF for changing text value in TextView

2011-05-30 Thread JR
Hello everyone,

I am trying to change the text value in TextView using the src file
(.java). By default I set the value to

android:text="TEST" in main.xml file under TextView

what I want is to change the value using the java so I can change the
text value anytime I want. I look for resources and found the XLIFF in
a sample xml file which I suspect I need to add in my code. It looks
like this

connected to %1$s

I tried to understand the source codes of "BluetoothChat" sample to
further understand the above code but I don't get it.

If someone knows what I am talking about could you please help me?
basically I only want to change the default text value in TextView
that I set in the xml file through the src file (.java)

Thanks a lot,

JR

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
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 much HTML5 does the Honeycomb Android Browser support?

2011-05-30 Thread Robert Massaioli
Actually I just found this from browser scope (
http://www.browserscope.org/results?category=summary&v=3):

Android 0.5 7/100 7/10 1
Android 0.6 5/100 5/10 2
Android 1.0 63/100 8/17 99.3% 10/16 93/100 80 37
Android 1.1 25/100 3/8 10/14 72/100 15
Android 1.5 60/100 5/17 97.8% 10/16 93/100 79 127
Android 1.6 60/100 5/17 97.8% 10/16 93/100 79 139
Android 2.0 48/100 7/13 99.3% 9/15 93/100 66
Android 2.1 62/100 8/17 99.3% 9/16 93/100 80 523
Android 2.2 75/100 10/17 853/1308 99.3% 9/16 93/100 80 667
Android 2.3 75/100 10/17 853/1308 99.3% 9/16 93/100 80 149
Android 2.215 62/100 8/13 99.3% 9/16 93/100 81 5
Android 3.0 84/100 12/17 978/1308 99.3% 13/16 100/100 81 102

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

2011-05-30 Thread Francisco Dalla Rosa soares
Funny to see how people still look at Macs like a blackbox.

https://help.ubuntu.com/community/MactelSupportTeam/AppleIntelInstallation#Dual-Boot:
Mac OSX and Ubuntu

2011/5/31 Doug 

> On May 30, 1:24 am, Raghav Sood  wrote:
> > Thanks everyone,
> >
> > I am currently using a PC running Ubuntu 11.04. Money is not a problem so
> I
> > think I'll get a Macbook Pro and dual boot OS X and Ubuntu 11.04 on it.
>
> How are you going to dual boot with Linux on a MacBook?  Boot Camp
> only supports Windows products.
>
> If you want to run any kind of Linux on a MacBook, then you'll need to
> get a product such as VMWare or Parallels to run some Linux in a VM
> hosted within OS X.
>
> I've been doing all my Android dev on OS X for two years and haven't
> needed Linux for anything, even NDK work.  And I have never had to
> find and and install device drivers like my peers using Windows.  One
> major exception is with Samsung Galaxy S products -- if you want to
> install a new firmware on those devices, you need Windows to run
> Samsung's crappy Kies software.
>
> 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
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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 much HTML5 does the Honeycomb Android Browser support?

2011-05-30 Thread Robert Massaioli
I was wondering how much of the HTML5 spec a Honeycomb Tablet supports. So 
could somebody with 3.0 or 3.1 please go to this page and tell me what 
results you get? http://html5test.com/index.html

I hereby swear that this is not a spam link. I really want to know what 
HTML5 features I can use.

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

[android-developers] Re: Admob requests jump when running just house ads

2011-05-30 Thread acr
When I run 100% house ads (ie. admob doesn't pay me to display ads)
the number of requests double. How do I know the true number of
requests being made by my app users? This makes absolutely no sense.
anyone have an answer?

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


[android-developers] Re: JSON OR SOAP ?

2011-05-30 Thread Streets Of Boston
The original question wat about *consuming* web services, not necessarily 
creating them. The answer to your question is:
 

   - When you don't have control of server-side that provides the REST 
   services, and/or 
   - When the REST services are going to be accessed by more than just 
   mobile clients
   Due to small screen real estate, mobile clients could show a smaller view 
   on the data/resources retrieved from a REST service (less items, less 
   detail) while other clients, such as desktop clients, could show/handle in 
   full detail the entire representation returned by that same REST service. 

 
 

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

2011-05-30 Thread Nikolay Elenkov
On Tue, May 31, 2011 at 10:54 AM, String  wrote:

> In any case, I would agree that expecting them to synchronize between
> processes in real time is, um, unrealistic, but they definitely do work for
> the simple case of one app being able to read the prefs which another has
> written. Both apps need the same signature, AFAIK, and you need to be
> careful with permissions, but I've done this a few times now.

Don't you need to set the same sharedUserId in both apps for this to work?
(unless prefs are WORLD_READABLE). If the first app is already published
without a sharedUserId, will adding it in a next version break things? AFAIK, ,
adding sharedUserId changes the app's UID.

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


[android-developers] Re: Moving from free app to a paid model

2011-05-30 Thread String
On Tuesday, May 31, 2011 12:45:00 AM UTC+1, Doug wrote:

On May 30, 2:19 pm, String  wrote: 
> > Yes. That's why they're called shared preferences. 
>
> Um, I think they are shared SharedPreferences because there is one 
> instance of a particular SharedPreferences object shared among all the 
> components of an application. 
>

Perhaps you're right. I've always believed it was because they could be 
shared between apps, but I haven't seen support for either of our positions 
in the documentation.

In any case, I would agree that expecting them to synchronize between 
processes in real time is, um, unrealistic, but they definitely do work for 
the simple case of one app being able to read the prefs which another has 
written. Both apps need the same signature, AFAIK, and you need to be 
careful with permissions, but I've done this a few times now.

String

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

[android-developers] Re: JSON OR SOAP ?

2011-05-30 Thread DanH
Of course, if you're only going to read a small part of an XML
representation from a REST query, why did you have the unwanted info
transmitted in the first place??

On May 30, 8:28 pm, Streets Of Boston  wrote:
> I would make this argument instead: REST or SOAP?
>
> A big part of creating a seamless experience on mobile devices is to be able
> to handle* limited connectivity* (temporary loss of connection) and to have
> *stateless* (remote) services available (user can access data directly
> without going through a list of other prior service-calls to get there).
>
> SOAP can't handle this very well. SOAP is very stateful. It's much like RPC
> where the caller often needs to be aware of the server's state to make
> correct calls.
> SOAP calls are hard to cache. And you'll need a cache if you want to handle
> limited connectivity.
>
> REST is better suited to deal with this. True RESTful services are stateless
> (you could have a cookie for authentication, for example, but no more than
> that should be stored in a stateful session). RESTful services are designed
> to handle caches efficiently.
>
> In addition, SOAP is more involved, more complex to handle. REST is much
> easier.
>
> If you choose REST, then there's another choice you can make: Which format?
> You can choose XML (applicatin/xml) or JSON (application/json) (GSON), which
> are 2 of the most popular formats for REST.
> Personally, I would choose XML because Android already includes pull and
> push parsing of XML data from the server. Pull and push parsing allows you
> to only read the parts of the REST response in which your app is interested
> and skip the rest: somewhat better performance, much better memory usage for
> larg REST responses.
>
> In short: If you can chose everything, i would choose REST services using
> XML.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] displaying mySQL data through JSON in a selectable list

2011-05-30 Thread Jenus Dong
use json parser lib

layout property

在 2011 5 30 20:08,"B Lyon" 写道:
> What exactly do you mean by "display as selectable items"?
>
> On Fri, May 27, 2011 at 5:05 AM, ram_droid
>  wrote:
>> Hi,
>>
>> I am in the process of building an app that runs on a client device
>> collecting various bits of data and then posting it to a remote mySQL
>> database via php. This part is no problem and works successfully.  The
>> remote DB is host to a server process that performs various matching
>> exercises on the data based on various conditions and returns a
>> variable-sized data list back to client phones which it is intended to
>> display in a selectable list (so a phone user can select to view and
>> act upon the information).
>>
>> I have successfully retrieved the records from the mySQL DB and
>> displayed them as static JSON to String text elements on a phone. BUT
>> I have been spending days now trying to figure out how to get the JSON
>> elements (or String elements) to display as selectable items. Can it
>> be so difficult?
>>
>> Any help  really appreciated
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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: JSON OR SOAP ?

2011-05-30 Thread Streets Of Boston
I would make this argument instead: REST or SOAP?
 
A big part of creating a seamless experience on mobile devices is to be able 
to handle* limited connectivity* (temporary loss of connection) and to have 
*stateless* (remote) services available (user can access data directly 
without going through a list of other prior service-calls to get there). 
 
SOAP can't handle this very well. SOAP is very stateful. It's much like RPC 
where the caller often needs to be aware of the server's state to make 
correct calls. 
SOAP calls are hard to cache. And you'll need a cache if you want to handle 
limited connectivity.
 
REST is better suited to deal with this. True RESTful services are stateless 
(you could have a cookie for authentication, for example, but no more than 
that should be stored in a stateful session). RESTful services are designed 
to handle caches efficiently. 
 
In addition, SOAP is more involved, more complex to handle. REST is much 
easier. 
 
If you choose REST, then there's another choice you can make: Which format? 
You can choose XML (applicatin/xml) or JSON (application/json) (GSON), which 
are 2 of the most popular formats for REST.
Personally, I would choose XML because Android already includes pull and 
push parsing of XML data from the server. Pull and push parsing allows you 
to only read the parts of the REST response in which your app is interested 
and skip the rest: somewhat better performance, much better memory usage for 
larg REST responses.
 
In short: If you can chose everything, i would choose REST services using 
XML.

 
 
 
 

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

2011-05-30 Thread TreKing
On Mon, May 30, 2011 at 7:50 PM, ivan harmady wrote:

> but this activity never starts when i click on the notfication...can
> you help me please?? i really need this and I'm out of ideas.
> Every advice worth.
>

Try this constructor:
http://developer.android.com/reference/android/content/Intent.html#Intent(android.content.Context,
java.lang.Class)

-
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] Regarding Layout

2011-05-30 Thread B Lyon
what treking has suggested has worked for me - you get the cool pinch
zoom stuff, too

On Mon, May 30, 2011 at 7:58 PM, TreKing  wrote:
> On Mon, May 30, 2011 at 4:22 AM, Ishwar Chawla 
> wrote:
>>
>> I want to incorporate new lines and bullets like we do in word document so
>> what layout should I use so I incorporate these features efficiently
>
> Consider an HTML file and rendering it in a WebView.
>
> -
> 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

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


[android-developers] Re: Mac or PC for development

2011-05-30 Thread Doug
On May 30, 1:24 am, Raghav Sood  wrote:
> Thanks everyone,
>
> I am currently using a PC running Ubuntu 11.04. Money is not a problem so I
> think I'll get a Macbook Pro and dual boot OS X and Ubuntu 11.04 on it.

How are you going to dual boot with Linux on a MacBook?  Boot Camp
only supports Windows products.

If you want to run any kind of Linux on a MacBook, then you'll need to
get a product such as VMWare or Parallels to run some Linux in a VM
hosted within OS X.

I've been doing all my Android dev on OS X for two years and haven't
needed Linux for anything, even NDK work.  And I have never had to
find and and install device drivers like my peers using Windows.  One
major exception is with Samsung Galaxy S products -- if you want to
install a new firmware on those devices, you need Windows to run
Samsung's crappy Kies software.

Doug

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


[android-developers] Running activity with parameter from status bar notification

2011-05-30 Thread ivan harmady
Hi all, I'm trying to run my activity from notification with
parameter. The content of activity depends on parameter i send to
activity with intent. It should open my activity when i click on the
information which gives the notification, but the screen does not
change and still remains the same, no matter which activity is
currently running on screen or if I am on my home screen.

Here is my code for notification:

CharSequence text = "You entered \""+name+"\"";
Notification notification = new Notification(R.drawable.icon, text,
System.currentTimeMillis());
Intent intent = new Intent();

// here i say which activity i want to open with click on the
notification
intent.setClassName("com.iwaneez", "com.iwaneez.PlaceSettings");

// here i add my parameter
intent.putExtra("ID", Integer.toString(ID));
PendingIntent contentIntent = PendingIntent.getActivity(this, 0,
intent, 0); // creating PendingIntent
notification.setLatestEventInfo(this, "Mannage place\""+name+"\"",
text, contentIntent);

sNM.notify(R.string.notify, notification);


and here is onCreate() method from PlaceSettings activity

protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.place_settings);

ID = getIntent().getStringExtra("ID");
loadPlace();
Toast.makeText(this, "ID = "+ID+", Name = "+name,
Toast.LENGTH_LONG).show();
}



but this activity never starts when i click on the notfication...can
you help me please?? i really need this and I'm out of ideas.
Every advice worth.

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


[android-developers] Re: Custom Touch on a image

2011-05-30 Thread Doug
On May 26, 6:21 am, Neha Aggarwal  wrote:
> How can we enable multiple touch on different parts of a image. And
> each touch have different response

Set your own touch listener on an ImageView that shows your picture
and handle the events in there.  If your ImageView can change size to
suit the screen, be able to handle that.  Or subclass View and do your
own image drawing and event handling in there.  It is not a trivial
amount of work like imagemaps in in HTML.

Doug

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


[android-developers] Re: Position MediaController over VideoView ?

2011-05-30 Thread Doug
On May 26, 4:42 pm, Bob Koutsky  wrote:
> What am I doing wrong? Is it even possible to place MediaController
> over VideoView (so that their bottom edges are aligned)?

I think you will have to dive into the Android source for VideoView.
It's setting the anchor view on the media controller and overriding
what you did at the time you call setMediaController.

I have never liked VideoView.  I just copy the source and make it do
what I really want.

Doug

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


[android-developers] Re: Install APK programmatically - return value

2011-05-30 Thread Doug


On May 27, 1:53 pm, The Jaguar  wrote:
> The problem I am facing is that "resultCode" always returns 0,
> irrespective of whether the user chose to install the app or not
> install the app. I really need to know whether the user installed the
> app or not. Any ideas as to why the return value is always 0?

How do you know that the activity you launched is supposed to ever
return something other than 0?  You might have to dig into Android
source to know what to expect.

I would just use PackageManager to find out what's installed.

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] Regarding Layout

2011-05-30 Thread TreKing
On Mon, May 30, 2011 at 4:22 AM, Ishwar Chawla wrote:

> I want to incorporate new lines and bullets like we do in word document so
> what layout should I use so I incorporate these features efficiently
>

Consider an HTML file and rendering it in a WebView.

-
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 read data from ./asset/ files correctly?

2011-05-30 Thread Doug
On May 29, 11:02 am, progman  wrote:
> I do not know how to get datasize from inputstream and i read data two
> time :-)

You could put a secondary file in assets that contains the length of
the primary file you're trying to read.  Or you can just hard code the
size into your app.  The assets will not be changing installation
since they are read directly out of the apk file (they are not
unpacked into a filesystem).

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

2011-05-30 Thread TreKing
On Mon, May 30, 2011 at 2:54 AM, shanmu nathan  wrote:

> i dnt know how to save a state and restore the state while orientation
> changing..


This is covered in the documentation.

-
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] Password protect app for private beta on Android market

2011-05-30 Thread TreKing
On Sun, May 29, 2011 at 2:50 PM, Andrew  wrote:

> A Private Beta seems a pretty standard thing to do in early stages of app
> distribution, so support for it from Android Market would make a lot of
> sense.
>

Buddy, there are a lot of things that would make a lot of sense in the
Android Market but are somehow missing.


> Does anyone know if this *can* be done, or if there is a similar mechanism
> with Market?
>

It cannot. A possible alternative is to limit your distribution using some
filters, like device, screen size, hardware, etc.

-
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: JSON OR SOAP ?

2011-05-30 Thread Jxn
Please...

JSON should be compared to XML.  Both is a way of serialize and
deserialize structured data (like converting between binary and text
representation).

SOAP is a way of calling services on other machines, to do RPC (kind
of) calls.

IF you want to compare SOAP with something using JSON, compare SOAP
with REST-services.
REST is also a way of "calling" services located on another machine,
to do RPC (kind of) calls.

The semantics in SOAP and REST is a bit different.  While SOAP is
(more or less) a RPC, REST is more like accessing a database on
another machine. And it's usually (always?) possible to map REST calls
to SOAP calls and the other way around.  But you change your semantics
doing 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


Re: [android-developers] How to read data from ./asset/ files correctly?

2011-05-30 Thread TreKing
On Sun, May 29, 2011 at 1:02 PM, progman  wrote:

> I do not know how to get datasize from inputstream


http://developer.android.com/reference/java/io/BufferedInputStream.html

-
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: Android Training and Certification

2011-05-30 Thread Doug
On May 27, 7:10 pm, Bishop  wrote:
> I would like to know if there is some kind of training and/or
> certification process for Android developers.

If you live in the Silicon Valley area, there are private classes you
can take.

http://www.learncomputer.com/training/android/

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] How can I extract text from an image. ??

2011-05-30 Thread TreKing
On Fri, May 27, 2011 at 1:27 AM, SproutinGeek  wrote:

> Help needed... plz...


http://www.catb.org/~esr/faqs/smart-questions.html ... plz...

-
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: Moving from free app to a paid model

2011-05-30 Thread Doug
On May 30, 2:19 pm, String  wrote:
> Yes. That's why they're called shared preferences.

Um, I think they are shared SharedPreferences because there is one
instance of a particular SharedPreferences object shared among all the
components of an application.

Also, be careful with modifying preference between applications
(processes) as the javadoc for SharedPreferences currently sports this
warning:

"Note: currently this class does not support use across multiple
processes. This will be added later."

I'm guessing the risk is that SharedPreferences.Editor doesn't sync up
between processes, so you might run the risk of overwriting prefrences
in one app with changes made in another app.  But I tried it out and
it does work in the simple case of one app reading and writing another
app's prefs.

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] How to verify Camera view(front/back) in Robotium for Android 2.2 phone

2011-05-30 Thread TreKing
On Thu, May 26, 2011 at 11:11 AM, Bharathiraja R <
bharathiraja.andr...@gmail.com> wrote:

> I am testing Android 2.2 phone.
> want to verify Camera view in Robotium
>

Try a group or forum dedicated to Robotium.

-
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: Application suspended. Why?

2011-05-30 Thread TreKing
On Mon, May 30, 2011 at 2:35 PM, BOYD SPEER  wrote:

> Is there no contact at Google where one may appeal such a ban? or is there
> any other way to be heard if such a disaster befalls a developer?


>From everything I've seen here and on the Android Market "Support" Forum the
answer is a giant NO.

Apparently anyone over on the Market can ban any app for any reason, which
they of course do not explain, and then leave you with no instructions or
explanation of how to get you app back in good standing and re-published.

>From the many, many posts I've seen on the same topic (just search "app
banned" on the support forum), any attempt to get a clear answer on what
terms were violated or what needs to be done to get the app re-published are
met with useless, automatic replies that are non-answers. No actual human
being from Google's end will respond to your inquiries or help you resolve
the issue.

One can only imagine how frustrating this is for legitimate developers - you
spend time, money, and energy building an app and supporting the platform
and end up getting hit with this bullshit. But, as we all know, no one on
the Android Market team gives a damn about developers, so expecting to get
help from any one of these numb-nuts is a fantasy.

OP: Sadly, your best bet is to probably just re-upload the app as a new
package, even though you run the risk of going through this all over again.
At least it's the free version so you don't have through go through the
nightmare of moving over paid users to a new app.

Good luck.

-
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: JSON OR SOAP ?

2011-05-30 Thread DanH
My "9 out of 10" comment was more with regard to XML -- there are
occasions where the ability to have tag attributes in XML makes for a
neater, more coherent interface than using JSON.

On May 30, 8:29 am, "Jonas Petersson"  wrote:
> On 2011-05-30 15:16, DanH wrote:
>
> > SOAP has high-level functions that JSON doesn't (over and above the
> > simple protocol level differences).  Not really necessary for simple
> > database queries and the like, but useful for more sophisticated
> > stuff.  (Disclaimer -- I've never actually used SOAP -- it's always
> > been too complex for my uses.)
>
> > Certainly when faced with the simple choice between JSON and XML, JSON
> > is the right choice 9 times out of 10.
>
> Well, I've used SOAP in several projects (as in "I've been given a SOAP
> service someone else has built and had to conform to it") and I'm sure
> there ARE real life cases where SOAP is the correct tool for the job,
> but I have yet to find one. My personal estimate is that JSON is the
> right choice almost 10 times out of 10 (at least when it comes to stuff
> that you are likely to want to implement on a phone). Data overhead is
> important to most users both when it comes to cost and time so that
> pretty much disqualifies SOAP IMHO.
>
>                         Best / Jonas
>
> PS. My biggest gripe is that SOAP services often base64 encode
> everything twice. Sure it is "binary safe", but you can easily add that
> to your tailored JSON data too. YMMV.

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


[android-developers] Error on activity opnening

2011-05-30 Thread ingy abbas
When i click the next button it force close ;

enter code here
 05-30 23:46:21.595: VERBOSE/AudioHardwareMSM72XX(95): open driver
05-30 23:46:21.775: ERROR/AndroidRuntime(3401): FATAL
EXCEPTION: main
 05-30 23:46:21.775: ERROR/AndroidRuntime(3401):
java.lang.RuntimeException: Unable to start activity
ComponentInfo{yaraby.y/yaraby.y.yarab}: java.lang.NullPointerException
05-30 23:46:21.775: ERROR/AndroidRuntime(3401): at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
2669)
05-30 23:46:21.775: ERROR/AndroidRuntime(3401): at
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:
2685)
05-30 23:46:21.775: ERROR/AndroidRuntime(3401): at
android.app.ActivityThread.access$2300(ActivityThread.java:126)
05-30 23:46:21.775: ERROR/AndroidRuntime(3401): at
android.app.ActivityThread$H.handleMessage(ActivityThread.java:2038)
 05-30 23:46:21.775: ERROR/AndroidRuntime(3401): at
android.os.Handler.dispatchMessage(Handler.java:99)
 05-30 23:46:21.775: ERROR/AndroidRuntime(3401): at
android.os.Looper.loop(Looper.java:123)
05-30 23:46:21.775: ERROR/AndroidRuntime(3401): at
android.app.ActivityThread.main(ActivityThread.java:4633)
05-30 23:46:21.775: ERROR/AndroidRuntime(3401): at
java.lang.reflect.Method.invokeNative(Native Method)
05-30 23:46:21.775: ERROR/AndroidRuntime(3401): at
java.lang.reflect.Method.invoke(Method.java:521)
  05-30 23:46:21.775: ERROR/AndroidRuntime(3401): at co
m.android.internal.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit.java:858)
  05-30 23:46:21.775: ERROR/AndroidRuntime(3401): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
  05-30 23:46:21.775: ERROR/AndroidRuntime(3401): at
dalvik.system.NativeStart.main(Native Method)
   05-30 23:46:21.775: ERROR/AndroidRuntime(3401): Caused by:
java.lang.NullPointerException
   05-30 23:46:21.775: ERROR/AndroidRuntime(3401): at
yaraby.y.yarab.onCreate(yarab.java:92)
   05-30 23:46:21.775: ERROR/AndroidRuntime(3401): at
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:
1047)
  05-30 23:46:21.775: ERROR/AndroidRuntime(3401): at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
2633)
  05-30 23:46:21.775: ERROR/AndroidRuntime(3401): ... 11 more

Yaraby code



enter code here
  public class yaraby extends Activity {
/** Called when the activity is first created. */
String sentence,sentence1, modifiedSentence;;
EditText inputfld, txt;
TextView Text;
Button Enter, Connect, next;
Socket clientSocket;

DataOutputStream outToServer;
BufferedReader inFromServer ;

@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
inputfld=(EditText)findViewById(R.id.input);
Text=(TextView)findViewById(R.id.view);
Enter=(Button)findViewById(R.id.enter);
Connect=(Button)findViewById(R.id.connect);
//yaraby x=new yaraby();
Text.append( "\n about to create a socket");


txt=(EditText)findViewById(R.id.txt);
next = (Button) findViewById(R.id.Button01);

next.setOnClickListener(new OnClickListener() {

@Override
public void onClick(View v) {
try{
Text.append("P");
Intent i = new Intent(yaraby.this, yarab.class);

startActivity(i);
Text.append("OPS");
}
catch(Error e){
Log.e("aa",
e.getMessage());
Text.append("ofa7ay");
}

}});

  }






public void appendText(View view){
Text.append( "\n  In chat ");

try{
//  while (true)
//{

sentence=inputfld.getText().toString();
sentence1="ing";
Text.append( "\n  DataStream creating");
outToServer.writeBytes(sentence);
outToServer.writeBytes(sentence1);
Thread.sleep(1000);
modifiedSentence = inFromServer.readLine();
Text.append(modifiedSentence);
inputfld.setText(null);
//if(modifiedSentence.equals("QUIT"))
//break;
   //   }
}
catch(Exception modifiedsentence){
Text.append("Exception");
}


}


public void connect(View view){
try{
clientSocket= new Socket("192.168.1.6",54611);
Text.append( "\n created a socket");
outToServer = new
DataOutputStream(clientSocket.getOutputStream());
Text.append( "\n created a datastream");
   

[android-developers] Re: Problem Loading multiple markers on same location

2011-05-30 Thread Akshay Dave
No Google won't do it for you..did you look at discussion forum?..I think
they have shared one example there

On Mon, May 30, 2011 at 4:25 PM, NB Books  wrote:

> The real answer has to do with "clustering" icons based on proximity, and
> tabbed infowindows.
>
> I store my geocoded addresses in SQL and use PHP to echo the var markers
> code lines.
>
> I don't know MySQL/PHP that well that I can sort the lat and lng columns
> and find those that are the same, then build a cluster icon.  I don't know
> java to do that.   I don't know java more than enough to put lines of code
> together from examples.
>
> I just wish Google had a setting that automatically did clustering
> of markers with same lat & lng for us.
>
> And the next thing I am trying to figure out how to do: have a html list of
> the marker place names in one TD where the text hyperlinks to the marker and
> opens its infowindow.
>
> Just like Google Maps does with you use it manually.
>
>
>
> On May 30, 2011, at 10:06 PM, Akshay Dave wrote:
>
>I have found the discussion on the same problem I had...
>
>  Here it is Issue log and solution -
> http://groups.google.com/group/Google-Maps-API/browse_thread/thread/23d5467e4211c143#
>
> So what you do is make offset for each marker on same lat/lang on hover...
>
>Hope it helps
>
> Akshay
>
> On Sun, May 29, 2011 at 1:26 PM, NB Books  wrote:
>
>> Could you share?
>>
>> I have the same problem.  Multiple people with same lat/lng, only the
>> "last" person in the Array gets in the InfoWindow for the marker at
>> that point.
>>
>>
>>
>> On Feb 22, 4:23 am, Akshay Dave  wrote:
>> > I figured it out...thanks anyways..!
>> >
>> >
>> >
>> > On Mon, Feb 21, 2011 at 1:18 PM, Akshay Dave  wrote:
>> > > Hi,
>> > >   I am currently doing mashup of linkedin and google map API using
>> > > PHP/mysql
>> >
>> > >   I use following code snippet to plot the markers on google map
>> > >  http://code.google.com/apis/maps/articles/phpsqlajax.html
>> >
>> > >   So I get city/state from linked in and not address. Sometimes it
>> happens
>> > > that multiple profile have same city and state(more than 20)
>> >
>> > >   Hence it is kind of challenge for me to load markers for multiple
>> > > profiles with same city.
>> >
>> > >I would appreciate any comments/suggestions for the same.
>> >
>> > > Many Thanks
>> > > Akshay
>>
>
>
>

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

2011-05-30 Thread String
Yes. That's why they're called shared preferences. 

String 

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


[android-developers] Re: RunOnUiThread loads images randomly !!

2011-05-30 Thread Anm

If you're loading or generating the images on multiple non-UI threads,
they are probably being added to the view in the order they complete
(of very near that).  If that is not what you want, there are two
things you can do to fix that.

The simplest is to serialize the loading or genration in one thread.
That is, load one image, call runOnUiThread with a runnable to insert
it into the UI, then repeat to load more images.

The more complicated route is to build a synchronized buffer queue (of
sorts) that can store references to the images while wait on others to
complete.  This can either be explicit buffer over built on an array
like structure, or implicitly with something like a chain of
semaphores.  In general, the loader for image #2 will wait for the
loader thread of image #1 to complete its UI update.  This is not
straight forward code, and you need to be very carefully about
exceptions and other edge cases.  Nothing in the that I know off in
the standard libraries will provide this out of the box.




On May 30, 1:27 am, gaurav gupta  wrote:
> Hi Guys,
> M using runonUiThread to set images in a Gridview. its working fine but its
> load images randomly, i want that images load in sequence order , not
> randomly.
> please Suggest how  can i do that.

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


[android-developers] Re: Problem Loading multiple markers on same location

2011-05-30 Thread Akshay Dave
   I have found the discussion on the same problem I had...

 Here it is Issue log and solution -
http://groups.google.com/group/Google-Maps-API/browse_thread/thread/23d5467e4211c143#

So what you do is make offset for each marker on same lat/lang on hover...

   Hope it helps

Akshay

On Sun, May 29, 2011 at 1:26 PM, NB Books  wrote:

> Could you share?
>
> I have the same problem.  Multiple people with same lat/lng, only the
> "last" person in the Array gets in the InfoWindow for the marker at
> that point.
>
>
>
> On Feb 22, 4:23 am, Akshay Dave  wrote:
> > I figured it out...thanks anyways..!
> >
> >
> >
> > On Mon, Feb 21, 2011 at 1:18 PM, Akshay Dave  wrote:
> > > Hi,
> > >   I am currently doing mashup of linkedin and google map API using
> > > PHP/mysql
> >
> > >   I use following code snippet to plot the markers on google map
> > >  http://code.google.com/apis/maps/articles/phpsqlajax.html
> >
> > >   So I get city/state from linked in and not address. Sometimes it
> happens
> > > that multiple profile have same city and state(more than 20)
> >
> > >   Hence it is kind of challenge for me to load markers for multiple
> > > profiles with same city.
> >
> > >I would appreciate any comments/suggestions for the same.
> >
> > > Many Thanks
> > > Akshay
>

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

Re: [android-developers] how to read email using java mail api?

2011-05-30 Thread Hitendrasinh Gohil
is there anyone?

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

Re: [android-developers] Re: Application suspended. Why?

2011-05-30 Thread BOYD SPEER
Is there no contact at Google where one may appeal such a ban? or is there any 
other way to be heard if such a disaster befalls a developer?

It would seem there would be a world-wide outcry for a more fair marketing 
board if no one can be contacted. Why would not the robot (or human) be 
programmed to send not just a notice of banning but also the reason for the ban.

-Boyd

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

[android-developers] Group moderators: if posting to the group via e-mail is allowed, why can't I do so?

2011-05-30 Thread Spooky
Moderators:  When I try to post to this group via e-mail (I've been
subscribed and out of the
moderation queue since 11May2011), I get the following sent to
postmaster@my system:

From: Mail Delivery Subsystem 
To: spooky1...@gmail.com
X-Failed-Recipients: android-developers@googlegroups.com
Subject: Delivery Status Notification (Failure)
Message-ID: <20cf303dd4facb99df04a481d...@google.com>
Date: Mon, 30 May 2011 17:44:11 +
Content-Type: text/plain; charset=ISO-8859-1
Status: RO
Content-Length: 4475
Lines: 93

Hello spooky1...@gmail.com,

We're writing to let you know that the group you tried to contact
(android-developers) may not exist, or you may not have permission to
post messages to the group. A few more details on why you weren't able
to post:

 * You might have spelled or formatted the group name incorrectly.
 * The owner of the group may have removed this group.
 * You may need to join the group before receiving permission to post.
 * This group may not be open to posting.

If you have questions related to this or any other Google Group, visit
the Help Center at http://groups.google.com/support/?hl=en_US.

Thanks,

Google Groups

1
(that was ESC-1, and should have drawn a line with [CUT HERE] in the
middle...it's a map in my .vimrc)

So why, if posting via e-mail is allowed, am I not allowed to do so?
Please fix this.

Thanks,
   --jim

[randomly-selected .signature (selected from my ~/.muttrc) supposed to
be here!]

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


[android-developers] Re: Application suspended. Why?

2011-05-30 Thread Eurig Jones
The graphics used in the application were done by myself, but some of
them use the GNU General Public License. There is one image that I
found which is used as the splash screen for the game was taken from a
free desktop background I found on the internet. I tried to chase up
copyright for this particular image but I could not find an owner.

Even if I was to find something in my app, which I really can't see
what as I feel that I've been very careful in its building, how can I
un-suspend the title, and find out what the issue was?

Google?

Please contact me directly to resolve this as I feel I've worked so
hard on this project, just for some unknown un-contactable source to
scrunch it up and throw it all in the bin!



On May 30, 4:58 pm, John Coryat  wrote:
> Are you using any copyrighted images? You might have included an image that
> contains an embedded watermark or other identification data that caused the
> automated response. What is the source of your graphics? Did you created
> each and every one from scratch or did you get them off the internet?
>
> The most common mistake developers make is to use graphics from the internet
> in their applications. This is almost always a violation of somebody's
> copyright. If the source took the added step to watermark their materials,
> it's super easy for a robot to check those images and note they violate the
> market terms.
>
> Double check everything in your application for this possibility. Even the
> most innocent error like this could cause your app to be flagged.
>
> Then again, it may just be another SNAFU on the market's side. Certainly
> wouldn't be the first time!
>
> -John Coryat

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


[android-developers] Re: SurfaceView vs View (Canvas Size?)

2011-05-30 Thread Frank
I managed to speed up my processing noticeably. I previously stored a
tile buffer in an int array. During onDraw, I used
Canvas.drawBitmap(int[] ...). I found this is not as efficient as
Canvas.drawBitmap(Bitmap...). So, I changed to store a tile buffer in
Bitmap. Just to post my solution here so that others could benefit.

Frank

On May 27, 11:40 pm, Frank  wrote:
> Thank you very much,  Dianne.
>
> So if I do useViewand I have to redraw it in onDraw while scrolling,
> how can I make the drawing process as fast as possible?  Basically,  I
> have a whole bunch of tile buffers available and I just need to piece
> them together ontoView'sCanvas based on the scroll position. I am
> currently using dramBitmap, but the scrolling is not very smooth.
>
> Frank
>
> On May 27, 3:50 pm, Dianne Hackborn  wrote:
>
>
>
>
>
>
>
> > You shouldn't put aSurfaceViewinside of a ScrollView or other such
> > container.  Since a surfaceviewis actually creating a separate window that
> > is positioned along with your window and provides the surface, those kinds
> > of interactions just won't work.
>
> > The way a scrollviewworks is that it expects to have one childview, whose
> > height is potentially larger than the scrollview.  If it is larger, then
> > the scrollviewwill change offsets to scroll around in it.  Theviewbeing
> > larger in height doesn't use any more memory or such -- this is just a
> > virtual coordinate space, with appropriate offsets and clipping applied by
> > the scrollviewwhen it is drawn.
>
> > Calling setMeasuredDimension() in onMeasure() should definitely make it be
> > the size you specify.  Make sure you are not calling the super class
> > implementation or doing your code after calling the super class, since there
> > is a default implementation inViewto set the measurements.  Also make sure
> > you are using wrap_content for theview, not match_parent.
>
> > You could try looking in hierarchyviewer to see what is going on with the
> >viewhierarchy.
>
> > On Fri, May 27, 2011 at 2:54 PM, Frank  wrote:
> > > Hi All,
>
> > > I am writing an application that needs to put aViewinside a
> > > ScrollView. SinceViewis used to display some content that is very
> > > long, I doView.setMeasuredDimension(width, large_height) inView's
> > > onMeasure() callback  function. I noticed that no matter how high the
> > >Viewis, its Canvas size I queried inView.onDraw() is the same with
> > > that of the viewport. This is good since the memory consumption is
> > > only dependent on the size of the viewport. But the downside is that I
> > > have to redraw the entire Canvas manually every time onDraw() is
> > > called.
>
> > > Instead ofView, I can useSurfaceView. However, the problem is that I
> > > cannot doSurfaceView.setMeasuredDimension(width, large_height). I
> > > found that the Canvas size ofSurfaceViewis the same with its virtual
> > > size (not the same with the viewport asView). So the underlying
> > > Bitmap takes lots of memory and my application won't even run (because
> > > of out of memory).
>
> > > Does any of you know any solution to this problem? Thank you very
> > > much.
>
> > > Thanks,
> > > Frank
>
> > > --
> > > You received this message because you are subscribed to the Google
> > > Groups "Android Developers" group.
> > > To post to this group, send email to android-developers@googlegroups.com
> > > To unsubscribe from this group, 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: onRestart from Home button or from back button

2011-05-30 Thread TreKing
On Mon, May 30, 2011 at 2:22 AM, Fina Perez  wrote:

>  The thing is sometimes I break the "normal flow" between activities,
> I mean, from activity A I start activity B, and from B, C. But when I finish
> activity C, I go back to the activity A
>

How do you do that?

-
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] getting the current image by resource or filename from Gallery

2011-05-30 Thread Mark Murphy
Replying to the list...

On Mon, May 30, 2011 at 2:03 PM, Jim Graham  wrote:
> On Mon, May 30, 2011 at 01:54:57PM -0400, Mark Murphy wrote:
>> On Mon, May 30, 2011 at 1:51 PM, Jim Graham  wrote:
>> > Wouldn't getSelectedItemId() return the image resource (i.e.,
>> > R.drawable.foo)?
>>
>> No, it would return the _ID column from the Cursor you used with your
>> CursorAdapter, if you are using a CursorAdapter.
>
> Nope.  I'm working from the example in the SDK samples, just trying
> to learn what's going on inside.

Then don't use getSelectedItemId().

> Unless I'm even more confused than I already know I am, this is where
> the image is loaded in the gallery:
>
> public View getView(int position, View convertView, ViewGroup parent) {
>
>   ImageView i = new ImageView(mContext);
>
>      i.setImageResource(mImageIds[position]);
>      i.setLayoutParams(new Gallery.LayoutParams(-1, -1));
>      i.setScaleType(ImageView.ScaleType.CENTER_INSIDE);
>      i.setBackgroundResource(mGalleryItemBackground);
>
>      return i;
>   }

Use getSelectedItemPosition() to return the index into your mImageIds array.

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

Android Training in Oslo: http://bit.ly/fjBo24

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


[android-developers] Re: getting the current image by resource or filename from Gallery

2011-05-30 Thread Spooky
Ooops...I forgot.this list doesn't allow posting via e-mail.


>From <>  Mon May 30 12:45:12 2011
Delivered-To: spooky1...@gmail.com
Received: from pop.gmail.com [74.125.67.109]
by n5ial with POP3 (fetchmail-6.3.8)
for  (single-drop); Mon, 30 May 2011 12:45:12 -0500
(CDT)
Received: by 10.216.20.197 with SMTP id p47cs136582wep;
Mon, 30 May 2011 10:44:12 -0700 (PDT)
Received-SPF: pass (google.com: domain of  designates 10.236.185.3 as
permitted sender) client-ip=10.236.185.3;
Authentication-Results: mr.google.com; spf=pass (google.com: domain
of  designates 10.236.185.3 as permitted sender) smtp.mail=; dkim=pass
header.i=
Received: from mr.google.com ([10.236.185.3])
by 10.236.185.3 with SMTP id t3mr3395698yhm.23.1306777451470
(num_hops = 1);
Mon, 30 May 2011 10:44:11 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=google.com; s=beta;
h=domainkey-signature:mime-version:from:to:x-failed-recipients
 :subject:message-id:date:content-type;
bh=bLWWexkz4BOlTpzzi3oWHOqi2X4D1bpDG9Q7HMZjdJM=;
b=GJwIuupXyZA6kAqmAdFway5p+fPg1a67s/
NBBRDuJbHbMGBcZcJDtuvaZPDzrKOZpZ
 EN32bIjtucpxxdIik4aw==
DomainKey-Signature: a=rsa-sha1; c=nofws;
d=google.com; s=beta;
h=mime-version:from:to:x-failed-recipients:subject:message-
id:date
 :content-type;
b=HDTLZ9CwqW0VMhilOxpqYdtIIwBjQ62cCl0Lf7GwgspxV/
SD6wn75yyecqpa5tipGW
 N/X3YH9Leq5lEf1M1SfQ==
Received: by 10.236.185.3 with SMTP id t3mr3395698yhm.
23.1306777451469;
Mon, 30 May 2011 10:44:11 -0700 (PDT)
MIME-Version: 1.0
Return-Path: <>
Received: by 10.236.185.3 with SMTP id t3mr4667010yhm.23; Mon, 30 May
2011
 10:44:11 -0700 (PDT)
From: Mail Delivery Subsystem 
To: spooky1...@gmail.com
X-Failed-Recipients: android-developers@googlegroups.com
Subject: Delivery Status Notification (Failure)
Message-ID: <20cf303dd4facb99df04a481d...@google.com>
Date: Mon, 30 May 2011 17:44:11 +
Content-Type: text/plain; charset=ISO-8859-1
Status: RO
Content-Length: 4475
Lines: 93

Hello spooky1...@gmail.com,

We're writing to let you know that the group you tried to contact
(android-developers) may not exist, or you may not have permission to
post messages to the group. A few more details on why you weren't able
to post:

 * You might have spelled or formatted the group name incorrectly.
 * The owner of the group may have removed this group.
 * You may need to join the group before receiving permission to post.
 * This group may not be open to posting.

If you have questions related to this or any other Google Group, visit
the Help Center at http://groups.google.com/support/?hl=en_US.

Thanks,

Google Groups



- Original message -

Received: by 10.236.185.3 with SMTP id t3mr3395696yhm.
23.1306777451391;
Mon, 30 May 2011 10:44:11 -0700 (PDT)
Received: by 10.236.185.3 with SMTP id t3mr3395695yhm.
23.1306777451377;
Mon, 30 May 2011 10:44:11 -0700 (PDT)
Return-Path: 
Received: from fed1rmfepo203.cox.net (fed1rmfepo203.cox.net
[68.230.241.148])
by gmr-mx.google.com with ESMTP id l51si2305498yhe.
1.2011.05.30.10.44.11;
Mon, 30 May 2011 10:44:11 -0700 (PDT)
Received-SPF: neutral (google.com: 68.230.241.148 is neither permitted
nor denied by domain of spooky1...@gmail.com) client-
ip=68.230.241.148;
Authentication-Results: gmr-mx.google.com; spf=neutral (google.com:
68.230.241.148 is neither permitted nor denied by domain of
spooky1...@gmail.com) smtp.mail=spooky1...@gmail.com
Received: from fed1rmimpo01.cox.net ([70.169.32.71])
  by fed1rmfepo203.cox.net
  (InterMail vM.8.01.04.00 201-2260-137-20101110) with ESMTP
  id
<20110530174405.uyxm22406.fed1rmfepo203.cox@fed1rmimpo01.cox.net>
  for ;
  Mon, 30 May 2011 13:44:05 -0400
Received: from n5ial-1.pn.at.cox.net ([68.109.99.225])
by fed1rmimpo01.cox.net with bizsmtp
id ptjr1g0064rmS0c03tk51m; Mon, 30 May 2011 13:44:05 -0400
X-CT-Score: 0.00
X-CT-RefID: str=0001.0A020204.4DE3D765.00C1,ss=1,re=0.000,fgs=0
X-CT-Spam: 0
X-Authority-Analysis: v=1.1 cv=PN+ohkdpFDsDQ2sRnkaX3J2v6HqbG4I/
sIKDoh1mFiA=
 c=1 sm=1 a=z1TLwsU0kBEA:10 a=1csvxmPHctEA:10 a=nDghuxUhq_wA:10
 a=kj9zAlcOel0A:10 a=wVSkus2gC08B95IUojpySA==:17 a=pGLkceIS:8
 a=JPNar2gQ4MBmv4uBH84A:9 a=CjuIK1q_8ugA:10 a=MSl-tDqOz04A:10
 a=wVSkus2gC08B95IUojpySA==:117
X-CM-Score: 0.00
Authentication-Results: cox.net; none
Received: (from jim@localhost)
by n5ial-1.pn.at.cox.net (8.14.1/8.13.6/Submit) id p4UHho0t045829
for android-developers@googlegroups.com; Mon, 30 May 2011 12:43:50
-0500 (CDT)
(envelope-from spooky1...@gmail.com)
X-Authentication-Warning: n5ial-1.pn.at.cox.net: jim set sender to
spooky1...@gmail.com using -f
Date: Mon, 30 May 2011 12:43:50 -0500
From: Jim Graham 
To: android-developers@googlegroups.com
Subject: Re: [android-developers] getting the current image by
resource or filename from Gallery
Message-ID: <20110530174

Re: [android-developers] Re: Looper.prepare

2011-05-30 Thread Dianne Hackborn
In this case you wouldn't delegate displaying of a toast to an activity.
 You do, however, need to do this in a thread that is running a message
loop.  That is why it is saying you need to call Looper.prepare() -- that
sets up a message loop for a thread.

If this thread is doing background work like networking, though, you
probably don't want it to run a message loop because the whole point of
having the thread is of course that it won't provide a responsive UI so it
won't provide a responsive message loop for the toast.  In that case, you'll
want to just execute your toast code on the main UI thread.  AsyncTask makes
this easy.  To roll your own, you can just make a static Handler variable
that you post a message to and it takes care of the toast.

static Handler sHandler = new Handler();

// In your thread
sHandler.post(new Runnable()) {
@Override void run() {
// Display the toast.
}
}


On Mon, May 30, 2011 at 6:41 AM, Mark Murphy wrote:

> On Mon, May 30, 2011 at 9:32 AM, Mark Cz  wrote:
> > Hi,
> > I have an Android Service that does some client-server work,
> > E.g I am getting a file from the server, and I want to toast a message
> > - "Download was completed"
>
> A service should not be updating the user interface. Please delegate
> that to an activity if one of yours is in the foreground, or display a
> Notification if there is no such activity and you feel the situation
> warrants a Notification. You can use an ordered broadcast to achieve
> this:
>
>
> http://commonsware.com/blog/2010/08/11/activity-notification-ordered-broadcast.html
>
> --
> Mark Murphy (a Commons Guy)
> http://commonsware.com | http://github.com/commonsguy
> http://commonsware.com/blog | http://twitter.com/commonsguy
>
> Android Training in Oslo: http://bit.ly/fjBo24
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] getting the current image by resource or filename from Gallery

2011-05-30 Thread Mark Murphy
On Mon, May 30, 2011 at 12:48 PM, Spooky  wrote:
> Apologies if this is posted twice, but it doesn't appear to have made
> the e-mail digest since I posted it last night.
> How do I get the currently-displayed image's filename or R.drawable.
> [filename] from the Gallery widget?

You don't, directly. An ImageView does not retain information on where
the image came from. Use getSelectedItemId() or
getSelectedItemPosition() to backtrack and determine the source of the
image.

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

Android Training in Oslo: http://bit.ly/fjBo24

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


[android-developers] Building composed shapes

2011-05-30 Thread Paolo
Hi there!
I need to draw a drawable on a canvas. I'd like to avoid using a png
file, but I'd like to draw it with shapes.
The final result must be an unique drawable composed by two rects
overlayed, one smallest than the other one.

How can I do that in XML? I've seen layer-list but I can't figure out
if it is useful for my achivement besides the fact I have a runtime
exception... .:(

Can anyone hepl me, please?

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] getting the current image by resource or filename from Gallery

2011-05-30 Thread Spooky
Apologies if this is posted twice, but it doesn't appear to have made
the e-mail digest since I posted it last night.
How do I get the currently-displayed image's filename or R.drawable.
[filename] from the Gallery widget?

And how many months does it take before you can post via e-mail after
you've joined the list?

Thanks,
   --jim

:4 .sigdir/personal_sig.05

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


[android-developers] AudioTrack in streaming mode

2011-05-30 Thread Raffaele Sgarro
I need to stream runtime generated PCM data. This sounds pretty simple, but 
it doesn't work. Pseudo code:

public void run() {
  while(...) {
mAudioTrack.write(whatNoiseDoesThisAnimalMake(mAnimal), ...);
  }
}


mAnimal can be changed from UI obviously. Just in case it matters, I set the 
AudioTrack internal buffer to

0.1 * sampleRate * bitsPerSample / 8

to obtain kinda low latency (100ms). At this time, I can get my sound played 
only once.

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

2011-05-30 Thread warenix
the hash key is very tricky as your eclipse debug keystore may be different 
to your release keystore.
so you will have two different hash keys, one for debug  & the other for 
release.

my practice is to use a dummy facebook app id during debug.
and create a real facebook app id for the release.

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

[android-developers] Re: Portrait Width Delays

2011-05-30 Thread Yan
I was thinking this is probably just a problem with the emulator since
it takes so long to start up the first time. If that the case, I
wonder if something similar could ever happen on an android device?


On May 28, 9:49 pm, Yan  wrote:
> I have six programs in the Android Market that require
> android:screenOrientation="portrait" only.
>
> I just tested the "SDK Platform Android 3.1, API 12,revision2" and the
> first time I run my apps it gives me the landscape widths long before
> it give me theportraitwidths. Should I now put a delay in all my
> programs to wait for the proper widths to arrive? This problem happens
> for both ways I determine the width, that is:
>
> WindowManager window = getWindowManager();
> Display d = window.getDefaultDisplay();
> float width = d.getWidth();
> Log.d("TestUI"," window width=" + width);
>
> ...and...
>
> float width = (float) (canvas.getWidth());
> Log.d("TestUI"," canvas width=" + width);
>
> Here is the order the LogCat displays them:
>
> 05-29 03:17:19.420: DEBUG/TestUI(598):  window width=1280.0
> 05-29 03:17:21.041: DEBUG/TestUI(598):  canvas width=1280.0
> 05-29 03:17:21.440: DEBUG/TestUI(598):  window width=800.0
> 05-29 03:17:21.740: DEBUG/TestUI(598):  canvas width=800.0

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


[android-developers] Re: AVD emulator: changing orientation?

2011-05-30 Thread Yan
Ctrl F11

On May 26, 2:41 pm, RobertB  wrote:
> Is there any way to change the orientation of a running AVD emulator
> from landscape to portrait and back again? My emulator starts out in
> landscape, but I'd like to test flipping the device to see the layout
> change properly.
>
> Thanks for any help!
>
> --Rob

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


[android-developers] Re: Application suspended. Why?

2011-05-30 Thread John Coryat
Are you using any copyrighted images? You might have included an image that 
contains an embedded watermark or other identification data that caused the 
automated response. What is the source of your graphics? Did you created 
each and every one from scratch or did you get them off the internet? 

The most common mistake developers make is to use graphics from the internet 
in their applications. This is almost always a violation of somebody's 
copyright. If the source took the added step to watermark their materials, 
it's super easy for a robot to check those images and note they violate the 
market terms.

Double check everything in your application for this possibility. Even the 
most innocent error like this could cause your app to be flagged.

Then again, it may just be another SNAFU on the market's side. Certainly 
wouldn't be the first time!

-John Coryat

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

[android-developers] Re: a question of message hooking

2011-05-30 Thread Paul Turchenko
What you mention here is a thread starving. Generally, there are 2
solutions you can think of:
1. Don't send message to UI thread until prevoius one was dispatched
2. Remove message from UI thread before sending a new one

The mode you choose is up to implementation and depends on how
important is message that is already in UI thread's queue.

On May 30, 2:59 am, Xie Daniel  wrote:
> I have a scenario like this :
>
> A1 Thread(GUI thread) and A2 thread.
>
> A2 thread regularly sends msg to A1 to update GUI showing .
>
> But frequent msg sending might lead to the msg accumulation in A1
> Queue because A1 might not handle these messages in a short manner.
> Then, some msgs like onDestroy come and is not handled in time ...
>
> Currently , I am going to peek msgs in A1 thread queue and dispatch
> some specified msgs with high priority.  Therefor , I hope to hook all
> msgs in A1 thread , including system msg
>
> Based on this soution ,a handler is customized for
> hook.. .Unluckily , it only captures the msgs with handle directed
> to itself , excluding the so-called system message .
>
> Would you like to share some ideas to capture ALL messages ,
> regardless of ones sent by A2 or system ... Thanks
>
> BRs
> Daniel

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


Re: [android-developers] Timer

2011-05-30 Thread Tiago Maluta
Did you checked?
http://developer.android.com/reference/java/util/Timer.html
http://developer.android.com/reference/java/util/TimerTask.html

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

// ...

Timer timer1 = new Timer(); 
timer1.schedule(new Task(), 0, 3*1000); /* 3 seconds */

// ...

class Task extends TimerTask {
Task() {}
public void run() { /* your code */ }
}

--tm




On Mon, May 30, 2011 at 12:16 PM, khanh_qhi™  wrote:
> Hi there,
> I need a counter time in my application. Is there any time Counter?
>
> --
> Regards,
> Khanh.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] Timer

2011-05-30 Thread khanh_qhi™
Hi there,
I need a counter time in my application. Is there any time Counter?

-- 
Regards,
Khanh.

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

[android-developers] right use of monkey --pkg-blacklist-file

2011-05-30 Thread Tiago Maluta
I'm using monkey to send random events to whole Android system but I'd
like to exclude some "packages" from that. I know there is a option
--pkg-blacklist-file for that but I'm facing some strange behavior.

$ adb push blacklist.txt /data/local
$ adb shell monkey --pkg-blacklist-file /data/local/blacklist.txt
--ignore-crashes -v 2000 --seed 1706492320

My blacklist.txt contains (reading the source leads me to put each
package on different lines):

$ cat blacklist.txt
com.android.settings
com.android.music

But I still got monkey starting audio files, my logcat output:
I/AudioService( 2290):   Remote Control
registerMediaButtonEventReceiver() for
ComponentInfo{com.android.music/com.android.music.MediaButtonIntentReceiver}

Am I missing the right package? I tried add other like "android.media"
or "android.speech" without success in audio blocking...

Best regards,

--tm

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
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 search & find the way between 2 point in google maps api?

2011-05-30 Thread Spiral123
use the directions API: 
http://code.google.com/apis/maps/documentation/directions/

On May 30, 4:07 am, danhpc  wrote:
> Hi all,
>
> I'm newbie in android programming. I'm doing a application call google
> maps api. It worked. I can zoom in/out. Mark a position on map. But I
> don't know how to navigate search on google maps in my app?
> And how to find the way between 2 point in google maps api? Does it
> support this feature?
>
> I use Google API 3.1.
>
> Thanks & Regards,
> D

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Does new Google Music Beta support end user selection of songs via intents

2011-05-30 Thread Mark Murphy
On Mon, May 30, 2011 at 10:20 AM, dsurround  wrote:
> Thanks Mark.  I tried the suggestion.  Unfortunately, it breaks the
> app with the stock music player.  It may fix it with Music Beta, but I
> didn't try that since it doesn't work properly with the default player
> which is what most people have these days.   The UI doesn't give the
> user the opportunity to pick a song to sing along with.   Do you have
> any other suggestions?  Appreciate the assistance..

Write your own picker using the MediaStore information, rather than
relying on a third party.

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

Android Training in Oslo: http://bit.ly/fjBo24

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

2011-05-30 Thread Mark Murphy
On Mon, May 30, 2011 at 10:11 AM, Capt Spaghetti  wrote:
> I have it functioning but it is slow to load because of the number of views.

And your proof of this is... what, exactly?

Use Traceview to determine where your time is being spent. Don't just guess.

> What are my options for handling large amounts of data without slowing
> down the load time?

Use a ListView or some other AdapterView, so only the views that are
needed by the user at the moment are in memory.

Or, try to consolidate multiple views (e.g., use a SpannedString,
perhaps from Html.fromHtml(), to populate a single TextView rather
than several in a horizontal LinearLayout).

Or, if this is a game, use the 2D or 3D graphics APIs.

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

Android Training in Oslo: http://bit.ly/fjBo24

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

2011-05-30 Thread Mark Carter
I'm not sure, but isn't it possible to directly access the shared prefs of 
one app from another (by the same developer/publisher)?

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

[android-developers] Re: Does new Google Music Beta support end user selection of songs via intents

2011-05-30 Thread dsurround
Thanks Mark.  I tried the suggestion.  Unfortunately, it breaks the
app with the stock music player.  It may fix it with Music Beta, but I
didn't try that since it doesn't work properly with the default player
which is what most people have these days.   The UI doesn't give the
user the opportunity to pick a song to sing along with.   Do you have
any other suggestions?  Appreciate the assistance..

Dan

On May 29, 9:28 am, Mark Murphy  wrote:
> Try MediaStore.Audio.Media.CONTENT_TYPE instead, which maps to
> vnd.android.cursor.dir/audio. The MIME type you are using is
> undocumented.
>
>
>
>
>
>
>
>
>
> On Sun, May 29, 2011 at 9:13 AM,dsurround wrote:
> > I have an application that uses ACTION_PICK to allow the user to pick
> > a song.  Once that song is picked, the application uses the cursor
> > location and does another intent later on to show the NOW_PLAYING
> > interface.  The application worked fine until I installed Music Beta
> > on my droid device.  The application then began failing with
> > UnsupportedOperationException.  The intent and filters looked like
> > this:
>
> > Intent intent = new Intent(Intent.ACTION_PICK);
> > intent.setType("vnd.android.cursor.dir/track");
> > this.startActivity(intent);
>
> > I uninstalled Music Bata and the application again worked fine.
> > Wanted to see if this was a bug related to new Google music
> > application and see if anyone else was having this problem.
>
> > Here is the log:
>
> > 05-27 08:44:19.882: ERROR/AndroidRuntime(17762): FATAL EXCEPTION: main
> > 05-27 08:44:19.882: ERROR/AndroidRuntime(17762):
> > android.content.ActivityNotFoundException: No Activity found to handle
> > Intent { act=android.intent.action.PICK dat=
> > typ=vnd.android.cursor.dir/track }
> > 05-27 08:44:19.882: ERROR/AndroidRuntime(17762):     at
> > android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:
> > 1408)
> > 05-27 08:44:19.882: ERROR/AndroidRuntime(17762):     at
> > android.app.Instrumentation.execStartActivity(Instrumentation.java:
> > 1378)
> > 05-27 08:44:19.882: ERROR/AndroidRuntime(17762):     at
> > android.app.Activity.startActivityForResult(Activity.java:2817)
> > 05-27 08:44:19.882: ERROR/AndroidRuntime(17762):     at
> > djf.songing.Songing.onTouchEvent(Songing.java:124)
> > 05-27 08:44:19.882: ERROR/AndroidRuntime(17762):     at
> > android.app.Activity.dispatchTouchEvent(Activity.java:2089)
> > 05-27 08:44:19.882: ERROR/AndroidRuntime(17762):     at
> > com.android.internal.policy.impl.PhoneWindow
> > $DecorView.dispatchTouchEvent(PhoneWindow.java:1655)
> > 05-27 08:44:19.882: ERROR/AndroidRuntime(17762):     at
> > android.view.ViewRoot.handleMessage(ViewRoot.java:1785)
> > 05-27 08:44:19.882: ERROR/AndroidRuntime(17762):     at
> > android.os.Handler.dispatchMessage(Handler.java:99)
> > 05-27 08:44:19.882: ERROR/AndroidRuntime(17762):     at
> > android.os.Looper.loop(Looper.java:123)
> > 05-27 08:44:19.882: ERROR/AndroidRuntime(17762):     at
> > android.app.ActivityThread.main(ActivityThread.java:4627)
> > 05-27 08:44:19.882: ERROR/AndroidRuntime(17762):     at
> > java.lang.reflect.Method.invokeNative(Native Method)
> > 05-27 08:44:19.882: ERROR/AndroidRuntime(17762):     at
> > java.lang.reflect.Method.invoke(Method.java:521)
> > 05-27 08:44:19.882: ERROR/AndroidRuntime(17762):     at
> > com.android.internal.os.ZygoteInit
> > $MethodAndArgsCaller.run(ZygoteInit.java:858)
> > 05-27 08:44:19.882: ERROR/AndroidRuntime(17762):     at
> > com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
> > 05-27 08:44:19.882: ERROR/AndroidRuntime(17762):     at
> > dalvik.system.NativeStart.main(Native Method)
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> _The Busy Coder's Guide to Android Development_ Version 3.6 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: EditText stops displaying characters as I'm typing?

2011-05-30 Thread Eric Carman
Interesting. I've done as you have suggested (although I'm using the
OnKeyListener, the OP is using the editor action listener) and so far
no issues. I need to test on a different device to be sure (the one
that most frequently demonstrated this issue) and since it is an
intermittent problem, I suppose it will take a bit of testing to make
sure.

Have you run into issues with these listeners and the EditText?

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


[android-developers] Options for Too Many Views

2011-05-30 Thread Capt Spaghetti
I am creating a run of the mill golf game and I need to track 76 data
items. I have it functioning but it is slow to load because of the
number of views. I ran layoutopt and received the following output.

   -1:-1 This layout has too many views: 100 views, it should have <=
80!
   -1:-1 This layout has too many views: 92 views, it should have <=
80!
   -1:-1 This layout has too many views: 91 views, it should have <=
80!

What are my options for handling large amounts of data without slowing
down the load time?

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


Re: [android-developers] Slow motion video

2011-05-30 Thread New Developer
IF this was answered I apologize
But I have not been receiving mail from the android-developers mailing list 
since friday
anyhow that has been fixed.

Are there any ideas on how to implement slow motion ?

Is there a way to tap into  or Override the   VideoView  play thread ?

Or should I use something else ?

Currently I have my own control buttons and a progress slider (to control speed 
 I hope)
When I click the Play button I call VideoView's  start();

thanks again and sorry if this was already answered.



On May 24, 2011, at 7:19 PM, TheBear wrote:

> I am able to play back video using the mediaplayer with the standard
> video control buttons.
> 
> My question is how can I use a slider /progress bar to act as a play
> back speed.
> which function would I have to override and how.
> basically
> 
> while not end of movie
>play next frame
>sleep (value of progress bar   (0 - 100) * 4000);
> 
> this way when the slider/progress bar is at 0 sleep is 0; thus there
> is NO delay in playback
> 
> when the slider is at 100 then sleep is 40,000, thus there is a 40
> second delay between frames causing the video to slow.
> 
> As you can see I have a concept but I am not sure of the routines, I
> found reference to play a frame
> but could not find any examples and it would appear that it is now
> depreciated.
> 
> 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

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

2011-05-30 Thread Mark Murphy
On Mon, May 30, 2011 at 9:32 AM, Mark Cz  wrote:
> Hi,
> I have an Android Service that does some client-server work,
> E.g I am getting a file from the server, and I want to toast a message
> - "Download was completed"

A service should not be updating the user interface. Please delegate
that to an activity if one of yours is in the foreground, or display a
Notification if there is no such activity and you feel the situation
warrants a Notification. You can use an ordered broadcast to achieve
this:

http://commonsware.com/blog/2010/08/11/activity-notification-ordered-broadcast.html

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

Android Training in Oslo: http://bit.ly/fjBo24

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


[android-developers] Re: Looper.prepare

2011-05-30 Thread Mark Cz
Hi,
I have an Android Service that does some client-server work,
E.g I am getting a file from the server, and I want to toast a message
- "Download was completed"

My question was regarding the Looper.prepare().

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

2011-05-30 Thread Jonas Petersson

On 2011-05-30 15:16, DanH wrote:

SOAP has high-level functions that JSON doesn't (over and above the
simple protocol level differences).  Not really necessary for simple
database queries and the like, but useful for more sophisticated
stuff.  (Disclaimer -- I've never actually used SOAP -- it's always
been too complex for my uses.)

Certainly when faced with the simple choice between JSON and XML, JSON
is the right choice 9 times out of 10.


Well, I've used SOAP in several projects (as in "I've been given a SOAP 
service someone else has built and had to conform to it") and I'm sure 
there ARE real life cases where SOAP is the correct tool for the job, 
but I have yet to find one. My personal estimate is that JSON is the 
right choice almost 10 times out of 10 (at least when it comes to stuff 
that you are likely to want to implement on a phone). Data overhead is 
important to most users both when it comes to cost and time so that 
pretty much disqualifies SOAP IMHO.


Best / Jonas

PS. My biggest gripe is that SOAP services often base64 encode 
everything twice. Sure it is "binary safe", but you can easily add that 
to your tailored JSON data too. YMMV.


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


[android-developers] Re: JSON OR SOAP ?

2011-05-30 Thread DanH
SOAP has high-level functions that JSON doesn't (over and above the
simple protocol level differences).  Not really necessary for simple
database queries and the like, but useful for more sophisticated
stuff.  (Disclaimer -- I've never actually used SOAP -- it's always
been too complex for my uses.)

Certainly when faced with the simple choice between JSON and XML, JSON
is the right choice 9 times out of 10.

On May 30, 8:02 am, harism  wrote:
> Hi Dan,
>
> I was introduced to JSON only very recently and since you seem to
> understand the difference between JSON and SOAP much better than I do,
> I'm wondering is there really need for both? I mean JSON was very
> flexible and easy to use. Only thing I can come up with is the lack of
> binary data transferring, otherwise I preferred JSON for database
> queries.
>
> --
> H
>
> On Mon, May 30, 2011 at 3:46 PM, DanH  wrote:
> > Some web services may give you the choice between "SOAP" and "JSON"
> > remote APIs.  In such a case, whereas SOAP defines much of the
> > structure of requests and responses, and the conceptual protocols
> > involved, JSON (by itself) does not (it only defines the basic data
> > format), so additional info is required from the designers of the
> > service, and, likely, additional code will have to be written on your
> > side to handle these things.
>
> > When given a choice on an existing service, the choice would depend on
> > how complex your queries are, and, to an extent, on how well-designed
> > the ad-hoc JSON protocols are.  For simple queries on a well-designed
> > site you'd likely end up writing less code with JSON, but for more
> > complex operations, or if the JSON protocols are not well-defined, it
> > might be better to use SOAP, if the added overhead doesn't slow things
> > down too much.
>
> > On May 29, 10:15 pm, Migazan  wrote:
> >> What better way to consume web services on android JSON or SOAP?
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, 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: Android Developer's Chat

2011-05-30 Thread Spooky
On May 30, 7:26 am, "Jonas Petersson"  wrote:
> On 2011-05-30 14:13, Kostya Vasilyev wrote:
>
> > I rememeber reading that this list is moderated for new users and it
> > takes a few days to be able to post (if that's the case, it's a good
> > question why there is stil spam here).

Apparently, it takes more than a few days  I subscribed to the
list
on 11th May 2011 at 07:08:02 CDT, and am still blocked.

I just posted the following via e-mail:


---  CUT HERE  ---

Date: Mon, 30 May 2011 07:32:06 -0500
From: Jim Graham 
To: android-developers@googlegroups.com
Subject: Re: [android-developers] Re: Android Developer's Chat
Message-ID: <20110530123206.ga44...@n5ial.pn.at.cox.net>
Content-Type: text/plain; charset=us-ascii
In-Reply-To: 
User-Agent: Mutt/1.4.2.3i

On Mon, May 30, 2011 at 04:13:11PM +0400, Kostya Vasilyev wrote:
> I rememeber reading that this list is moderated for new users and it takes a
> few days to be able to post (if that's the case, it's a good question why
> there is stil spam here).
>
> Also Groups doesn't relay the posted message back, which combined with the
> above, can be confusing at first.

Could be.  It was right after I signed up on the list.  I just wish
I'd
known...I could have been editing my posts with vim instead of the
"editor" on the Android developer's web site.  I hate web-based
editors.

Now for another mystery:  last night, I posted a question asking about
how to access the R.drawable.whatever resource for the
currently-displayed image in a Gallery...and after reading the digests
this morning (before switching back to "normal" e-mail mode), I didn't
see that message anywhere in any of the digests.

If I just missed it, that's fine.  But if nobody knows what post I'm
referring to, please let me know whether or not I should repoost it.

Thanks,
   --jim

--
73 DE N5IAL (/4)  | 1) "Smoking habanero powder helps defeat
that
< Running FreeBSD 7.0 >   |off taste' quite nicely."
spooky1...@gmail.com  | 2) "I figure a couple bong hits of
[habanero]
ICBM/Hurr.: / 30.44406N   |powder would defeat just about
anything!"
| 86.59909W--seen in Chile-Heads list

---  CUT HERE  ---

And got the following:

---  CUT HERE  ---

From: Mail Delivery Subsystem 
To: spooky1...@gmail.com
X-Failed-Recipients: android-developers@googlegroups.com
Subject: Delivery Status Notification (Failure)
Date: Mon, 30 May 2011 12:32:20 +

Hello spooky1...@gmail.com,

We're writing to let you know that the group you tried to contact
(android-developers) may not exist, or you may not have permission to
post messages to the group. A few more details on why you weren't able
to post:

 * You might have spelled or formatted the group name incorrectly.
 * The owner of the group may have removed this group.
 * You may need to join the group before receiving permission to post.
 * This group may not be open to posting.

If you have questions related to this or any other Google Group, visit
the Help Center at http://groups.google.com/support/?hl=en_US.

Thanks,

Google Groups

---  CUT HERE  ---

Apparently, posting to the group via e-mail is NOT possible, and
those doing so are merely imagining that they are doing so.  That,
or the group doesn't like me.  Maybe I post too many stupid
questions as I'm learning (sorry, but that IS how I learn...work
through example code,  read reference material, ask questions
for things I don't understand,  repeat for NEW topics as they
come along.  Maybe a moderator disapproves

Later (via  this stupid editor, apparently---I trust it will start
reading my mind and wrapping at 74 columns now, and
working like vim`:r .sigs/personal.sig.01---
CUT HERE  ---

Date: Mon, 30 May 2011 07:32:06 -0500
From: Jim Graham 
To: android-developers@googlegroups.com
Subject: Re: [android-developers] Re: Android Developer's Chat
Message-ID: <20110530123206.ga44...@n5ial.pn.at.cox.net>
Content-Type: text/plain; charset=us-ascii
In-Reply-To: 
User-Agent: Mutt/1.4.2.3i

On Mon, May 30, 2011 at 04:13:11PM +0400, Kostya Vasilyev wrote:
> I rememeber reading that this list is moderated for new users and it takes a
> few days to be able to post (if that's the case, it's a good question why
> there is stil spam here).
>
> Also Groups doesn't relay the posted message back, which combined with the
> above, can be confusing at first.

Could be.  It was right after I signed up on the list.  I just wish
I'd
known...I could have been editing my posts with vim instead of the
"editor" on the Android developer's web site.  I hate web-based
editors.

Now for another mystery:  last night, I posted a question asking about
how to access the R.drawable.whatever resource for the
currently-displayed image in a Gallery...and after readi

Re: [android-developers] Re: JSON OR SOAP ?

2011-05-30 Thread harism
Hi Dan,

I was introduced to JSON only very recently and since you seem to
understand the difference between JSON and SOAP much better than I do,
I'm wondering is there really need for both? I mean JSON was very
flexible and easy to use. Only thing I can come up with is the lack of
binary data transferring, otherwise I preferred JSON for database
queries.

--
H

On Mon, May 30, 2011 at 3:46 PM, DanH  wrote:
> Some web services may give you the choice between "SOAP" and "JSON"
> remote APIs.  In such a case, whereas SOAP defines much of the
> structure of requests and responses, and the conceptual protocols
> involved, JSON (by itself) does not (it only defines the basic data
> format), so additional info is required from the designers of the
> service, and, likely, additional code will have to be written on your
> side to handle these things.
>
> When given a choice on an existing service, the choice would depend on
> how complex your queries are, and, to an extent, on how well-designed
> the ad-hoc JSON protocols are.  For simple queries on a well-designed
> site you'd likely end up writing less code with JSON, but for more
> complex operations, or if the JSON protocols are not well-defined, it
> might be better to use SOAP, if the added overhead doesn't slow things
> down too much.
>
> On May 29, 10:15 pm, Migazan  wrote:
>> What better way to consume web services on android JSON or SOAP?
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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: JSON OR SOAP ?

2011-05-30 Thread DanH
Some web services may give you the choice between "SOAP" and "JSON"
remote APIs.  In such a case, whereas SOAP defines much of the
structure of requests and responses, and the conceptual protocols
involved, JSON (by itself) does not (it only defines the basic data
format), so additional info is required from the designers of the
service, and, likely, additional code will have to be written on your
side to handle these things.

When given a choice on an existing service, the choice would depend on
how complex your queries are, and, to an extent, on how well-designed
the ad-hoc JSON protocols are.  For simple queries on a well-designed
site you'd likely end up writing less code with JSON, but for more
complex operations, or if the JSON protocols are not well-defined, it
might be better to use SOAP, if the added overhead doesn't slow things
down too much.

On May 29, 10:15 pm, Migazan  wrote:
> What better way to consume web services on android JSON or SOAP?

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

2011-05-30 Thread Filiz Gökçe
Now, the streaming address works.

Filiz Gökçe




On 26 May 2011 19:11, Robert Slama  wrote:

> hmmm
>
> i try open your url rtsp://strm-3.tr.medianova.tv/rkraltv/rkraltv
> with realplayer and with vlc and that stream is not available. Try u
> open stream in some player (on pc) before u test it on android?
>
> r^
>
> On 26 May 2011 08:37, Filiz Gökçe  wrote:
> > Hi,
> > I try to make live stream on android,
> > I try lots of ways, but none of them doesnt work.
> > Could you help me ?
> >
> >
> > This is example of rtsp;
> > mMediaPlayer = new MediaPlayer();
> > mMediaPlayer.setDataSource(KralStream.getTvStreamUrl().toString());
> > mMediaPlayer.setDisplay(holder);
> > mMediaPlayer.prepareAsync();
> > mMediaPlayer.setOnBufferingUpdateListener(this);
> > mMediaPlayer.setOnCompletionListener(this);
> > mMediaPlayer.setOnPreparedListener(this);
> > mMediaPlayer.setOnVideoSizeChangedListener(this);
> > mMediaPlayer.setAudioStreamType(AudioManager.STREAM_MUSIC);
> > mMediaPlayer.setLooping(true);
> >
> > Exeption :05-26 10:22:46.186: ERROR/MediaPlayerService(10157):  create
> > PVPlayer
> > 05-26 10:23:06.382: ERROR/PlayerDriver(10157): Command PLAYER_INIT
> completed
> > with an error or info -1
> > 05-26 10:23:06.382: ERROR/MediaPlayer(23800): error (1, -1)
> > 05-26 10:23:06.382: ERROR/MediaPlayer(23800): Error (1,-1)
> >
> > rtsp;
> > VideoView videoView=(VideoView)findViewById(R.id.videoView1);
> > Uri uri =
> > Uri.parse("
> http://www.kraltv.com.tr/m/app_streaming_url.asp?t=5&g=DA245844BC6D4F9A8EFDD8F14D41676F
> ");
> > videoView.setVideoURI(uri);
> > videoView.start();
> >
> > Gives message;"Sorry, this video connot ve played."
> >
> >
> > rtsp;
> > mPreview = (SurfaceView) findViewById(R.id.surface);
> > holder = mPreview.getHolder();
> > holder.addCallback(this);
> > holder.setType(SurfaceHolder.SURFACE_TYPE_PUSH_BUFFERS);
> > extras = getIntent().getExtras();
> > public void play() {
> >
> > try {
> > Uri video = KralStream.getTvStreamUrl();
> > Toast.makeText(this, video.toString(),
> > Toast.LENGTH_SHORT).show();
> >  mMediaPlayer = new MediaPlayer();
> >  mMediaPlayer.setDataSource(path);
> >  mMediaPlayer.setDisplay(holder);
> >  mMediaPlayer.prepare();
> >  mMediaPlayer.setOnBufferingUpdateListener(this);
> >  mMediaPlayer.setOnCompletionListener(this);
> >  mMediaPlayer.setOnPreparedListener(this);
> >  mMediaPlayer.setOnVideoSizeChangedListener(this);
> >  mMediaPlayer.setAudioStreamType(AudioManager.STREAM_MUSIC);
> >  } catch (Exception e) {
> > Log.e(TAG, "error: " + e.getMessage(), e);
> > }
> > }
> >
> > Exeption ;05-26 10:36:57.589: ERROR/MediaPlayerService(10157):  create
> > PVPlayer
> > 05-26 10:37:20.542: ERROR/PlayerDriver(10157): Command PLAYER_INIT
> completed
> > with an error or info -1
> > 05-26 10:37:20.542: ERROR/MediaPlayer(24240): error (1, -1)
> > 05-26 10:37:20.565: WARN/PlayerDriver(10157):
> PVMFInfoErrorHandlingComplete
> > 05-26 10:37:20.682: ERROR/MediaPlayerDemo(24240): error: Prepare failed.:
> > status=0x1
> > 05-26 10:37:20.682: ERROR/MediaPlayerDemo(24240): java.io.IOException:
> > Prepare failed.: status=0x1
> > 05-26 10:37:20.682: ERROR/MediaPlayerDemo(24240): at
> > android.media.MediaPlayer.prepare(Native Method)
> > 05-26 10:37:20.682: ERROR/MediaPlayerDemo(24240): at
> > com.giantrabbit.nagare.KralTvNow.play(KralTvNow.java:162)
> > 05-26 10:37:20.682: ERROR/MediaPlayerDemo(24240): at
> > com.giantrabbit.nagare.KralTvNow.surfaceCreated(KralTvNow.java:215)
> > 05-26 10:37:20.682: ERROR/MediaPlayerDemo(24240): at
> > android.view.SurfaceView.updateWindow(SurfaceView.java:536)
> > 05-26 10:37:20.682: ERROR/MediaPlayerDemo(24240): at
> > android.view.SurfaceView.dispatchDraw(SurfaceView.java:339)
> > 05-26 10:37:20.682: ERROR/MediaPlayerDemo(24240): at
> > android.view.ViewGroup.drawChild(ViewGroup.java:1638)
> > 05-26 10:37:20.682: ERROR/MediaPlayerDemo(24240): at
> > android.view.ViewGroup.dispatchDraw(ViewGroup.java:1367)
> > 05-26 10:37:20.682: ERROR/MediaPlayerDemo(24240): at
> > android.view.ViewGroup.drawChild(ViewGroup.java:1638)
> > 05-26 10:37:20.682: ERROR/MediaPlayerDemo(24240): at
> > android.view.ViewGroup.dispatchDraw(ViewGroup.java:1367)
> > 05-26 10:37:20.682: ERROR/MediaPlayerDemo(24240): at
> > android.view.View.draw(View.java:6796)
> > 05-26 10:37:20.682: ERROR/MediaPlayerDemo(24240): at
> > android.widget.FrameLayout.draw(FrameLayout.java:352)
> > 05-26 10:37:20.682: ERROR/MediaPlayerDemo(24240): at
> > android.view.ViewGroup.drawChild(ViewGroup.java:1640)
> > 05-26 10:37:20.682: ERROR/MediaPlayerDemo(24240): at
> > android.view.ViewGroup.dispatchDraw(ViewGroup.java:1367)
> > 05-26 10:37:20.682: ERROR/MediaPlayerDemo(24240): at
> > android.view.View.draw(View.ja

Re: [android-developers] Looper.prepare

2011-05-30 Thread Mark Murphy
On Mon, May 30, 2011 at 8:24 AM, Mark Cz  wrote:
> From the worker thread I want to do:
> 1. Toast.show
> 2. Get the user agent  - String userAgent = new
> WebView(TestAlarmService.this).getSettings().getUserAgentString();

Why do you need a thread for any of this?

> B. If I don't use Looper.prepare, but handler.postDelayed() everything
> works fine.
> I want to know if it is possible to achieve what I want without using
> a Handler ?

Why do you need a Handler for any of this?

> And if it is not possible, how can I get the User Agent in a
> synchronize way?

Call getUserAgentString() on the WebSettings object. Is there a
particular problem that you are encountering that is causing you to
try all these other odd things?

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

Android Training in Oslo: http://bit.ly/fjBo24

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

2011-05-30 Thread Jonas Petersson

On 2011-05-30 14:13, Kostya Vasilyev wrote:

I rememeber reading that this list is moderated for new users and it
takes a few days to be able to post (if that's the case, it's a good
question why there is stil spam here).


If you keep an eye on the sending date of messages (and the flow) it is 
quite easy to tell that new users' messages are often piled up for a few 
days and then some kind of moderator let them the whole pile through 
(presumably after weeding the worst stuff out).


I suspect that once you are approved you stay approved until manually 
blocked. Hence, the spammers (for example some semi-random head hunters) 
may be let through with an innocent message and then turn evil.


Not ideal, but...

Just my guesses / Jonas



2011/5/30 Mark Murphy mailto:mmur...@commonsware.com>>

On Mon, May 30, 2011 at 7:29 AM, Spooky mailto:spooky1...@gmail.com>> wrote:
 > You mean you CAN send post by sending e-mail to the list?

Yes. This message is coming via Gmail, for example.

 > When I
 > tried that (my first post), it was rejected, saying the list didn't
 > accept
 > posts via e-mail, or something to that effect

It is possible that the email interface is only available to those who
have gotten past the moderation queue or something.

It is issues like this why I steer people to StackOverflow.

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

Android Training in Oslo: http://bit.ly/fjBo24

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to
android-developers@googlegroups.com

To unsubscribe from this group, 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


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


[android-developers] Looper.prepare

2011-05-30 Thread Mark Cz
Hi All,

I am having an Android Service with a worker thread.

>From the worker thread I want to do:
1. Toast.show
2. Get the user agent  - String userAgent = new
WebView(TestAlarmService.this).getSettings().getUserAgentString();

My problem is
if I don't use Looper.prepare
I got an exception which make sense
java.lang.RuntimeException: Can't create handler inside thread that
has not called Looper.prepare()

I tried a couple of solutions:

A. If I add to my worker thread only one code line
Looper.prepare();
(without looper.loop loop.quit),
I do get the user agent, b
but I don't see the toast, although there are  two CONSECUTIVE log
messages (with a real duration and zero one, but I don't think this is
my problem)
INFO/NotificationService(52): enqueueToast pkg=com.plankton.test.alarm
callback=android.app.ITransientNotification$Stub$Proxy@44cb0eb0
duration=1
INFO/NotificationService(52): enqueueToast pkg=com.plankton.test.alarm
callback=android.app.ITransientNotification$Stub$Proxy@44ca8ea8
duration=0

Can i do a looper.prepare without looper.loop ?

B. If I don't use Looper.prepare, but handler.postDelayed() everything
works fine.
I want to know if it is possible to achieve what I want without using
a Handler ?
And if it is not possible, how can I get the User Agent in a
synchronize way?

Thanks.







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


[android-developers] Re : Re: Drawing scaled bitmaps on a SurfaceView -- no antialiasing

2011-05-30 Thread FReDD ---
Yeah, that's crazy,

I either get the choice of implementing a bicubic interpolation library or 
create a gazillion pre-scaled bitmaps, I can't believe nobody ever 
encountered this problem...

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

2011-05-30 Thread Kostya Vasilyev
I rememeber reading that this list is moderated for new users and it takes a
few days to be able to post (if that's the case, it's a good question why
there is stil spam here).

Also Groups doesn't relay the posted message back, which combined with the
above, can be confusing at first.

-- Kostya

2011/5/30 Mark Murphy 

> On Mon, May 30, 2011 at 7:29 AM, Spooky  wrote:
> > You mean you CAN send post by sending e-mail to the list?
>
> Yes. This message is coming via Gmail, for example.
>
> > When I
> > tried that (my first post), it was rejected, saying the list didn't
> > accept
> > posts via e-mail, or something to that effect
>
> It is possible that the email interface is only available to those who
> have gotten past the moderation queue or something.
>
> It is issues like this why I steer people to StackOverflow.
>
> --
> Mark Murphy (a Commons Guy)
> http://commonsware.com | http://github.com/commonsguy
> http://commonsware.com/blog | http://twitter.com/commonsguy
>
> Android Training in Oslo: http://bit.ly/fjBo24
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] Chatting application

2011-05-30 Thread gaurav gupta
Hi Guys ,
i want to make a chat application, where we can chat using any email id. i
dont want to make a server for this.
On my first step i want to make this for gmail only. but i will make it for
any email id later
Suggest me regarding this.


Thanks in Advance
Gaurav Gupta
Android Developer

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

Re: [android-developers] displaying mySQL data through JSON in a selectable list

2011-05-30 Thread B Lyon
What exactly do you mean by "display as selectable items"?

On Fri, May 27, 2011 at 5:05 AM, ram_droid
 wrote:
> Hi,
>
> I am in the process of building an app that runs on a client device
> collecting various bits of data and then posting it to a remote mySQL
> database via php. This part is no problem and works successfully.  The
> remote DB is host to a server process that performs various matching
> exercises on the data based on various conditions and returns a
> variable-sized data list back to client phones which it is intended to
> display in a selectable list (so a phone user can select to view and
> act upon the information).
>
> I have successfully retrieved the records from the mySQL DB and
> displayed them as static JSON to String text elements on a phone. BUT
> I have been spending days now trying to figure out how to get the JSON
> elements (or String elements) to display as selectable items. Can it
> be so difficult?
>
> Any help  really appreciated
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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


[android-developers] Re: SQLite DataStorage write frequency?

2011-05-30 Thread DanH
It writes on every commit.  Unless you explicitly start/end
transactions, a commit occurs after each insert/update.

On May 29, 12:24 pm, Andrew Pamment  wrote:
> Hi
>
> I'm writing a game that uses SQLite storage to keep the game objects
> persistent through restarts etc. I'm wondering how frequently I can
> update records? Should I do it only when the game closes, or whenever
> the object changes? Given that the object changes every 10 seconds I'm
> worried it would reduce the life of the internal storage, on the other
> hand it would be good if it saved the data should the battery run out
> mid game.
>
> So I'm thinking I should make it autosave every X amount of time, I'm
> just not sure what a reasonable value for X is.
>
> Thanks,
> Andrew

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


[android-developers] Re: Application suspended. Why?

2011-05-30 Thread Zsolt Vasvari
It is truly pathetic that there is no support channel available.  If
this happened to me, I'd write to all the well-known blogs, such as
Engadget, Gizmodo, etc...


On May 30, 7:18 pm, Eurig Jones  wrote:
> Well I'm guessing that it was an automated process that suspended my
> app, as I uploaded it and as soon as I pressed publish only moments
> later I received the email stating that its been suspended. I'm not
> sure on that of course.
>
> I'm absolutely devastated. 18 months work gone down the pan and no
> explanation as to why..
>
> On May 30, 11:23 am, Zsolt Vasvari  wrote:
>
>
>
> > It looks like it's not violating any policy.
>
> > Since they left the paid version up there, I'd suspect a cock-up by
> > the Android Market people.  Given their track record, that's the most
> > likely explanation.
>
> > On May 30, 6:09 pm, Eurig Jones  wrote:
>
> > > On May 30, 10:56 am, Zsolt Vasvari  wrote:> Didn't 
> > > you just ask the same question on another thread?
>
> > > Yes I posted on the Android market technical suport forum as well.
>
> > > > 1)  What does your app do?
>
> > > Its a chess application - Chess-presso Free
>
> > > > 2)  Is it free an the Android Market, and if it is, do you direct the
> > > > user to pay via some other mean other than in-app billing?
>
> > > No I dont.
>
> > > > > Hi,
>
> > > > > I uploaded a new upgrade to  last night and to my horror I received a
> > > > > notification of voilation from market support almost as soon as I
> > > > > published the new version of the application. I have no idea why this
> > > > > has happened, I have gone through the developer content policy with a
> > > > > fine tooth comb to see if I am voilating anything but I can't see the
> > > > > issue and I cannot upload a new version of the app.
>
> > > > > Can you please help me pinpoint the problem here so I can get this app
> > > > > back on the market?
>
> > > > > I was also having trouble uploading it last night as well as it took
> > > > > me a few attempts to successfully upload. Maybe that could have
> > > > > triggered an automatic process?
>
> > > > > Please help! This game has been a labour of love for me for over 18
> > > > > months and it just being taken off the market like this is quite
> > > > > literally, absolutely devastating.
>
> > > > > Regards,- 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: Android Developer's Chat

2011-05-30 Thread Mark Murphy
On Mon, May 30, 2011 at 7:29 AM, Spooky  wrote:
> You mean you CAN send post by sending e-mail to the list?

Yes. This message is coming via Gmail, for example.

> When I
> tried that (my first post), it was rejected, saying the list didn't
> accept
> posts via e-mail, or something to that effect

It is possible that the email interface is only available to those who
have gotten past the moderation queue or something.

It is issues like this why I steer people to StackOverflow.

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

Android Training in Oslo: http://bit.ly/fjBo24

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

2011-05-30 Thread Mark Murphy
You might try the adt-dev Google Group, particularly for issues
related to the in-repo, not-yet-released ADT code.

On Mon, May 30, 2011 at 1:42 AM, Zsolt Vasvari  wrote:
> Since I know Xavier reads this forum.
>
> Tested with all the latest and greatest:
>
> - Open a layout
> - "Save as" a different name
> - Edit the new layout's XML
> - Switch to the graphical viewer
> - The graphical viewer is still showing the old layout from before
> "Save as"
> - To get the new layout to display, you need to close the file and
> reopen 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
>



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

Android Training in Oslo: http://bit.ly/fjBo24

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

2011-05-30 Thread Spooky
On May 30, 3:57 am, mpiks jonathan  wrote:
> Hi to all,
>
> Is there another way one can post a problem and get solution apart
> from sending an email to android-developers@googlegroups.com?

You mean you CAN send post by sending e-mail to the list?  When I
tried that (my first post), it was rejected, saying the list didn't
accept
posts via e-mail, or something to that effect  GREAT, back to
being able to use vim, see the screen (larger fonts), etc.So
why
did it bounce when I tried, then?

Later,
   --jim

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


Re: [android-developers] Regard implemetation of web service in Android

2011-05-30 Thread Mark Murphy
Use adb logcat, DDMS, or the DDMS perspective in Eclipse to examine
LogCat and look at the stack trace associated with your exception.

On Thu, May 26, 2011 at 11:50 PM, Elan chezhiyan.k  wrote:
> Hai,
> we r working on a  word game project like hangman etc for Tamil Language
> using Android Java. Now we have a webservice our server, we need to fetch
> the values from Andriod api through Webservice. Our webservice are
> successfully running in other java based web application. when we integrate
> with android we found some exception.
>
> please help me
> --
> Regards
> Elanchezhiyan.K
>
> Visit me at http://thoughtsofchezhiyan.blogspot.com
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en



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

Android Training in Oslo: http://bit.ly/fjBo24

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


Re: [android-developers] how to display multiple lists in a single activity in android?

2011-05-30 Thread Mark Murphy
Use adb logcat, DDMS, or the DDMS perspective in Eclipse to examine
LogCat and look at the stack trace associated with your error.

On Fri, May 27, 2011 at 3:06 PM, Nermeen Nasim  wrote:
>
> ive made a table layout like 4 quadrants, i need to show 1 list for
> each quadrant. ive assigned id's to TextViews, ive tried listviews as
> well by using
>
> final String[] Cities = new String[] {"karachi", "Lahore", "Bangol",
> "Islamabad", "Muree"}; ListView
> lv1=(ListView)this.findViewById(R.id.listview1);
>
>    ArrayAdapter list1 = new ArrayAdapter(
>            this, android.R.layout.simple_list_item_1,Cities);
>    lv1.setAdapter(list1);
> this is the simplest code ive seen and used but, there occurs error
> and application stops Unexpectedly... ??
>
> does any one know the correct code to display even 2 lists at a time?
> or should i use some other views for that?
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



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

Android Training in Oslo: http://bit.ly/fjBo24

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

2011-05-30 Thread Mark Murphy
On Fri, May 27, 2011 at 3:44 AM, dbv  wrote:
> I haven't seen any examples or guidance for setting up your own web
> service.  For example, we want our Android app to communicate to a web
> server (nginx or lighttpd) running a Python (or C) program which is
> attached to a mySql db, which is a typical setup ie. Android <->
> webservice <-> webserver <-> Python <-> mySql.

Other than aiming for REST (vs., say, SOAP), Android does not really
care all that much what the Web service is implemented in. Android
does not have built-in endpoints for SOAP or XML-RPC.

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

Android Training in Oslo: http://bit.ly/fjBo24

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

2011-05-30 Thread Mark Murphy
On Sun, May 29, 2011 at 1:23 AM, Muhammad Umair  wrote:
> Hi guys,
>
> I am new to this world. Could any one guide me, i want to connect my
> android phone to PC and then want to send SMS through ecclips.
>
>
> Or any other way to send sms like this.

Eclipse has nothing to do with sending SMS.

If you want an Android application to send an SMS, use SmsManager.

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

Android Training in Oslo: http://bit.ly/fjBo24

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


  1   2   3   >