Re: [android-developers] where am I wrong?

2016-06-12 Thread sardar khan
what error you are getting the code seems to be fine but call the invia
method from oncreate and why you pass view as method argument.

On Sun, Jun 12, 2016 at 8:14 PM, Simon Usardi  wrote:

> package com.example.non.inizializzareunaltraactivity;
>
> import android.content.Intent;
>
> import android.support.v7.app.AppCompatActivity;
> import android.os.Bundle;
> import android.view.View;
> import android.widget.EditText;
>
> public class MainActivity extends AppCompatActivity {
> public  final static String messaggioExtra = 
> "com.example.non.inizializzareunaltraactivity.MESSAGE";
>
> @Override
> protected void onCreate(Bundle savedInstanceState) {
> super.onCreate(savedInstanceState);
> setContentView(R.layout.activity_main);
>
> }
> public void invia(View view){
>
> Intent Portale = new Intent(this, PaginaMessaggio.class);
>
> EditText nascoasto = (EditText)findViewById(R.id.Hint);
> String y = nascoasto.getText().toString();
>
> Portale.putExtra(messaggioExtra, y);
> startActivity(Portale);
> }
> }
>
> --
> 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/baf053d4-dd01-4ef0-86c5-c001c35323ac%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/CABHzXAS4-A72r8xGpmrkxAJ%3DAi4-rw%2BH9p_h_BYZYyX6mL3DWA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Just a simple settings App

2016-06-12 Thread Camille Block
Hi everyone,

   I am looking to build a very simple settings app, with 3 'pages' (ie 
Settings 1, Settings 2, Settings 3) that connects to mysql. I do not know 
Java, and am kicking myself trying to figure out even the most simple 
items! Does anyone know of a simple interface that I can use, or a project 
template that I can just edit the fields for? Any help would be extremely 
appreciated! Cheers,

- Camille

-- 
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/612d2145-9a16-4e9f-94de-721e3d2253f6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Intent any type confusion from Send Binary Content of android docs

2016-06-12 Thread keithlanding1992
I found a note in the Send Binary Content 
,says:
 
**You can use a MIME type of "\*/*", but this will only match activities 
that are able to handle generic data streams.** 

Does this means i will get less match result if I use \*/* instead of a 
specific one like text/plain ? But I have write codes which turns out not. 
here is my code:

private void textIntent() {
Intent sendIntent = new Intent();
sendIntent.setAction(Intent.ACTION_SEND);
sendIntent.setType("*/*");
// sendIntent.setType("text/plain");
Uri uriToImage = 
Uri.parse("https://developer.android.com/training/sharing/send.html;);
sendIntent.putExtra(Intent.EXTRA_STREAM, uriToImage);

PackageManager packageManager = getPackageManager();
List activities = 
packageManager.queryIntentActivities(sendIntent,
PackageManager.GET_RESOLVED_FILTER);
Log.i("Log", "size: " + activities.size());
for (ResolveInfo info : activities) {
Log.i("Log", "info: " + info.toString());
IntentFilter filter = info.filter;
if (filter == null) {
Log.i("Log", "filter is null");
continue;
}
printIterator("action", filter.actionsIterator());
printIterator("category", filter.categoriesIterator());
printIterator("type", filter.typesIterator());
printIterator("schemes", filter.schemesIterator());
}

Intent chooser = Intent.createChooser(sendIntent, "title");
startActivity(chooser);
}

private void printIterator(String type, Iterator it) {
if (it == null) {
Log.i("Log", "no " + type);
return;
}
while (it.hasNext()) {
Log.i("Log", type + " : " + it.next());
}
}

So my question is :  What does  **You can use a MIME type of "\*/*", but 
this will only match activities that are able to handle generic data 
streams.**  means ?

-- 
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/e34fd191-df3f-4a5e-adbb-0c6f07b9df10%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Lego Android App

2016-06-12 Thread Karim Maher
Hello , i have implemented an Android App that moves Lego Robot via 
Bluetooth (Forward,Backward,Left,Right) by using Gradle, Gluon and Java FX. 
When i am pressing the Forward Button on my Android App ,i see an error "VM 
exiting with result code 1, cleanup skipped" ,any suggestions? 

-- 
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/e2414eb4-32a7-452d-848a-e42263eb4c3b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Re: Zipalign does not work!

2016-06-12 Thread Jim Roal

I have battled this too.  I get random zipalign errors.  Clean and rebuild 
and get different errors.  The sometimes I can get it zipaligned, go to 
upload the Play Store, now I get signing errors.  I know the signed app 
works because I sideloaded it over a previous signed installation with no 
issues.  I play around with small source edits, rerun everything, and once 
in a while one will actually upload OK.  I have to manually zipalign every 
time though.  What is up with 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/9468f90f-7007-4210-85d3-e1968ab426d9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Open browser in Android Captive Portal after sign in

2016-06-12 Thread Antonio Cesar
I am making a captive portal for Android:

   1. the user connect to Wi-Fi
   2. the captive portal open with informations for login (302 of 
   /generate_204)
   3. I post the informations and release the user to use internet (204 of 
   /generate_204)
   4. *THE PROBLEM:* the captive portal close and the browser not open

My purpose is - after the post the informations - release the user, close 
captive portal and open the browser.

How I 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/2733e1b2-6042-40ec-9f1f-a0ec5421411e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Re: Zipalign does not work!

2016-06-12 Thread Gilles Romani


Le vendredi 10 juin 2016 22:38:30 UTC+2, exa...@gmail.com a écrit :
>
> As GregF just wrote, manual signing and aligning. I found easier way - 
> just align from commandline.. TWICE! After aligning two times I was able to 
> upload my apk
>
> You save my life ! Thank you !
>

-- 
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/3c8d7d35-bcd0-49e9-9da5-b1f096b4285f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Android Studio memory monitor shows memory increasing for no obvious reason

2016-06-12 Thread Momchil Ivanov


I was profiling the memory of my Android app via the Android Studio memory 
monitor (no crashes, just checking) and noticed that it keeps growing until 
about 25MB until GC collection reduces it to 16MB, and then the same things 
happens again and again (see image link below).

I decided to remove absolutely all method calls, and leave out the main 
activity (the one and only of my app) completely empty (i.e. onPause, 
onResume have no logic at all), and my app is just a blank white screen, 
and yet I am seeing this heap memory constant growth for some weird reason. 
Does anybody have an idea what's going on, or how can I further investigate 
this?

Android memory usage 


As I mentioned above, I have cleared everything, deleted all files and 
resources I had. Currently my app looks like this:

build.gradle:

apply plugin: 'com.android.application'

android {
compileSdkVersion 23
buildToolsVersion "23.0.2"

defaultConfig {
applicationId "com.wow.memorytest"
minSdkVersion 16
targetSdkVersion 23
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 
'proguard-rules.pro'
}
}
}

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.4.0'
compile 'com.android.support:support-v4:23.4.0'
}

My AndroidManifest.xml:


http://schemas.android.com/apk/res/android;
package="com.wow.memorytest">












MainActivity.java

package com.wow.memorytest;


import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;


public class MainActivity extends AppCompatActivity {

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


And this still produces those constant allocation at about every 5 seconds. 
I have no idea how to further investigate this, I quickly compared two heap 
dumps but, I don't really see any obvious problem. Please let me know if 
you could help, or you'd need more information to help answer this question.


Thanks a lot,

Momchil

-- 
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/bf363ca8-3904-420c-b049-27537ef29ec1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] where am I wrong?

2016-06-12 Thread Simon Usardi


package com.example.non.inizializzareunaltraactivity;

import android.content.Intent;

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

public class MainActivity extends AppCompatActivity {
public  final static String messaggioExtra = 
"com.example.non.inizializzareunaltraactivity.MESSAGE";

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

}
public void invia(View view){

Intent Portale = new Intent(this, PaginaMessaggio.class);

EditText nascoasto = (EditText)findViewById(R.id.Hint);
String y = nascoasto.getText().toString();

Portale.putExtra(messaggioExtra, y);
startActivity(Portale);
}
}

-- 
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/baf053d4-dd01-4ef0-86c5-c001c35323ac%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Re: Give a review as a beta tester on production version

2016-06-12 Thread Forky
Hey Mathias,

I'm seeing the same error. Did you hear back from google regarding this at 
all? Or did you just have to remove all your testers from your beta list in 
order to allow them to write reviews?

Thanks,

Chris



On Thursday, 2 June 2016 13:47:29 UTC+1, mathia...@stootie.com wrote:
>
> Hi,
>
> I've my app in an open beta testing program.
> The app is currently only on production. (No beta test version running)
>
> Testers are facing a problem when they want to provide a review, on 
> current production version :
>
> The following message in toast occurs :
> "Erreur lors de récupération des informations depuis le serveur 
> ([RPC:S-9:AEC-9 B5NM-F2HJ-SWWBQ]).]"
> Which mean : "Error to retrieve data from server."
>
> After remove one of the accounts from besta testing program, this 
> particular beta tester was able to post his review.
>
> I know beta testers cannot provide public review about the beta version.
>
> But for the production version, i think this should be possible and i do 
> not see in the documentation any point about this case.
>
> Do you already meet this error?
>
> Thanks in Advance,
> Mathias
>

-- 
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/f0f2543f-f4fe-4baf-8527-5ca9a8b24fda%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] "Your SDK location contains non-ASCII characters"

2016-06-12 Thread 260
Any way to go around that? And I don't mean by changing the location where 
I keep the SDK (too many changes to the toolchain), or by keeping two 
separate copies of the SDK.
The SDK is in default location (windows 7, %LOCALAPPDATA%/Android/sdk), but 
my windows user name contains non-ascii characters.

For now I might just keep using eclipse, but google says:

"*The Eclipse ADT plugin is no longer supported per our announcement 
.*
 Android 
Studio  is now the 
official IDE for Android, so you should migrate your projects to Android 
Studio as soon as possible. For more information on transitioning to 
Android Studio, see Migrate to Android Studio from Eclipse 
."

-- 
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/1034bd62-c8c3-425b-aa87-0fed4b59333d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.