-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
陈少平
committed
Oct 20, 2021
1 parent
8468549
commit 5803014
Showing
14 changed files
with
25 additions
and
231 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,15 @@ | ||
package com.quwan.tt.asmdemoapp | ||
|
||
import android.content.Intent | ||
import android.content.res.Resources | ||
import android.os.AsyncTask | ||
import android.os.Build | ||
import android.os.Bundle | ||
import android.os.HandlerThread | ||
import android.widget.ImageView | ||
import android.widget.TextView | ||
import androidx.annotation.RequiresApi | ||
|
||
|
||
class MainActivity : BaseActivity() { | ||
|
||
@RequiresApi(Build.VERSION_CODES.Q) | ||
override fun onCreate(savedInstanceState: Bundle?) { | ||
super.onCreate(savedInstanceState) | ||
setContentView(R.layout.activity_main) | ||
val imageView: ImageView =findViewById(R.id.iv) | ||
imageView.setImageDrawable(getDrawable(R.drawable.ic_launcher_background)) | ||
println("====>imageView:${ resources.getResourceEntryName(imageView.id)}") | ||
println("====>tv:${ findViewById<TextView>(R.id.tv).toString()}") | ||
Thread() | ||
object : AsyncTask<Void?, Void?, Void?>() { | ||
override fun doInBackground(vararg params: Void?): Void? { | ||
return null | ||
} | ||
|
||
}.execute() | ||
Thread() | ||
Thread() | ||
HandlerThread("test") | ||
// A().test() | ||
val startIntent = Intent(this, TestService::class.java) | ||
startService(startIntent) | ||
} | ||
|
||
|
||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
11 changes: 0 additions & 11 deletions
11
buildSrc/.idea/libraries/Gradle__gradle_installation_beacon_6_5.xml
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
11 changes: 0 additions & 11 deletions
11
buildSrc/.idea/libraries/Gradle__groovy_all_1_3_2_5_11.xml
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.