[android-developers] Lost Keystore and want to update apk

2015-12-23 Thread sourabh sahu
Dear All,

I have lost my Keystore, Now I want to update my APK.

I tried lot of file recovery software but not able to get it. Now I dont
want to publish a new app due to large number of downloads.

Please suggest any other way to update app.

Regards,
Sourabh

-- 
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/CABt7MU-SkK93g4t8o-fNCFcJitet_GKFY6JTsqjSJ6Xy%3DC7K-Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] I want to know why my app was rejected from the Google Play./Google Playからリジェクトされる具体的な原因が知りたい。

2015-12-23 Thread 田中誠一
Hi,
My app has been removed from the Google Play.
That app is a free app that displays the ad.
I was told the reason for the rejection, but I have no idea.

The reason for rejection is as follows.
"Dangerous Products: We don't allow content that harms, interferes with the 
operation of, or accesses in an unauthorized manner, networks, servers, 
application programming interfaces (APIs), or other infrastructure.
Malicious scripts and password phishing scams are also prohibited on Google 
Play, as are apps that cause users to unknowingly download or install apps 
from sources outside of Google Play."

Is there something the possible causes when they are rejected for this 
reason?
Please give me some advice.

--

こんにちは。
私は先日Google Playにリリースしたアプリが削除されました。
削除されたアプリは広告収益モデルのゲームアプリになります。

削除理由を見ても、違反に思い当たる節がなく困っています。

削除理由は
停止の理由: コンテンツ ポリシーの危険なプロダクト条項への違反。
Google Play 以外の不明なソースからアプリをダウンロードまたはインストールするよう誘導するアプリは禁止されています。
です。
https://play.google.com/about/developer-content-policy.html#dangerous

「Google Play 以外の不明なソースからアプリをダウンロードまたはインストールするよう誘導する」
といった機能は当アプリに含んでおりません。

そこで質問なのですが、コンテンツポリシーの危険なプロダクト条項への違反とされるような原因で具体的にどのようなことが考えられるのでしょうか。
どうかアドバイスをお願いいたします。

-- 
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/3477ab9c-eb04-4a2f-bb7e-de33d8932042%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] How to save exact position of RecyclerView including offset

2015-12-23 Thread lalit poptani
Hi,

I am using RecyclerView and I want to store exact position including 
offset. 

Is there any method of RecyclerView that provides this functionality of 
feature?

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/62f2241a-3e68-475e-bd40-69d6a2ec39e1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Audio recording problem - fake sample rate

2015-12-23 Thread Robert Scott
There is an audio recording problem with some devices, even newer ones.  
The native audio recording sample rate appears to be a puny 8000 Hz, which 
means it can only render frequencies up to 4000 Hz.  This is a problem for 
my piano tuning app which must detect frequencies above 4000 Hz. to tune 
the top few notes.

So far I have only gotten reports of this problem on certain models of the 
LG G3 and the Nexus 7 (Asus).  The worst part is these devices do not 
return an error when we try to set up an audio input stream and request a 
sample rate of 22050 Hz.  Instead they take their 8000 samples per second 
and up-sample by duplicating each sample 2 or 3 times to give us audio that 
appears to be sampled at 22050 samples per second as requested, but it 
still cannot faithfully render frequencies above 4000 Hz, so our piano 
tuning app gives very strange results for the top few notes on the piano.

Does anyone here work with audio input apps and can you confirm this 
problem on any other devices?  You can test it out by sideloading our app 
from

  www.tunelab-world.com/atl.html

It will run in free-trial mode well enough to test this out.  To test for 
the sampling rate problem, tap on the large "A4" and select the note "B7" 
by tapping on the "7" first.  Then on a different device or computer, 
generate a tone at 3950 Hz.  One such on-line source is 

  onlinetonegenerator.com/

If this tone produces just one peak in the spectrum display at 3950 Hz, 
then everything is fine.  But if this produces two peaks - one at 3950 and 
the other at 4050, then you have a device that is sampling at 8000 Hz and 
then up-sampling to feed our app a fake 22050 samples per second.

-Robert Scott
 Hopkins, MN

-- 
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/5ab48a86-f5a9-4996-93e8-f7abb7855104%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Re: Audio recording problem - fake sample rate

