`
文章列表
 大家都知道手机有通讯录,sim卡里也能存储通讯录的,下面就是实现sim卡里的通讯录,这里我们主要用到了cursor这个游标,这个是非常重要,我们需要的权限是android.permission.READ_CONTACTS、android.permission.WRITE_CONTACTS、android.permission.READ_PHONE_STATE,我们来看看代码是怎么写的: package EOE.android.phone; import java.util.ArrayList; import java.util.List; import androi ...
.从google搜索内容Intent intent = new Intent();intent.setAction(Intent.ACTION_WEB_SEARCH);intent.putExtra(SearchManager.QUERY,"searchString")startActivity(intent);2.浏览网页Uri uri = Uri.parse("http://www.google.com");Intent it  = new Intent(Intent.ACTION_VIEW,uri);startActivity(it);3.显示 ...
退出程序
页面跳转传参
package cn.com.dne.scleanimation; import android.app.Activity; import android.graphics.drawable.Drawable; import android.os.Bundle; import android.view.LayoutInflater; import android.view.View; import android.view.View.OnClickListener; import android.widget.Button; import android.widget.Ima ...
import java.io.BufferedInputStream; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.File; import java.io.FileInputStream; import java.io.IOException; import java.net.Socket; import java.net.UnknownHostException; public class FileClient { private String ip = &q ...
请下载附件
package hbq.android.myapp.listview; import android.app.ListActivity; import android.os.Bundle; import android.util.Log; import android.view.Gravity; import android.view.View; import android.view.ViewGroup; import android.widget.BaseAdapter; import android.widget.Button; import android.wi ...
package com.accesscompany.testlistadapter; import java.util.ArrayList; import android.app.Activity; import android.app.AlertDialog; import android.content.Context; import android.content.DialogInterface; import android.graphics.Color; import android.graphics.Paint; import android.os.Bundl ...
package wyf.ytl; import java.util.Arrays; import java.util.Collections; import java.util.List; import java.util.concurrent.atomic.AtomicBoolean; import android.app.ListActivity; import android.os.Bundle; import android.os.Handler; import android.os.SystemClock; import android.view.View; ...
package cn.com.dne.activity.ceshi; import android.app.Activity; import android.app.AlertDialog; import android.app.Dialog; import android.content.BroadcastReceiver; import android.content.Context; import android.content.DialogInterface; import android.content.Intent; import android.content. ...
1.学习MENU功能: import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.view.Menu; import android.view.MenuItem; public class EX10_06 extends Activity { /* 独一无二的menu选项identifier,用以识别事件 */ static final private int MENU_ADD = Menu.FIRST; static ...
/*声明变量*/ private TextView mTextView01; private ImageView mImageView01; private SensorManager mSensorManager01; private float velocityFinal = 0; /*声明媒体播放器*/ private MediaPlayer mMediaPlayer01; private MediaPlayer mMediaPlayer02; private MediaPlayer mMediaPlayer03; ...
  最近做个上传图片功能,需要对sd中的所需要的图片进行上传,需要在sd卡中找到这个图片。具体方法如下: file_row.xml:    <?xml version="1.0" encoding="utf-8"?><TextView android:id="@+id/text1" xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="wrap_content" and ...
textView添加阴影! <?xml version="1.0" encoding="UTF-8"?><resources><style name="AudioFileInfoOverlayText">     <item name="android:paddingLeft">4px</item>     <item name="android:paddingBottom">4px</item>     < ...
Global site tag (gtag.js) - Google Analytics