[android-developers] Samsung SDSA is looking for brilliant Android developer in San Jose, CA

2016-01-27 Thread Tetiana Danylevska
Hello Friends,

My name is Tanya Danylevska, Samsung SDSA talent acquisition

Our R team is looking for talented Android Developer to join us in San 
Jose, CA

 For more information go here:
https://samsungsdsa.applytojob.com/apply/aM2rVd/Web-Developmentandroid-Developer.html

OR


Feel free to contact me,
Cheers!

Tanya Danylevska
Samsung SDSA
tetian...@partner.samsung.com

-- 
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/35332179-f121-4ec2-a0f0-a54f0011095d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] More than 70 leaderboards?

2016-01-27 Thread Giyomu Games


I see in the doc that the limit for the number of leaderboards on Google 
Play Services is 70 
.
 
However, I am able to create more than 70 leaderboards and they are all 
working when I test my app. Is this limit still up to date? What happens if 
I put more than 70 leaderboards in a published app?


Thank you in advance if you know the answer.

-- 
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/d3d0353b-a749-467f-92a1-824895a21c9b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] What to place Fragment = LinearLayout

2016-01-27 Thread P Hill
I have two Activities that want to use one fragment for two different
screens sizes.

The Example I generated from the gallery creates a TextView in the fragment
and that is added to a ScrollView
But my Fragment is a ListView
But I don't want to add a list to a scroll, because that would be two
scrolling view groups.

I just need something I can address by ID in which to place the Fragment,

What can I use in the outer container (whatGroup id=listFrragmentHere in
the rough code below), so that I can find somewhere  in which to place the
list?

Activity Detail_Activity

  
  
  <*WhatGroup* android:id="@+id/listFragmentHere">
  ... this is where I'll dynamicaly in the fragment...
  


 List Fragment


... complex rows of various fields


Should whatGroup simply be a linearLayout?  Is there something simpler?

-Paul

-- 
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/CAFR9p%3DMEw%3D6ikLxL8q8Abbaf8d0pYOw-k7g9SRznYa8-PcfCCg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] Use gradle variable in java (Android Studio)

2016-01-27 Thread Ralph Bergmann | the4thFloor.eu
Am 27.01.16 um 17:03 schrieb Adrian Ivasku:
> I have in my gradle file something like :
> 
> String packageName = com.test.free
> 
> 
>  Now I want this String packageName to use in my java class.

You can access the packageName from your app with BuildConfig.APPLICATION_ID

For your own varaiables you can use:

// for resources
resValue "string", "", ""

// for Java fields in BuildConfig
buildConfigField "String", "_AUTHORITY", ""

-- 
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/56A94FF0.9070906%40the4thfloor.eu.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Insatllation Adb Driver for all devices like LG,SONY, in ubuntu 14.04TLS for Android Studio IDE

2016-01-27 Thread Yogesh Upadhyay (HO)
Hi Tech support,
I want to install adb driver for all devices for app development using OS 
Ubuntu so i need help ,i don't have idea about this.please help me.

Thanks & Regards 


Yogesh

-- 
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/c5f7a64b-1c30-4504-a2fd-3c583c0d776f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Re: How to build customized sdk from AOSP (Lollipop 5.0.2)

2016-01-27 Thread andrew_esh
Lunch may have had the settings added that allow it to build certain 
combinations that do not appear in the lunch menu. There is a script call 
like add-lunch-menu-item that adds items to the menu, but an item does not 
need to be in the menu to work. If you call lunch with an item like 
"sdk-eng", and lunch does not display an error message, then the 
environment is ready to build that item. You can check the current settings 
with "printconfig". Go ahead and do your build.

