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

2015-09-21 Thread Jags

>
> Thanks for showing interest. My question is, how to achieve this ?
>

when i try below approach 

webview  objwv = new WebView(this);
objwv.loadUrl("index.html");

and on button click, say setContentLayout(objwv);

i see blank page, the page is not rendered. but when the setcontentview is 
called before loadurl, (i.e it is visible), the page loads and renders with 
a white flash.

to avoid this white flas, i want to load it while it is not set as layout 
content.

hope i am clear now.

thanks and regards
jagat

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


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

2015-09-21 Thread weird0
How can I create a public static class in Android Studio?

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. 

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

Regards

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


[android-developers] Invalid unknown request error: [Cannot determine request type. Is your ad unit id correct?]

2015-09-21 Thread Russell Cecala
Hi,

I have tripled checked that I am using the correct ad unit id. Yet my app
will not display banner ads and logcat has this in it ...

I/Ads﹕ Starting ad request.
I/Ads﹕ Use
AdRequest.Builder.addTestDevice("") to get
test ads on this device.
I/Ads﹕ App index is not enabled
W/Ads﹕ JS: The page at about:blank displayed insecure content from gmsg://
mobileads.google.com/invalidRequest?...
 (null:1)
W/Web Console﹕ The page at about:blank displayed insecure content from
gmsg://mobileads.google.com/invalidReques...
 at null:1
W/Ads﹕ Invalid unknown request error: [Cannot determine request type. Is
your ad unit id correct?]
W/Ads﹕ JS: The page at about:blank displayed insecure content from gmsg://
mobileads.google.com/invalidRequest? ...
W/Ads﹕ JS: The page at
https://googleads.g.doubleclick.net/mads/static/mad/sdk/native/sdk-core-v40.html
displayed ...
 (null:1)
W/Web Console﹕ The page at
https://googleads.g.doubleclick.net/mads/static/mad/sdk/native/sdk-core-v40.html
displaye...
 at null:1
W/Ads﹕ There was a problem getting an ad response. ErrorCode: 1
W/Ads﹕ Failed to load ad: 1

I am not sure what else I can do other than make sure the ad unit id is
correct and I have checked that several times already.

Thanks!

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


[android-developers] How to close the Existing Fragment

2015-09-21 Thread weird0
I have Registration Activity in which I have two fragments, SignIn and 
SignUp. I rotate the fragments. 

Upon signning in successfully(Login successfully), make a toast, and 
redirect to another Activitiy. 

But, I am unable to close the existing Registration Activity/SignIn 
Fragment. 

I tried a few samples from the internet but they did not work. Could any 
one tell me how to close the existing fragment?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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-21 Thread TreKing
On Mon, Sep 21, 2015 at 2:07 AM, Jags  wrote:

> i see blank page, the page is not rendered. but when the setcontentview is
> called before loadurl, (i.e it is visible), the page loads and renders with
> a white flash.
>
> to avoid this white flas, i want to load it while it is not set as layout
> content.
>

Leave it as the content but set it to INVISIBLE, then show it once the
content loads.

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