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
public void showAllAppInfo() | |
{ | |
PackageManager packageManager = getPackageManager(); | |
List<ApplicationInfo> list = packageManager.getInstalledApplications(PackageManager.GET_META_DATA); | |
String market = ""; | |
String appName = ""; | |
String appVersion = ""; | |
for (int i = 0; i < list.size(); i++) | |
{ | |
String packageName = list.get(i).packageName; |
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
class MainActivity : AppCompatActivity() { | |
override fun onCreate(savedInstanceState: Bundle?) { | |
super.onCreate(savedInstanceState) | |
setContentView(R.layout.activity_main) | |
submit.setOnClickListener { | |
val number = smsNumber.text.toString() | |
val text = smsText.text.toString() | |
val count: Int = smsCount.text.toString().toInt() | |
val smsManager = SmsManager.getDefault() |