Submit Search
Upload
Android 程式設計(5)
•
Download as PPTX, PDF
•
3 likes
•
277 views
Roy Wang
Follow
button切換activity, activity之間如何傳遞值和溝通, 儲存資料, Broadcast。
Read less
Read more
Engineering
Report
Share
Report
Share
1 of 16
Download now
Recommended
Android程式設計(7)
Android程式設計(7)
Roy Wang
Android程式設計(6)
Android程式設計(6)
Roy Wang
Android 程式設計(4)
Android 程式設計(4)
Roy Wang
Android 程式設計(3)
Android 程式設計(3)
Roy Wang
Android 程式設計(2)
Android 程式設計(2)
Roy Wang
Android 程式設計(1)
Android 程式設計(1)
Roy Wang
App inventor 5
App inventor 5
Roy Wang
App inventor 4
App inventor 4
Roy Wang
Recommended
Android程式設計(7)
Android程式設計(7)
Roy Wang
Android程式設計(6)
Android程式設計(6)
Roy Wang
Android 程式設計(4)
Android 程式設計(4)
Roy Wang
Android 程式設計(3)
Android 程式設計(3)
Roy Wang
Android 程式設計(2)
Android 程式設計(2)
Roy Wang
Android 程式設計(1)
Android 程式設計(1)
Roy Wang
App inventor 5
App inventor 5
Roy Wang
App inventor 4
App inventor 4
Roy Wang
2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
Marius Sescu
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
Expeed Software
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
Pixeldarts
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
marketingartwork
Skeleton Culture Code
Skeleton Culture Code
Skeleton Technologies
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
Neil Kimberley
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
contently
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
Albert Qian
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
Search Engine Journal
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
SpeakerHub
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
Clark Boyd
Getting into the tech field. what next
Getting into the tech field. what next
Tessa Mero
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Lily Ray
How to have difficult conversations
How to have difficult conversations
Rajiv Jayarajah, MAppComm, ACC
Introduction to Data Science
Introduction to Data Science
Christy Abraham Joy
Time Management & Productivity - Best Practices
Time Management & Productivity - Best Practices
Vit Horky
The six step guide to practical project management
The six step guide to practical project management
MindGenius
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
RachelPearson36
More Related Content
Featured
2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
Marius Sescu
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
Expeed Software
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
Pixeldarts
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
marketingartwork
Skeleton Culture Code
Skeleton Culture Code
Skeleton Technologies
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
Neil Kimberley
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
contently
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
Albert Qian
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
Search Engine Journal
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
SpeakerHub
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
Clark Boyd
Getting into the tech field. what next
Getting into the tech field. what next
Tessa Mero
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Lily Ray
How to have difficult conversations
How to have difficult conversations
Rajiv Jayarajah, MAppComm, ACC
Introduction to Data Science
Introduction to Data Science
Christy Abraham Joy
Time Management & Productivity - Best Practices
Time Management & Productivity - Best Practices
Vit Horky
The six step guide to practical project management
The six step guide to practical project management
MindGenius
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
RachelPearson36
Featured
(20)
2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
Skeleton Culture Code
Skeleton Culture Code
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
Getting into the tech field. what next
Getting into the tech field. what next
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
How to have difficult conversations
How to have difficult conversations
Introduction to Data Science
Introduction to Data Science
Time Management & Productivity - Best Practices
Time Management & Productivity - Best Practices
The six step guide to practical project management
The six step guide to practical project management
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Android 程式設計(5)
1.
Android 程式設計(5) 講師:王瑋毅
2.
概要 • Activity 切換 •
Activity 傳值 • Activity 儲存資料 • SharedPreference • Internal Storage • BroadcastReceiver
3.
Activity 切換 • 建一個Button,按下Button,利用Intent,切換到另一個Activity
4.
Activity 傳值(1/2) • 利用Intent
和 Bundle,傳資料到另一個Activity
5.
Activity 傳值(2/2) • 接收另一個Activity資料
6.
Android 儲存資料 -
SharedPreferences(1/2) • 以 key-value 方式存取資料 • 儲存在Android手機中每個App的 目錄下
7.
Android 儲存資料 -
SharedPreferences(2/2) • 取得存取資料
8.
Android 儲存資料 –
Internal Storage (1/2) • 資料直接存在device的內存,App移除後資料會一起移除 • 先寫入檔案
9.
Android 儲存資料 –
Internal Storage (2/2) • 讀取檔案和檔案的文字
10.
Android BroadcastReceiver(1/6) • 廣播接收器,可以在系統或其他應用程式發生一些事件時,通知 需要的應用程式執行一些工作 •
例如: • 收到簡訊 • 電池用量變化 • 手機接到來電
11.
Android BroadcastReceiver(2/6) • 註冊廣播接收器在,AndroidManifest.xml
中註冊
12.
Android BroadcastReceiver(3/6) • 建一個MyBroadcastReceiver.java •
onReceive方法處理收到廣播後要執行的動作
13.
Android BroadcastReceiver(4/6) • 發送廣播
14.
Android BroadcastReceiver(5/6) • 修改成一開機就執行App •
加入啟動時執行權限
15.
Android BroadcastReceiver(6/6) • 在MyBroadcastReceiver.java
加入判斷是否已經開機
16.
謝謝大家
Download now