On Monday, January 25, 2016 at 11:18:53 PM UTC-6, Kishore Poojari wrote:
>
> Hello All,
>I want to build customized sdk from AOSP (Lollipop 5.0.2) , and I 
> checked following documents
>
> https://android.googlesource.com/platform/sdk/+/master/docs/howto_build_SDK.txt
>  
>
> that says
>
>  $ . build/envsetup.sh
>   $ lunch sdk-eng
>   $ make sdk
>
> After setup environment , sdk-eng is not listed when I lunch ?
>
> Is their any steps has to followed to build the customized  sdk..?
>
> Regards,
> Kishore P
>

-- 
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/65ac5b03-4efa-4171-8454-3acec13186ff%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] Android Fingerprint Scanner Help

2016-01-27 Thread mike digioia
What skills
On Jan 28, 2016 3:37 AM, "Tom Becker"  wrote:

> Hello all,
>
>
> I'm working for a company that wants to look into the potential behind the
> fingerprint scanning hardware on Android phones. We've been looking into
> the current API Android has available and it does not have the
> functionality that we're looking for. I'm in search of a phone number that
> I can use to contact somebody from Google directly and discuss the possible
> applications we'd like to explore. I appreciate any input.
>
> --
> 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/b59ab1cb-a129-4a70-bc30-457ac40910a1%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/CAMCsUi4g3DMrcZLFaxR31A%2B9PPkoU7aLZrHT5n2csi-Ld2r8OA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Navisworks model open in Android Tab application

2016-01-27 Thread Gourav

Hello.

I want to implement Navisworks model(i.e.) .nwd file open in my android TAB 
application.. please help me anyone knows how to do this...

-- 
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/325e7859-9cc9-4660-9496-6f76b3d730cb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Trying to Connect to Google App Engine with Retrofit

2016-01-27 Thread Troy Chuinard
I have successfully followed the Google tutorial here 
,
 using 
the Android Studio Servlets module to connect to Google App Engine. I was 
able to see the Toast message on my device, meaning I successfully 
connected to the server and received a response.

I noticed that this module uses AsyncTask to handle the background tasks. 
>From what I understand, Retrofit is a much simpler and effective method of 
handling tasks in the background thread. I am basically trying to replicate 
the Google Tutorial mentioned above using Retrofit 1.9.0 instead of the 
ServletPostAsyncTask Java class that they provide.

Below is my code:

MainActivity:

public class MainActivity extends AppCompatActivity {

//set the URL of the server, as defined in the Google Servlets Module 
Documentation
private static String PROJECT_URL = 
"http://retrofit-test-1203.appspot.com/hello;;

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);
setSupportActionBar(toolbar);

//Instantiate a new RestAdapter Object, setting the endpoint as the 
URL of the server
RestAdapter restAdapter = new RestAdapter.Builder()
.setEndpoint(PROJECT_URL)
.build();

//Instantiate a new UserService object, and call the "testRequst" 
method, created in the interface
//to interact with the server
UserService userService = restAdapter.create(UserService.class);
userService.testRequest("Test_Name", new Callback() {
@Override
public void success(String s, Response response) {
Toast.makeText(getApplicationContext(), 
response.toString(), Toast.LENGTH_LONG).show();

}

@Override
public void failure(RetrofitError error) {
Toast.makeText(getApplicationContext(), error.getMessage(), 
Toast.LENGTH_LONG).show();
}
});

  }
}


UserService Interface, required by Retrofit:

public interface UserService {

static String PROJECT_URL = 
"http://retrofit-test-1203.appspot.com/hello;;

@POST(PROJECT_URL)
void testRequest(@Query("test") String test, Callback cb);


}

My Servlet, as required by the Google Servlets Module:

public class MyServlet extends HttpServlet {
@Override
public void doGet(HttpServletRequest req, HttpServletResponse resp)
throws IOException {
resp.setContentType("text/plain");
resp.getWriter().println("Please use the form to POST to this url");
}

@Override
public void doPost(HttpServletRequest req, HttpServletResponse resp)
throws IOException {
String name = req.getParameter("name");
resp.setContentType("text/plain");
if(name == null) {
resp.getWriter().println("Please enter a name");
}
resp.getWriter().println("Hello " + name);
  }
}


