Re: [android-developers] Email Signup - Terms of Service and Privacy Policy

2016-05-29 Thread Henrik
OK, thanks. I guess I'll have to, because there are no guidelines on this 
topic - at least I can't find any. I also use the EU Cookie Consent Policy 
message at launch, however, it's also not black and white if you need it or 
not (EU is not really sure what they want).

On Monday, May 30, 2016 at 6:57:10 AM UTC+2, TreKing wrote:
>
>
> On Sat, May 28, 2016 at 2:53 PM, Henrik  
> wrote:
>
>> I want to implement an email signup form to one of our apps. I wonder if 
>> I need a user consent when they launch the app?
>>
>> Some apps present their Terms of Service and Privacy Policy and the users 
>> needs to accept them if they want to use the app. But I'm not sure if this 
>> is necessary or not.
>>
>
> That's a question for your lawyer.
>
>
> -
> 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/22360ab2-980c-4ad4-beea-f40a3bde173b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] usage rights for images in my games

2016-05-29 Thread TreKing
On Sat, May 28, 2016 at 12:09 PM,  wrote:

> can i use any images(from resalt for"Free to use, share, or modify" ) and
> backgrounds in my games or not and if not can you help my how to search for
> free images to using with out any kind of Legal liability


Consult your lawyer with questions about legalities and liabilities.

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


Re: [android-developers] Email Signup - Terms of Service and Privacy Policy

2016-05-29 Thread TreKing
On Sat, May 28, 2016 at 2:53 PM, Henrik  wrote:

> I want to implement an email signup form to one of our apps. I wonder if I
> need a user consent when they launch the app?
>
> Some apps present their Terms of Service and Privacy Policy and the users
> needs to accept them if they want to use the app. But I'm not sure if this
> is necessary or not.
>

That's a question for your lawyer.

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


[android-developers] Re: clicking an auto link from dataadapter how to set flag new activity

2016-05-29 Thread Rocky Goodrick
I'm searching for a solution to this same problem myself. Did you ever find 
a resolve for this? I'm using a custom base adapter with a convert view 
view holder.  Tried overriding the MovementMethod class onlick as well.

On Tuesday, January 25, 2011 at 1:49:49 PM UTC-5, Byron Penner wrote:
>
> I have a dataadapter with a textview that auto parses a link. Since 
> its context is the dataadapter not the activity I get the flag 
> activity new task error. Anyone know how to set this flag for an auto 
> linked textview from a dataadapter? 
> Thanks, 
> Byron

-- 
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/5a1ad038-aa01-40b7-8ab7-f66c855f3443%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] How to create sub menu in navigation drawer

2016-05-29 Thread Jefri triyanto
i was to tried and look the review about navigation drawer, but i difficulty
to implementation,
could you give me the example ?
im sorry cause im is newbie android programmer ..
thanks

On Sat, May 28, 2016 at 12:06 AM, TreKing  wrote:

>
> On Thu, May 26, 2016 at 9:40 PM, Jefri triyanto 
> wrote:
>
>> i have problem in my programs, i want to add the sub menu in my
>> navigation drawer,
>> but i don't know the source code to creating this.
>> can help me ?
>>
>
> What have you tried?
>
>
> -
> TreKing  - Chicago
> transit tracking app for Android-powered devices
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Android Developers" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/android-developers/tZjZrrW54kc/unsubscribe
> .
> To unsubscribe from this group and all its topics, send an email to
> android-developers+unsubscr...@googlegroups.com.
> To post to this group, send email to android-developers@googlegroups.com.
> Visit this group at https://groups.google.com/group/android-developers.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/android-developers/CANCScggq%2BKp%2B8cjL04%2BfAWJnKSOjKosBGG%3D5wB5JUQJDGP9feQ%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/CAKtTFE37UFbCzwhQK_13yRE28xrnCZKQwhKh4RJ9MG%2B87rEC_g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Re: Unable to execute Bluetooth HDP Demo

2016-05-29 Thread Nasrullah
in the same onHealthChannelStateChange()

i inserted a case checking Connecting - Connected. But it never falls into 
this case. which means its not being connected.
it is only connecting - disconnected.

please help me. thanks

-- 
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/loom.20160529T212452-45%40post.gmane.org.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] goldwasser micali encryption implementation in android studio

2016-05-29 Thread hezaveh
I tried to do encrypted part by myself, it doesn't work. :( I attached it 
for you to look at.

