[android-developers] How to add and use (signature/system level) permission in an android application

2016-02-20 Thread Mohamed Adss
I created an application with android reflection on "android-21" but the 
problem now is adding the permission in the Manifest file as after adding 
the permission manually in the "Manifest.xml", an error received in the 
catlogs while trying to run the application saying that the no permission 
for "*android.permission.READ_PRECISE_PHONE_STATE*". After checking i found 
that this permission's level has been changed from "dangerous" to 
"signature/system" and has a comment "Pending API council approval". is 
there a way to get the permission or even to get reflection for the 
original android Manifest file.

-- 
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/15bb2e25-28d5-43a1-a661-349d7e3734b2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Re: bluetooth: paired bluetooth devices list

2016-02-20 Thread Reaz Murshed Masud
Any answer? I'm searching for the solution of this particular problem too! 
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/f18a985d-fc23-4491-b66c-fb534fa1db4b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] New External Storage API

2016-02-20 Thread Alessandro Rossini
Hi, i'm creating an application that copy some files from internal storage 
and moves it to SD Card, but I don't have access to the External Storage

File theDir = new File("/storage/sdcard1/Test");
if (!theDir.exists()) {
t.setText("Does not exists.. creating..");
theDir.mkdir();
t.setText(theDir.toString());
} else {
t.setText("Exists");
}

Inserisci qui il codice...

This code is to create a new folder on SD

Everytime i run the app, he says "Does not exists.. creating..", but 
"theDir.mkdir();" is not working, maybe for permissions?
I





I have this two permissions in AndroidManifest.xml

Sorry for my bad english..

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/8d58bdf0-55df-4b5f-a48e-2b8eca6f9026%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Business model for Ed-Tech aps

2016-02-20 Thread Amir Lis


To whom it may concern, 

 

We would highly appreciate having your opinion, from your experience, 
regarding an important issues we have.

 

We are considering a new venture in the field of social education 
specializing in the section of learning groups.

The idea is a combination of education and social app.

 

We are considering a business model which involves monetization throw one 
or more of the following ways:

1. Selling private lessons on line.

2. Advertising.

3. Offer coupons.

4. Selling aggregative data analyzes insights from our platform.

 

We would like to have the most recent information regarding the policy 
using this kind of business model in App stores.

Thanks,

 

Nir and Amir 

 

-- 
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/3a5b9728-e03c-4e84-97f8-79eae2c53c08%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Multiple Radiogroups and Radiobuttons

2016-02-20 Thread johann
Hi 

This is my first android development project.  I am now stuck with a 
problem for several days and battle to get information on this.

I am developing an app with fragments (Listview and several detail view 
pages) Each detail fragment page have have a set of questions with 3 
radiobuttons to each question which is palced in a radiogroup per question. 
I have added a onClicklistener and switch to display the info clicked.  
This page have 8 questions with 24 radiobuttons and 8 radiogroups.

Each button click will also give a value to the question(1 or 0 or -1).  
This values will be calculated to give a compliance % to all the 
questions.  

My problem is that I don't get anything back from the Toast on my xml page 
when the radiobutton is click which tell me the onclicklistener is not 
working.  Can anyone please help me get this sorted out? 

Here is my coding:
Layout1.java

public class Layout1 extends Fragment {
RadioGroup rgQ1, rgQ2, rgQ3, rgQ4, rgQ5, rgQ6, rgQ7, rgQ8;
RadioButton q1t, q1f, q1na, q2t, q2f, q2na, q3t, q3f, q3na, q4t, q4f, q4na, 
q5t, q5f, q5na, q6t, q6f, q6na, q7t, q7f, q7na, q8t, q8f, q8na;
EditText c1, c2, c3, c4, c5, c6, c7, c8;
Button cnt1;
private double value = 0;
private int questions;

@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
 Bundle savedInstanceState) {
// TODO Auto-generated method stub
final View V = inflater.inflate(R.layout.layout1, container, false);
return V;
}