In my userService.testRequest()method, I pass in "Test_Name" as the string 
parameter. This text is what I hope to pass to the server, and then see a 
toast that displays "Hello Test_Name" (after receiving a server response), 
just like the Google App Engine Servlets module explains.

Right now, I am receiving the below error:



Any advice on using Retrofit with Google App Engine is appreciated, as 
there is limited documentation.

-- 
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/4d49e0c8-fae1-4163-b36e-5229ce42e6d9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Get unsupported characters supported

2016-01-27 Thread Andrew Hossam
I am developing an android keyboard and their are many characters appears 
to be crossed rectangle.
how to get this characters appear.

If there is noway for that can I create this characters as images and use 
them in writing then.

-- 
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/72c7113e-88b6-4013-9399-25983c63ca21%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Change Structure used by Android Studio to Create the 'gen' Folder

2016-01-27 Thread David B
I am writing an Android app that was started in Android Studio, but I would 
like to be able to work on the app using AIDE as well, but the structure 
used by AIDE to generate the 'gen' folder (where the R class is stored) is 
different from Android Studio, causing conflicts that can only be resolved 
by adding and removing import statements for the R class depending upon 
which IDE I am using. While I could do this, I would rather change the 
structure the Android Studio uses to generate this folder so that the 
project would be compatible with both IDEs without me needing to intervene. 
I do not want the change to be system-wide for AIDE, but rather only for 
this project. I could I go about doing this?

-- 
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/1f41237c-136f-4e30-b32b-43db3e7e710e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Use gradle variable in java (Android Studio)

2016-01-27 Thread Adrian Ivasku
I have in my gradle file something like :

String packageName = com.test.free


 Now I want this String packageName to use in my java class.

Is it possible? How can I transfer this String from gradle to java ?

-- 
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/b8ad5316-69d3-45a7-afb0-446d7a4aa772%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Pocketshpinx speech recognition for Android Unity game

2016-01-27 Thread Da Kor


Hello everyone,

I'm a PhD student and I have a Unity game that uses Pocketshinx and I want 
to export it for Android. First of I'm applying reverse engineering on a 
game app that uses Pocketsphinx in Unity. I also have limited coding skils 
but I need to make it work in 15 days otherwise my whole PhD will go down 
the drain. When I export the project on Android it kind of skips the speech 
recognition part. In the project I have a plugin CCIRPocketSphinx.DLL, 
which is custom code not written by me ( I cannot contact the one who did ) 
compiled for Windows as a bridge to PocketSphinx.

Also, in the root of the project, Pocketsphinx.DLL and Sphinxbase.DLL - 
these are the Windows DLLs for PocketSphinx and come with the SDK. For 
Android, they need to be .a or .so files, compiled for that platform. By 
asking around they gave me these options:
For moving to Android you would have to do something like we did for 
Windows, writing a bridge from the C# Unity scripts to PocketSphinx. It 
looks like PocketSphinx is available on Android at 
http://cmusphinx.sourceforge.net/wiki/tutorialandroid but I had a quick 
look at it and there seems to be quite a lot of steps to setting it up. 
Perhaps you might be better using the built-in Android speech kit: 
http://developer.android.com/reference/android/speech/SpeechRecognizer.html 
– it seems to stream the audio for recognition, but perhaps that can be 
hooked into Unity a lot easier? There’s also now a Unity Android speech 
recognition asset: https://www.assetstore.unity3d.com/en/#!/content/13882



What would you suggest for me to do? Can anyone help? Thanx 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/fef2be7e-172f-4b11-a0ad-b0d058f448ad%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Re: Location API

2016-01-27 Thread adit microsys
Hello Sam Halliday,

Can you give me the idea about jsr-179 use in android .

Thank you