2015-12-23 Thread Robert Scott
I first call *AudioRecord.getMinBufferSize(22050...*  If this returns an 
error (<1) then I call *AudioRecord.getMinBufferSize(44100...*  Whichever 
one of these calls succeeds, I use that rate in my call to "*new 
AudioRecord(..,sampleRate..)*"

I don't actually have one of these misbehaving devices, so my experiments 
so far have been with the help of my customers.

-Robert Scott
 Hopkins, MN

-- 
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/061e6451-424d-4d40-b262-b869d7371ab5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Re: How to store videos with similar naming scheme as stock camera, but in custom camera app

2015-12-23 Thread David Karr
On Tuesday, December 22, 2015 at 10:33:17 AM UTC-8, David Karr wrote:
>
> On Tuesday, December 22, 2015 at 12:49:55 AM UTC-8, gjs wrote:
>>
>> Hi,
>>
>> MediaScannerConnection scanFile() (& the equivalent Intent), is just a 
>> request to the OS, it does provide an on completion listener to let you 
>> know when it is finished the request, but that doesn't necessarily mean it 
>> actually or immediately performs the 'scanning' for you request, it might 
>> defer or ignore it. (Once upon a time it did scan when requested, but you'd 
>> need to read recent Android OS Source code / Photos app source code to be 
>> certain).
>>
>> Proving your own media viewer activity or using an Intent to open the 
>> media file or showing the image capture briefly or as a thumbnail is 
>> usually what done to provide immediate feedback.
>>
>
> My intention was to do something that would make the "Photos" app see my 
> stored videos.  This (MediaScannerConnection) doesn't appear to be doing 
> it, and I haven't seen any real confirmation that it's even supposed to do 
> it.  What is the point of doing this?  I'm going to guess that if I just 
> change the subdir name I write to to "Camera", then "Photos" will see my 
> videos.
>

Unfortunately,  my guess was wrong.  I changed  the subdir from the custom 
name for my app to "Camera".  It stored the video in that folder, along 
with the pictures and videos from the stock app, but the videos from my 
custom app are still not visible in the Photos or Gallery app.

I've tried both the "sendBroadcast" and more verbose 
"MediaScannerConnection.scanFile()" approach.  Neither of these fail, and 
the latter does call the "onScanCompleted" callback, but neither of these 
seem to do anything.

Any ideas?

 
>
>>
>> Regards
>>
>>
>> On Tuesday, December 22, 2015 at 5:29:36 AM UTC+11, David Karr wrote:
>>>
>>> On Monday, December 21, 2015 at 12:08:57 AM UTC-8, gjs wrote:

 Hi,

 If your phone is not a Google Nexus variety then that's not surprising, 
 but Environment.getExternalStoragePublicDirectory(Environment.
 DIRECTORY_DCIM) is what's recommended.

 In some respects it does not really matter which folder you use to 
 store media generated by your app (*), provided you go to the trouble of 
 'cataloging' the media generated using MediaScannerConnection - 
 http://developer.android.com/reference/android/media/MediaScannerConnection.html#scanFile(android.content.Context,
  
 java.lang.String[], java.lang.String[], 
 android.media.MediaScannerConnection.OnScanCompletedListener) then your 
 photos / video will quickly show up in the default 'Photos' app, without 
 having to wait for it to scan the device periodically to find new media 
 files.

 (*) And is some other respects it really, really does matter what 
 folder you use - if you don't want the media files deleted when your app 
 in 
 uninstalled (!) Be very careful about what you decide, here's some 
 'interesting' history - 
 https://groups.google.com/forum/#!topic/android-platform/14VUiIgwUjY%5B1-25%5D

 Regards


>>> Ok, following this information and some other advice (I created a custom 
>>> subdir of "DCIM" for my app), I ended up with the following:
>>>
>>> sendBroadcast(new Intent(Intent.ACTION_MEDIA_SCANNER_SCAN_FILE, 
>>> Uri.parse("file://" + outputFilePath)));
>>>
>>>
>>>  The problem is, it's not clear to me that this is doing anything.  
>>> After storing one of these and calling this, I exit my app and run the 
>>> Photos app, and the new video is not shown there.  I've verified that the 
>>> video is stored and viewable.
>>>
>>> On Monday, December 21, 2015 at 5:53:49 AM UTC+11, David Karr wrote:
>
> On Saturday, December 19, 2015 at 10:34:46 PM UTC-8, gjs wrote:
>>
>> Hi,
>>
>> See 
>> http://developer.android.com/reference/android/os/Environment.html 
>> it has methods to retrieve default paths of where photo, video files etc 
>> are stored.
>>
>> The file naming convention should be easy enough to mimic, usually 
>> being based on date time stamps.
>>
>
> Thanks.  That gets pretty close.  I'm having trouble getting it to 
> match what my phone is using.  For the directory expression, I'm 
> currently 
> using this:
>
> Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DCIM)
>
>
> However, on my phone, the actual place where it stores pictures from 
> the stock camera is in a "Camera" subdirectory.  This expression doesn't 
> include that.  I could hardcode that, but doesn't feel right.  I tried 
> some 
> variations of this, but I never found an expression that returns "Camera" 
> as the base directory name.
>
>>
>> Regards
>>
>> On Sunday, December 20, 2015 at 4:58:02 AM UTC+11, David Karr wrote:
>>>
>>> Because I can't bring up the stock camera 

