Posts

Showing posts from October, 2017

Make animate photo

package com.my.newproject3; import android.app.*; import android.os.*; import android.view.*; import android.view.View.*; import android.widget.*; import android.content.*; import android.content.ClipboardManager; import android.graphics.*; import android.media.*; import android.net.*; import android.text.*; import android.util.*; import android.webkit.*; import android.animation.*; import android.view.animation.*; import java.util.*; import java.text.*; public class MainActivity extends Activity { private HorizontalScrollView hscroll1; private Button button1; private TextView textview1; private Button button2; private TextView textview2; private Switch switch3; private EditText edittext2; private Button button3; private CheckBox checkbox2; private CheckBox checkbox3; private WebView webview2; private Spinner spinner1; private ListView listview1; private ScrollView vscroll1; private ImageVie

How to enable uploading in sketchware

Code.1 webview.setWebChromeClient(new WebChromeClient() { @Override public boolean onShowFileChooser(WebView webView, ValueCallback filePathCallback, FileChooserParams fileChooserParams) { mFilePathCallback = filePathCallback; Intent intent = new Intent(Intent.ACTION_GET_CONTENT); intent.setType("*/*"); startActivityForResult(intent, PICKFILE_REQUEST_CODE); return true; } }); Code2. } private ValueCallback <Uri[]> mFilePathCallback; private static final int PICKFILE_REQUEST_CODE = 0; @Override protected void onActivityResult(int requestCode, int resultCode, Intent intent) { if (requestCode == PICKFILE_REQUEST_CODE) { Uri result = intent == null || resultCode != RESULT_OK ? null : intent.getData(); Uri[] resultsArray = new Uri[1]; resultsArray[0] = result; mFilePathCallback.onReceiveValue(resultsArray); }

Use of checkbox in Sketchware

Image
Use of checkbox in Sketchware Use of checkbox in Sketchware Welcome my friend in KNHCenter. To day I discuss about check box. Checkbox return type is true or false .when checkbox checked than it return true otherwise return false. 1.open sketchware app 2.Make new project 3.today my gole is make a project .When I pressed the a button .If check box is check than a message show me that check box is check . Otherwise show me a massege check box is unchecked. 4. Make following main.xml file like image which is given below 5. Create logi in onclik button This   For android studio java and XML code is below:- Main.Java:- package com.my.newproject3; import android.app.*; import android.os.*; import android.view.*; import android.view.View.*; import android.widget.*; import android.content.*; import android.content.ClipboardManager; import android.graphics.*; import android.media.*; import android.net.*; import android.text.*; import android.util.*; import android.w

ontal and vertical layout use

Image
Linear horizontal and vertical layout use To we study about XML  linear and horizontal layouts. To day goal :- 1.What is horizontal and vertica layouts 2. Mixing of layouts Horizontal layouts:- Horizontal layouts contain x-axis components . 1. Drag and drop linear layouts And drag and drop all function like this. Same as vertical case:-   Mixing of layouts 1.drag and drop horizontal and go to property section and change the hight of layouts select parent . After this drag and drop 3 vertical layout on horizontal and also drag and drop which function you want in app from widgets look like this:-   App all XML and java code:- package com.my.newproject2; import android.app.*; import android.os.*; import android.view.*; import android.view.View.*; import android.widget.*; import android.content.*; import android.content.ClipboardManager; import android.graphics.*; import android.media.*; import android.net.*; import android.text.*; import android.util.*; imp

Calculater

Calculater Hii today  we going the study about calculater .Today I tall you how to make a. Android calculater on your mobile by using sketchware . Follow the following step First ly open sketchware and make New project and package com.my.newproject2; import android.app.*; import android.os.*; import android.view.*; import android.view.View.*; import android.widget.*; import android.content.*; import android.content.ClipboardManager; import android.graphics.*; import android.media.*; import android.net.*; import android.text.*; import android.util.*; import android.webkit.*; import android.animation.*; import android.view.animation.*; import java.util.*; import java.text.*;   public class MainActivity extends Activity { private Button button1; private TextView textview1; private double a = 0;     @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); initialize(); initializeLog

How to make a phone calling app

How to make a phone calling app To day I tall you how to make a mobile calling app in your android mobile .Firstly download the a Ide sketchware and open it go to the new project and follow the following step one by Step_1 open sketchware and open new project and change the sour code and uniyal the appp package com.my.newproject2; import android.app.*; import android.os.*; import android.view.*; import android.view.View.*; import android.widget.*; import android.content.*; import android.content.ClipboardManager; import android.graphics.*; import android.media.*; import android.net.*; import android.text.*; import android.util.*; import android.webkit.*; import android.animation.*; import android.view.animation.*; import java.util.*; import java.text.*;   public class MainActivity extends Activity { private Button button1; private TextView textview1; private ImageView imageview1; private ImageView imageview2; private CheckBox checkbox1; private ImageView im

How to enable downloding in sketchware

Ho w to enable downloding in sketchware Hii friends today I discuss about the a very high problem of android developer how to enable downloding in sketchware and how to enable downloding in web view this is very sample following option. Follow and make essay Step 1 open your sketchware and Make a impression high directive appp and add web view and following code give you cabn add all code on the appp and run Step run the app and now downloding is activated 😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊 package com.my.newproject2; import android.app.*; import android.os.*; import android.view.*; import android.view.View.*; import android.widget.*; import android.content.*; import android.content.ClipboardManager; import android.graphics.*; import android.media.*; import android.net.*; import android.text.*; import android.util.*; import android.webkit.*; import android.animation.*; import android.view.animation.*; import java.util.*; import java.text.*;   public class

How to make a browser on android phone

How to make a browser on android phone Now you in the program on the web b2 and the web browser is very important topic of the project and you can also make the by following step Step1 Open the sketchware and make a new project and inserthow to enable downloding in sketchware package com.my.newproject2; import android.app.*; import android.os.*; import android.view.*; import android.view.View.*; import android.widget.*; import android.content.*; import android.content.ClipboardManager; import android.graphics.*; import android.media.*; import android.net.*; import android.text.*; import android.util.*; import android.webkit.*; import android.animation.*; import android.view.animation.*; import java.util.*; import java.text.*;   public class MainActivity extends Activity { private Button button1; private TextView textview1; private ImageView imageview1; private ImageView imageview2; private CheckBox checkbox1; private ImageView imageview3; private Button b

How to a Media Player on android mobile

How to a Media Player on android mobile How to a Media Player on android mobile Today we study on “how to make media player”. To day tell you a very important function of sound and media player. follow the following steps . step 1- open the skeatchware and step-2 package com.my.newproject2; import android.app.*; import android.os.*; import android.view.*; import android.view.View.*; import android.widget.*; import android.content.*; import android.content.ClipboardManager; import android.graphics.*; import android.media.*; import android.net.*; import android.text.*; import android.util.*; import android.webkit.*; import android.animation.*; import android.view.animation.*; import java.util.*; import java.text.*;   public class MainActivity extends Activity { private Button button1; private TextView textview1; private ImageView imageview1; private ImageView imageview2; private CheckBox checkbox1; private ImageView imageview3; private Button button2; pr