On Tuesday, November 13, 2007 at 6:13:22 PM UTC+5:30, Sam Halliday wrote:
>
> Hi all,
>
> I'm playing around with the Android SDK and *loving it*. The XML
> approach to interface design is great... and is an approach we've been
> using for a while now with an in-house J2ME library.
>
> I couldn't help but notice that Android is missing the Location API. I
> wrote and maintain OpenLAPI.com which is a GPL version of JSR-179. It
> allows you to create your own location provider implementations but
> ships with a GPS-over-Bluetooth backend and also Google Earth input
> (useful for the emulation stage).
>
> I haven't tested it on Android yet (but it's pure J2ME so it should
> work, except perhaps the database piece).
>
> If the android developers would like me to contribute this code to
> Android... I'd be more than happy to do that!
>
>

-- 
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/f2de22c0-cd15-404e-86b3-043f5a8896f3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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

2016-01-27 Thread Julian Bunn
Yes, that looks fine to me ... In case it helps, here is a snippet of what 
I do to check a samplerate is going to work:

minBuffer = AudioRecord
  .getMinBufferSize(rate, config, encoding);
if (minBuffer != AudioRecord.ERROR_BAD_VALUE
  && minBuffer != AudioRecord.ERROR) {
   boolean bGood = true;
   try {
  audio = new AudioRecord(audioSource, rate, config,
encoding, minBuffer);
  int istate = audio.getState();
  if (istate != AudioRecord.STATE_INITIALIZED)
 bGood = false;
   } catch (Exception e) {
  bGood = false;
   }
   audio.release();
   audio = null;
   if (bGood)
  return rate;


On Tuesday, January 26, 2016 at 12:49:46 PM UTC-8, RLScott wrote:
>
> I am calling 
> AudioRecord.getMinBufferSize(44100,AudioFormat.CHANNEL_IN_MONO,AudioFormat.ENCODING_PCM_16BIT)
>  
> and using the returned minAudioRecordBufSize in  
>
>   new AudioRecord(MediaRecorder.AudioSource.MIC,
> 44100,AudioFormat.CHANNEL_IN_MONO,
>AudioFormat.ENCODING_PCM_16BIT, minAudioRecordBufSize);
>
> Is that sizing the buffers correctly?
>
> Thanks for the offer for the enumeration app, but I do not have a failing 
> device at my disposal.  Only a few devices are failing, and they are all 
> owned by my customers.  I can't ask too much of them in the way of 
> debugging help.
>
>
> On Friday, January 15, 2016 at 1:34:15 AM UTC-6, Julian Bunn wrote:
>>
>> Make sure you are sizing the buffers correctly i.e. respecting the 
>> minimum recording buffer size (in bytes) required. If you don't then I 
>> believe the system will drop you down to 8kHz sample rate, which is what 
>> you are seeing (I think?).
>>
>>
>> On Wednesday, December 23, 2015 at 9:52:37 AM UTC-8, Robert Scott wrote:
>>>
>>> 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/d0543519-0ea3-4eb4-9200-1ac60d465cc1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Making emulator use more than 2GB RAM? (Yes, I've allocated 4GB)

2016-01-27 Thread Addzy K
At the start when I installed Android Studio, I allocated 4GB of RAM (have 
8GB). Whenever I run the emulator and check the Task Manager, Emulator uses 
only 2GB (around 1900MB). I have lots of free RAM just sitting there, 
getting wasted. :(


 




The emulator would be faster if it could actually make use of the resources 
it has. I've checked multiple times and it is always around 1900MB.


-- 
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/9bdb1ff7-9181-418a-8d9d-f1c123efaa77%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Android Fingerprint Scanner Help

2016-01-27 Thread Tom Becker
 

Hello all,


I'm working for a company that wants to look into the potential behind the 
fingerprint scanning hardware on Android phones. We've been looking into 
the current API Android has available and it does not have the 
functionality that we're looking for. I'm in search of a phone number that 
I can use to contact somebody from Google directly and discuss the possible 
applications we'd like to explore. I appreciate any input.

-- 
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/b59ab1cb-a129-4a70-bc30-457ac40910a1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Connecting a Bluetooth Controller to an android device

2016-01-27 Thread Anildas H
Hi,

I am a Game developer and working in Game Engines like Unity and Unreal 
Engine for 3 years. I'm now starting with native android developing and 
have minimal knowledge in it. And currently I'm developing an native 
android game playable with a joystick.

My query is that, *Will I be able to connect an external Bluetooth 
Controller/Joystick* (like an Xbox controller or any other Bluetooth 
joystick) to an android device using my application. I know that we can 
connect to any other Bluetooth device (like a phone or a BT Headset) using 
Android APIs.

Any help me on this topic would be highly appreciated. 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/76c52ef5-424f-4b31-8185-522c03629799%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Re: Best practise for DocumentFile? Is it the right approach?

2016-01-27 Thread Anthony Mandra
1. Stop thinking about paths and files.  I know it's hard and seems rather 
pointless (because it is).  There are way better ways they could have done 
this, but they chose...well whatever this nonsense is.  I rewrote over 2000 
lines of code to support SAF.  If you're doubting whether it's really as 
complicated to support as it seems to be, stop doubting; it is, you just 
have to accept that file interaction is like pulling teeth now.
2. DocumentFile has getParentFile BUT it doesn't actually work.  What I did 
was wrap DocumentFile to make it useful (UsefulDocumentFile, clever, right?)
3. I'm not sure what you mean by document id.  A document uri has it's 
AUTHORITY which will tell you which provider will handle it.
4. You would need a reliable getParent, which requires wrapping 
DocumentFile or a similar utility function that slices and dices document 
uri.
5. I'm assuming you mean Parcelable which they are not.

On Saturday, January 17, 2015 at 11:35:04 AM UTC+1, Grunthos wrote:
>
> I have an app that needs to support API 7 through lollipop; until KitKat, 
> it used 'File' objects to talk to the local file system. I had planned to 
> use DocumentFile as a simple solution to my problems. However, I can not 
> see simple ways to do the following:
>
> 1. Save the equivalent of "path and file"; I used to save the last file 
> written (an export or backup) then next time the user performed this 
> operation, attempted to return them to the same directory.
>
> How is this done? In the 'io.File' world, I just save the result of 
> getAbsolutePath(). In the DocumentFile world (or even the DocumentContract 
> world) there does not seem to be an equivalent. How can I return the user 
> to the same location next time?
>
>
> 2. IF I can return to the user to the "same place" next time they try to 
> open/save, how do I allow them to navigate back up the tree? Sure, a file 
> can have parents, but I can not see any calls that show me the parents, 
> which kind of makes remembering locations useless. But failing to remember 
> them is equally useless in large file trees. 
>
>
> 3. If I use the new APIs, I can get document IDs. This is great, but do 
> they encode the provider? Is there a call to say "I have no idea who the 
> provider was, just open this doc please, here is the ID...?". This is 
> related to (2), but also important for using files within the app.
>
>
> 4. io.File has a set of functions relating to temp files. If I move over 
> solely to the new APIs, how can I create a temporary file IN THE SAME 
> PARENT as a given file, so that when the output is complete, I just do a 
> delete/rename (to avoid blowing away the previous file until I know the new 
> file it fully written).
>
>
> 5. I notice that DocumentFile keeps a link to parents internally. Does it 
> support serialization, and if so, do the parents also get serialized?
>
>
> Sorry for so many questions, but every time I try to use the new API I 
> seem to hit roadblocks, and all the samples seem overly simplisitic.
>
>

-- 
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/bab4c6f4-410a-48df-955c-b0668aa610d0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] Android Notification for GCM

2016-01-27 Thread Florian Bock
Hi There,

The specific problem is how to create a proper notification icon for an 
Android App out of a Broadcast Receiver "Receive"-method and keep the 
original intent, so that the user can continue the minimized app by 
clicking on the notification icon.

In my case, the notification icon appears, but - if the app is minimized - 
a new instance of the app is created which crashes because variables are 
not initialized. After the crash, the previous instance shows up. So how 
can I fix this?

Code:

public class Receiver extends BroadcastReceiver  
{
@Override
public void onReceive(Context context, Intent intent) 
{  
  
  //prepare notification
  NotificationCompat.Builder notification_builder_ = new 
NotificationCompat.Builder(context).setSmallIcon(R.drawable.icon_xhdpi_96).setContentTitle("test").setContentText("Notification!");
 

//notification_builder_.setContentIntent(PendingIntent.getActivity(context, 0, 
new Intent(context, 
Activity_Class.class).addFlags(Intent.FLAG_ACTIVITY_NEW_TASK), 0));



notification_builder_.setContentIntent(PendingIntent.getActivity(context, 0, 
new Intent(context, 
Activity_Class.class).addFlags(Intent.FLAG_ACTIVITY_BROUGHT_TO_FRONT), 0));

//show notification
   Notification note = notification_builder_.build(); note.defaults = 
Notification.DEFAULT_ALL; 
   
((NotificationManager)context.getSystemService(Context.NOTIFICATION_SERVICE)).notify(0,
 note);
}
}

