Re: [android-developers] Foreground service getting killed in background by the OS on android 4.4.4

2016-10-08 Thread Sumit Sharma
Thanks pal,

Its happening only on Xiaomi phones, they have blocked some permissions for 
the apps and have to configure it in 'Security App' provided by them.


On Tuesday, October 4, 2016 at 4:56:27 PM UTC+5:30, sardar khan wrote:
>
> You can use this 
>
> http://stackoverflow.com/questions/20636330/start-sticky-does-not-work-on-android-kitkat
> or have a look at this
> https://code.google.com/p/android/issues/detail?id=63793
>
>
> On Tue, Oct 4, 2016 at 3:44 PM, Sumit Sharma  > wrote:
>
>> Foreground service with START_STICKY works perfectly on all the android 
>> versions except android OS 4.4.4.
>> Its getting killed by the OS when its in background.
>> I am ok if its killed but it has to restart again on its own like a 
>> normal START_STICKY service.
>> Need a solution ASAP as our app is already live.
>>
>> -- 
>> 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-d...@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/04ed2ad7-7aef-478f-9e7b-d409f7cee736%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/84598587-122a-403a-8d35-49625cfd3139%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] Where to put code to test if activity has online access?

2016-10-08 Thread alohaaaron
Thanks but I needed more specifics. I ended up putting it in onResume
because the user needs to be able to click on the popup.

On Oct 3, 2016 23:02, "sardar khan"  wrote:

> check isOnline before getting data from internet if its true get the data
> from internet if not redirect back to user.
>
> On Tue, Oct 4, 2016 at 1:24 AM, Aaron D  wrote:
>
>> Hi, I want to test if my activity has online access.
>> I click a button to execute an activity (downloads a list of people from a 
>> database and populates it within the app) but I don't know where to put it?
>>
>> When online activity is not detected I want the user to get a popup dialog 
>> box which says "No internet connectivity" and press OK.
>>
>> The app would return/stay at the same screen where the user pressed the 
>> button to execute the activity.
>>
>> Where should I execute the isOnline code and how do I get the behavior I 
>> want?  In the background task?
>>
>> Thanks!
>>
>> #code from google search stack overflow
>> private boolean isOnline()
>> {
>> try
>> {
>> ConnectivityManager cm = 
>> (ConnectivityManager)mContext.getSystemService(Context.CONNECTIVITY_SERVICE);
>> return cm.getActiveNetworkInfo().isConnectedOrConnecting();
>> }
>> catch (Exception e)
>> {
>> return false;
>> }
>> }
>>
>> --
>> 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/ms
>> gid/android-developers/461d44a1-937b-4e93-8d2f-a699e5d8fc1c%
>> 40googlegroups.com
>> 
>> .
>> 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 Developers" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/
> topic/android-developers/JUUBpcWIZ5I/unsubscribe.
> To unsubscribe from this group and all its topics, 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/CABHzXARDmcqH--R9K1DQVeg6aKHhUcOCm6_
> k8B1pOuXTBSeaLg%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/CAFY%2BPo8JBvNgpnCHJkF4CVQDDzYMdmBg40QZ4Kua%2BMwKQQBVaw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Re: Unfortunately "app" has stopped :(

2016-10-08 Thread qodoratbasics
UP 
plz guys help me 


بتاريخ السبت، 8 أكتوبر، 2016 7:58:01 م UTC+3، كتب qodora...@gmail.com:
>
> Hi everyone i hope u r all doing well 
>
> i have been facing a problem for a couple of days, the problem is when i 
> debug my app and the emulator runs well, an error occurs while launching 
> the app, it says that Unfortunately "app" has stopped i used stack trace to 
> see what's the problem and it says "failed to make and chown 
> /acct/uid_10058: Read-only file system" may any one plz help me with this 
> problem? 
>  because i uploaded the app on google play store and u can download it but 
> there is no open button after u download it and i think that's the problem 
>
> thx guys in advance i really appreciate ur 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/cf850315-a270-4046-bbea-4103a28ff2a5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] AI2 to Android Studio... Options?

