就是点击一下程序的图标,执行一些代码,并不显示任何界面。
那么怎么实现这种需求呢,代码入口在哪儿?
那么怎么实现这种需求呢,代码入口在哪儿?
解决方案 »
- Android Socket手机手机通信 求代码
- android 直接用webview打开.swf
- activity互相传值报错。。
- Android开发 使用SimpleCursorDapter所设计的数据表一定要有_id这个字段吗?
- 动态添加Layout
- 在android中如何建一个带选项卡的appwiget
- 百思不得其解,关于立方体旋转动画(垂直方向)
- activity在当前Task的栈顶和在前台有什么区别?
- android与服务器(java)通信
- Android开发板应用无界面android App
- ArrayAdapter的问题,我传进来一个20位的数组 但是显示出来就是40位 很邪门 内有代码 显示的是传进来数组位数的2倍
- android正式发布产品的步骤
首先你 新建项目的时候不要选Create Activity 然后用广播获取 系统启动广播 在开启 Service
不过点击图标这个倒是没想过
我给你写个简单的布局文件
AndroidManifest.xml中注意添加activity的风格。。 <activity android:name=".activity.MoraGameRequestActivity" android:theme="@android:style/Theme.Dialog" />
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="wrap_content" android:background="#888888"
> <TextView android:id="@+id/textview1"
android:layout_width="fill_parent"
android:layout_height="30dip"
android:gravity="center"
android:text="提示" />
<TextView android:id="@+id/textview2"
android:layout_width="fill_parent"
android:layout_height="30dip"
android:layout_below="@+id/textview1"
android:gravity="center"/>
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:layout_below="@+id/textview2"
android:weightSum="2"
android:gravity="center">
<Button
android:id="@+id/gamebutton1"
android:layout_weight="1"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="确定"
android:gravity="center"/>
<Button
android:id="@+id/gamebutton2"
android:layout_weight="1"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="取消"
android:gravity="center"/>
</LinearLayout>
</RelativeLayout>
发我研究下。