Thank you,


On Thursday, January 21, 2016 at 4:30:55 AM UTC+1, TreKing wrote:
>
>
> On Fri, Jan 15, 2016 at 4:29 AM, Florian Bock  > wrote:
>
>> - Actual behavior: The typical "the App has crashed" message appears. 
>> When I close it, my app is resumed at the point where it was minimized. If 
>> I debug, I recognize that a second instance of my app is created where the 
>> required variables are not set and therefore it crashes. Nevertheless, my 
>> old instance is still present and resumed afterwards... How can I fix this? 
>> What is the correct code to create a notification in a Broadcast Receiver 
>> (I am still confused with the context/intent/pending intent things)? 
>
>
> Please post some code illustrating how you're launching your Activity and 
> setting "required variables" in both cases.
>
>
> -
> TreKing  - Chicago 
> transit tracking app for Android-powered devices
>

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/cb3f0d12-393c-4de9-b43a-60984a14a470%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] google play支付问题

2016-01-27 Thread shaodong25288
发布app到google play,如果app中有支付功能是不是必须要用google play的支付,但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/48701a97-403e-4139-9d52-38ea3b60b3bd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] Android Studio Android App

2016-01-27 Thread Marina Cuello
I used  AIDE with the premiun key frequently a few years ago, and only
check it from time to time currently.
It's pretty nice, but it's better if you have a big screen, and a Bluetooth
keyboard or use it on a nice emulator as Genymotion.
It's great to show off with clients if you're freelance or are selling your
stuff, because you  can easily make modifications to your app in the middle
of a meeting.
It's good enough as an alternative IDE if you pay for the Premium version,
but I never used it as the main one.

