[android-developers] Android First install launch issue

2016-05-30 Thread Andy Dev


I am facing issue with my android app. 

If a user installs my app through apk file. After installation a window 
appears with two buttons *open* and *done* which is part of android os.

When user taps on *open,* it opens my launcher activity. Which is great...

After landing to Launcher activity if user go to some other activity of my 
app from launcher activity and the he decide to minimize my app by pressing 
android home button key. My app appears in the app stack...

After some time when user press to the launcher icon of my app, though the 
app is in apps stack but it starts again from the launcher activity rather 
continue from the last activity where user minimize the app.  

This only happens when user first open the app after installation from the 
android popup of done or open button.

However if user kills the app from apps stack and re open the app this 
never happen again.

Note:

In my Manifist i do not put any launchmode.

I have only one launcher activity

Please guide me

Thanks  

-- 
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/cbb5e493-c265-4f95-b15b-415bbbd761e0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] firebase and play service 9

2016-05-30 Thread Vaibhav Agrawal
since firebase crash and config is available only after play service 9 .. 
its important to know how much audience is currently at this version .. so 
how can we know it ???
secondly since firebase analytics identifies its unique user so it must 
also be creating a user id for that user as for fire-base or google its not 
an unknown user but for the app the user is know unless and untill he 
sign-ups .. so how can my app identify that user using firebase-analytics 
... i.e. getting the user id that firebase may generate

-- 
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/36b7c6a0-0522-4189-932d-b453f852062d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] How to find ip address through hostname in local network?

2016-05-30 Thread Mangesh Sambare
@Richard: Thanks for your valuable reply. I helps me.
But How I can configure DNS server for my linux base system. Could you
please share some demo/procedure for it.

On Mon, May 30, 2016 at 8:34 PM, Richard <
lists-android-...@listmail.innovate.net> wrote:

>
>
>  Original Message 
> > Date: Monday, May 30, 2016 19:26:44 +0530
> > From: Mangesh Sambare 
> >
> > Hi guys,
> >
> > Hope you are great. I am newbie in android. I am struggling at one
> > issue. please help me. please see following link.
> >  Here is my question :
> > http://stackoverflow.com/q/37525371/5015103?sem=2
>
> Since you are trying to look up private network address information
> your machine/device would need to be using the DNS server (either by
> default or explicitly, as you do with your "dig") that holds that
> detail. If your machine/device is assigned (as part of it's IPaddress
> allocation) or configured to use a public DNS server it won't be able
> to see the information for the private network.
>
> There are various android apps that will show you the DNS server(s)
> that your device is using. What DNS servers are assigned, in a
> dynamic IPaddress environment, is handled at the network level. Some
> android (network oriented) apps let you specify the DNS server(s) for
> their purposes, but I don't believe that there is an open way to
> change this at the device level.
>
> --
> 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/FF34C85E1AB336DB499C4929%40ritz.innovate.net
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Thanks and Regards,
Mangesh Sambare

-- 
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/CAAiX-sd0Z3hCgUGGVVLtW0oC5RWMohrE32byJ7JzKTJUE%3DwZ9A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Using Custom SDK

2016-05-30 Thread amruta . pawar987654321
 


Hi,
I have built a custom SDK (modifying SDK 23) and set its build version 
(API) to 50 (So as not to clash with the existing ones).  I want to use 
custom libraries of this SDK in my Android Studio Application. For this 
purpose I want to compile the application against the SDK version 
50(compileSdkVersion=50).
But when I change compileSdkVersion to 50, it gives dependency errors, as 
shown. The support libraries, needed by application, are not generated 
along with Sdk generation.
Need 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/aac97d99-7e65-4f0c-990c-c50cd67de5a7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] soft home button cover my windowbackground

2016-05-30 Thread woaizhangyanting
hi everyonve,i'm getting a problem in my app , when i set a theme( which 
has a attrbute windowbackground to avoid white screen when app start ) to 
my launcher activity the background was covered by the soft home button , 
how can i sove the problem.

-- 
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/63c8b695-d906-47ed-9fff-1bcce9540d8e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Re: why my application app is first installed to the phone it costs more than 20s to before call the LAUNCHER Activity.

