Professional Documents
Culture Documents
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
showToast("onCreate");
}
@Override
protected void onStart() {
super.onStart();
showToast("onStart");
}
@Override
protected void onResume() {
super.onResume();
showToast("onResume");
}
@Override
protected void onPause() {
super.onPause();
showToast("onPause");
}
@Override
protected void onStop() {
super.onStop();
showToast("onStop");
}
@Override
protected void onDestroy() {
super.onDestroy();
showToast("onDestroy");
}
4. Proximity Sensor: Detects the presence of nearby objects without physical contact.
5. Ambient Light Sensor: Measures the ambient light level in the device's environment.
12. Humidity Sensor: Measures the humidity level in the device's environment.
14. Rotation Vector Sensor: Provides the device's orientation in terms of a quaternion or
rotation matrix.
Assignment 6
• Discuss Developer console with its purpose
o Google Play Developer Console is the platform that Google provides for Google Play and
Android developers to publish their apps.
o The Google Play Developer console allows app developers and marketers to better
understand how their apps are performing in terms of growth, technical performance
such as crashes or display issues, and financials.
o The console offers acquisition reports and detailed analysis which can help app devs find
out how well an app is really performing.
o The platform is important as it provides developers with access to first party data
(trustworthy information collected about an app’s audience that comes straight from
Google Play) that highlights the real performance of an app.
o It shows the number of impressions an app listing receives and the number of Installs an
app receives from different sources over time.
• Develop an application to send and receive SMS. (Write ONLY .java and
permission tag in manifest file
import android.app.Activity;
import android.os.Bundle;
import android.telephony.SmsManager;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
sendBtn.setOnClickListener(new View.OnClickListener() {
public void onClick(View view) {
sendSMSMessage();
}
});
}
try {
SmsManager smsManager = SmsManager.getDefault();
smsManager.sendTextMessage(phoneNo, null, message, null, null);
} catch (Exception e) {
e.printStackTrace();
}
}
}
The Google Developer Console, also known as the Google Play Console, is a platform that
allows developers to publish their apps or games and monitor their performance on Google
Play. Here are some of its key features:
1. Upload and Publish Apps: Developers can upload and publish their apps or games
directly to Google Play.
2. Store Listings: Developers can create and modify store listings for their apps4.
3. Sales and Statistics: The console provides detailed reports and statistics about app
performance, including sales4.
5. Ratings and Reviews: Developers can view and respond to user ratings and reviews4.
6. Crash Reports: The console provides crash reports to help developers improve their
apps.
7. Testing: Developers can set up open, closed, or internal tests for their apps5.
o The API key created dialog displays your newly created API key2.
o Click Close2.
o The new API key is listed on the Credentials page under API keys.