Marina

On Tue, Jan 26, 2016 at 11:36 PM, Mark Phillips 
wrote:

> Have you looked at AIDE?
> https://play.google.com/store/apps/details?id=com.aide.ui=en. It is a
> Java IDE that runs on Android and can be used to build Android apps on your
> tablet or phone. It has been around for awhile and is actively used (I see
> traffic on the email list), although I am not sure how well it works. And
> it is not Android Studio.
>
> Mark
>
> On Tue, Jan 26, 2016 at 2:12 PM, TreKing  wrote:
>
>>
>> On Mon, Jan 11, 2016 at 8:49 AM, William Henry King <
>> kingiamw...@gmail.com> wrote:
>>
>>> Is there any way I can request that Google's Android team code an
>>> official Android Studio app for the Play Store, so that we android
>>> developers can develop apps on Android itself?
>>>
>>
>>
>> https://code.google.com/p/android/issues/entry?template=Tools%20feature%20request
>>
>>
>>> It would be really wonderful to code Android apps ON Android, even if
>>> the Android Studio app gets released only for Remix OS specifically.
>>>
>>> Or is an Android Studio app even possible?
>>>
>>
>> Anything is possible, but considering ...
>>
>>- that AS is based on Intellij which does not have an Android app
>>- the beefy hardware and system requirements to run AS
>>- the (presumably) small size of the AS dev team
>>- the considerable effort such an undertaking would be
>>- how much work they want and have to do on the official desktop
>>product
>>- how few Android developers are interested in / clamoring for
>>developing Android on Android
>>
>> ... I wouldn't hold my breath.
>>
>> -
>> TreKing  - Chicago
>> transit tracking app for Android-powered devices
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Android Developers" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to android-developers+unsubscr...@googlegroups.com.
>> To post to this group, send email to android-developers@googlegroups.com.
>> Visit this group at https://groups.google.com/group/android-developers.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/android-developers/CANCScgjyaK5zN1zUL5jAC4%2BmL%2B6PH9HmouGqYDZrpUFY%3D5URCQ%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/CAEqej2P3mxs8s54kMGLttH42oVkV0Ozt%2BL1jF%2B1BmeKvau94aA%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/CACaNmX2pbw5dgT8SJ3kY0V1LWvgDpP-ur7ybgRLYsRyPofnmOg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] the code process for get the dumpsys/meminfo