On Sunday, May 29, 2016 at 10:40:49 AM UTC-4, hezaveh wrote:
>
> Hi,
>
> I want an android app, one EditText to enter input. and then a button, by 
> clicking the button it calls encrypt method and then a textview shows the 
> encrypted message. The other button to decrypt the message, calls decrypt 
> method. last textview shows the dencrypted message which is same as the 
> input.
>
> Here is a link that implement RSA encryption (
> https://sites.google.com/site/mobilesecuritylabware/3-data-location-privacy/lab-activity/cryptography/cryptography-mobile-labs/encryption-decryption/2-lab-activity/lab2-rsa-encryption-program-android-studio).
>  
> I want exactly same for goldwasser micali.
>
> Thanks
>
> On Saturday, May 28, 2016 at 7:34:01 PM UTC-4, TreKing wrote:
>>
>>
>> On Fri, May 27, 2016 at 4:17 PM, hezaveh  wrote:
>>
>>> I have a java code of goldwasser-micali encryption (attached), and I 
>>> need your help to implement it in android studio. can anybody help me?
>>>
>>
>> Java code is not something you "implement" in Android Studio. What are 
>> you actually trying to achieve?
>>
>>
>> -
>> 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/a4bfd9b4-6c9d-4d9b-9b2a-28cc492c968f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
package com.example.goldwasser_micali;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;

import java.math.BigInteger;
import java.security.SecureRandom;

public class MainActivity extends AppCompatActivity {

/**
 * SYSTEM PARAMETERS
 */
//Bitsize
private int bitSize;

/**
 * KEYS
 */
//Private key
private BigInteger p, q;
//Public key
private BigInteger x, n;

//Random number generator
public SecureRandom rand;

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);


final Button enButton = (Button) findViewById(R.id.enbutton);
final Button deButton = (Button) findViewById(R.id.debutton);
final EditText input = (EditText) findViewById(R.id.Input);
final EditText Raw = (EditText) findViewById(R.id.raw);
final EditText output = (EditText) findViewById(R.id.OriginText);

enButton.setOnClickListener(new View.OnClickListener() {

public void onClick(View v) {

String j = input.toString();
MainActivity gm = new MainActivity(512);
for (int i = 0; i < j.length(); i++) {
BigInteger c = gm.encrypt(j.charAt(i) == '1');
Raw.setText(c.toString());
}
}
});
}


/**
 * Constructor generating key parameters
 *
 * @param bitSize: size in bits of p and q, this number must be a power of 2, for 1024 security bitSize must be 512.
 */
public  MainActivity(int bitSize) {
this.bitSize = bitSize;
this.rand = new SecureRandom();
generateKeys();
}

/**
 * Key parameters of Benaloh's cryptosystem
 */
public void generateKeys() {
BigInteger one = BigInteger.ONE, two = new BigInteger("2");
p = randomNumber(true, bitSize);
do {
q = randomNumber(true, bitSize);
} while (p.equals(q));
n = p.multiply(q);
do {
x = randomNumber(false, bitSize * 2);
}
while (x.compareTo(n) >= 0 || x.modPow(p.subtract(one).divide(two), p).equals(one) || x.modPow(q.subtract(one).divide(two), q).equals(one));
}

/**
 * BigInteger random number generator
 *
 * @param prime true if the number must be prime, false otherwise
 * @param size: size in bits
 * @return random number with the criteria selected.
 */
private BigInteger randomNumber(boolean prime, int size) {
if (prime)
return BigInteger.probablePrime(size, rand);
BigInteger number = null;
byte bNumber[] = new byte[(int) Math.ceil(size / 8.0)];
  

[android-developers] Screen filter app

2016-05-29 Thread Guillermo Rodriguez
Hi,

Is it possible to create an app that works as a real time screen color or 
position filter? For example to make all the screen look sepia or black and 
white or do ripples or maybe to flip it 90'... but keep the phone operating 
normally?

I mean as a transformation layer just before rendering...


-- 
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/04b25aa0-c86e-439c-9aed-c5b54c26b525%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] goldwasser micali encryption implementation in android studio

2016-05-29 Thread hezaveh
Hi,

I want an android app, one EditText to enter input. and then a button, by 
clicking the button it calls encrypt method and then a textview shows the 
encrypted message. The other button to decrypt the message, calls decrypt 
method. last textview shows the dencrypted message which is same as the 
input.

Here is a link that implement RSA encryption (
https://sites.google.com/site/mobilesecuritylabware/3-data-location-privacy/lab-activity/cryptography/cryptography-mobile-labs/encryption-decryption/2-lab-activity/lab2-rsa-encryption-program-android-studio).
 
I want exactly same for goldwasser micali.

Thanks

On Saturday, May 28, 2016 at 7:34:01 PM UTC-4, TreKing wrote:
>
>
> On Fri, May 27, 2016 at 4:17 PM, hezaveh  > wrote:
>
>> I have a java code of goldwasser-micali encryption (attached), and I need 
>> your help to implement it in android studio. can anybody help me?
>>
>
> Java code is not something you "implement" in Android Studio. What are you 
> actually trying to achieve?
>
>
> -
> 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/5371d48e-9739-4bf3-ae4f-1a6cb55b80b5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Screen filter app

2016-05-29 Thread Guillermo Rodriguez
Hi,

Is it possible to create an app that works as a real time screen color or 
position filter? For example to make all the screen look sepia or black and 
white or do ripples or maybe to flip it 90'... but keep the phone operating 
normally?

I mean as a transformation layer just before rendering...


-- 
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/9e5f7f10-db9d-43c2-a5d0-1625a01ba285%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] I published an app in Google play, why it does not support my cellphone even though it is in the supported devices list?

2016-05-29 Thread Jing Han
Dear all,

It is the first time I make an app. It is published in Google Play. 
But it says my device is not supported. 
However, when I check the supported device list, my cellphone Xiaomi Redmi 
Note 3 is in the list.
Why? 

I can install the app by just cope the apk to my cellphone and run ok. 

Would anyone help me? Thank you so so so much!

Best,
Jing

-- 
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/7c4aeccd-5ff4-4efc-a4d1-fa00dc1f2fd1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.