public void onActivityCreated(Bundle savedInstanceState) {
super.onActivityCreated(savedInstanceState);

RadioButton q1t = (RadioButton) getActivity().findViewById(R.id.q1t);
RadioButton q1f = (RadioButton) getActivity().findViewById(R.id.q1f);
RadioButton q1na = (RadioButton) getActivity().findViewById(R.id.q1na);
RadioButton q2t = (RadioButton) getActivity().findViewById(R.id.q2t);
RadioButton q2f = (RadioButton) getActivity().findViewById(R.id.q2f);
RadioButton q2na = (RadioButton) getActivity().findViewById(R.id.q2na);
//then do other buttons ...

q1t.setOnClickListener(next_Listener);
q1f.setOnClickListener(next_Listener);
q1na.setOnClickListener(next_Listener);
q2t.setOnClickListener(next_Listener);
q2f.setOnClickListener(next_Listener);
q2na.setOnClickListener(next_Listener);
//then do other buttons ...

}
private View.OnClickListener next_Listener = new View.OnClickListener() {
public void onClick(View v) {
switch (questions) {
case R.id.rgQ1:
if (q1t.isChecked() == true) {
value = 1;
Toast.makeText(getActivity(), "Compliant", 
Toast.LENGTH_SHORT).show();
} else if (q1f.isChecked() == true) {
value = 0;
Toast.makeText(getActivity(), "Not Compliant", 
Toast.LENGTH_SHORT).show();
} else {
q1na.isChecked();
value = -1;
Toast.makeText(getActivity(), "Not Applicable", 
Toast.LENGTH_SHORT).show();
}
break;
case R.id.rgQ2:
if (q2t.isChecked() == true) {
value = 1;
Toast.makeText(getActivity(), "Compliant", 
Toast.LENGTH_SHORT).show();
} else if (q2f.isChecked() == true) {
value = 0;
Toast.makeText(getActivity(), "Not Compliant", 
Toast.LENGTH_SHORT).show();
} else {
q2na.isChecked();
value = -1;
Toast.makeText(getActivity(), "Not Applicable", 
Toast.LENGTH_SHORT).show();
}
break;
}
}

};
}


and layout1.xml

http://schemas.android.com/apk/res/android;
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal">











































































-- 
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 

[android-developers] settings

2016-02-20 Thread Erich Šišolák
 HI, I Miss setting from my samsung galaxy s4, easy to use: led setting, 
contactless view quick links, illuminate the buttons below, it was before that 
in my opinion better than now...

-- 
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/091452d3-fb2f-435d-beb5-19e11530d63c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] VT-X or Virtualization Technology

2016-02-20 Thread skullkrak9
In order to be able to run test of my application I need to turn this on in 
my bios but for some reason I can't do that I wonder if there is any 
solutions or alternative ???!?!?

-- 
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/8458bc7f-0819-42b1-8379-dd3b83d71fd2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] error on lollipop, in kitkat works

2016-02-20 Thread Christian Cortese


Il giorno sabato 20 febbraio 2016 11:49:22 UTC+1, Christian Cortese ha 
scritto:
>
>
>
> Il giorno giovedì 18 febbraio 2016 23:49:47 UTC+1, TreKing ha scritto:
>>
>>
>> On Thu, Feb 18, 2016 at 6:10 AM, Christian Cortese <
>> christian@gmail.com> wrote:
>>
>>> but i have a problem...on kitkat it works well, in lollipop i can't see 
>>> the menu toolbar and when i click on a contact the app crashes with a 
>>> nullpointerexception
>>
>>
>> Sounds like the action bar is disabled on Lollipop. Check your app theme. 
>> You might have something in values-21/styles.xml that disables the default 
>> action bar in order to use a Toolbar instead.
>>
>>
>> -
>> TreKing  - Chicago 
>> transit tracking app for Android-powered devices
>>
>  
>
>
> how can i get the code of styles.xml in values-21??  
> in android studio i have only values folder the values 21 folder dosen't 
> exists
>

-- 
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/72151ad2-e66d-41ae-894a-f4b24f356a97%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] error on lollipop, in kitkat works

2016-02-20 Thread Christian Cortese


Il giorno giovedì 18 febbraio 2016 23:49:47 UTC+1, TreKing ha scritto:
>
>
> On Thu, Feb 18, 2016 at 6:10 AM, Christian Cortese <
> christian@gmail.com > wrote:
>
>> but i have a problem...on kitkat it works well, in lollipop i can't see 
>> the menu toolbar and when i click on a contact the app crashes with a 
>> nullpointerexception
>
>
> Sounds like the action bar is disabled on Lollipop. Check your app theme. 
> You might have something in values-21/styles.xml that disables the default 
> action bar in order to use a Toolbar instead.
>
>
> -
> TreKing  - Chicago 
> transit tracking app for Android-powered devices
>
 


how can i get the code of styles.xml in values-21??  
in android studio i have only values folder

-- 
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/1522b16e-46f4-4166-ac60-eeba1d10df7f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.