[android-developers] Digest for android-developers@googlegroups.com - 14 updates in 10 topics

Comments: (0)
David Karr <davidmichaelkarr@gmail.com>: Dec 31 11:10AM -0800

A negative confirmation is better than nothing, so thanks for that. At
least I don't have to try any more variations of the scanner code.
On Tuesday, December 29, 2015 at 12:17:23 AM UTC-8, gjs wrote:
"Luis Carlos Ramírez Rodríguez" <eljapi@gmail.com>: Dec 31 10:58AM -0800

It's been six years and I'm also looking for a solution to bind User
Interface with layouts stored on a remote server and i was wondering if you
ever managed to solve this issue
El lunes, 23 de marzo de 2009, 1:10:22 (UTC-6), Daniel escribió:
Angelo Giammarresi <info@wocmultimedia.com>: Dec 31 08:58AM -0800

I have already installed in my PC Android SDK till v 20 because previously
used with Eclipse 3.7.2
I want to install Android studio now.
If I download the bundle will it erase previoslu SDK version or only update
the folders adding new missing version?
Is better download only Android Studio and later update SDK from inside it?
Clint William Theron <theronclintwilliam@gmail.com>: Dec 31 07:54AM -0800

Hi power code writers:-)
I chose one of your templates (I think it's the blank or empty one) and I
really like the top-right menu, it's the one with the three dots vertically
on top of each other. Anyway, when we tap this button a popup container
appears with the word settings in it. I hope you know exactly to which
button I'm referring to. Now instead of the word settings I would like to
replace that with 3 buttons in that container. So when I click the 3
vertical dots (...) the three buttons should popup. The button's icons will
be replaced with my icons.
Can we do this? Let me know how to do this and
thank you in advance.
Clint William Theron <theronclintwilliam@gmail.com>: Dec 31 08:01AM -0800

The menu I'm talking about is contained in the following markup:
app:popupTheme="@style/AppTheme.PopupOverlay" />
vipendra katre <vipin.katre123@gmail.com>: Dec 31 12:50PM +0530

You can use fiddler tool which is used for request monitoring.
Samiksha Saxena <samiksha3108@gmail.com>: Dec 31 07:12AM -0800

i used fiddler to monitor the traffic, but I want to intercept the Connect
method to add my custom header programmatically in android.
On Thursday, December 31, 2015 at 2:29:33 AM UTC-5, Vipin wrote:
Ankush Jain <ankush.jain.cse13@itbhu.ac.in>: Dec 31 06:41AM -0800

Is there any way to disable home button as done by
Mx Palyer(kids pugin required)
Picturesque(works without any plugin)

I have tried
(does not work on android 5.0+)
Vijay Gurumukhi <vijuguru@gmail.com>: Dec 31 02:45AM -0800

Hi Daniel,
How to read NFC tag in android i can give solution for that, but bt
tethering need check, pleas let me know if u need any help.
Vijay Guru.
On Wednesday, 30 December 2015 21:09:41 UTC+5:30, Daniel Kußmaul wrote:
"Daniel Kußmaul" <kussmauld@gmail.com>: Dec 31 04:10AM -0800

Hi Vijay,
yes I need help. Would be great if you can help me.
Thanks in advance
Best regards
Am Donnerstag, 31. Dezember 2015 11:45:24 UTC+1 schrieb Vijay Gurumukhi:
Clint William Theron <theronclintwilliam@gmail.com>: Dec 31 03:12AM -0800

Hi super beings:-) Can you tell me how to change the icon of a
FloatingActionButton? I tried File -> New -> Asset Image and in the src
property I tried to change the path to the newly added icon. Attached is
the xml and the image...Can you tell me how to do this right? Thank you in
Clint William Theron <theronclintwilliam@gmail.com>: Dec 31 03:30AM -0800

On Thursday, December 31, 2015 at 1:12:53 PM UTC+2, Clint William Theron
Vijay Gurumukhi <vijuguru@gmail.com>: Dec 31 02:49AM -0800

Agree with Davi comment, please check your xml file those load in Activity
also check id for listview
Vijay Guru.
On Tuesday, 22 December 2015 13:30:40 UTC+5:30, Chithra Sarathy wrote:
Grunk <roger.olivier@gmail.com>: Dec 31 12:24AM -0800