[android-developers] Using Leanback Support Lib v17 on KitKat v19

2015-12-23 Thread Andy Gale


I'm trying to get the Android TV look and feel on a KitKat device by 
utilizing the Leanback Support Library. In testing the "Videos by Google" 
Leanback Support Library Sample, I've run into an issue where the card grid 
is not displaying properly, as seen here:

















To get it to build successfully with min API 19, I removed the code for 
Recommendations, background image updating with the newly focused video, 
and a few other methods which aren't available in API 19 (newer versions of 
getColor() and getDrawable()).

This stripped-down version runs fine on my Lollipop and Marshmallow 
emulators, but on KitKat emulators and a physical device running AOSP 
KitKat (4.4.2_r2), the issue above is present. 

Does anyone out there have any idea as to why this is happening and/or 
could point me in the right direction?

-- 
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/18b7cd62-8aea-4dc4-bc23-4fa50caa78c6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Download Android studio Failed

2015-12-23 Thread Pankaj Sood
Hello 

Anybody's here to help, I'm trying to download android studio 2 time. And 
receiving worst error "FAILED".

The download is failed, when remaining time is 1s. Almost 2 GB of data i 
consume... but no download is here shown.

Please suggest me any way to complete this. Confusion is why these download 
failed. Net speed is good not best more then 15 Mbps. At the last 1s 
remaining, then failed.

Thanks
Pankaj S.
 

-- 
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/da7bf408-637b-449d-9d73-1720c41f33dd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] How to get Android default application package names, also in custom android operating system to open ( like call logs, sms, contacts). please suggest me ?

2015-12-23 Thread Peeyush Varshney
Adb shell pm list package

On Tuesday, December 22, 2015, Lalit Goswami 
wrote:

> How to get Android default application package names, also in custom
> android operating system to open ( like call logs, sms, contacts). please
> suggest me ?
>
> --
> 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/2cf9b598-994d-457f-a652-22a52de70d9e%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>


-- 
Thank & Regards
Peeyush Varshney

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


Re: [android-developers] Re: Audio recording problem - fake sample rate

2015-12-23 Thread Massimo Messore
>From my experience you should first try with 44100 and use 48000 or 22050
just as fallback.

Regards.
Il 23/dic/2015 18:53, "Robert Scott"  ha scritto:

