I created new Android app for PLC Engineers to troubleshoot PLC Analog Input signal..
Download PLC Converter from Android Market
Showing posts with label Android. Show all posts
Showing posts with label Android. Show all posts
Android app upload error The icon for your application is not valid. Please use a 48x48 PNG
The icon for your application is not valid. Please use a 48x48 PNG this is most common error you will get while uploading to Android Market.
This is due to Icons resolution error in different folders.Use mspaint resize command and save it to drawable folder like below.
drawable-hdpi -72x72
drawable-mdpi-48x48
drawable-ldpi -36x36
This is due to Icons resolution error in different folders.Use mspaint resize command and save it to drawable folder like below.
drawable-hdpi -72x72
drawable-mdpi-48x48
drawable-ldpi -36x36
Send email from android application | Feedback Email for android app
1,Create button in xml layout
<Button
android:id="@+id/feedback"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Feedback"
android:textSize="15dp" />
2,In Java Class
Button Myfeedbackbutton=(Button)findViewById (R.id.feedback); (get button id)
Myfeedbackbutton.setOnClickListener(new View.OnClickListener() (Click Listener)
{
public void onClick(View v) {
Intent feedback1= new Intent(android.content.Intent.ACTION_SEND);
feedback1.setType("text/plain");
feedback1.putExtra(android.content.Intent.EXTRA_EMAIL, new String[]{"Your Email"});
feedback1.putExtra(android.content.Intent.EXTRA_SUBJECT, "Email Title");
startActivity(feedback1);
}
});
<Button
android:id="@+id/feedback"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Feedback"
android:textSize="15dp" />
2,In Java Class
Button Myfeedbackbutton=(Button)findViewById (R.id.feedback); (get button id)
Myfeedbackbutton.setOnClickListener(new View.OnClickListener() (Click Listener)
{
public void onClick(View v) {
Intent feedback1= new Intent(android.content.Intent.ACTION_SEND);
feedback1.setType("text/plain");
feedback1.putExtra(android.content.Intent.EXTRA_EMAIL, new String[]{"Your Email"});
feedback1.putExtra(android.content.Intent.EXTRA_SUBJECT, "Email Title");
startActivity(feedback1);
}
});
Using Buttons in Android apps development
This Tutorial shows how to use Buttons in Android apps development
1,Drag & Drop Button from Eclipse IDE
2,Select Properties and Assign name & Text Size
3,Right Click on button & select Edit ID ,Ex :Button3
4,Link this Button3 to Java by
//Start of Existing code
protected void onCreate(Bundle savedInstanceState) { //Executes when app launched
// TODO Auto-generated method stub
super.onCreate(savedInstanceState);
setContentView(R.layout.main); //Running Main.xml
//End of Existing code
//Start > Adding Button click event
Button Button3=(Button)findViewById (R.id.Button3);
Button3.setOnClickListener(new View.OnClickListener()
{
public void onClick(View v) {
// TODO Auto-generated method stub //Write your Code here
startActivity(new Intent ("com.mani.Convertor.TutorialOne")); //In my case I opened new Class
}
});
//End > Adding Button click event
Android app development SDK Installation Tutorial
Follow these steps
1,Download Java sdk JDK
and Install it
2,Download Android SDK from here and Install it
http://developer.android.com/sdk/index.html
3,Download Eclipse IDE for Java Developers from here and Install it
http://www.eclipse.org/downloads/packages/eclipse-ide-java-developers/indigosr1
4,Shortcut eclipse file to your desktop and run as Administrator
5,Go to help >Install new Software >Add
In Add Repository box Enter Name &
Enter link as https://dl-ssl.google.com/android/eclipse/ and click ok
6,Select all and Import
7,In eclipse >windows>preference>Android> Copy the Android SDK location
8,Link Android Emulator by click on Android virtual device manager
10,Link your project to emulator by using
Run>Run Configuration>Android Application >Click new select your project and emulator and click ok
1,Download Java sdk JDK
and Install it2,Download Android SDK from here and Install it
http://developer.android.com/sdk/index.html
3,Download Eclipse IDE for Java Developers from here and Install it
http://www.eclipse.org/downloads/packages/eclipse-ide-java-developers/indigosr1
4,Shortcut eclipse file to your desktop and run as Administrator
5,Go to help >Install new Software >Add
In Add Repository box Enter Name &
Enter link as https://dl-ssl.google.com/android/eclipse/ and click ok
6,Select all and Import
7,In eclipse >windows>preference>Android> Copy the Android SDK location
8,Link Android Emulator by click on Android virtual device manager
9,Add new Emulator by giving name and select Android version >Create AVD
10,Link your project to emulator by using
Run>Run Configuration>Android Application >Click new select your project and emulator and click ok
Subscribe to:
Posts (Atom)
