Mobile development assignment 2: Activity jump

Tip: After the article is written, the table of contents can be automatically generated. For how to generate it, please refer to the help document on the right. Article Directory Table of Contents Article directory 1. Job requirements 2. Project practice ideas 3. Project core code 4. Effect display 5. Source code address Summarize 1. […]

Alipay URL Scheme is the most complete in the entire network, and the startActivity address is being updated.

The following is the Scheme protocol address that I sorted out the Alipay APP software and compiled in practical applications. I want to share it with you. If you don’t have any, you can comment @ me. I’m looking for additional protocol addresses. //Alipay: alipay:// //receipt: alipays://platformapi/startapp?appId=20000123 //Scan code: alipays://platformapi/startapp?saId=10000007 //Yue Bao: alipays://platformapi/startapp?appId=20000032 //transfer: alipays://platformapi/startapp?appId=20000221 […]

Android startActivity process

1. Regular calls startActivity(new Intent(this,MainActivity.class)); Enter the startActivity method of Activity /** * Same as {@link #startActivity(Intent, Bundle)} with no options * specified. * * @param intent The intent to start. * * @throws android.content.ActivityNotFoundException * * @see #startActivity(Intent, Bundle) * @see #startActivityForResult */ @Override public void startActivity(Intent intent) { this.startActivity(intent, null); } Enter the […]

Activity, the core component of Android applications

Activity component The Activity component is one of the core components of Android applications. It provides a user interface for interacting with users. Each Activity is an independent screen, which can contain user interface elements (such as buttons, text boxes, etc.) and logic code to respond to user operations. In an Android application, each Activity […]

[Android] How to write an elegant BaseActivity suitable for MVVM

How to write elegant BaseActivity in Android 1 Introduction 2. How to implement 3. Actual development 1. Introduction In daily development, I believe that we all have our own BaseActivity for Activity. So after introducing JetPack, how to make our BaseActivity simple and efficient has become a question worth thinking about. Technology stack involved MVVM, […]

Android—Usage of intent and startActivityForResult methods—Page jump and data return

Android page jump and data return Today I tried to use two pages to transfer and post data, and some problems occurred. The cases where the problems have been successful are summarized as follows: The specifics are as follows: There are two layouts and two activities. There is a text box in the layout corresponding […]

java——–MainActivity

package com.example.helloworld; import android.app.AlertDialog; import android.content.DialogInterface; import android.content.Intent; import android.graphics.Color; import android.graphics.drawable.Drawable; import android.preference.DialogPreference; import android.support.v7.app.ActionBarActivity; import android.os.Bundle; import android.view.View; import android.widget.Button; import android.widget.EditText; import android.widget.ImageView; import android.widget.RadioButton; import android.widget.RadioGroup; import android.widget.TextView; import android.widget.Toast; public class MainActivity extends ActionBarActivity implements View.OnClickListener{ Button button; ImageView imageView; RadioGroup radioGroup; RadioButton radioButton1,radioButton2,radioButton3,radioButton4; TextView textView1,textView2; String name; Integer miMa; […]