Friday, September 27, 2013
Android Memorandum
add under manifest.xml to allow internet access permission
<uses-permission android:name="android.permission.INTERNET"></uses-permission>
assign string to text
android:text = "@string/strCounterName"
declaration in java
Spinner cboCounterName = (Spinner) findViewById(R.id.cboCounterName);
Add array to combobox
Spinner cboCounterName = (Spinner) findViewById(R.id.cboCounterName);
String[] strAlphabet = {"A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z"};
String strUrlMain = "announcements.bursamalaysia.com";
ArrayAdapter adapter = new ArrayAdapter(this,
android.R.layout.simple_spinner_item, strAlphabet);
cboCounterName.setAdapter(adapter);
The project was not built since its build path is incomplete. Cannot find the class file for java.lang.Object. Fix the build path then try building this project - ErrorRight click on project -> Properties -> Java Build Path (From Left List) -> Libraries (Tab) -> Add Library (Button on right) -> JRE System Library -> Next -> Workspace default JRE -> Finish
Open In Utube
startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("http://www.youtube.com/watch?v=cxLG2wtE7TM")));Intent intent = YouTubeIntents.createUserIntent(this, channelName); startActivity(intent);
Java, access variables declare in XML
getResources()
Cound Not Find the APK
Please follow these steps; this might help you out:
Go to Project->Properties
Select Android from left-hand side list
Uncheck the "Is Library" checkbox
Change Title Bar Text
http://stackoverflow.com/questions/3438276/change-title-bar-text-in-android
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment