• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

app development

I should mention I also have a main2activity.java file like this
[
package com.cancunsteve.aboutcancunsteve;

import android.os.Bundle;
import android.view.Menu;

import android.support.design.widget.Snackbar;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
import android.view.View;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View.OnClickListener;
import android.widget.Button;

public class Main2Activity extends AppCompatActivity {

@override
protected void onCreate(Bundle savedInstanceState) {
onCreate(savedInstanceState);
setContentView(R.layout.activity_main2);



getSupportActionBar().setDisplayHomeAsUpEnabled(true);
}

}]
this is not sufficient for defining Main2Activity? It should be in main_activity.java as well? thanks
 
took your advise and modified my java file mainactivity.java with newactivity2 class
here is the code
[
package com.cancunsteve.aboutcancunsteve;

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



public class MainActivity extends AppCompatActivity {
Button button;

@override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
// Get the view from activity_main.xml
setContentView(R.layout.activity_main);

// Locate the button in activity_main.xml
button = (Button) findViewById(R.id.MyButton);

// Capture button clicks
button.setOnClickListener(new OnClickListener() {
public void onClick(View arg0) {

// Start NewActivity.class
Intent myIntent = new Intent(MainActivity.this,
NewActivity2.class);
startActivity(myIntent);
}
});
}

@override
public boolean onCreateOptionsMenu(Menu menu) {
getMenuInflater().inflate(R.menu.activity_main, menu);
return true;
}
}

public class NewActivity2 extends AppCompatActivity {
Button button;

@override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
// Get the view from activity_main2.xml
setContentView(R.layout.activity_main2);

Intent myIntent = new Intent(MainActivity.this,
NewActivity2.class);
startActivity(myIntent);
}
});


@override
public boolean onCreateOptionsMenu(Menu menu) {
getMenuInflater().inflate(R.menu.activity_main, menu);
return true;
}
]
the error now is error class, enum expected
 
Compiler isn't going to be happy about you declaring two public classes in the same file.
OP, please use code tags to format your code. Thank you.
 
yes going through the code I also noticed the braces and removed them. I also fixed other errors. Each time I used the class NewActivity2 it was a mistake and should have been Main2Activity. I repaired the manifest and mainactivity.java in consequence.
the error my compiler gives now is class main2activity is public should be declared in a file named Main2Activity.
which I don't understand as I've done that which you may see it in the two files I will anex below using code tags as you suggest.
the second error is symbol variable activity_main not found
the MainActivity.java file
Code:
public class MainActivity extends AppCompatActivity {
    Button button;

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        // Get the view from activity_main.xml
        setContentView(R.layout.activity_main);

        // Locate the button in activity_main.xml
        button = (Button) findViewById(R.id.MyButton);

        // Capture button clicks
        button.setOnClickListener(new OnClickListener() {
            public void onClick(View arg0) {

                // Start NewActivity.class
                Intent myIntent = new Intent(MainActivity.this,
                        Main2Activity.class);
                startActivity(myIntent);
            }
        });
    }

    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        getMenuInflater().inflate(R.menu.activity_main, menu);
        return true;
    }
}

public class Main2Activity extends AppCompatActivity {
    Button button;

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        // Get the view from activity_main2.xml
        setContentView(R.layout.activity_main2);

                Intent myIntent = new Intent(MainActivity.this,
                        Main2Activity.class);
                startActivity(myIntent);
            }
   
   

    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        getMenuInflater().inflate(R.menu.activity_main, menu);
        return true;
    }
}

now the file Main2Activity.java
Code:
package com.cancunsteve.aboutcancunsteve;

import android.os.Bundle;
import android.view.Menu;

import android.support.design.widget.Snackbar;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
import android.view.View;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View.OnClickListener;
import android.widget.Button;

public class Main2Activity extends AppCompatActivity {

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

       
        getSupportActionBar().setDisplayHomeAsUpEnabled(true);
    }

}

