[android-developers] Getting the list of supported devices - encoding problems

2015-09-23 Thread Simon Giddings
I wanted to obtain the list of supported devices and then automatically 
process them.
I found this page : 
https://support.google.com/googleplay/android-developer/answer/6154891?hl=en

However, the file is encoded as UCS2 Little endian.

Is there a UTF-8 or unicode version available ?

It is important for me to be able to get this automatically, ie via php 
scripting which is unable to convert from UCS2-LE to UTF-8.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] webview load page in background

2015-09-23 Thread TreKing
On Tue, Sep 22, 2015 at 2:44 AM, Jags  wrote:

> thanks, is it the only way ?
>

I don't know, probably not, but that's the first thing that came to mind.


> i can not put it as content, because, there is already a visible content
> (another list) i am replacing that content with webview when required.
>

Have one top level "content" layout (FrameLayout?) that you shove both
into. So your content is always the FrameLayout, but what's actually shown
changes.

i am surprised why content is not rendered when the webview instance is not
> set as a content !
>

Might be a bug. If not, file one: b.android.com.

-
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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] How to close the Existing Fragment

2015-09-23 Thread TreKing
On Tue, Sep 22, 2015 at 12:10 AM, weird0  wrote:

> Could any one tell me how to close the existing fragment?


Without a clearer explanation or some code, it's hard to help you. What do
you mean by "close", for example? A fragment is not something that "closes".

-
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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] How to create a public static class

2015-09-23 Thread Lew
On Tuesday, September 22, 2015 at 8:14:00 AM UTC-7, Mark Phillips wrote:
>
> Java does not allow top level static classes, just inner static classes. 
>

There is no such thing as an "inner static class" in Java. Nested classes 
are either inner or static, never both.

"An *inner class* is a nested class that is not explicitly or implicitly 
declared static."
 

> You can create something like a static class as follows:
>
> 1. define the class as final
> 2. make the constructor private
> 3. make all the members and methods in the class static
>
> Take a look at the java.lang.Math class for an example.
>
> On Mon, Sep 21, 2015 at 10:07 PM, weird0  > wrote:
>
>> How can I create a public static class in Android Studio?
>>
>
Make it a nested class contained in another class.

'static' doesn't make any sense at all for a top-level class.
 

>
>> I want to create a *public static class Utilities* with static methods 
>> so that I can use them throughout the application without creating an 
>> object. I plan to create an AlertDialog and call that in multiple 
>> fragments. 
>>
>
You cannot use 'static' there. Just make it a regular class with a private 
constructor.
 

>
>> But, android Studio throws an error. Rite now, I don't know the exact 
>> error message because I am sitting here in office and making the 
>>
>
What rite are you performing?
 
You need to learn the basics of Java syntax. Oracle has some really good 
tutorials on their site.
 

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