2016-10-08 Thread Steve Gabrilowitz
I'm not sure I understand your problem.  Why can't you use the same package
name and keystore?  You can select any package name you want when you start
your new studio project!

On Oct 2, 2016 10:28 PM, "Abanoub Ghipriel"  wrote:

> Hello all. Thank you for taking the time to read this. Here is the
> situation.
>
> Awhile ago, I made an app in MIT's App Inventor 2. I listed the app on the
> Play Store and it has close to 10K installs with 84 reviews and an overall
> rating of 4.67. I now have learned a little more about Android Programming
> and use Android Studio.
>
> *What I would like to do...*
> Currently, I am embarking to recreate the application with Android Studio.
> For many reasons. Better UI, more API's Etc...
>
>
> *The issues I might face*
> For one, I know thatI will not be able to get the code from AI2 seeing as
> though it does not produce Java code. This is not really an issue because I
> will most likely be starting from scratch anyway.
>
> Here is the real issue.
>
> The keystore file will not match and the package name will not match thus
> preventing me from updating the app via the listing in the Playstore.
> (right?)
>
> *Solutions?*
> I am looking for a solution (if one exists) in which I will be able to
> retain the app listing reviews and ratings while rewriting the app in
> Android Studio.
>
>
> --
> 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/4fde2ec2-85b6-49d9-be9b-
> 5b7e8098cb62%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/CABfabRjUp%2BrNZOPdR5%3DP9jYOPfHa33snD3sHwp_tU9gqu0qxLw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Re: Rooting Android without Apps

2016-10-08 Thread Alfredo Reyna
On Wednesday, August 17, 2016 at 4:56:16 PM UTC-4, GN Sanjay wrote:
> Hi,
> 
> Is it possible to root an android device 
> 
> Without using any third party applications like Kingo Root?
> Without Custom Recovery or Custom ROM?
> 
> If yes, please guide me, how to do?
> 
> Regards
> GNS

Am assuming you didn't get a response. 

-- 
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/54cf87d5-b473-4525-b32c-5e2ac2b0813b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] Google Developer Account and Payoneer PrePaid MasterCard !?!?!

2016-10-08 Thread Nalin Savara
Hi Omer,
Just try it-- logically it should work.
Practically however, google also uses a valid credit card to verify
identity and so make sure of a few things:-
1) Make sure you have atleast $30 or more balance- since google will also
do 1 or 2 transactions of $1 or $2 which they will later cancel.

2) make sure expiry date is far enough into the future.

Good luck- hope this helps- and let me/us (on the list) know what result
you got.

Best Regards,

Nalin


On Sat, Oct 8, 2016 at 11:07 PM, Omer Asif  wrote:

> Can I Pay $25 Developer Registration Fee Via Payoneer MasterCard as a
> Developer?
>
> --
> 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/a2f9cf3a-2920-4139-ba67-
> a0641e01c034%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/CABY81mZEjJX2fVp%2B15UR7XxJSOs_bUgmkDBvw%2B%3D8%3DEnF%3DPLzzg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Google Developer Account and Payoneer PrePaid MasterCard !?!?!

2016-10-08 Thread Omer Asif
Can I Pay $25 Developer Registration Fee Via Payoneer MasterCard as a 
Developer? 

-- 
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/a2f9cf3a-2920-4139-ba67-a0641e01c034%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Google Developer Account and Payoneer PrePaid Master Card

2016-10-08 Thread Omer Asif
 Can I Pay $25 Registration fee for  Via *Payoneer PrePaid MasterCard* as a 
Developer? 

-- 
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/cab79cbd-8d0e-4be5-a8b4-d037ff1c2b63%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Cordova Keystore no password for android studio

2016-10-08 Thread Sufian Featuring
Hi,