2016-01-27 Thread shenxiaogang
Every one knows that analysis the RAM, use the cmd: dumpsys/meminf, 
but How to realize the dumpsys/meminfo by the code?
who know the code process?

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/fa088e27-e1cd-4c2c-bcae-ebfd2db0d370%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Help debugging Android WebView (libwebviewchromium.so) crashes

2016-01-27 Thread Yehonatan Ginzberg
Hi, 

We receive many crash reports (handled by Google Breakpad) from our 
clients; sample pasted below.
It seems like the root cause is somewhere in Android's Webview since the 
crashed thread contains libwebviewchroium.so module.

We don't know how to debug these issue since:
- we don't know how to reproduce the crash 
- we don't have libwebviewchromium symbols to understand the issue
- we're not sure how/who to contact to report the issue

Has anyone experience similar issues? Do you know how to debug it? How to 
get official support?

All the best,


Thread 0 (crashed)
 0  libc.so + 0x22194
Found by: given as instruction pointer in context
 1  libc.so + 0x13113
 sp = 0xbec41948pc = 0x40139115
Found by: stack scanning
 2  libwebviewchromium.so + 0xfa1621
 sp = 0xbec41954pc = 0x5f35e623
Found by: stack scanning
 3  libc.so + 0x13327
 sp = 0xbec41958pc = 0x40139329
Found by: stack scanning
 4  libc.so + 0x1205d
 sp = 0xbec41960pc = 0x4013805f
Found by: stack scanning
 5  libwebviewchromium.so + 0xfa1621
 sp = 0xbec4196cpc = 0x5f35e623
Found by: stack scanning
 6  libc.so + 0x49ffe
 sp = 0xbec4197cpc = 0x4017
Found by: stack scanning
 7  libc.so + 0x21a4a
 sp = 0xbec41988pc = 0x40147a4c
Found by: stack scanning
 8  libwebviewchromium.so + 0x1a4bcf
 sp = 0xbec41990pc = 0x5e561bd1
Found by: stack scanning
 9  libwebviewchromium.so + 0x1a27d1
 sp = 0xbec41998pc = 0x5e55f7d3
Found by: stack scanning
10  libwebviewchromium.so + 0x1017d8a
 sp = 0xbec419ecpc = 0x5f3d4d8c
Found by: stack scanning
11  libwebviewchromium.so + 0xb4b069
 sp = 0xbec41a10pc = 0x5ef0806b
Found by: stack scanning
12  libwebviewchromium.so + 0x1c1265
 sp = 0xbec41a18pc = 0x5e57e267
Found by: stack scanning
13  libwebviewchromium.so + 0x30a98f
 sp = 0xbec41a38pc = 0x5e6c7991