I'm using HandlerThread like below in my app. Is it correct ?
public class MyThread extends HandlerThread implements Callback
public ThreadDP(Handler uiHandler)
super(MyThread.class.getSimpleName(), Process.
mUiHandler = uiHandler;
protected void onLooperPrepared()
synchronized (this) {
mThreadHandler = new Handler(getLooper(),this);
public LabelList getLabels()
//Get some datas from network
return labels;
public boolean handleMessage(Message msg) {
Message message;
Bundle bundle;
switch (msg.what)
case ThreadMessages.GET_LABELS :
message = mUiHandler.obtainMessage();
message.what = ThreadMessages.GET_LABELS;
Bundle bu = new Bundle();
bu.putInt("myapp.idThread", mIdThread);
bu.putParcelable("myapp.label", this.getLabels());
return true;
And then :
mThread = new MyThread(uiHandler);
The communication between the thread and UI is going pretty well , but i'm
little confused by the lack of runnable. Should is keep using this way or
am i missing something important ?
You received this digest because you're subscribed to updates for this group. You can change your settings on the group membership page.
To unsubscribe from this group and stop receiving emails from it send an email to android-developers+unsubscribe@googlegroups.com.

[android-developers] Digest for android-developers@googlegroups.com - 9 updates in 8 topics

Comments: (0)
Nick Teo <gyteo92@gmail.com>: Dec 30 07:29PM -0800

Hi all,
I'm working on a messaging app that starts a service in the background that
will receive messages from a Pebble smartwatch and then send out an sms
message. Right at this moment, I'm trying to make it so that the service is
always running in the background so that the user can always send texts
even if the app isn't actually open. There is a private local variable in
the service that contains the contacts that the user can send texts to.
When I press the back button to exit the app after setting the contacts,
the list persists and when I open the app again, I see the contacts. If I
open up the all apps menu thing and swipe the app to exit it, the list is
destroyed, however, I know the service is still running (I get Toasts from
the service). I was under the impression that swiping the app closed and
pressing the back button are the same. Are they not? Is there a way to make
it so that the local variable is never destroyed as long as the service is
Samiksha Saxena <samiksha3108@gmail.com>: Dec 30 03:51PM -0800

i have a sample app which is loading a webpage within a webview. The
webpage is over HTTPS and is routed through a proxy server. As i am using a
proxy server between client and the server, the browser is creating a
tunnel using HTTP Connect method. I want to intercept the Connect request
and insert my own headers to the request, how can i do so? Does it possible
to do so?
Tomas Bortoli <tomasbortoli@gmail.com>: Dec 30 01:20PM -0800

I would delete the application because I've done a refactoring on the code
and also the application id is changed on something more accurate and the
dev console doesn't let me upload the new one because the ID is different!
I read on the web that isn't possible to accomplish this. Really? Why? What
the ...?
Can I contact some google team to get some direct help?
I mean, i suppose it's an easy request.
just sounds very strange to me
Thanks everybody
Steve Gabrilowitz <steveg1701@gmail.com>: Dec 30 04:30PM -0500

A different app id means a different app. Keep the app id and upload the
refactored code. Otherwise you will need to create a new play store app
for the new app id, then you can unpublish but not delete the original.
Ankur Agrawal <ankur.ag12@gmail.com>: Dec 30 12:41PM -0800

I am making a Bluetooth capable device using TI's CC2564 module. Before
updating to Android 6.0, I could pair my phone (Nexus 5) with the device
using Simple Secure Pairing (SSP) with no issues. Ever since I updated to
Android 6.0, my phone would not pair with the device.
The debug terminal attached to CC2564 module shows that a link key is
generated, but Android does not show it in its list of paired devices, as
it used to with Android 5.0. I tried another phone running Android 4.1, and
my Bluetooth capable laptop, and both pair with the device.
Also, if I change settings in CC2564 to pair using a PIN code, then my
phone does pair with it. My question is, has something changed in Android
6.0 in terms of SSP functionality?
"Daniel Kußmaul" <kussmauld@gmail.com>: Dec 30 07:39AM -0800

I want to use a NFC tag for turning bluetooth-tethering on/off on my
android phone.
I found no app that supports this function. There is the opportunity to
write an URI on the tag in order to open e.g. an application.
So is there a chance to use such an URI or a 'code' that I could write on
the tag to turn bt-tethering on/off.
Thanks in advance!
Best regards
Daniel Kußmaul
Bipin Jethwani <jethwani.bipin@gmail.com>: Dec 30 01:50PM +0530

check the build tool version...maybe there's some diff.
And check for zipalign
Sahil Desai <sahil.desai28392@gmail.com>: Dec 29 11:45PM -0800

Hello Pulkit,
Have been able to read the dtmf tones sent back to you? if yes, then please
guide me through that.
On Thursday, November 22, 2007 at 10:25:40 AM UTC+5:30, Alex Zhilyakov
Ym J <prjym87@gmail.com>: Dec 29 11:04PM -0800

I'm trouble in update or delete on One instance of
recurring CalendarContracts.Events
i think it should use the CalendarContract.Events.CONTENT_EXCEPTION_URI. (refference
from here
other calendars have _sync_id is insert 'original_sync_id +
originalinstanceTime' form.
but when i following above link, _sync_id is inserted "SYNC_ERROR : Not
What is right way.. ?
Let me know what to do for treatment.
You received this digest because you're subscribed to updates for this group. You can change your settings on the group membership page.
To unsubscribe from this group and stop receiving emails from it send an email to android-developers+unsubscribe@googlegroups.com.

[android-developers] Digest for android-developers@googlegroups.com - 6 updates in 6 topics

Comments: (0)
Abhishek E S <itsmeyourenemy@gmail.com>: Dec 29 08:39PM -0800

I have a 2nd gen Moto X and I am observing a strange behaviour with regard
to SMS. Whenever I receive a message, it shows up after 3 minutes in the
messaging app. It is not just the notification that is missing, but the
actual message in the messaging app. Finally, when the message shows up, it
says 3 minutes ago. I tried using Hangouts instead of the default
messaging app and Chomp SMS as well.
The delay is almost always 3 minutes. I know that the message has arrived
earlier because some applications like Whatsapp which wait for SMS
verification themselves find the verification code 3 minutes before the
messaging app shows it. This is a major issue for me since the OTP code
sent by my bank expires in 3 minutes.
I even wrote a small application that has a broadcast receiver with filter
for SMS_RECEIVED intent. I could see the message appearing almost
immediately. The messaging app shows this only after 3 minutes.

PS: This issue existed in Lollipop and is continuing on Marshmallow as well
Has anyone faced this ?
Shashidhar <shashi.zephyr@gmail.com>: Dec 30 10:03AM +0530

I have used the same code base and referenced the same android version on
2 windows machines and generated APKs on both of them. The APK's differ in
size. What could the possible reasons for APKs to differ even thought I
have same development environment in both machines.
Steve Gabrilowitz <steveg1701@gmail.com>: Dec 29 11:28PM -0500

You could have them buy the IAP and then refund it, at least it works that
way with a regular paid app and I would assume IAP also.
Arun venkatesh <arun.madupu@gmail.com>: Dec 29 08:02PM -0800

Using SupportPlaceAutocompleteFragment i notice that PlaceSelectionListener
is not invoked at all. However with "PlaceAutocompleteFragment" all works
good. Has anyone faced similar problem with the support library. any
suggestions pls ?
Muhammad Kamran Aslam <m.kamranaslam69@gmail.com>: Dec 29 07:12PM -0800

hey everyone,
i am trying to develop an sms bulk/bomber like application that sends
through default/stock messaging app, but i cant find a solution to the
problem of sms_max_count limit, after the limit is reached popup appears
and ask for every new message either to send or not
1.is there a work around to it, how can i avoid/bypass this, any solution?
2. or if a standalone-app(messaging app with bulk sms option) is developed
that doesnot sends through stock, can we handle the limit problem in this
Muhammad Kamran Aslam <m.kamranaslam69@gmail.com>: Dec 29 06:33PM -0800

hey everyone,
i am trying to develop an sms bulk/bomber like application that sends
through default/stock messaging app, but i cant find a solution to the
problem of sms_max_count limit, after the limit is reached popup appears
and ask for every new message either to send or not,
is there a work around to it, how can i avoid/bypass this, any solution?
You received this digest because you're subscribed to updates for this group. You can change your settings on the group membership page.
To unsubscribe from this group and stop receiving emails from it send an email to android-developers+unsubscribe@googlegroups.com.

[android-developers] Digest for android-developers@googlegroups.com - 25 updates in 24 topics

Comments: (0)
Nick Mowen <nickmowen213@gmail.com>: Dec 29 02:30PM -0800

Hello everyone! So I have an app which has in app purchases and I recently
added features which those in app purchases unlock. I want to allow some
people that helped me with the app to have the extra features for free. How
would I go about giving them the IAP for free?
Thanks, Nick
TreKing <trekingapp@gmail.com>: Dec 29 04:41PM -0500

> does this (getItentifier) method grantees that the respective image
> resource id (that suits the screen size of the device that runs this
> application) gets retrieved?
Resource ID is not a qualified value. There is one ID for a given resource
and the system determines what that maps to based on the device
configuration when that resource is requested via that ID.
So when you do res.getIdentifier(...), you will always get back one value
for a given resource. Then when you do res.getDrawable(id), you will get
the correct resource based on the device.
TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
transit tracking app for Android-powered devices
Peng Cao <a3825aa@gmail.com>: Dec 28 07:24PM -0800

Hi everyone:
How to disable pull down status bar in SystemUI(have android source code)
Swapnil Gupta <swapnilgupta.iiith@gmail.com>: Dec 22 09:54AM -0800

I am trying to write a real time pitch visualization using TextureView. The
flow of the code I have implemented seems to be okay but I am unable to see
the pitch contour I am trying to plot.
So, I have created a custom view as ...
public class PitchSurfaceView extends TextureView implements
TextureView.SurfaceTextureListener { ...}
In the constructor of the view I have set the listener ...
public PitchSurfaceView(Context context, AttributeSet attrs) {
Inside my onSurfaceTextureAvailable(), I am doing the following
public void onSurfaceTextureAvailable(SurfaceTexture surface, int
width, int height) {
Log.i(TAG, "Width of the texture view: " + width);
Log.i(TAG, "Height of the texture view: " + height);
// creating the bitmaps to draw them ....
if (!isBitmapsCreated) {
Log.i(TAG, "Drawing bitmaps for the first time.");
isBitmapsCreated = true;
* drawOnView();*
The important method here is drawOnView which actually uses the canvas to
draw on the View bitmap. As for other methods above, I have already tested
them using a custom View by just extending the View class. They work fine
there. Here is my implementation of drawOnView()
protected void drawOnView() {
if(null == mPitchContourGT) {
Log.e(TAG, "mPitchContourGT is null", new
final Canvas canvas = lockCanvas();
try {
// clearing the canvas ...
Log.d("drawOnView", "Before!!");
canvas.drawColor(0x00000000, PorterDuff.Mode.CLEAR);
// Drawing the front padding ...
canvas.drawBitmap(mBitmaps[0], 0, 0, mPainter);
int pos = mBitmaps[0].getWidth();
for (int i = 0; i < (mBitmaps.length - 1) * mNumberLoops; i++) {
// mBitmaps.length - 1 because we have an extra bitmap at
the beginning ..
final int index = i % (mBitmaps.length - 1) + 1;
canvas.drawBitmap(mBitmaps[index], pos, 0, mPainter);
pos += mBitmaps[index].getWidth();
} finally {
Log.d("drawOnView", "After!!");
Here I am first getting lock at the canvas and drawing my earlier created
bitmaps on the canvas. I see the debug logs that I have put but I cannot
see the brawn bitmaps on my view. Anything wrong that I am doing?
On Tuesday, October 16, 2012 at 5:31:33 PM UTC+2, Conrad Chapman wrote:
asion wang <asionwang2013@gmail.com>: Dec 25 07:18PM -0800

i meet this issue too
在 2013年6月16日星期日 UTC+8上午2:03:37,JossieKat写道:
bipin tamkhane <bipin123.tamkhane@gmail.com>: Dec 22 11:05PM -0800

Hello, I am developing my first android app, in which I want to send an
Email with an Attachment of Excel file on click of OK Button. I have
attached herewith my project codes for the reference. will anybody tell me
how to access and attach excel file to email as an attachment and make this
process automatic on click of OK button only ( Attaching Excel file and
Sending Mail). Please Help me regarding this. Thanking You.
Kimberly Crawley <runnymede13@gmail.com>: Dec 21 09:33PM -0500

Hello everyone!
I'd like to thank you in advance for your help.
I've been trying to get help with my two problems on StackOverflow, and
I've only had limited success so far.
Here's a copy/paste from
I've lurked on StackOverflow for years, but now that I'm getting serious
about Android development, I've finally started an account.
I Google searched thoroughly for help with my problem, to no avail.
I was successfully developing simple apps in Android Studio 1.4 since I
first installed the IDE on my old Linux laptop last month. Then, I
installed Android Studio 1.5 on a much better machine, because the hardware
limitations on the old laptop were really getting to me.
I was careful to install Oracle JDK 7 before installing Android Studio, and
also to enable KVM in BIOS. I also made sure to install all of the Android
SDKs that weren't specific to Android Auto.
When I started to import my old projects, Gradle was having a hell of a
time compiling them. So I decided to start a new project and copy and paste
my old code via a text editor.
I learned that I now have to activate permission checking in Java in
addition to requesting permissions in my Manifest XML, in order to
accommodate Android 6.0 Marshmallow, which is fine.
I put this code into my MainActivity.java like so:
public class MainActivity extends AppCompatActivity implements
LocationListener {
int permissionCheck = ContextCompat.checkSelfPermission(this,
permission.ACCESS_COARSE_LOCATION);int permissionCheck2 =
Android Studio is still marking this code in my OnCreate method in red:
Location location = locationManager.getLastKnownLocation(provider);
On mouse cursor hover, I still get: "Call requires permission which may be
rejected by user."
I also have another problem.
I made sure to assign the correct ID to the views I'm using from my
activity_main.xml to my MainActivity.java. But still, when I call
findViewById and use R.id.x, it's not linking and that bit of text isn't
purple in my IDE. Here's the code I'm referring to:
protected void onCreate(Bundle savedInstanceState) {
latTV = (TextView) findViewById(R.id.lat);
lngTV = (TextView) findViewById(R.id.lng);
addressTV = (TextView) findViewById(R.id.address);
altitudeTV = (TextView) findViewById(R.id.alt);
None of the R.id.x nor the R.layout.activity_main in setContentView are
turning purple as they're supposed to. As I said, I made sure that the
resources and IDs exist.
OS: Kubuntu 14.10 LTS IDE: Android Studio 1.5
Thanks in advance for your help.
sharvari <sharvarichormunge92@gmail.com>: Dec 24 12:19AM -0800

my eclipse.ini file is
C:/Program Files/Java/jdk1.7.0_04/jre/bin/javaw.exe
Please give me solution for java heap error,
William Garcia <summerw4rs@gmail.com>: Dec 20 10:57PM -0600

If I may interject for a quick response to be in order. Replace
<https://play.google.com/store/apps/details?id=your.app.id.here> with your
actual app id.
Bipin Jethwani <jethwani.bipin@gmail.com>: Dec 24 07:18PM +0530

What's DPC?
Do you mean divide productivity app?
-----Original Message-----
From: "Andrey Egorov" <egorovandreyrm@gmail.com>
Sent: ‎24-‎12-‎2015 05:54 PM
To: "Android Developers" <android-developers@googlegroups.com>
Subject: [android-developers] Android For Work | How to download DPC while NFCactivation from Google Play / Google Play For Work?
Can I download DPC apk while NFC activation from Google Play/Google Play For Work instead of direct link for the apk?
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+unsubscribe@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/6c75e037-daf6-4ece-bddc-a81df3594c5c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
jimson liang <liangruijun1990@gmail.com>: Dec 28 07:09PM -0800

The repository is Android development favorites, It used to collect the
knowledge of Android Development.
Douglas Tome <douglastomefeitosa@gmail.com>: Dec 24 09:27AM -0800

Together with my colleagues, we are conducting a study that aims to measure
attitudes towards software development. We expect that the outcome of this
study will help to further understand the different software design
approaches and, therefore, contribute to the theory and practice of
software development.

The survey involves answering some general demographics questions,
questions about your beliefs related to software development, and questions
about your political beliefs. The survey takes about 10 minutes to complete.

Participation in this study is voluntary and anonymous. The risks
associated with participation in this study are no greater than those
encountered in daily life or during the performance of routine physical or
psychological examinations or tests. There is also the possibility of loss
of confidentiality. However, personally identifiable information will not
be collected in order to ensure participants' privacy and confidentiality.
Any write-up/publication of data yielded from this study will not be able
to identify you in relation to this study. The data from this study will be
securely stored for five years and it may be used for future related

The following link will direct you to the research survey:

Your participation in this research study is voluntary. If you decide not
to complete the survey, there are no penalties. If you choose to start the
survey, but decide not to finish, there will be no penalty.

The data from this study will be entirely anonymous. There will be no
record kept of your participation.

You can ask questions about this research study now or at any time during
or after the study, by talking to the researcher in charge of the study,
Dr. David A. Broniatowski, who can be reached by phone at 202-994-3751.

If you have questions about your rights as a research participant or feel
that you have not been treated fairly, please contact The George Washington
University Office of Human Research at (202) 994-2715.

We thank you in advance for your cooperation.
Douglas Feitosa Tome
Mufamaju Ali <mozsoftware@gmail.com>: Dec 24 01:26AM -0800

hi guys, how can i get user mobile number on android, i used this simple
code in my main class
TelephonyManager tm=(TelephonyManager)getSystemService(Context.TELEPHONY_SERVICE);
String mobilephonenumber= tm.getLine1Number();
but it doesnt retrive any information the textfield stay blank when load the form on my device. Please help me am using android studio version 1.5.1
Gentian Bajraktari <voipstar@gmail.com>: Dec 27 10:06AM -0800

I get timed_text_track_id using mediaplayer.trackinfo and use it to change
internal subtitle of a given video stream
as mediaplayer.selecttrack(timed_text_track_id).
when i use SelectTrack to change internal dvbsub subtitle track in this
videoview i get an error as follows:
12-27 18:53:50.905: E/MediaPlayer(15688): internal/external state mismatch
12-27 18:53:50.915: E/MediaPlayer(15688): error (100, 0)
12-27 18:53:51.385: E/AndroidRuntime(15688): FATAL EXCEPTION: main
12-27 18:53:51.385: E/AndroidRuntime(15688): Process: com.example.gent3,
PID: 15688
12-27 18:53:51.385: E/AndroidRuntime(15688): java.lang.RuntimeException:
failure code: -32
12-27 18:53:51.385: E/AndroidRuntime(15688): at
12-27 18:53:51.385: E/AndroidRuntime(15688): at
12-27 18:53:51.385: E/AndroidRuntime(15688): at
12-27 18:53:51.385: E/AndroidRuntime(15688): at
12-27 18:53:51.385: E/AndroidRuntime(15688): at
12-27 18:53:51.385: E/AndroidRuntime(15688): at
when i use same code to select an audio track on the same video stream
there is no error and the audio track is changed.
cham3333 <adityamehta307@gmail.com>: Dec 22 12:04AM -0800

Hi all,
#All data on widget changes back to default data given in xml file.
I am not able to figure the cause of above problem. Any help would be
Davide Montesin <davide.bz@gmail.com>: Dec 29 02:18AM -0800

Hi, it is possible to make a daydream translucent/transparent?
I can do this with an activity using
but how to set it on a daydream service?
I have tried using only code:
getWindow().setBackgroundDrawable(new ColorDrawable(0));
but does not work both for activities and daydream.
Thanks in advance for any help!
Brahmam Yamani <yamani.brahmam@gmail.com>: Dec 21 10:35PM -0800

use the Chrome Custom Tabs,it is very faster then webview,Custom Tabs Are
For More Information :

On Monday, 21 December 2015 12:39:28 UTC+5:30, Parimal Muli wrote:
村上伊織 <murakami.iori@live.jp>: Dec 23 06:54PM -0800

I am developing an app that uses voice recognition and WebRTC.
There is a problem that VoiceRecognition does not work during a calling
with WebRTC.
I guess to cause that the MediaReord.AudioSource has changed. WebRTC is
MediaRecorder.AudioSource.VOICE_COMMUNICATION, but Voice Recognition
service is MediaRecorder.AudioSource.VOICE_RECOGNITION.
How to change the MediaRecorder.AudioSource form another process?
Thank you
TreKing <trekingapp@gmail.com>: Dec 29 11:44AM -0500

> Is there any way i can get that detail.
It would depend on what the detail is, but you didn't specify what you're
actually looking for, so it's impossible to say for sure.
TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
transit tracking app for Android-powered devices
Nishant Choudhary <nishant.23j@gmail.com>: Dec 29 05:53AM -0800

how can i make a pattern lock screen in android studio
jsket.org@gmail.com: Dec 29 12:42AM -0800

Hello, My name is Alex, I'm developer and have apps on google play:
previously this app has near 600 "google +1" count, but today count have
been reset to zero.
I had the same problem in past with another my app:
count was more than 25 but month ago was reset to zero.
I can't send mail on googleplay-developer-support@google.com
And now I'm searching with whom can I contact to make this problem more
If anyone know whom can I write, or had experience with such problem please
Thank you in advance, for your attention.
jsket.org@gmail.com: Dec 29 04:09AM -0800

I found way to contact with support. Wrote them and in two business days
I'll post here replay.
Ankit Gupta <ankitgupta24101@gmail.com>: Dec 29 04:51PM +0530

public class MainActivity extends FragmentActivity {
static EditText metTodate, metFromdate, metInTime, metOutTime;
static long no_of_days1;
static long no_of_days2;
static TextView no_of_days;
static TextView no_of_days3;
public static String str;
protected void onCreate(Bundle savedInstanceState) {
metTodate = (EditText)findViewById(R.id.etTodate);
metFromdate = (EditText)findViewById(R.id.etFromdate);
metInTime = (EditText)findViewById(R.id.etInTime);
metOutTime = (EditText)findViewById(R.id.etOutTime);
no_of_days = (TextView)findViewById(R.id.etnoofdays);
// Here is my method where I want my text view to display dates.
no_of_days.setOnClickListener(new View.OnClickListener() {
public void onClick(View v) {
calendarDaysBetween(Calendar metFromdate, Calendar metTodate);
// Both date picker dialogs
public void showTruitonDatePickerDialog(View v) {
DialogFragment newFragment = new DatePickerFragment();
newFragment.show(getSupportFragmentManager(), "datePicker");
public static class DatePickerFragment extends DialogFragment
implements DatePickerDialog.OnDateSetListener {
public Dialog onCreateDialog(Bundle savedInstanceState) {
// Use the current date as the default date in the picker
final Calendar c = Calendar.getInstance();
int year = c.get(Calendar.YEAR);
int month = c.get(Calendar.MONTH);
int day = c.get(Calendar.DAY_OF_MONTH);
// Create a new instance of DatePickerDialog and return it
return new DatePickerDialog(getActivity(), this, year, month, day);
public void onDateSet(DatePicker view, int year, int month, int day) {
// Do something with the date chosen by the user
metTodate.setText(day + "/" + (month + 1) + "/" + year);
public void showFromDatePickerDialog(View v) {
DialogFragment newFragment = new FromDatePickerFragment();
newFragment.show(getSupportFragmentManager(), "datePicker");
public static class FromDatePickerFragment extends DialogFragment
implements DatePickerDialog.OnDateSetListener {
public Dialog onCreateDialog(Bundle savedInstanceState) {
// Use the current date as the default date in the picker
final Calendar c1 = Calendar.getInstance();
int year = c1.get(Calendar.YEAR);
int month = c1.get(Calendar.MONTH);
int day1 = c1.get(Calendar.DAY_OF_MONTH);
// Create a new instance of DatePickerDialog and return it
return new DatePickerDialog(getActivity(), this, year, month, day1);
// calendarDaysBetween(Calendar metFromdate, Calendar metTodate);
public void onDateSet(DatePicker view, int year, int month, int day) {
// Do something with the date chosen by the user
metFromdate.setText(day + "/" + (month + 1) + "/" + year);
public static long calendarDaysBetween(Calendar metFromdate,
Calendar metTodate) {
// Create copies so we don't update the original calendars.
Calendar start = Calendar.getInstance();
Calendar end = Calendar.getInstance();
// Set the copies to be at midnight, but keep the day information.
start.set(Calendar.HOUR_OF_DAY, 0);
start.set(Calendar.MINUTE, 0);
start.set(Calendar.SECOND, 0);
start.set(Calendar.MILLISECOND, 0);
end.set(Calendar.HOUR_OF_DAY, 0);
end.set(Calendar.MINUTE, 0);
end.set(Calendar.SECOND, 0);
end.set(Calendar.MILLISECOND, 0);
// At this point, each calendar is set to midnight on
// their respective days. Now use TimeUnit.MILLISECONDS to
// compute the number of full days between the two of them.
no_of_days1 =
TimeUnit.MILLISECONDS.toDays(Math.abs(end.getTimeInMillis() -
String finalresult = new Double(no_of_days1).toString();
return no_of_days1;
"SD." <saiyamdoshi.in@gmail.com>: Dec 29 12:48AM -0800

I am trying to run CTS on my OEM device. After downloading (Android 5.1
<https://source.android.com/compatibility/downloads.html>) and setup as per
(cts-setup <https://source.android.com/compatibility/cts/setup.html>), when
I run any of the package from list, It shows the same message as shown
"Start test run of 0 packages, containing 0 tests", followed by no
error/warning and any additional information.
Am I missing something?
gjs <garyjamessilva@gmail.com>: Dec 29 12:17AM -0800

I don't think you'll get the confirmation you are seeking, but here's what
I think is currently happening.
(1) The (Google) Gallery app is no more, now being replaced by the (Google)
Photos app.
(2) Currently the (Google) Photos app appears to ignore the
MediaScannerConnection calls and / or does not query the associated Media
repository (/database) where media metadata is cataloged nor listen or act
on any associated Content Providers etc.
(3) The (Google) Photos app currently seems heavily invested in using
(Google) cloud storage to backup and sync all your photos from all your
devices mobile & desktop. From some tests undertaken just now I've found
that photos from third party app won't show up in the (Google) Photos app
unless you explicitly turn on sync'ing and backup (via its settings)
and explicitly select your third party app media folder(s). You
won't necessarily see photos taken very recently (with 3rd party app) in
the main photo view and you might see these in the Device Folders view (on
some devices), eg: I can see a recent photo taken on a Nexus 6P, but I
can't yet on an Xperia Z5.
(4) The (Google) Photos app is overly ambitious(?) with many moving parts,
seeking to do all sorts of things, grouping stories, show what you were
doing on this day in previous years etc etc etc, but can't get the basics
to work *reliably* such as show all photos on the device, sharing & getting
sync'ing to work consistently, (unless perhaps you only use the default
camera app). On the Xperia Z5 sharing a photos currently crashes
the (Google) Photos app... The help suggests things like turning off
syncing and turning it back on again when it's not working...
(5) Google has a habit of consistently changing the Photos apps every few
months or so both on mobile and on the web, so what might work now it bound
to change and be broken again in future.
(6) If you want to be certain that photos, videos captured with you app are
present on the device then you need to provide you own viewer activity of
some sort as previously suggest, or else be willing to help your users get
the (Google) Photos app configured to find photos, video created with your
app and be ready to do that all over again with next the (Google) Photo app
On Tuesday, December 29, 2015 at 6:37:32 AM UTC+11, David Karr wrote:
You received this digest because you're subscribed to updates for this group. You can change your settings on the group membership page.
To unsubscribe from this group and stop receiving emails from it send an email to android-developers+unsubscribe@googlegroups.com.