I'm new here,

4/5years ago, developers from a famous foundation developed an app with 
cordova framework.
However now I'm assigned as a developer for that app, however, I do coding 
with android studio, and no experience with cordova.

The previous developer told me that, as he can remember at that time he 
used no password when generating signed apk. However I think there's no 
such thing like 'no password' deployment!

Years changed and 'MAY' be there was a system for default password, so that 
for no password default password was chosen.

Now, I've to deploy new version for that app, coded in android studio. I've 
only the keystore file, normally I had .jks file for android studio. And I 
was surprised its a .keystore file. I did some google search, however I got 
no solutions!

Can any anyone help me out, 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/d1cfe1e6-5a74-43b1-9231-3b37beb37299%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Unfortunately "app" has stopped :(

2016-10-08 Thread qodoratbasics
Hi everyone i hope u r all doing well 

i have been facing a problem for a couple of days, the problem is when i 
debug my app and the emulator runs well, an error occurs while launching 
the app, it says that Unfortunately "app" has stopped i used stack trace to 
see what's the problem and it says "failed to make and chown 
/acct/uid_10058: Read-only file system" may any one plz help me with this 
problem? 
 because i uploaded the app on google play store and u can download it but 
there is no open button after u download it and i think that's the problem 

thx guys in advance i really appreciate ur 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/6d5b3932-1b5b-48ce-81a2-660399b6f289%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Trying to retrieve info from a Google excel sheet with no security

2016-10-08 Thread Dor Juravski
Hello,
I have a simple Google sheet excel with a public view link.
I want to fetch those numbers into my Android app and display them.

Option one - get through the V4 API with authentication etc. I'm trying to 
avoid that.
Option two - use JSON reader to download the entire sheet as JSON object 
and transform to structures. I was not successful yet.

Anyone has actually done this and could share their experience ?

Thank you
Dor J.

-- 
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/2e902d9b-48f7-4180-81c7-f9461f79f8a3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Android app cannot access HTTPS after building and signing a release apk

2016-10-08 Thread chris hansen
I am using Ionic framework and I already asked this question on Stack 
Overflow twice and nobody has responded. I really need to figure out this 
issue because we just got the app approved on the iOS store so I need to 
get this fixed so we can get this app released.

Everything works fine on the debug apk, but when I build and sign a release 
apk none of my HTTPS requests work. Regular HTTP requests work fine however 
in the release.

I've been searching everywhere for the past two weeks trying to get this 
thing working. All the solutions I have seen say to ensure you have 
intermediate SSL certificates in place on the server, which I did by 
appending the intermediate cert from my CA onto the end of my domain cert.

Here is my Stack Overflow question:
http://stackoverflow.com/questions/39927059/ionic-android-release-apk-cannot-access-https

-- 
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/679812ed-1d86-4064-a49d-44e4fbdff4a4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Using the IR laser sensor

2016-10-08 Thread Hadar Shavit
Hi, how can I use the laser sensor in nexus 5x for example?
I search something like light sensor API for the laser

-- 
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/86e657cc-ccb6-4ef4-b45a-f6691064a460%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Merge two different contact programmatically in android

2016-10-08 Thread Jarvics Testing
Hello,

I am trying to merge *two different contacts into one*.. How I can do this 
any idea.

I have tried the AggregationExceptions 

 but 
I did not get any result. Following is the code that I have used:


ContentValues cv = new ContentValues();
cv.put(AggregationExceptions.TYPE, AggregationExceptions.TYPE_KEEP_TOGETHER);
cv.put(AggregationExceptions.RAW_CONTACT_ID1, 1);
cv.put(AggregationExceptions.RAW_CONTACT_ID2, 2);
getContentResolver().update(AggregationExceptions.CONTENT_URI, cv, null, null);



Please provide me a solution and Thanks in advance.

-- 
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/14b49433-2c9e-4bd7-b7ef-9c91d4abdf88%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.