2016-05-30 Thread woaizhangyanting
 even when i use a new android project it also cost long time .

在 2016年5月31日星期二 UTC+8上午9:45:12,woaizhan...@gmail.com写道:
>
>  hi everybody, my app comes up a problem, when my app is first intalled to 
> my phone(Mi4 6.0) , app start so slowly, and it cost a long time before 
> calling the launcher activity's "oncreate()" method. can somebody give some 
> advice tome ? thanks a lot. 
>

-- 
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/55156c2e-44a3-4609-8cf1-0f59d4ff5337%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Google Play Services not compatible with Galaxy S4 Mini (v4.4.4)

2016-05-30 Thread 'Baudouin G' via Android Developers
Summary of the problem:

My phone is a Galaxy S4 Mini SHV-E370K (K-Telecom, Korea)
After the battery was killed by the "Touchwiz has stoped and recovered" bug 
(thank you Android, it is a know issue ..), I have re-rotted my phone to 
factory default.
I have make OS update up to Kitkat 4.4.4 which is the latest version 
available for this phone.

When I want to load Youtube or some other applications, it request me to 
update my Google Play Services.
If I try to update the later, the messge is "Your Device isn't compatible 
with this version"
So I cannot update to GP services to the latest v7.3.
I have installed GP version for 4.4.4 via an APK for GP v6.5.85 
(1589008-036) via APKMirror.com

Means I am blocked and I cannot use even Youtube/Google Maps on my 
smartphone!
Thank you Google, this is a 2 years old phone and you have decided not to 
support it anymore?

I have uninstalled GP Services and installed it again.
I have cleared cache.

I have two solutions:
- Buy a new Android phone (or why not try Apple?)
- Find a Custom Root that could work 
=> 
http://www.tutoriels-android.com/2015/08/installer-la-cm12-1-lp-5-1-1-sur-son-galaxy-s4-mini.html
 

-- 
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/cd1451ec-f79b-43c5-bdb6-21b8703d2f7c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] why my application app is first installed to the phone it costs more than 20s to before call the LAUNCHER Activity.

2016-05-30 Thread woaizhangyanting
 hi everybody, my app comes up a problem, when my app is first intalled to 
my phone(Mi4 6.0) , app start so slowly, and it cost a long time before 
calling the launcher activity's "oncreate()" method. can somebody give some 
advice tome ? thanks a lot. 

-- 
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/c34d71aa-92cd-4ee7-9ef1-70cbfc3dd4dd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] Android watch

2016-05-30 Thread mike digioia
Hi, I am a BT developer and would like to help. Let me know what your plan
is?
On May 28, 2016 9:01 AM, "Steve Gabrilowitz"  wrote:

> I've developed several apps for phone and tablet and now want to try my
> hand at developing a wearable app.  Googled some and found numerous
> examples of how to send notifications to the watch and tutorials for
> setting up a development environment but nothing about how to make the
> device run an app with a button/touch/gesture whatever?  The app I want to
> write is for a Tesla so some sort of UI on the watch is mandatory
> (lock/unlock commands etc), what I have in mind is that the commands are
> sent via BT to the phone which then performs a REST command on the Tesla
> server.  Any hints or pointers?  Is the watch capable of something like
> this?
>
> Also, since I don't currently own an android watch are there any
> suggestions for which one to 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/CABfabRhL%3DPzWM%2BMrux2unMCQivtVuy8ZR53%3DyG%3Dj%3DH56RBcnRA%40mail.gmail.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/CAMCsUi7JeS74pnsddhBxzkHax5vF9uFxiBuyhH9u%2B-P5dGuB6w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Re: Android watch

2016-05-30 Thread Steve Gabrilowitz