Found by: stack scanning
14  libwebviewchromium.so + 0xb47f29
 sp = 0xbec41a68pc = 0x5ef04f2b
Found by: stack scanning
15  libwebviewchromium.so + 0xb8b0c7
 sp = 0xbec41a70pc = 0x5ef480c9
Found by: stack scanning
16  libwebviewchromium.so + 0xb89aa7
 sp = 0xbec41a88pc = 0x5ef46aa9
Found by: stack scanning
17  libwebviewchromium.so + 0xb89a6d
 sp = 0xbec41a8cpc = 0x5ef46a6f
Found by: stack scanning
18  libMali.so + 0x2152e
 sp = 0xbec41a90pc = 0x66108530
Found by: stack scanning
19  dalvik-heap (deleted) + 0x597ffe
 sp = 0xbec41ad0pc = 0x42a4
Found by: stack scanning
20  libwebviewchromium.so + 0xb885b7
 sp = 0xbec41ad4pc = 0x5ef455b9
Found by: stack scanning
21  dalvik-heap (deleted) + 0x597ffe
 sp = 0xbec41adcpc = 0x42a4
Found by: stack scanning
22  libMali.so + 0x21ee2
 sp = 0xbec41b00pc = 0x66108ee4
Found by: stack scanning
23  libMali.so + 0x22102
 sp = 0xbec41b18pc = 0x66109104
Found by: stack scanning
24  libMali.so + 0x18d8a
 sp = 0xbec41b20pc = 0x660ffd8c
Found by: stack scanning
25  dalvik-heap (deleted) + 0x597ffe
 sp = 0xbec41b28pc = 0x42a4
Found by: stack scanning
26  dalvik-heap (deleted) + 0x1e97ffe
 sp = 0xbec41b2cpc = 0x4434
Found by: stack scanning
27  libMali.so + 0x41afe
 sp = 0xbec41b50pc = 0x66128b00
Found by: stack scanning
28  libMali.so + 0x1b422
 sp = 0xbec41b90pc = 0x66102424
Found by: stack scanning
29  libMali.so + 0x1910e
 sp = 0xbec41b98pc = 0x66100110
Found by: stack scanning
30  libMali.so + 0x1b422
 sp = 0xbec41bb0pc = 0x66102424
Found by: stack scanning
31  libMali.so + 0x5d312
 sp = 0xbec41bbcpc = 0x66144314
Found by: stack scanning
32  libMali.so + 0xede72
 sp = 0xbec41bc8pc = 0x661d4e74
Found by: stack scanning
33  libMali.so + 0xede72
 sp = 0xbec41bccpc = 0x661d4e74
Found by: stack scanning
34  libMali.so + 0x5e402
 sp = 0xbec41bd0pc = 0x66145404
Found by: stack scanning
35  libMali.so + 0x25e02
 sp = 0xbec41be8pc = 0x6610ce04
Found by: stack scanning
36  libwebviewchromium.so + 0x1366cd6
 sp = 0xbec41bf8pc = 0x5f723cd8
Found by: stack scanning
37  libMali.so + 0xdc786
 sp = 0xbec41c10pc = 0x661c3788
Found by: stack scanning
38  libMali.so + 0xdc786
 sp = 0xbec41c28pc = 0x661c3788
Found by: stack scanning
39  libMali.so + 0xede72
 sp = 0xbec41c2cpc = 0x661d4e74
Found by: stack scanning
40  libutils.so + 0xf877
 sp = 0xbec41c98pc = 0x40190879
Found by: stack scanning
41  libMali.so + 0xdc786
 sp = 0xbec41cf0pc = 0x661c3788
Found by: stack scanning
42  libMali.so + 0xede72
 sp = 0xbec41d0cpc = 0x661d4e74
Found by: stack scanning
43  libhwui.so + 0x1bb5f
 sp = 0xbec41d40pc = 0x40f24b61
Found by: stack scanning
44  libMali.so + 0x40422
 sp = 0xbec41d70pc = 0x66127424
Found by: stack scanning
45