Thanks so much for taking time to help me. When this is over please allow me to send something to you to show appreciation please.
I see no way around having two public classes?
 
you are right. now I recall from a Java book. I changed by MainActivity.java file so instead of public class for Main2Activity it now reads class.
should it be subclass? not sure.
get the error duplicate class in package com.cancunsteve.aboutcancunsteve; in Main2Activity
in my java file Main2Activity.java I do have public class Main2Activity extends AppCompatActivity
 
it helped. did that. now just one error: cannot fund symbol variable activity_main
think it is referring to this
Code:
@Override
    public boolean onCreateOptionsMenu(Menu menu) {
        getMenuInflater().inflate(R.menu.activity_main, menu);
        return true;
 
This code is refer to res --> menu.
Code:
 getMenuInflater().inflate(R.menu.activity_main, menu);

Check do you have activity_main ?
 
I have an activity_main.xml file. but my app has no options menu items. here is my file
Code:
<?xml version="1.0" encoding="UTF-8"?>

-<android.support.design.widget.CoordinatorLayout tools:context="com.cancunsteve.aboutcancunsteve.MainActivity" android:fitsSystemWindows="true" android:layout_height="match_parent" android:layout_width="match_parent" xmlns:tools="http://schemas.android.com/tools" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:android="http://schemas.android.com/apk/res/android">


-<android.support.design.widget.AppBarLayout android:layout_height="wrap_content" android:layout_width="match_parent" android:theme="@style/AppTheme.AppBarOverlay">

<android.support.v7.widget.Toolbar android:layout_height="?attr/actionBarSize" android:layout_width="match_parent" app:popupTheme="@style/AppTheme.PopupOverlay" android:background="?attr/colorPrimary" android:id="@+id/toolbar"/>

</android.support.design.widget.AppBarLayout>

<include layout="@layout/content_main"/>

<ToggleButton android:layout_height="29dp" android:layout_width="wrap_content" android:background="#a5f3f1" android:id="@+id/toggleButton2" android:checked="false" android:textOff="touch for free financing" android:textOn="cancunsteve interest free financing; see website" android:layout_marginLeft="150dp" android:layout_marginTop="498dp" android:layout_toEndOf="@+id/textView" android:layout_toRightOf="@+id/textView" android:layout_below="@+id/textView"/>

<ToggleButton android:layout_height="29dp" android:layout_width="wrap_content" android:background="#a5f3f1" android:id="@+id/toggleButton" android:checked="false" android:textOff="touch me click me" android:textOn="cancunsteve.com has a frequent renters program points never expire" android:layout_marginLeft="10dp" android:layout_marginTop="498dp" android:layout_toEndOf="@+id/textView" android:layout_toRightOf="@+id/textView" android:layout_below="@+id/textView"/>

<ToggleButton android:layout_height="29dp" android:layout_width="wrap_content" android:background="#a5f3f1" android:id="@+id/toggleButton3" android:checked="false" android:textOff="First printing press North America" android:textOn="Mexico City 1539 and we have YOUR hotel there" android:layout_marginLeft="10dp" android:layout_marginTop="530dp" android:layout_toEndOf="@+id/textView" android:layout_toRightOf="@+id/textView" android:layout_below="@+id/textView"/>

<Button android:layout_height="29dp" android:layout_width="wrap_content" android:background="#a5fef1" android:id="@+id/MyButton" android:layout_marginLeft="290dp" android:layout_marginTop="530dp" android:layout_toEndOf="@+id/textView" android:layout_toRightOf="@+id/toggleButton3" android:layout_below="@+id/textView" android:text="See More" android:layout_centerInParent="true"/>

</android.support.design.widget.CoordinatorLayout>
 
activity_main.xml is for your layout, they are totally different things. The menu is used for action bar icon.
 
As I have no action bar nor menu, rather than create a file under res/menu, containing your options menu items, can I just remove
Code:
@Override
    public boolean onCreateOptionsMenu(Menu menu) {
        getMenuInflater().inflate(R.menu.activity_main, menu);
        return true;

I believe that segment may be a problem. Got it out of an old book on Java.
 
did it. now I was able to compile.
my next step is to add an image to the second activity. I've done this before.
your advice helped me on that unnecessary code in the java file.
now a problem adding an image. the image called monument1.jpg is in my mipmap directory
here is my content_main2.xml file
Code:
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:paddingBottom="@dimen/activity_vertical_margin"
    android:paddingLeft="@dimen/activity_horizontal_margin"
    android:paddingRight="@dimen/activity_horizontal_margin"
    android:paddingTop="@dimen/activity_vertical_margin"
    app:layout_behavior="@string/appbar_scrolling_view_behavior"
    tools:context="com.cancunsteve.aboutcancunsteve.Main2Activity"
    tools:showIn="@layout/activity_main2">

    <EditText
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:id="@+id/editText6"
        android:layout_alignParentTop="true"
        android:layout_alignParentStart="true"
        android:layout_marginStart="34dp"
        android:layout_marginTop="79dp"
        android:text="look at the photo below. where do you believe I took this photo?" />


<ImageView android:id="@+id/imageView3"
        android:layout_column="1"
        android:background="@mipmap/monument1.jpg"
        android:contentDescription='android:ContentDescription="@string/desc"'
        tools:ignore="HardcodedText"
        android:layout_width="290dp"
        android:layout_height="250dp" />
</RelativeLayout>

can't see why I get the message cannot resolve resource @Mipmap/monument1.jpg
all my images are in the mipmap-xxxhdpi directory
 
took out the image to test the app. made a signed app and tried it out on my cel
the only thing in the activity_main2.xml which is my new activity file is a toggle button.
the thing is when I clicked on the button in activity_main.xml to load the second activity, the app crashed.
 
Ok, so do you know how to investigate application crashes? I'll start you off here - the first thing you should be doing is looking at the stack trace, which is shown in your Logcat view.
 
LV426 is right

Steven, you should learn how to read stack trace. Without stack trace, we can't help.
 
here's the output
Code:
-- Merging decision tree log ---
manifest
ADDED from C:\Users\Steve\AboutCancunSteve\app\src\main\AndroidManifest.xml:2:1-36:12
    package
        ADDED from C:\Users\Steve\AboutCancunSteve\app\src\main\AndroidManifest.xml:3:5-47
        INJECTED from C:\Users\Steve\AboutCancunSteve\app\src\main\AndroidManifest.xml
        INJECTED from C:\Users\Steve\AboutCancunSteve\app\src\main\AndroidManifest.xml
    android:versionName
        INJECTED from C:\Users\Steve\AboutCancunSteve\app\src\main\AndroidManifest.xml
        INJECTED from C:\Users\Steve\AboutCancunSteve\app\src\main\AndroidManifest.xml
    xmlns:android
        ADDED from C:\Users\Steve\AboutCancunSteve\app\src\main\AndroidManifest.xml:2:11-69
    android:versionCode
        INJECTED from C:\Users\Steve\AboutCancunSteve\app\src\main\AndroidManifest.xml
        INJECTED from C:\Users\Steve\AboutCancunSteve\app\src\main\AndroidManifest.xml
    android:installLocation
        ADDED from C:\Users\Steve\AboutCancunSteve\app\src\main\AndroidManifest.xml:4:5-45
uses-sdk
ADDED from C:\Users\Steve\AboutCancunSteve\app\src\main\AndroidManifest.xml:6:5-44
MERGED from [com.android.support:appcompat-v7:23.4.0] C:\Users\Steve\AboutCancunSteve\app\build\intermediates\exploded-aar\com.android.support\appcompat-v7\23.4.0\AndroidManifest.xml:21:5-23:78
MERGED from [com.android.support:animated-vector-drawable:23.4.0] C:\Users\Steve\AboutCancunSteve\app\build\intermediates\exploded-aar\com.android.support\animated-vector-drawable\23.4.0\AndroidManifest.xml:5:5-44
MERGED from [com.android.support:support-vector-drawable:23.4.0] C:\Users\Steve\AboutCancunSteve\app\build\intermediates\exploded-aar\com.android.support\support-vector-drawable\23.4.0\AndroidManifest.xml:5:5-43
MERGED from [com.android.support:support-v4:23.4.0] C:\Users\Steve\AboutCancunSteve\app\build\intermediates\exploded-aar\com.android.support\support-v4\23.4.0\AndroidManifest.xml:20:5-43
MERGED from [com.android.support:support-v4:23.4.0] C:\Users\Steve\AboutCancunSteve\app\build\intermediates\exploded-aar\com.android.support\support-v4\23.4.0\AndroidManifest.xml:20:5-43
MERGED from [com.android.support:support-vector-drawable:23.4.0] C:\Users\Steve\AboutCancunSteve\app\build\intermediates\exploded-aar\com.android.support\support-vector-drawable\23.4.0\AndroidManifest.xml:5:5-43
MERGED from [com.android.support:support-v4:23.4.0] C:\Users\Steve\AboutCancunSteve\app\build\intermediates\exploded-aar\com.android.support\support-v4\23.4.0\AndroidManifest.xml:20:5-43
MERGED from [com.android.support:design:23.4.0] C:\Users\Steve\AboutCancunSteve\app\build\intermediates\exploded-aar\com.android.support\design\23.4.0\AndroidManifest.xml:20:5-43
MERGED from [com.android.support:recyclerview-v7:23.4.0] C:\Users\Steve\AboutCancunSteve\app\build\intermediates\exploded-aar\com.android.support\recyclerview-v7\23.4.0\AndroidManifest.xml:20:5-43
MERGED from [com.android.support:support-v4:23.4.0] C:\Users\Steve\AboutCancunSteve\app\build\intermediates\exploded-aar\com.android.support\support-v4\23.4.0\AndroidManifest.xml:20:5-43
MERGED from [com.android.support:appcompat-v7:23.4.0] C:\Users\Steve\AboutCancunSteve\app\build\intermediates\exploded-aar\com.android.support\appcompat-v7\23.4.0\AndroidManifest.xml:21:5-23:78
MERGED from [com.android.support:animated-vector-drawable:23.4.0] C:\Users\Steve\AboutCancunSteve\app\build\intermediates\exploded-aar\com.android.support\animated-vector-drawable\23.4.0\AndroidManifest.xml:5:5-44
MERGED from [com.android.support:support-vector-drawable:23.4.0] C:\Users\Steve\AboutCancunSteve\app\build\intermediates\exploded-aar\com.android.support\support-vector-drawable\23.4.0\AndroidManifest.xml:5:5-43
MERGED from [com.android.support:support-v4:23.4.0] C:\Users\Steve\AboutCancunSteve\app\build\intermediates\exploded-aar\com.android.support\support-v4\23.4.0\AndroidManifest.xml:20:5-43
MERGED from [com.android.support:support-v4:23.4.0] C:\Users\Steve\AboutCancunSteve\app\build\intermediates\exploded-aar\com.android.support\support-v4\23.4.0\AndroidManifest.xml:20:5-43
MERGED from [com.android.support:support-vector-drawable:23.4.0] C:\Users\Steve\AboutCancunSteve\app\build\intermediates\exploded-aar\com.android.support\support-vector-drawable\23.4.0\AndroidManifest.xml:5:5-43
MERGED from [com.android.support:support-v4:23.4.0] C:\Users\Steve\AboutCancunSteve\app\build\intermediates\exploded-aar\com.android.support\support-v4\23.4.0\AndroidManifest.xml:20:5-43
MERGED from [com.android.support:support-v4:23.4.0] C:\Users\Steve\AboutCancunSteve\app\build\intermediates\exploded-aar\com.android.support\support-v4\23.4.0\AndroidManifest.xml:20:5-43
    tools:overrideLibrary
        ADDED from [com.android.support:appcompat-v7:23.4.0] C:\Users\Steve\AboutCancunSteve\app\build\intermediates\exploded-aar\com.android.support\appcompat-v7\23.4.0\AndroidManifest.xml:23:9-75
    android:targetSdkVersion
        INJECTED from C:\Users\Steve\AboutCancunSteve\app\src\main\AndroidManifest.xml
        INJECTED from C:\Users\Steve\AboutCancunSteve\app\src\main\AndroidManifest.xml
    android:minSdkVersion
        ADDED from C:\Users\Steve\AboutCancunSteve\app\src\main\AndroidManifest.xml:6:15-41
        INJECTED from C:\Users\Steve\AboutCancunSteve\app\src\main\AndroidManifest.xml
        INJECTED from C:\Users\Steve\AboutCancunSteve\app\src\main\AndroidManifest.xml
application
ADDED from C:\Users\Steve\AboutCancunSteve\app\src\main\AndroidManifest.xml:9:5-34:19
MERGED from [com.android.support:appcompat-v7:23.4.0] C:\Users\Steve\AboutCancunSteve\app\build\intermediates\exploded-aar\com.android.support\appcompat-v7\23.4.0\AndroidManifest.xml:25:5-20
MERGED from [com.android.support:animated-vector-drawable:23.4.0] C:\Users\Steve\AboutCancunSteve\app\build\intermediates\exploded-aar\com.android.support\animated-vector-drawable\23.4.0\AndroidManifest.xml:7:5-20
MERGED from [com.android.support:support-vector-drawable:23.4.0] C:\Users\Steve\AboutCancunSteve\app\build\intermediates\exploded-aar\com.android.support\support-vector-drawable\23.4.0\AndroidManifest.xml:7:5-20
MERGED from [com.android.support:support-v4:23.4.0] C:\Users\Steve\AboutCancunSteve\app\build\intermediates\exploded-aar\com.android.support\support-v4\23.4.0\AndroidManifest.xml:22:5-20
MERGED from [com.android.support:support-v4:23.4.0] C:\Users\Steve\AboutCancunSteve\app\build\intermediates\exploded-aar\com.android.support\support-v4\23.4.0\AndroidManifest.xml:22:5-20
MERGED from [com.android.support:support-vector-drawable:23.4.0] C:\Users\Steve\AboutCancunSteve\app\build\intermediates\exploded-aar\com.android.support\support-vector-drawable\23.4.0\AndroidManifest.xml:7:5-20
MERGED from [com.android.support:support-v4:23.4.0] C:\Users\Steve\AboutCancunSteve\app\build\intermediates\exploded-aar\com.android.support\support-v4\23.4.0\AndroidManifest.xml:22:5-20
MERGED from [com.android.support:design:23.4.0] C:\Users\Steve\AboutCancunSteve\app\build\intermediates\exploded-aar\com.android.support\design\23.4.0\AndroidManifest.xml:22:5-20
MERGED from [com.android.support:support-v4:23.4.0] C:\Users\Steve\AboutCancunSteve\app\build\intermediates\exploded-aar\com.android.support\support-v4\23.4.0\AndroidManifest.xml:22:5-20
MERGED from [com.android.support:appcompat-v7:23.4.0] C:\Users\Steve\AboutCancunSteve\app\build\intermediates\exploded-aar\com.android.support\appcompat-v7\23.4.0\AndroidManifest.xml:25:5-20
MERGED from [com.android.support:animated-vector-drawable:23.4.0] C:\Users\Steve\AboutCancunSteve\app\build\intermediates\exploded-aar\com.android.support\animated-vector-drawable\23.4.0\AndroidManifest.xml:7:5-20
MERGED from [com.android.support:support-vector-drawable:23.4.0] C:\Users\Steve\AboutCancunSteve\app\build\intermediates\exploded-aar\com.android.support\support-vector-drawable\23.4.0\AndroidManifest.xml:7:5-20
MERGED from [com.android.support:support-v4:23.4.0] C:\Users\Steve\AboutCancunSteve\app\build\intermediates\exploded-aar\com.android.support\support-v4\23.4.0\AndroidManifest.xml:22:5-20
MERGED from [com.android.support:support-v4:23.4.0] C:\Users\Steve\AboutCancunSteve\app\build\intermediates\exploded-aar\com.android.support\support-v4\23.4.0\AndroidManifest.xml:22:5-20
MERGED from [com.android.support:support-vector-drawable:23.4.0] C:\Users\Steve\AboutCancunSteve\app\build\intermediates\exploded-aar\com.android.support\support-vector-drawable\23.4.0\AndroidManifest.xml:7:5-20
MERGED from [com.android.support:support-v4:23.4.0] C:\Users\Steve\AboutCancunSteve\app\build\intermediates\exploded-aar\com.android.support\support-v4\23.4.0\AndroidManifest.xml:22:5-20
MERGED from [com.android.support:support-v4:23.4.0] C:\Users\Steve\AboutCancunSteve\app\build\intermediates\exploded-aar\com.android.support\support-v4\23.4.0\AndroidManifest.xml:22:5-20
    android:label
        ADDED from C:\Users\Steve\AboutCancunSteve\app\src\main\AndroidManifest.xml:12:9-41
    android:supportsRtl
        ADDED from C:\Users\Steve\AboutCancunSteve\app\src\main\AndroidManifest.xml:13:9-35
    android:allowBackup
        ADDED from C:\Users\Steve\AboutCancunSteve\app\src\main\AndroidManifest.xml:10:9-35
    android:icon
        ADDED from C:\Users\Steve\AboutCancunSteve\app\src\main\AndroidManifest.xml:11:9-39
    android:theme
        ADDED from C:\Users\Steve\AboutCancunSteve\app\src\main\AndroidManifest.xml:14:9-40
activity#com.cancunsteve.aboutcancunsteve.MainActivity
ADDED from C:\Users\Steve\AboutCancunSteve\app\src\main\AndroidManifest.xml:15:9-24:20
    android:label
        ADDED from C:\Users\Steve\AboutCancunSteve\app\src\main\AndroidManifest.xml:17:13-45
    android:theme
        ADDED from C:\Users\Steve\AboutCancunSteve\app\src\main\AndroidManifest.xml:18:13-56
    android:name
        ADDED from C:\Users\Steve\AboutCancunSteve\app\src\main\AndroidManifest.xml:16:13-41
intent-filter#android.intent.action.MAIN+android.intent.category.LAUNCHER
ADDED from C:\Users\Steve\AboutCancunSteve\app\src\main\AndroidManifest.xml:19:13-23:29
action#android.intent.action.MAIN
ADDED from C:\Users\Steve\AboutCancunSteve\app\src\main\AndroidManifest.xml:20:17-69
    android:name
        ADDED from C:\Users\Steve\AboutCancunSteve\app\src\main\AndroidManifest.xml:20:25-66
category#android.intent.category.LAUNCHER
ADDED from C:\Users\Steve\AboutCancunSteve\app\src\main\AndroidManifest.xml:22:17-77
    android:name
        ADDED from C:\Users\Steve\AboutCancunSteve\app\src\main\AndroidManifest.xml:22:27-74
activity#com.cancunsteve.aboutcancunsteve.Main2Activity
ADDED
as running from the command-line is over my head did it through Android Studio: analyze stacktrace.
hope the above gives some clue.
if you need in addition any of my files please let me know and thanks so much people!
 
That's not a stack trace from a crashed app. You should see an exception message.
You don't need to run the app from the command line.
Run the app from Android Studio, and look at the Logcat view. The stack trace will appear there.
 
can't see how to get logcat view option in android studio. got a log view while building app that looks like this
Code:
3:47:30 PM Executing tasks: [:app:assembleDebug]
3:48:35 PM Gradle build finished in 1m 4s 171ms
3:48:35 PM Build APK
           APK(s) generated successfully.
           Show in Explorer
triedd view - tood windoes - but no logcat there
 
by hitting <alt> 6 in studio got logcat but then had trouble with emulator. my anti-virus program blocked it. will try later using my mobile device to run app with logcat on and send results. thanks so much
 
ran logcat and used my old mobile device as emulator. was not listed. got this code
Code:
C:\Users\Steve\AppData\Local\Android\Sdk\tools\emulator.exe -netdelay none -netspeed full -avd Nexus_One_API_23

libpng warning: iCCP: known incorrect sRGB profile

emulator: WARNING: Crash service did not start

libpng warning: iCCP: known incorrect sRGB profile

libpng warning: iCCP: known incorrect sRGB profile

libpng warning: iCCP: known incorrect sRGB profile

libpng warning: iCCP: known incorrect sRGB profile

libpng warning: iCCP: known incorrect sRGB profile

libpng warning: iCCP: known incorrect sRGB profile

emulator: WARNING: Increasing RAM size to 1024MB

emulator: WARNING: VM heap size set below hardware specified minimum of 48MB

emulator: WARNING: Setting VM heap size to 256MB

Creating filesystem with parameters:

    Size: 69206016

    Block size: 4096

    Blocks per group: 32768

    Inodes per group: 4224

    Inode size: 256

    Journal blocks: 1024

    Label:

    Blocks: 16896

    Block groups: 1

    Reserved block group size: 7

Created filesystem with 11/4224 inodes and 1302/16896 blocks

Hax is enabled

Hax ram_size 0x40000000

HAX is working and emulator runs in fast virt mode.

console on port 5554, ADB on port 5555

Your emulator is out of date, please update by launching Android Studio:

 - Start Android Studio

 - Select menu "Tools > Android > SDK Manager"

 - Click "SDK Tools" tab

 - Check "Android SDK Tools" checkbox

 - Click "OK"
will try to update emulator and see the output and send same. is any info of value here?
 
updated emulator did a run not debug got this
Code:
09-03 10:39:55.019 2837-2837/com.cancunsteve.aboutcancunsteve W/System: ClassLoader referenced unknown path: /data/app/com.cancunsteve.aboutcancunsteve-2/lib/x86
09-03 10:39:55.162 2837-2837/com.cancunsteve.aboutcancunsteve W/art: Before Android 4.1, method android.graphics.PorterDuffColorFilter android.support.graphics.drawable.VectorDrawableCompat.updateTintFilter(android.graphics.PorterDuffColorFilter, android.content.res.ColorStateList, android.graphics.PorterDuff$Mode) would have incorrectly overridden the package-private method in android.graphics.drawable.Drawable
09-03 10:39:55.191 2837-2929/com.cancunsteve.aboutcancunsteve D/OpenGLRenderer: Use EGL_SWAP_BEHAVIOR_PRESERVED: true
                                                                               
                                                                                [ 09-03 10:39:55.199  2837: 2837 D/         ]
                                                                                HostConnection::get() New Host Connection established 0xab2a6840, tid 2837
                                                                               
                                                                               
                                                                                [ 09-03 10:39:55.263  2837: 2929 D/         ]
                                                                                HostConnection::get() New Host Connection established 0xab2a6ae0, tid 2929
09-03 10:39:55.270 2837-2929/com.cancunsteve.aboutcancunsteve I/OpenGLRenderer: Initialized EGL, version 1.4
09-03 10:41:14.824 2837-2843/com.cancunsteve.aboutcancunsteve W/art: Suspending all threads took:
will do again with debug and submit
 
Back
Top Bottom