package com.test;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import android.app.AlertDialog;
import android.content.BroadcastReceiver;
import android.content.ContentResolver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.graphics.Bitmap;
import android.graphics.drawable.Drawable;
import android.location.Location;
import android.media.MediaRecorder;
import android.net.Uri;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.provider.MediaStore;
import android.text.Spannable;
import android.text.TextUtils;
import android.text.style.ImageSpan;
import android.view.KeyEvent;
import android.view.LayoutInflater;
import android.view.MotionEvent;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.View.OnTouchListener;
import android.widget.AdapterView;
import android.widget.AdapterView.OnItemClickListener;
import android.widget.Button;
import android.widget.EditText;
import android.widget.GridView;
import android.widget.ListView;
import android.widget.ProgressBar;
import android.widget.SimpleAdapter;
import android.widget.TextView;
import android.widget.Toast;
import com.baidu.mapapi.BMapManager;
import com.baidu.mapapi.LocationListener;
import com.baidu.mapapi.MapActivity;
public class TalkMessageAct extends MapActivity implements OnClickListener{
private ListView talkList;
private static List<DetailEntity> list = null;
private TextView titleText;
private Button backButton;
private View mediaView;
private Button showMediaButton;
private Button cancelMediaButton;
private Button talkMessage_record;
private Button talkMessage_voice;
private boolean Voice_Sel = false;
private AlertDialog voiceDialog;
private MediaRecorder mediaRecorder;
private Button expressionButton;
private Button cameraButton;
private Button photoButotn;
private Button locationButton;
private Button requestLocationButton;
private ProgressBar progressBarBtn;
private TextView progressBarText;
private Button sendButton;
private EditText edit;
private AlertDialog expressionDialog;
public static Integer[] mImageIds = { R.drawable.f000, R.drawable.f001,
R.drawable.f002, R.drawable.f003, R.drawable.f004, R.drawable.f005,
R.drawable.f006, R.drawable.f007, R.drawable.f008, R.drawable.f009,
R.drawable.f010, R.drawable.f011, R.drawable.f012, R.drawable.f013,
R.drawable.f014, R.drawable.f015, R.drawable.f016, R.drawable.f017,
R.drawable.f018, R.drawable.f019, R.drawable.f020, R.drawable.f021,
R.drawable.f022, R.drawable.f023, R.drawable.f024, R.drawable.f025,
R.drawable.f026, R.drawable.f027, R.drawable.f028, R.drawable.f029,
R.drawable.f030, R.drawable.f031, R.drawable.f032, R.drawable.f033,
R.drawable.f034, R.drawable.f035, R.drawable.f036, R.drawable.f037,
R.drawable.f038, R.drawable.f039, R.drawable.f040, R.drawable.f041,
R.drawable.f042, R.drawable.f043, R.drawable.f044, R.drawable.f045,
R.drawable.f046, R.drawable.f047, R.drawable.f048, R.drawable.f049,
R.drawable.f050, R.drawable.f051, R.drawable.f052, R.drawable.f053,
R.drawable.f054, R.drawable.f044, R.drawable.f056, R.drawable.f057,
R.drawable.f058, R.drawable.f059, R.drawable.f060, R.drawable.f061,
R.drawable.f062, R.drawable.f063, R.drawable.f064, R.drawable.f065,
R.drawable.f066, R.drawable.f067, R.drawable.f068, R.drawable.f069,
R.drawable.f070, R.drawable.f071, R.drawable.f072, R.drawable.f073 };
private GridView expressionView;
private List<Map<String, Object>> content = new ArrayList<Map<String, Object>>();
private String TFuid;
private String json;
private List<DetailEntity> messageList;
private double baiDu_Lon;
private double baiDu_Lat;
private BMapApiDemoApp app;
private String friendName;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.talkmessage);
// IntentFilter mFilter = new IntentFilter();
// mFilter.addAction("com.management_talkmessage.recevie");
// registerReceiver(mBroadcastReceiver, mFilter);
View view = LayoutInflater.from(this).inflate(
R.layout.expressiondialog, null);
expressionView = (GridView) view.findViewById(R.id.expression_gridview);
for (int i = 0; i < mImageIds.length; i++) {
Map<String, Object> map = new HashMap<String, Object>();
map.put("IMAGE", mImageIds[i]);
content.add(map);
}
SimpleAdapter adapter = new SimpleAdapter(this, content,
R.layout.expressiondialog_context, new String[] { "IMAGE" },
new int[] { R.id.expressiondialog_image });
expressionView.setAdapter(adapter);
expressionView.setOnItemClickListener(new OnItemClickListener() {
@Override
public void onItemClick(AdapterView<?> arg0, View arg1,
final int positon, long arg3) {
setFace(positon + 1, mImageIds[positon]);
expressionDialog.cancel();
}
});
expressionDialog = new AlertDialog.Builder(this).create();
expressionDialog.setView(view, 0, 0, 0, 0);
talkList = (ListView) findViewById(R.id.talkmessage);
mediaView = findViewById(R.id.talkmessage_media);
progressBarBtn = (ProgressBar)findViewById(R.id.talkmessage_pro);
progressBarText = (TextView)findViewById(R.id.talkmessage_protext);
// friendName = this.getIntent().getStringExtra("name");
titleText = (TextView) findViewById(R.id.talkmessage_title);
titleText.setText("优亿");
talkList = (ListView) findViewById(R.id.talkmessage);
backButton = (Button) findViewById(R.id.talkmessage_backbtn);
backButton.setOnClickListener(this);
talkMessage_voice = (Button) findViewById(R.id.talkmessage_voice);
talkMessage_voice.setOnClickListener(this);
talkMessage_record = (Button) findViewById(R.id.talk_message_record);
ButtonListener b = new ButtonListener();
talkMessage_record.setOnTouchListener(b);
showMediaButton = (Button) findViewById(R.id.talkmessage_showmedia);
cancelMediaButton = (Button) findViewById(R.id.talkmessage_cancelmedia);
showMediaButton.setOnClickListener(this);
cancelMediaButton.setOnClickListener(this);
expressionButton = (Button) findViewById(R.id.talkmessage_expression);
expressionButton.setOnClickListener(this);
cameraButton = (Button) findViewById(R.id.talkmessage_camera);
photoButotn = (Button) findViewById(R.id.talkmessage_pic);
locationButton = (Button)findViewById(R.id.talkmessage_location);
requestLocationButton = (Button)findViewById(R.id.talkmessage_requestlocation);
cameraButton.setOnClickListener(this);
photoButotn.setOnClickListener(this);
locationButton.setOnClickListener(this);
requestLocationButton.setOnClickListener(this);
edit = (EditText) findViewById(R.id.talkmessage_edit);
sendButton = (Button) findViewById(R.id.talkmessage_send);
sendButton.setOnClickListener(this);
list = new ArrayList<DetailEntity>();
messageList = new ArrayList<DetailEntity>();
View voiceView = LayoutInflater.from(TalkMessageAct.this).inflate(R.layout.record_voiceview, null);
voiceDialog = new AlertDialog.Builder(TalkMessageAct.this).setView(voiceView).create();
// TFuid = this.getIntent().getStringExtra("TFuid");
TFuid = "2";
messageList = MessageSQLService.getInstance(this).getdatas(
Integer.valueOf(UserInfomation.getUserID(TalkMessageAct.this)),
Integer.valueOf(TFuid));
for (int i = 0; i < messageList.size(); i++) {
switch (messageList.get(i).getTtmType()) {
case 1:
int id = Integer.valueOf(messageList.get(i).getTtmTuID());
if (id == Integer.valueOf(TFuid)) {
DetailEntity other = new DetailE
没有合适的资源?快使用搜索试试~ 我知道了~
[Android实例] 【版主帖推荐】继人员列表,聊天的实现,包括图片,语音毕业设计—(包含完整源码,可运行).zip
共275个文件
png:118个
class:69个
xml:45个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 191 浏览量
2022-04-23
11:06:41
上传
评论
收藏 5.89MB ZIP 举报
温馨提示
[Android实例] 【版主帖推荐】继人员列表,聊天的实现,包括图片,语音毕业设计—(包含完整源码,可运行).zip
资源推荐
资源详情
资源评论
收起资源包目录
[Android实例] 【版主帖推荐】继人员列表,聊天的实现,包括图片,语音毕业设计—(包含完整源码,可运行).zip (275个子文件)
resources.ap_ 291KB
Test.apk 1.09MB
proguard.cfg 1KB
TalkMessageAct.class 17KB
ManagementAdapter.class 7KB
PersonnelManagementAct.class 7KB
ManagementListView.class 6KB
SmileyParser.class 6KB
DetailAdapter.class 5KB
MessageSQLService.class 5KB
TalkMessageImageView.class 5KB
DetailEntity.class 5KB
ClippingPicture.class 4KB
SearchPernonnel.class 4KB
PersonnelLocation.class 4KB
TalkMessageAct$1.class 4KB
PersonalInfomation.class 4KB
R$id.class 4KB
R$drawable.class 4KB
Smileys.class 4KB
DateUtil.class 3KB
SignInAct.class 3KB
SearchPernonnel$SearchListAdapter.class 3KB
Personnel.class 2KB
OverItemTs.class 2KB
DetailAdapter$4.class 2KB
DetailAdapter$3.class 2KB
DetailAdapter$1.class 2KB
DetailAdapter$2.class 2KB
PersonalInfomation$InfomationListAdapter.class 2KB
ClippingSounds.class 2KB
ManagementAdapter$4.class 2KB
ManagementAdapter$1.class 2KB
ManagementAdapter$2.class 2KB
ManagementAdapter$3.class 2KB
ManageDatabase.class 2KB
SearchPernonnel$4.class 2KB
SearchPernonnel$3.class 2KB
Department.class 1KB
BMapApiDemoApp$MyGeneralListener.class 1KB
R$layout.class 1KB
SearchPernonnel$2.class 1KB
TalkMessageAct$ButtonListener.class 1KB
TalkMessageAct$2.class 1KB
SearchPernonnel$SearchListAdapter$1.class 1KB
DetailAdapter$6.class 1KB
SearchPernonnel$1.class 1KB
DetailAdapter$5.class 1KB
PersonnelLocation$1.class 1KB
DateUtil$2.class 1KB
DateUtil$1.class 1KB
ManagementAdapter$6.class 1KB
BMapApiDemoApp.class 1KB
TalkMessageAct$3.class 1KB
R$color.class 992B
SignInAct$1.class 955B
DetailAdapter$4$1.class 889B
DetailAdapter$3$1.class 889B
ManagementAdapter$7.class 836B
ManagementAdapter$5.class 836B
SearchPernonnel$6.class 823B
SearchPernonnel$5.class 823B
PersonnelManagementAct$1.class 811B
PersonalInfomation$1.class 787B
R$style.class 644B
R.class 575B
ManagementListView$QQHeaderAdapter.class 544B
TestActivity.class 497B
UserInfomation.class 449B
R$array.class 446B
R$string.class 437B
R$attr.class 310B
.classpath 423B
classes.dex 186KB
新建 Microsoft Word 文档.doc 469KB
entries 357B
entries 290B
format 2B
format 2B
commons-net-3.0.1.jar 263KB
baidumapapi.jar 232KB
TalkMessageAct.java 22KB
R.java 16KB
ManagementListView.java 8KB
PersonnelManagementAct.java 8KB
DetailAdapter.java 7KB
ManagementAdapter.java 7KB
SmileyParser.java 6KB
SearchPernonnel.java 6KB
TalkMessageImageView.java 5KB
MessageSQLService.java 5KB
PersonalInfomation.java 5KB
DetailEntity.java 4KB
PersonnelLocation.java 4KB
Smileys.java 4KB
SignInAct.java 3KB
DateUtil.java 3KB
ClippingPicture.java 3KB
BMapApiDemoApp.java 2KB
Personnel.java 2KB
共 275 条
- 1
- 2
- 3
资源评论
智慧安全方案
- 粉丝: 3605
- 资源: 59万+
下载权益
C知道特权
VIP文章
课程特权
开通VIP
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功