On Saturday, May 28, 2016 at 12:07:42 PM UTC-4, Steve Gabrilowitz wrote:
>
> I've developed several apps for phone and tablet and now want to try my 
> hand at developing a wearable app.  Googled some and found numerous 
> examples of how to send notifications to the watch and tutorials for 
> setting up a development environment but nothing about how to make the  
> device run an app with a button/touch/gesture whatever?  The app I want to 
> write is for a Tesla so some sort of UI on the watch is mandatory 
> (lock/unlock commands etc), what I have in mind is that the commands are 
> sent via BT to the phone which then performs a REST command on the Tesla 
> server.  Any hints or pointers?  Is the watch capable of something like 
> this?
>
> Also, since I don't currently own an android watch are there any 
> suggestions for which one to get?
>

Anybody? 

-- 
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/86e9692c-d797-4195-a0cf-7e98b434ae1f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] HttpURLConnection always sends GET

2016-05-30 Thread Qoheleth
Hi. I'm trying to send json data via HttpURLConnection by POST using:

URL url = new URL(serverAddr);
urlConnection = (HttpURLConnection) url.openConnection();
urlConnection.setDoOutput(true);
urlConnection.setRequestMethod("POST");
urlConnection.setChunkedStreamingMode(0);
urlConnection.setRequestProperty("Content-Type", 
"application/json;charset=utf-8");

out = new BufferedOutputStream(urlConnection.getOutputStream());
out.write(postBody.getBytes("utf-8"));

int responseCode = urlConnection.getResponseCode();
System.out.println("HTTP Response Code: " + responseCode + " | " + 
urlConnection.getResponseMessage());


I use the following php script to detect whether it is POST or GET. Even 
though I have setDoOutput to true and setRequestMethod to "POST" it always 
sends as a GET request. Why? I've tried so many different solutons and it 
always sends GET. I know because the following php code will always print 
"inside request method GET.

Enter code here...




-- 
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/6d1be495-7772-466f-adce-480476b2a3c3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] aggiornamento app

2016-05-30 Thread Roberto Fabrizio
Ciao,
sono nuovo nel mondo dello sviluppo app di Android.
Sono riuscito a caricare la mia app con successo ma non riesco a caricare 
l'aggiornamento, quando provo a caricare mi da il seguente errore: 
Caricamento non riuscito

Il pacchetto dell'APK deve avere il nome 
com.wCostadeOndelaguidaonlinedellebaiedellevante.
Carica un altro APK

Ho provato a rinominare il file come richiesto ma senza nessun risultato.
Cosa devo fare?
Grazie,

Fabrizio

-- 
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/8a6269f3-007c-43c0-b684-fe463247adac%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Protecting my algorithms when I release a library

2016-05-30 Thread Niranjan U
I'm working on developing a library with a set of APIs that developers can 
latch on to, and then build their Android applications on top of this 
library. However, I have an issue here. I have an encryption key in the 
code that I want to protect. So, I want to prevent users from reverse 
engineering or decompiling my code, and finding out the encryption key. 

How do I protect my library? I have searched the internet on this, and the 
common census seems to be that in spite of obfuscation, complete security 
cannot be guaranteed and with enough time and patience, a developer can 
eventually crack the code and sniff out the protected data. However, I am 
still not able to buy this opinion fully. For example, Qualcomm's Gimbal 
released an Android SDK (https://docs.gimbal.com/android/v2/devguide.html), 
and their software pricing is entirely dependent on the fact that 
developers don't decompile and understand their packet decryption 
algorithm. Is there a way to enforce protection at a code level, or are we 
only left with licenses/legal route to protect code IP?

-- 
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/785fcd48-a565-443a-972f-d25afa8172b7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] How to find ip address through hostname in local network?

2016-05-30 Thread Richard


 Original Message 
> Date: Monday, May 30, 2016 19:26:44 +0530
> From: Mangesh Sambare 
>
> Hi guys,
> 
> Hope you are great. I am newbie in android. I am struggling at one
> issue. please help me. please see following link.
>  Here is my question :
> http://stackoverflow.com/q/37525371/5015103?sem=2

Since you are trying to look up private network address information
your machine/device would need to be using the DNS server (either by
default or explicitly, as you do with your "dig") that holds that
detail. If your machine/device is assigned (as part of it's IPaddress
allocation) or configured to use a public DNS server it won't be able
to see the information for the private network.

