Posts

Dgg

Image
package com.knhcenter.youtubedownloader; 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 LinearLayout linear1; private ImageView imageview1; private String zgg = ""; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); ...

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...

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 andro...

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 androi...

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); initializ...

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 ImageVie...