> I first call *AudioRecord.getMinBufferSize(22050...*  If this returns an
> error (<1) then I call *AudioRecord.getMinBufferSize(44100...*  Whichever
> one of these calls succeeds, I use that rate in my call to "*new
> AudioRecord(..,sampleRate..)*"
>
> I don't actually have one of these misbehaving devices, so my experiments
> so far have been with the help of my customers.
>
> -Robert Scott
>  Hopkins, MN
>
> --
> 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/061e6451-424d-4d40-b262-b869d7371ab5%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/CAMUXMhvToP_y1ErY8oXx-2rBKZ7ZRimPxoUbTs9iCy2hE8XThA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] Audio recording problem - fake sample rate

2015-12-23 Thread Massimo Messore
I've been working with android audio recording for a while.

As far as I know the only guaranteed supported recording sample rate is
44100Hz which means up to 22KHz of bandwidth.

This should be a "real" sampling rate, no upsampling on most devices.

Did you try to set AudioRecord with 44.100Hz as sampling rate?

Regards.
Il 23/dic/2015 17:20, "Robert Scott"  ha scritto:

> There is an audio recording problem with some devices, even newer ones.
> The native audio recording sample rate appears to be a puny 8000 Hz, which
> means it can only render frequencies up to 4000 Hz.  This is a problem for
> my piano tuning app which must detect frequencies above 4000 Hz. to tune
> the top few notes.
>
> So far I have only gotten reports of this problem on certain models of the
> LG G3 and the Nexus 7 (Asus).  The worst part is these devices do not
> return an error when we try to set up an audio input stream and request a
> sample rate of 22050 Hz.  Instead they take their 8000 samples per second
> and up-sample by duplicating each sample 2 or 3 times to give us audio that
> appears to be sampled at 22050 samples per second as requested, but it
> still cannot faithfully render frequencies above 4000 Hz, so our piano
> tuning app gives very strange results for the top few notes on the piano.
>
> Does anyone here work with audio input apps and can you confirm this
> problem on any other devices?  You can test it out by sideloading our app
> from
>
>   www.tunelab-world.com/atl.html
>
> It will run in free-trial mode well enough to test this out.  To test for
> the sampling rate problem, tap on the large "A4" and select the note "B7"
> by tapping on the "7" first.  Then on a different device or computer,
> generate a tone at 3950 Hz.  One such on-line source is
>
>   onlinetonegenerator.com/
>
> If this tone produces just one peak in the spectrum display at 3950 Hz,
> then everything is fine.  But if this produces two peaks - one at 3950 and
> the other at 4050, then you have a device that is sampling at 8000 Hz and
> then up-sampling to feed our app a fake 22050 samples per second.
>
> -Robert Scott
>  Hopkins, MN
>
> --
> 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/5ab48a86-f5a9-4996-93e8-f7abb7855104%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/CAMUXMhtFz6LvOcBQBa%3Dgz_BYUxnm5oNakFNc1T9mfOfhFaAirw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Create Paritition table for device.

2015-12-23 Thread Giovanni Cardamone
Hello, i need some hel for create new partition table in my device.

Because the current have to small /system partition and my sistem image is 
bigger than partition.

How i can edit/MBR for create new partition table?

- Thanks, regards.

-- 
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/2dd6dfe8-b9fe-40e3-8919-891fb52e65be%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] Create Paritition table for device.

2015-12-23 Thread mike digioia
try gparted

On Wed, Dec 23, 2015 at 9:15 AM, Giovanni Cardamone 
wrote:

> Hello, i need some hel for create new partition table in my device.
>
> Because the current have to small /system partition and my sistem image is
> bigger than partition.
>
> How i can edit/MBR for create new partition table?
>
> - Thanks, regards.
>
> --
> 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/2dd6dfe8-b9fe-40e3-8919-891fb52e65be%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/CAMCsUi70NUEPE%3D%2BP7fkfHqaBYzJw8t7DSc%2BZM4oe0yVTw_eo8A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Error message "permissions change was not successful."

2015-12-23 Thread Wael Abdulla
*I edited the setting system file, it went fine. But then i tried to copy 
the setting.apk back to internal card in the system folder. The following 
error message pops to the front.  I have done a lot of google search to 
solve this issue but it is still appears.*

*"permissions Change was not successful .please note that some file systems 
(e.g.sdcard) do not allow permission change."*

*Please 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/cb6f30ce-f2d5-4f95-89e8-259a97a0f2c0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] error message on ZTE warp that say cannot communicate with google server

2015-12-23 Thread Roy Jackson
I cannot add my google account to my android phone. I keep getting message 
cannot communicate with google services. google play services is not 
showing up on my phone but the app say it is installed. don't know what 
caused this but been going on for weeks. is this something simple or do i 
need to take my phone in to find out what is wrong.

-- 
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/65fd0af7-a650-48fd-913a-54d60697a8b3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Question to start a Project on flashing google tv to android tv

2015-12-23 Thread Winston Lau
Hey guys Im pretty sure its possible to flash my 46in sony google tv to the 
android tv platform since sony and google drop google tv. I want to start a 
project so i can update my obsolete google tv with no support at all to 
android tv. I was wondering if any of you brilliant engineers and 
programmers would point me in the right way. 

-- 
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/489e638c-7c7c-4a8f-8999-66476192773a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Kotlin for Android, MVVM framework, simple but powerful

2015-12-23 Thread Benny Wang
https://github.com/BennyWang/KBinding.git

-- 
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/2b922cb5-1b73-4167-8c1f-95ea18d67168%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] setResponseHeaders method causes app to crash on certain devices

