Re: [android-developers] ImmersiveFocusNotifcation

2016-05-21 Thread TreKing
On Fri, May 20, 2016 at 2:20 PM, dsavereide .  wrote:

> We are not trying to run an android app. Our program is Windows program
> that utilizes some .NET controls. The glitch we have only occurs on Surface
> Pros which does have some limited android app support built in, but we are
> not attempting to use that.


OK ... then why are you asking your question on an Android Development
forum?

-
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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/CANCScgjDHaqS52Vkcd9gLWZWm5-cM5E4syRwBvhD310%3Ds3RWow%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] Android table of contents navigation style

2016-05-21 Thread Mark Phillips
Take a look at the Amazon Kindle app. It seems to work well.

I don't think you will get anyone to design your app for you. You will be
the best judge of what works best for your use case.

Mark

On Sat, May 21, 2016 at 1:53 PM, Amitai Rosenberg 
wrote:

> Anyone?
>
> --
> 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.
> To post to this group, send email to android-developers@googlegroups.com.
> Visit this group at https://groups.google.com/group/android-developers.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/android-developers/1a40ed09-4440-4f32-b995-e95c74689e03%40googlegroups.com
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/CAEqej2PdJ7rW0fjkx86dUM3f1S7Bb%2BE%2BOtLjBTZpk6L-jJ-dtQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Android table of contents navigation style

2016-05-21 Thread Amitai Rosenberg
Anyone? 

-- 
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.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/1a40ed09-4440-4f32-b995-e95c74689e03%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Re: webview shouldInterceptRequest does not work on Android 5.0

