Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
ccf authored and ccf committed Jun 11, 2012
1 parent 6000ca9 commit 86d3b8e
Show file tree
Hide file tree
Showing 99 changed files with 3,091 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .classpath
@@ -0,0 +1,8 @@
<?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="con" path="com.android.ide.eclipse.adt.LIBRARIES"/>
<classpathentry kind="output" path="bin/classes"/>
</classpath>
33 changes: 33 additions & 0 deletions .project
@@ -0,0 +1,33 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>MyFeiGe</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>
2 changes: 2 additions & 0 deletions .settings/org.eclipse.core.resources.prefs
@@ -0,0 +1,2 @@
eclipse.preferences.version=1
encoding/<project>=gbk
11 changes: 11 additions & 0 deletions .settings/org.eclipse.jdt.core.prefs
@@ -0,0 +1,11 @@
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
org.eclipse.jdt.core.compiler.compliance=1.6
org.eclipse.jdt.core.compiler.debug.lineNumber=generate
org.eclipse.jdt.core.compiler.debug.localVariable=generate
org.eclipse.jdt.core.compiler.debug.sourceFile=generate
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
org.eclipse.jdt.core.compiler.source=1.6
40 changes: 40 additions & 0 deletions AndroidManifest.xml
@@ -0,0 +1,40 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.ccf.feige.activity"
android:versionCode="1"
android:versionName="1.0" >

<uses-sdk android:minSdkVersion="8" />

<application
android:icon="@drawable/ic_launcher"
android:label="@string/app_name" >
<activity
android:label="@string/app_name"
android:name=".MyFeiGeActivity" >
<intent-filter >
<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>

<activity android:name=".MyFeiGeChatActivity"></activity>
<activity android:name=".MyFeiGeFileActivity"></activity>
</application>

<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<uses-permission android:name="android.permission.CHANGE_NETWORK_STATE"></uses-permission>
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE"></uses-permission>
<uses-permission android:name="android.permission.CHANGE_WIFI_STATE"></uses-permission>

<!-- 往sdcard中写入数据的权限 -->
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>

<uses-permission android:name="android.permission.READ_OWNER_DATA"/>

<!-- 在sdcard中创建/删除文件的权限 -->
<uses-permission android:name="android.permission.MOUNT_UNMOUNT_FILESYSTEMS"/>

</manifest>
Binary file added bin/IPMsg4Android.apk
Binary file not shown.
Binary file added bin/MyFeiGe.apk
Binary file not shown.
Binary file added bin/classes.dex
Binary file not shown.
Binary file added bin/classes/com/ccf/feige/activity/BuildConfig.class
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added bin/classes/com/ccf/feige/activity/R$attr.class
Binary file not shown.
Binary file added bin/classes/com/ccf/feige/activity/R$color.class
Binary file not shown.
Binary file added bin/classes/com/ccf/feige/activity/R$drawable.class
Binary file not shown.
Binary file added bin/classes/com/ccf/feige/activity/R$id.class
Binary file not shown.
Binary file added bin/classes/com/ccf/feige/activity/R$layout.class
Binary file not shown.
Binary file added bin/classes/com/ccf/feige/activity/R$raw.class
Binary file not shown.
Binary file added bin/classes/com/ccf/feige/activity/R$string.class
Binary file not shown.
Binary file added bin/classes/com/ccf/feige/activity/R.class
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added bin/classes/com/ccf/feige/data/ChatMessage.class
Binary file not shown.
Binary file added bin/classes/com/ccf/feige/data/User.class
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added bin/classes/com/ccf/feige/utils/UsedConst.class
Binary file not shown.
3 changes: 3 additions & 0 deletions bin/jarlist.cache
@@ -0,0 +1,3 @@
# cache for current jar dependecy. DO NOT EDIT.
# format is <lastModified> <length> <SHA-1> <path>
# Encoding is UTF-8
Binary file added bin/res/drawable-hdpi/btn_normal.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added bin/res/drawable-hdpi/btn_pressed.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added bin/res/drawable-hdpi/chat_quit_nor.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added bin/res/drawable-hdpi/divider_group.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added bin/res/drawable-hdpi/file_directory.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added bin/res/drawable-hdpi/file_doc.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added bin/res/drawable-hdpi/file_parent.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added bin/res/drawable-hdpi/file_root.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added bin/res/drawable-hdpi/group_exp.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added bin/res/drawable-hdpi/group_notexp.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added bin/res/drawable-hdpi/headimage_background.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added bin/res/drawable-hdpi/ic_launcher.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added bin/res/drawable-hdpi/mainbodytop.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added bin/res/drawable-ldpi/ic_launcher.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added bin/res/drawable-mdpi/ic_launcher.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added bin/resources.ap_
Binary file not shown.
6 changes: 6 additions & 0 deletions gen/com/ccf/feige/activity/BuildConfig.java
@@ -0,0 +1,6 @@
/** Automatically generated file. DO NOT MODIFY */
package com.ccf.feige.activity;