2015-12-23 Thread devBV
hi,
I'm using shouldInterceptRequest method to intercept the request , edit it 
and send the right response. 
It works on a couple phones I tested, but when I try to run the same code 
on a different Android device - it crashes.

the code is looks like this:

@Override
public WebResourceResponse shouldInterceptRequest( WebView view, String url 
)
{
if( (url.indexOf("Action=DoSomething")>-1 ) ){
 String str = "Success";
 WebResourceResponse response  = new WebResourceResponse( "text/html", 
"charset=UTF-8", new ByteArrayInputStream( 
str.getBytes(StandardCharsets.UTF_8 )) );
 
 HashMap headersMap = new HashMap();
 headersMap.put( "Access-Control-Allow-Headers", "Content-Type" );
 headersMap.put( "Access-Control-Allow-Methods", "GET,POST" );
 headersMap.put( "Access-Control-Allow-Origin", "http:// " 
);
 headersMap.put( "Cache-Control", "private, max-age=0" );
 response.setResponseHeaders( headersMap ); 
 
 return response;
}
else{
 return null;
}
}

I've found that without the the setResponseHeaders the app doesn't crash. 
Otherwise it runs good on phones , but crashes on a certain Android device 
that I want to run this code on.

-- 
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/f8b15d67-15b9-4bc9-9925-fc4dcf7d0551%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] how is google ADID calculated

2015-12-23 Thread doron zukerman
hey all,
im new to this group and dont know if this is the right place to post this 
but by any chance is there someone here who knows how exactly the google 
ADID is calculated?

what i mean in "calculated" is basically to better understand to what 
identity if the adid connected to? (android Os, device id, google account, 
or anything else...) and how is it reset?

the reason i  want to know this is to better understand when several does 
devices are used by the same user.

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/a9f69a28-cec6-4ccb-856c-6f760acaaed3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] GuidedStepFragment NPE error in SupportLibrary23.1.1

2015-12-23 Thread Huang Wei
Does anyone meet this problem when quit from an activity contains 
GuidedStepFragment, it crashes due to an NPE:

E/AndroidRuntime(13363): java.lang.NullPointerException: Attempt to read 
from field 'int android.app.Fragment.mContainerId' on a null object 
reference
E/AndroidRuntime(13363):at 
android.app.BackStackRecord$1.onPreDraw(BackStackRecord.java:1131)
E/AndroidRuntime(13363):at 
android.view.ViewTreeObserver.dispatchOnPreDraw(ViewTreeObserver.java:944)
E/AndroidRuntime(13363):at 
android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1970)
E/AndroidRuntime(13363):at 
android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1061)
E/AndroidRuntime(13363):at 
android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:5885)
E/AndroidRuntime(13363):at 
android.view.Choreographer$CallbackRecord.run(Choreographer.java:767)
E/AndroidRuntime(13363):at 
android.view.Choreographer.doCallbacks(Choreographer.java:580)
E/AndroidRuntime(13363):at 
android.view.Choreographer.doFrame(Choreographer.java:550)
E/AndroidRuntime(13363):at 
android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:753)
E/AndroidRuntime(13363):at 
android.os.Handler.handleCallback(Handler.java:739)
E/AndroidRuntime(13363):at 
android.os.Handler.dispatchMessage(Handler.java:95)
E/AndroidRuntime(13363):at android.os.Looper.loop(Looper.java:135)
E/AndroidRuntime(13363):at 
android.app.ActivityThread.main(ActivityThread.java:5254)
E/AndroidRuntime(13363):at java.lang.reflect.Method.invoke(Native 
Method)
E/AndroidRuntime(13363):at 
java.lang.reflect.Method.invoke(Method.java:372)
E/AndroidRuntime(13363):at 
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)
E/AndroidRuntime(13363):at 
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)

But if I change the library back to 23.0.1, this issue cannot be reproduced.

The code is very simple:

public class RcuListActivity extends Activity{

@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);

GuidedStepFragment.add(getFragmentManager(), new SettingtFragment());
}

public static class SettingtFragment extends GuidedStepFragment {

@NonNull
@Override
public GuidanceStylist.Guidance onCreateGuidance(Bundle 
savedInstanceState) {
String title = "RCU List";
String desc = "List of connected RCUs";
Drawable icon = getActivity().getDrawable(R.drawable.ic_launcher);
return new GuidanceStylist.Guidance(title, desc, "", icon);
}
}
}

-- 
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/8d91bd74-ca43-4cc9-95a3-4652c2b619a4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.