2016-05-21 Thread Carlos Farrington
I found my problem.  Apparently in Android 5.0 shouldInterceptRequest will 
not be run if their is a problem with the url being loaded.   I was 
using loadDataWithBaseURL("foobar://, data, encoding, null) to load first 
page.  Since foobar:// is not a known prefix to a url or file the request 
was just being dropped.   I changed foobar to http:// or file:/// and 
everything started working as it did on Android 4.1.  I guess a check was 
introduced on 5.0 that was not being done before.

 

On Friday, May 20, 2016 at 5:57:50 PM UTC-6, Carlos Farrington wrote:
>
> Hi 
>
> I am developing an App that intercepts the request and process them and 
> then updates send the WebResourcesResponse.   The code works with no issues 
> on 4.2 but when I try it in 5.0 the function shouldInterceptRequest never 
> sees the request.  I know that there was an update on the library and I 
> have made the modifications but I do not see any requests being processed. 
>  As you can see I have added a toast message to tell me if we enter the 
> shouldInterceptRequest function but I never see the message.   The requests 
> that are being processes are simple gets of a html page with frames. On 4.2 
> works with no problem but on 5.0 it does not work.   Any ideas?
>
> Thank you,
>
> fc8282
>
>
>
> private class WebViewClientImpl extends WebViewClient
> {
> @Override
> public boolean shouldOverrideUrlLoading(WebView view, String url)
> {
> return false;
> }
> 
> @Override
> public void onPageFinished(WebView view, String url)
> {
> 
> }
> 
> @SuppressWarnings("deprecation") // From API 21 we should use another 
> overload
> @Override
> public WebResourceResponse shouldInterceptRequest ( final WebView 
> view, String msg)
> {
> return processRequest ( view, msg );
> }
> 
> //@TargetApi(Build.VERSION_CODES.LOLLIPOP)
> @TargetApi(android.os.Build.VERSION_CODES.LOLLIPOP)
> @Override
> public WebResourceResponse shouldInterceptRequest( WebView view, 
> WebResourceRequest request)
> {
> Toast.makeText(getBaseContext(), "We are in the 
> shouldInterceptRequest 5.0: ",
> Toast.LENGTH_LONG).show();
> 
> 
> String msg = request.getUrl().toString();
> 
> return shouldInterceptRequest(view, request.getUrl().toString());
>
> // Have also tried just simply doing the return.
> //return processRequest ( view, msg );
> }
>
>
> public WebResourceResponse processRequest ( final WebView view, 
> String msg )
>

-- 
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.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/6799a4db-324e-42e5-a1b7-58537cf114cd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Re: Linking SDK Manager to Android Studio

2016-05-21 Thread Jonathan S
I don't see anything on the Android SDK Locations textbox. 

On Saturday, May 21, 2016 at 6:48:15 AM UTC-4, Karthik wrote:
>
> This is the error I get
>

-- 
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.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/5156232d-acec-449b-9531-88808cf6df24%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Forgot Unlock Pattern

2016-05-21 Thread rash hopi
Hello, I really need help.I have not much knowledge regarding this.

I won't be able to unlock it using ADB because I had not enabled USB debugging 
before the phone got locked.

I have downloaded Aroma File Manager and moved it to SD card and placed the 
card in my phone. I don't know what to do next. 

These are the options available to me when I press the volume up and power 
button.

Reboot system now 
Apply update from ADB 
Apply update from SD card
Apply update from SD card 2
Apply update from cache 
Wipe data/factory reset 
Wipe cache partition 
Backup user data 
Restore user data 

The phone model is Gionee ELIFE E3, Android v.4.2 Jellybean

I don't want to Factory reset and lose data. 

Your help is very much appreciated.

-- 
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.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/3984ee75-38a4-4710-a592-5c8ba2eb95a4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Forgot Unlock Pattern

2016-05-21 Thread rash hopi
Hello, I really need help.I have not much knowledge regarding this.

I won't be able to unlock it using ADB because I had not enabled USB debugging 
before the phone got locked.

I have downloaded Aroma File Manager and moved it to SD card and placed the 
card in my phone. I don't know what to do next. 

These are the options available to me when I press the volume up and power 
button.

Reboot system now 
Apply update from ADB 
Apply update from SD card
Apply update from SD card 2
Apply update from cache 
Wipe data/factory reset 
Wipe cache partition 
Backup user data 
Restore user data 

The phone model is Gionee ELIFE E3, Android v.4.2 Jellybean

I don't want to Factory reset and lose data. 

Your help is very much appreciated.

-- 
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.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/f10922d1-a842-4d51-b0e5-269556d5726e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Android Lockscreen replacement

2016-05-21 Thread Jonathan Pethő


Hi all,

 

I am developing a lock screen application, which is an alternative for the 
factory lock. There are some similar applications on the Play Store, so it 
doesn’t seem to be impossible to solve my issue.

 

I successfully created a view with layoutinflater that covers the full 
screen, but it also covers the phone calls, alarms, etc, what is 
embarrassing. Currently I do this with the windowManager like this:

 

View.*inflate*(*this*, R.layout.*main*, main_frame);
WindowManager.LayoutParams localLayoutParams = *new *
WindowManager.LayoutParams(
WindowManager.LayoutParams.*TYPE_SYSTEM_ERROR*,
WindowManager.LayoutParams.*FLAG_NOT_FOCUSABLE *|
WindowManager.LayoutParams.*FLAG_NOT_TOUCH_MODAL *|
WindowManager.LayoutParams.*FLAG_LAYOUT_IN_SCREEN*,
PixelFormat.*TRANSPARENT*);
*final *WindowManager winManager = (WindowManager) getSystemService(
*WINDOW_SERVICE*);
winManager.addView(main_frame, localLayoutParams);

 

As you can see, I use TYPE_SYSTEM_ERROR in the code, which works perfectly 
excepting this issue. The other applications might use TYPE_KEYGUARD or 
TYPE_KEYGUARD_DIALOG, but it throws a security exception for me. I’m unable 
to set a permission that enables me to use this feature. What should I do 
to enable it, or how can I set the z-index of the view manually?

 

Furthermore, on some device I can disable the factory lock manually, which 
is great, but not every device supports the “no lock screen” mode, just the 
“slide” option, which shows me the factory lock screen, so I have to 
disable it programmatically.

 

I tried it using the KeyguardManager and was able to disable the factory 
locker. When I unlocked the phone with my application and pressed the app 
overview button then the home button, the screen turned black and the 
device became unusable.

 

This is a known issue on the bug list, so I know this is a system problem. 
Are there any other solution that enables me or the user to remove the 
factory lock screen on any device?

 

 

Looking forward for your answers,

Jonathan Pethő

-- 
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.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/b89069ae-1343-4259-9dd3-d65b8a5e494a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Re: Linking SDK Manager to Android Studio

2016-05-21 Thread Karthik
This is the error I get

-- 
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.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/4592bcc9-6da5-4a4c-94fc-f6c33477831c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Linking SDK Manager to Android Studio

2016-05-21 Thread Karthik
Hey,

I'm new to creating apps and all... since i have a slow internet i 
downloaded the .zip files of both android studio and sdk *separately*. i 
have installed jdk too. i have android studio up and running but i'm not 
able to link it with the sdk manager. I did go to "Configure>Project 
Defaults> Project Structure and chose the path where all my sdk tools are.. 
and clicked apply but it just doesn't get linked! 

Now i haven't downloaded all the sdk tools but i do have android 
marshmallow fully and "android sdk tools"; "android sdk platform-tools"; 
"android sdk Build-tools" [the first 3 listed in d manager], "Android 
Support Library"; "Intel x86 Emulator Accelerator (HAXM Installer)"; and 
Google USB Driver. 

I use a Windows 7 32-bit computer.

Please help!!

-- 
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.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/3e781c8a-5184-4e1c-a3e5-46d51342d16c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] Re: HTTPS access to PlayStore is very very very bad idea!

2016-05-21 Thread Tourism SecondGuide
Well, well, in fact we currently use some kind of  MITM attack with our
cachebox, the only problem is that it needs for the user to first download
the cachebox's certificate before downloading the cached android package.
And the cachebox download the application once a day From Google Play. So
the only problem here is that the number of installations is not equal to
the number of downloads but for us that's not a problem as we have more
precise statistics for our customer than the information displayed on the
Google Play's application page.
That works, I just complain that the user needs to download a certificate
first for android an not for ios.
And I don't have particular fear about an attack of the cache server, no
more no less of every machine on Internet.

2016-05-18 13:38 GMT+02:00 Raymond Rodgers :

> I can't speak for Apple's situation, but not using SSL/HTTPS leaves
> security and safety very vulnerable. What you're doing, though you seem to
> be doing it for a positive reason, is essentially a man in the middle
> attack: you're intercepting traffic, with the intent of caching the
> packages for speed purposes, but what's to stop someone else from replacing
> a particular package with a modified version that infects the downloading
> device with malware or constant advertising? While it might be difficult or
> impossible to fake the the signature of the "safe" version of the package,
> the metadata telling you the correct signature could be faked as well, thus
> giving rise to an otherwise legitimate looking package. Encryption was
> developed to both keep private data private and to prevent man in the
> middle attacks. This is usually considered a good thing.
>
> Even assuming it was perfectly safe and allowed for you to cache the
> packages, there are other questions and issues to be considered: How would
> you check to see if you needed to update the cached package? How often
> would you check? How would you verify that the downloaded package isn't
> corrupt or compromised or is even the latest version? What's stopping a
> malicious attacker from compromising your server and altering or removing
> your cached applications? Do you have enough storage space for all the
> applications that your users want to download?
>
> I can't speak for what Apple is or isn't doing. I'm not an Apple developer
> and I don't own an iOS device, but I can tell you that I certainly wouldn't
> want my app or my data transmitted without encryption. Maybe the lack of
> encryption there is a design flaw, an error or oversight in code or
> configuration, a deliberate design choice for your region, or the result of
> an attack that they haven't detected yet, but given the walled nature of
> Apple's app ecosystem, I would be very surprised that they decided to just
> transmit the package over plain HTTP.
> On 05/18/2016 03:35 AM, Tourism SecondGuide wrote:
>
> I'm just surprised that Apple consider http application download enough
> secured. They usually are very sensitive to security problems.
> And anyway, https application downloading is a big problem in lot of cases.
>
> 2016-05-17 22:12 GMT+02:00 Raymond C. Rodgers :
>
>> What about the device and possibly user account information that might
>> get transmitted as part of the download process? Encrypting the package
>> while leaving meta data exposed will not help keep the application,
>> device, or user account secure.
>>
>> On 5/17/2016 2:27 AM, Tourism SecondGuide wrote:
>> > A better solution would be to secure the package
>> >
>> > Le samedi 14 mai 2016 18:03:40 UTC+2, bjv a écrit :
>> >
>> > So what you are saying is that Apple is better because they enable
>> > a MITM attack against your apps when being downloaded, perhaps
>> > letting criminals replace your app with their modified one?
>> >
>> > --
>> > 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
>> > .
>> > To post to this group, send email to
>> > android-developers@googlegroups.com
>> > .
>> > Visit this group at
>> 
>> https://groups.google.com/group/android-developers.
>> > To view this discussion on the web visit
>> >
>> https://groups.google.com/d/msgid/android-developers/392d51b7-25ac-495f-9bc4-ee43b466356e%40googlegroups.com
>> > <
>> https://groups.google.com/d/msgid/android-developers/392d51b7-25ac-495f-9bc4-ee43b466356e%40googlegroups.com?utm_medium=email_source=footer
>> >.
>> > For more options, visit 
>> https://groups.google.com/d/optout.
>>
>> --
>> You received this message because you are subscribed to a topic in the
>> Google Groups "Android 

[android-developers] Re: How to Update Gradle manually?

2016-05-21 Thread yash . 2209 . jain
The error it is showing is

Error:Could not find com.android.tools.build:gradle:2.10.
Searched in the following locations:
file:/Users/shishir/Desktop/Android 
Studio.app/Contents/gradle/m2repository/com/android/tools/build/gradle/2.10/gradle-2.10.pom
file:/Users/shishir/Desktop/Android 
Studio.app/Contents/gradle/m2repository/com/android/tools/build/gradle/2.10/gradle-2.10.jar

https://repo1.maven.org/maven2/com/android/tools/build/gradle/2.10/gradle-2.10.pom

https://repo1.maven.org/maven2/com/android/tools/build/gradle/2.10/gradle-2.10.jar
Required by:
:android:unspecified

-- 
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.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/660992f7-617e-45a3-8f0e-249598213589%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] How to Update Gradle manually?

2016-05-21 Thread yash . 2209 . jain
I am developing a App using Cordova and want to use firebase cloud 
messaging (FCB).
FCB is asking for updating gradle to version 2.10. I changed the 
build.gradle but it ain't working.
The sample code from FCB however is working.
Please help

-- 
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.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/ff65ce30-d3ec-4fff-a1e9-dd5d073c0963%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


build.gradle
Description: Binary data


local.properties
Description: Binary data


project.properties
Description: Binary data