Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

New Project

  • Loading branch information...
commit dc5270a161d32ce51bada193ab31a7d7f3fa923f 0 parents
@creaked creaked authored
7 .classpath
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry kind="src" path="gen"/>
+ <classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
+ <classpathentry kind="output" path="bin"/>
+</classpath>
33 .project
@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>SerialMonitor</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>com.android.ide.eclipse.adt.ResourceManagerBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>com.android.ide.eclipse.adt.PreCompilerBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>com.android.ide.eclipse.adt.ApkBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>com.android.ide.eclipse.adt.AndroidNature</nature>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ </natures>
+</projectDescription>
18 AndroidManifest.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="utf-8"?>
+<manifest xmlns:android="http://schemas.android.com/apk/res/android"
+ package="com.liquidware.serialmonitor"
+ android:versionCode="1"
+ android:versionName="1.0">
+ <application android:icon="@drawable/icon" android:label="@string/app_name">
+ <activity android:name=".serialMonitor"
+ android:label="@string/app_name">
+ <intent-filter>
+ <action android:name="android.intent.action.MAIN" />
+ <category android:name="android.intent.category.LAUNCHER" />
+ </intent-filter>
+ </activity>
+
+ </application>
+
+
+</manifest>
BIN  bin/SerialMonitor.apk
Binary file not shown
BIN  bin/classes.dex
Binary file not shown
BIN  bin/resources.ap_
Binary file not shown
11 default.properties
@@ -0,0 +1,11 @@
+# This file is automatically generated by Android Tools.
+# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
+#
+# This file must be checked in Version Control Systems.
+#
+# To customize properties used by the Ant build system use,
+# "build.properties", and override values to adapt the script to your
+# project structure.
+
+# Project target.
+target=android-7
BIN  res/drawable-hdpi/icon.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
BIN  res/drawable-ldpi/icon.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
BIN  res/drawable-mdpi/icon.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
51 res/layout/main.xml
@@ -0,0 +1,51 @@
+<?xml version="1.0" encoding="utf-8"?>
+<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
+android:layout_width="fill_parent"
+android:gravity="top"
+android:layout_height="fill_parent">
+
+<TextView
+ android:id="@+id/message"
+ android:gravity="bottom"
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:text=""
+ />
+
+<TextView
+android:id="@+id/label"
+android:layout_width="fill_parent"
+android:layout_height="wrap_content"
+android:text=" "/>
+
+<EditText
+android:id="@+id/entry"
+android:layout_width="fill_parent"
+android:layout_height="wrap_content"
+android:background="@android:drawable/editbox_background"
+android:layout_below="@id/label"/>
+
+<Button
+android:id="@+id/ok"
+android:layout_width="wrap_content"
+android:layout_height="wrap_content"
+android:layout_below="@id/entry"
+android:layout_alignParentRight="true"
+android:layout_marginLeft="10dip"
+android:text="Send" />
+
+<Button
+android:id="@+id/xxl"
+android:layout_width="wrap_content"
+android:layout_height="wrap_content"
+android:layout_toLeftOf="@id/ok"
+android:layout_alignTop="@id/ok"
+android:text="Clear" />
+
+<TextView
+android:id="@+id/label"
+android:layout_width="fill_parent"
+android:layout_height="wrap_content"
+android:text=" "/>
+
+ </RelativeLayout>
5 res/values/strings.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+ <string name="hello">Hello World, serialMonitor!</string>
+ <string name="app_name">Serial Monitor</string>
+</resources>
51 src/com/liquidware/serialmonitor/serialMonitor.java
@@ -0,0 +1,51 @@
+package com.liquidware.serialmonitor;
+
+import android.app.Activity;
+import android.os.Bundle;
+import android.view.View;
+import android.widget.Button;
+import android.widget.EditText;
+import android.widget.TextView;
+//import android.widget.TextView;
+
+public class serialMonitor extends Activity {
+ /** Called when the activity is first created. */
+ @Override
+ public void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+
+ setContentView(R.layout.main);
+ final TextView tv = (TextView) findViewById(R.id.message);
+
+ //Send button
+ final Button button = (Button) findViewById(R.id.ok);
+ button.setOnClickListener(new View.OnClickListener() {
+ public void onClick(View v) {
+
+ // Perform action on click
+ EditText et = (EditText) findViewById(R.id.entry);
+ //et.setText("");
+
+ tv.setText("> " + et.getText().toString() + "\n"); //tv.getText() + "234343 " + "\n34424" + "\n3434334");
+ tv.setLines(14);
+
+ //tv.setVerticalScrollBarEnabled(true);
+ //tv.setScrollBarStyle(1);
+ //tv.refreshDrawableState();
+ //et.setText("> " + et.getText().toString() + "\n");
+ }
+ });
+
+ //Clear Button
+ final Button xxl = (Button) findViewById(R.id.xxl);
+ xxl.setOnClickListener(new View.OnClickListener() {
+ public void onClick(View v) {
+
+ // Perform action on click
+ EditText et = (EditText) findViewById(R.id.entry);
+ et.setText("");
+ tv.setText("");
+ }
+ });
+ }
+}
Please sign in to comment.
Something went wrong with that request. Please try again.