public final class BuildConfig {
public final static boolean DEBUG = true;
}
102 changes: 102 additions & 0 deletions gen/com/ccf/feige/activity/R.java
@@ -0,0 +1,102 @@
/* AUTO-GENERATED FILE. DO NOT MODIFY.
*
* This class was automatically generated by the
* aapt tool from the resource data it found. It
* should not be modified by hand.
*/

package com.ccf.feige.activity;

public final class R {
public static final class attr {
}
public static final class color {
public static final int alpha=0x7f050008;
public static final int black=0x7f050001;
public static final int c1=0x7f050000;
public static final int chat_myself=0x7f050009;
public static final int chat_other=0x7f05000a;
public static final int darkgray=0x7f050005;
public static final int deepskyblue=0x7f050007;
public static final int gray=0x7f050003;
public static final int gray_blue=0x7f050004;
public static final int lightblue=0x7f050006;
public static final int white=0x7f050002;
}
public static final class drawable {
public static final int btn_normal=0x7f020000;
public static final int btn_pressed=0x7f020001;
public static final int button=0x7f020002;
public static final int chat_quit_nor=0x7f020003;
public static final int divider_group=0x7f020004;
public static final int file_directory=0x7f020005;
public static final int file_doc=0x7f020006;
public static final int file_parent=0x7f020007;
public static final int file_root=0x7f020008;
public static final int group_exp=0x7f020009;
public static final int group_notexp=0x7f02000a;
public static final int headimage_background=0x7f02000b;
public static final int ic_launcher=0x7f02000c;
public static final int mainbodytop=0x7f02000d;
public static final int silver=0x7f02000e;
}
public static final class id {
public static final int body=0x7f070006;
public static final int chat_input=0x7f070008;
public static final int chat_item_head=0x7f070002;
public static final int chat_list=0x7f070007;
public static final int chat_mood=0x7f070004;
public static final int chat_name=0x7f070003;
public static final int chat_quit=0x7f070005;
public static final int chat_send=0x7f070009;
public static final int chat_top=0x7f070000;
public static final int child_infos=0x7f070010;
public static final int child_ip=0x7f07000f;
public static final int child_name=0x7f07000e;
public static final int fileRec_info=0x7f070011;
public static final int file_desc=0x7f070015;
public static final int file_detail=0x7f070019;
public static final int file_img=0x7f070013;
public static final int file_name=0x7f070014;
public static final int file_path=0x7f070018;
public static final int file_pathinfo=0x7f070016;
public static final int file_send=0x7f070017;
public static final int group=0x7f07001b;
public static final int group_img=0x7f07001a;
public static final int group_onlinenum=0x7f07001c;
public static final int main_head=0x7f070020;
public static final int main_self_head=0x7f070021;
public static final int message=0x7f07000c;
public static final int mymood=0x7f070023;
public static final int myname=0x7f070022;
public static final int pd_download=0x7f070012;
public static final int re_item_head=0x7f070001;
public static final int refresh=0x7f070024;
public static final int show_name=0x7f07000a;
public static final int show_time=0x7f07000b;
public static final int top=0x7f07001d;
public static final int totalUser=0x7f07001e;
public static final int user_img=0x7f07000d;
public static final int userlist=0x7f07001f;
}
public static final class layout {
public static final int chat=0x7f030000;
public static final int chat_item=0x7f030001;
public static final int children=0x7f030002;
public static final int file_download_notification=0x7f030003;
public static final int file_item=0x7f030004;
public static final int files=0x7f030005;
public static final int groups=0x7f030006;
public static final int main=0x7f030007;
}
public static final class raw {
public static final int msg=0x7f040000;
}
public static final class string {
public static final int app_name=0x7f060000;
public static final int file_path=0x7f060003;
public static final int file_title=0x7f060002;
public static final int info=0x7f060001;
public static final int no_wifi=0x7f060004;
}
}
40 changes: 40 additions & 0 deletions proguard.cfg
@@ -0,0 +1,40 @@
-optimizationpasses 5
-dontusemixedcaseclassnames
-dontskipnonpubliclibraryclasses
-dontpreverify
-verbose
-optimizations !code/simplification/arithmetic,!field/*,!class/merging/*

-keep public class * extends android.app.Activity
-keep public class * extends android.app.Application
-keep public class * extends android.app.Service
-keep public class * extends android.content.BroadcastReceiver
-keep public class * extends android.content.ContentProvider
-keep public class * extends android.app.backup.BackupAgentHelper
-keep public class * extends android.preference.Preference
-keep public class com.android.vending.licensing.ILicensingService

-keepclasseswithmembernames class * {
native <methods>;
}

-keepclasseswithmembers class * {
public <init>(android.content.Context, android.util.AttributeSet);
}

-keepclasseswithmembers class * {
public <init>(android.content.Context, android.util.AttributeSet, int);
}

-keepclassmembers class * extends android.app.Activity {
public void *(android.view.View);
}

-keepclassmembers enum * {
public static **[] values();
public static ** valueOf(java.lang.String);
}

-keep class * implements android.os.Parcelable {
public static final android.os.Parcelable$Creator *;
}
11 changes: 11 additions & 0 deletions project.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,
# "ant.properties", and override values to adapt the script to your
# project structure.

# Project target.
target=android-8
Binary file added res/drawable-hdpi/btn_normal.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-hdpi/btn_pressed.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-hdpi/chat_quit_nor.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-hdpi/divider_group.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-hdpi/file_directory.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-hdpi/file_doc.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-hdpi/file_parent.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-hdpi/file_root.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-hdpi/group_exp.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-hdpi/group_notexp.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-hdpi/headimage_background.png
Binary file added res/drawable-hdpi/ic_launcher.png
Binary file added res/drawable-hdpi/mainbodytop.png
Binary file added res/drawable-ldpi/ic_launcher.png
Binary file added res/drawable-mdpi/ic_launcher.png
7 changes: 7 additions & 0 deletions res/drawable/button.xml
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android" >

<item android:drawable="@drawable/btn_pressed" android:state_pressed="true"/>
<item android:drawable="@drawable/btn_normal" android:state_pressed="false"/>

</selector>
111 changes: 111 additions & 0 deletions res/layout/chat.xml
@@ -0,0 +1,111 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@color/gray"
android:orientation="vertical" >

<LinearLayout android:id="@+id/chat_top"
android:layout_width="fill_parent"
android:layout_height="50dip"
android:layout_weight="0"
android:background="@color/deepskyblue"
android:gravity="center_vertical"
>
<RelativeLayout
android:id="@+id/re_item_head"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="10dip"
android:layout_weight="0"
android:background="@drawable/headimage_background"
>

<ImageView
android:id="@+id/chat_item_head"
android:src="@drawable/ic_launcher"
android:layout_width="36dip"
android:layout_height="36dip"
android:layout_centerInParent="true"
/>

</RelativeLayout>

<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:orientation="vertical"
>

<TextView android:id="@+id/chat_name"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="@color/black"
/>

<TextView android:id="@+id/chat_mood"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="@color/darkgray"
/>

</LinearLayout>

<Button android:id="@+id/chat_quit"
android:layout_width="32dip"
android:layout_height="32dip"
android:layout_marginRight="15dip"
android:layout_weight="0"
android:background="@drawable/chat_quit_nor"
android:onClick="onClick"
/>
</LinearLayout>

<LinearLayout android:id="@+id/body"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_weight="1"
android:orientation="vertical"
>

<ListView android:id="@+id/chat_list"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_weight="1"
android:cacheColorHint="@null"
android:divider="@drawable/divider_group"
android:transcriptMode="alwaysScroll"
/>
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="45dip"
android:layout_weight="0"
android:background="@color/gray_blue"
android:gravity="center_vertical"
>
<EditText android:id="@+id/chat_input"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_weight="1"
android:layout_marginLeft="5dip"
android:singleLine="true"
/>

<Button android:id="@+id/chat_send"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="0"
android:background="@drawable/button"
android:layout_marginLeft="4dip"
android:layout_marginRight="4dip"
android:onClick="onClick"
android:text="发送"
android:textColor="@color/white"
android:textSize="18dip"
/>

</LinearLayout>
</LinearLayout>

</LinearLayout>

0 comments on commit 86d3b8e

Please sign in to comment.