toast

Android课设报告 123 赵乾

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-06 22:55:58
基于 Android 的天喵购物系统设计与实现 一 ,选题目的及意义 随着智能手机的普及,基于 Android平台的应用软件需求也越来越多。 通过计算机系统的设计与开发,验证和扩展本科前三年所学相关课程的理论知识,在实践中深入理解其中的重点和难点,提高基本理论水平,巩固基础知识体系,掌握计算机系统设计与开发的基本技能,培养灵活运用理论知识分析和解决实际问题的能力。 当下我们处于大数据网络时代,无疑,网上购物脱颖而出,即马云阿里巴巴成立以来,网上购物成为人民日益需求的购物来源,而其简单便捷,足不出户便能买到自己喜欢的物品,深受大众喜爱。所以我在此选题制作天喵购物系统。 使用的技术 (1) UI设计:用于页面设计。 (2) SQLite 数据库:用于购物车功能的实现,并加入增删改查功能。 (3) Activity 组件的应用:用于多 Activity 的切换。 (4) ListView 的使用:用于页面布局。 (5) MD5 算法的使用:用于用户注册。 字段名 数据类型 长度 主键 索引 外键 Name Char 50 是 否 Balance Int 11 否 否 二,系统需求分析 2.1 用户需求 天喵购物系统,可用于电子商务等电商的卖货平台,提供一个网上交易的机会,并支持更新与维护,使用方便,易用性强。该系统实现的大致功能;用户注册登陆。提供了货物信息的查询,添加,修改,删除

安卓课设报告

痞子三分冷 提交于 2019-12-06 22:48:35
安卓课程设计报告 记账管理系统 学校:沈阳科技学院 系别:信息与控制工程系 专业:计算机科学与技术 班级: 1702 学号: 173230222 姓名:封焱 指导教师:郭丹 目录 一. 需求分析 .................................. 二. 技术说明 .................................. 三. 代码 ...................................... 四. 系统测试 .................................. 五. 系统实现 .................................. 六. 总结 ...................................... 一:需求分析 功能描述: 添加账目,查询及修改账目,统计账目信息,退出系统 设计思路: (1)新增账目:可以增加账目内容,保存新增账目信息 (2)查询及修改:查看账目信息,查账后可以对账目进行修改,并保存修改信息 (3)统计账目:统计系统自动分类一段时间的账目,方便查看 (4)退出系统:当想关闭系统时,可以快速退出系统 二. 技术说明 如今,科技水平不断提高,人们对于高科技的需求也越来越高, 基于 Android平台的应用软件需求也越来越多。本次课程设计主要实现一个记账管理系统

Error when creating Toast

谁说胖子不能爱 提交于 2019-12-06 21:47:27
My code is Context c = getApplicationContext(); CharSequence c1 = "Invalid Data Entered"; Toast t= Toast.makeText(c, c1, Toast.LENGTH_SHORT); t.show(); it showing NULL POINTER EXCEPTION AT Toast.makeText() line Any help..? thanks.. It was actually because i was calling it from a different class and not an activity.. that was the reason.. IV can't create Toast in an Activity which is not running.. you just have to use your view instead of getApplicationContext() for example if it is rowView just call : Toast.makeText(rowView.getContext, " " ,Toast.LENGTH_SHORT).show(); Maybe I am being blind,

课程设计报告

随声附和 提交于 2019-12-06 16:50:37
Android新闻APP的设计与开发 一、需求分析 1.1项目概述 我做的新闻 APP是基于Eclipse安卓开发系统的一款可以查看,添加和删除关注新闻的一款安卓APP,它拥有注册界面,可根据提示注册新用户,点击确定之后会跳转到登录界面并将用户名传到登录界面上,在输入正确的密码后进入新闻界面,可以查看新闻,在查看时可以在查看新闻中点击加关注,添加到关注页面,其中用到了SQList数据库。 1.2用例分析 (1) 用例名称:注册页面 执行者是用户 说明:用户注册一个账号 (2) 用例名称:登录页面 执行者是用户 说明:用户登录成功 请求结果是跳转到新闻主页 (3) 用例名称:新闻主页 执行者是用户 说明:显示新闻列表 请求结果是进入新闻详情页面 (4) 用例名称:详情页面 执行者是用户 说明:一条新闻的详细信息 请求结果可以是加入关注 (5) 用例名称:关注页面 执行者是用户 说明:查看关注的新闻 请求结果是清除关注的新闻 1.3 数据库设计 字段名 数据类型 长度 主键 索引 外键 自增 说明 _id Integer 是 否 是 数据的id属性 text Varchar 80 否 否 否 新闻的标题 image Integer 50 否 否 否 新闻的图片 二、系统设计 2.1注册页面 功能:通过对输入的用户名和密码进行判断,直到满足条件注册成功。成功后通过 DataFile

作业九

血红的双手。 提交于 2019-12-06 14:16:29
package com.example.myapplicationb; import android.content.Context; import android.database.sqlite.SQLiteDatabase; import android.database.sqlite.SQLiteOpenHelper; class MyHelper extends SQLiteOpenHelper { public MyHelper(Context context) { super(context, "itcast.db", null, 1); } @Override public void onCreate(SQLiteDatabase db) { // TODO Auto-generated method stub db.execSQL("CREATE TABLE information(_id INTEGER PRIMARY KEY AUTOINCREMENT, name VARCHAR(20), phone VARCHAR(20))"); } @Override public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { // TODO Auto-generated method

第八次作业

我的未来我决定 提交于 2019-12-06 11:04:44
<?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:background="#E6E6E6" tools:context=".MainActivity"> <ImageView android:id="@+id/iv_head" android:layout_width="50dp" android:layout_height="50dp" android:layout_centerHorizontal="true" android:layout_marginTop="40dp" android:src="@drawable/dddss" /> <LinearLayout android:id="@+id/layout" android:layout_width="match_parent" android:layout_height="wrap

第九次作业

安稳与你 提交于 2019-12-06 11:04:42
<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" tools:context=".MainActivity" android:padding="16dp" android:orientation="vertical"> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="130dp" android:orientation="horizontal" > <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="姓 名:" android:textSize="18sp" /

Toast message not shown

限于喜欢 提交于 2019-12-06 10:13:21
问题 I am trying to show a toast message in my application using the following code. AlertDialog.Builder alert = new AlertDialog.Builder(this); alert.setTitle("Do you want to continue?"); alert.setPositiveButton("Continue", new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int whichButton) { try{ //This code generates an Activity Not Found exception } catch(ActivityNotFoundException e) { System.out.println("Activity Not Found Exception Raised"); Toast.makeText

第九次作业

微笑、不失礼 提交于 2019-12-06 08:44:58
<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" tools:context=".MainActivity" android:background="@drawable/bg" android:padding="16dp" android:orientation="vertical"> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="130dp" android:orientation="horizontal" > <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text

Possible to use Toast Notifications from a regular .Net application?

[亡魂溺海] 提交于 2019-12-06 07:15:30
问题 I've recently been checking out the samples for WinRT(C#) for Windows Store. One really cool thing I saw was the Toast Notifications. I can think of a million different uses for them, but not a single one that would also be suitable as a windows store application. So, is it possible to use Toast Notifications in Windows 8 from regular .Net desktop applications? 回答1: Yes you can. Look here for more information. 来源: https://stackoverflow.com/questions/12431523/possible-to-use-toast