This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-compile: | |
[javac] Compiling 3 source files to /root/an/MyFirstApp/bin/classes | |
[javac] /root/an/MyFirstApp/src/com/example/myfirstapp/DisplayMessageActivity.java:7: error: duplicate class: DisplayMessageActivity | |
[javac] public class DisplayMessageActivity extends Activity { | |
[javac] ^ | |
[javac] /root/an/MyFirstApp/src/com/example/myfirstapp/MainActivity.java:9: error: cannot access DisplayMessageActivity | |
[javac] import com.example.myfirstapp.DisplayMessageActivity; | |
[javac] ^ | |
[javac] bad source file: /root/an/MyFirstApp/src/com/example/myfirstapp/DisplayMessageActivity.java | |
[javac] file does not contain class com.example.myfirstapp.DisplayMessageActivity |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.example.myfirstapp; | |
import android.app.Activity; | |
import android.os.Bundle; | |
// paul | |
import android.view.View; | |
import android.content.Intent; | |
import android.widget.EditText; | |
import com.example.myfirstapp.DisplayMessageActivity; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:tools="http://schemas.android.com/tools" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:orientation="horizontal"> | |
<EditText android:id="@+id/edit_message" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:tools="http://schemas.android.com/tools" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:orientation="vertical"> | |
<LinearLayout android:width="match_parent" | |
android:height="wrap_content"> | |
<EditText android:id="@+id/telephone_number" | |
android:layout_weight="5" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.example.myfirstapp; | |
import android.telephony.SmsManager; | |
import android.net.Uri; | |
import android.app.Activity; | |
import android.os.Bundle; | |
import android.content.Intent; | |
import android.annotation.SuppressLint; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
D/dalvikvm( 2782): GC_EXPLICIT freed 32K, 50% free 2696K/5379K, external 0K/0K, paused 47ms | |
I/ActivityManager( 1073): Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.example.myfirstapp/.MainActivity bnds=[240,123][320,223] } from pid 2430 | |
D/dalvikvm( 1073): GC_EXTERNAL_ALLOC freed 660K, 40% free 6354K/10439K, external 999K/1310K, paused 124ms | |
I/ActivityManager( 1073): Start proc com.example.myfirstapp for activity com.example.myfirstapp/.MainActivity: pid=3308 uid=10070 gids={3003, 1015} | |
D/dalvikvm( 3308): GC_EXTERNAL_ALLOC freed 49K, 51% free 2684K/5379K, external 0K/0K, paused 121ms | |
D/dalvikvm( 3308): GC_EXTERNAL_ALLOC freed 3K, 51% free 2687K/5379K, external 8K/520K, paused 118ms | |
I/ActivityManager( 1073): Displayed com.example.myfirstapp/.MainActivity: +730ms | |
D/dalvikvm( 2430): GC_CONCURRENT freed 642K, 52% free 3304K/6791K, external 1477K/1900K, paused 4ms+5ms | |
D/LatinIME( 1158): mLongPressDelay = 400 | |
D/LatinKeyboardBaseView( 1158): mLongPress |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
root@debian:~/an/ActivityLifecycle# ant debug | |
Buildfile: /root/an/ActivityLifecycle/build.xml | |
BUILD FAILED | |
/root/an/ActivityLifecycle/build.xml:83: Cannot find /Users/brutledge/android-sdk-macosx/tools/ant/build.xml imported from /root/an/ActivityLifecycle/build.xml | |
Total time: 0 seconds | |
root@debian:~/an/ActivityLifecycle# |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<activity | |
android:name="pl.twigit.myactivitylifecycle.DisplayMessageActivity" | |
android:label="@string/title_activity_display_message" | |
android:parentActivityName="pl.twigit.myactivitylifecycle.MainActivity" > | |
<meta-data | |
android:name="android.support.PARENT_ACTIVITY" | |
android:value="pl.twigit.myactivitylifecycle.MainActivity" /> | |
</activity> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var a = function (x, y) { | |
"use strict"; | |
Array.prototype.splice.call(arguments, 1, 1); | |
console.log(y); //432 | |
}; | |
a(2, 4, 432, 432); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var a = function (x, y) { | |
"use strict"; | |
Array.prototype.splice.call(arguments, 1, 1); | |
console.log(y); //432 when not "use strict" or ES5 not supported | |
}; | |
a(2, 4, 432, 432); |