There are various android apps that will show you the DNS server(s)
that your device is using. What DNS servers are assigned, in a
dynamic IPaddress environment, is handled at the network level. Some
android (network oriented) apps let you specify the DNS server(s) for
their purposes, but I don't believe that there is an open way to
change this at the device level.

-- 
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/FF34C85E1AB336DB499C4929%40ritz.innovate.net.
For more options, visit https://groups.google.com/d/optout.


[android-developers] How to find ip address through hostname in local network?

2016-05-30 Thread Mangesh Sambare
Hi guys,

Hope you are great. I am newbie in android. I am struggling at one issue.
please help me. please see following link.
 Here is my question :
http://stackoverflow.com/q/37525371/5015103?sem=2
-- 
Thanks and Regards,
Mangesh Sambare

-- 
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/CAAiX-seanTjq0AVJcW1DFUvrNHme3n6xL8JycCuY%2BFjfc92n1w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Android expansion (obb) patch file version number

2016-05-30 Thread Balázs HT



I have uploaded my application to the Play Store with a huge expansion 
(obb) file. Everything's working fine, no problem with that. But now I have 
to upload a small update to the expansion file. I want to use the patch 
expansion file because I don't want to force the users to download the big 
main expansion file again. In theory it's seems to an easy task.


>From the developer page:

// Get a ZipResourceFile representing a merger of both the main and patch 
filesZipResourceFile expansionFile = 
APKExpansionSupport.getAPKExpansionZipFile(appContext,
mainVersion, patchVersion);`

I have used that in this form:

ZipResourceFile expansionFile 
=APKExpansionSupport.getAPKExpansionZipFile(appContext,
14, 0);'

with no patch file and with no problem.


But if I try to modify this code, I got problems.


My current version is *19*, but I still use the main expansion file from 
the *14* version. When I tested my app I used 14 as the version number of 
my patch file (patch.14.com.exaple), copied the patch file directly to my 
phone and used this code:

ZipResourceFile expansionFile 
=APKExpansionSupport.getAPKExpansionZipFile(appContext,
14, 14);

Everything's was fine, the app find the updated files in the 
ZipResourceFile so it's true, that the *"ZipResourceFile representing a 
merger of both the main and patch files"*...


I've tried upload the modified apk and the patch file in the developer 
console but after the upload I realised that it changed the patch file's 
name to the current version number: patch.19.com.exaple and I can't change 
it back to 14. So I cancel the upload and modified the code:

ZipResourceFile expansionFile 
=APKExpansionSupport.getAPKExpansionZipFile(appContext,
14, 19);


But after that the app didn't find the updated files - it seems that it's 
only using the main file. I've tried to test it on my phone, changing the 
file names of the obb files and the code in the app, and I found, that this 
"merging" is working only if the version numbers are the same. But in this 
case the whole "main and patch obb files" is completly useless (at least in 
the context of APKExpansionSupport.getAPKExpansionZipFile) *because I can't 
upload a patch file later with a version number of an earlier release...*


I don't know if I've done someting wrong, so my question is:  *how can I 
get a ZipResourceFile that "representing a merger of both the main and 
patch files" if the version numbers are different in the two filenames?*

-- 
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/1b2b171c-6abf-4986-9f5d-ce917a2686cb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] fused location provider provides fake accurate location

2016-05-30 Thread Li
I'm using the fused location provider to track the user location on 
android. Most of the time it works great, the location signals seem 
correct, but from time to time I receive fake location points which seem 
accurate (accuracy <= 30) from a distant point which I have never visited. 
It happens to other people in my floor, who use different android devices 
and different cell providers. All of us "jump" to the same location point 
from time to time, and after a while we come back to our true location.
Did anyone experience this issue?
I don't know how to tell which signals are real and which aren't. I suspect 
that it is the WIFI provider which provides the fake signals from time to 
time (since we are inside a building and the signals are accurate), but I'm 
not sure. 
Can I extract provider's data from the fused location provider? I want to 
know which provider provided the fake signals 

Thanks,
Li

-- 
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/04676da8-29c9-4e40-b12f-4bc2f4d85982%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.