Skip to main content

Posts

Add Swipe To Refresh Feature To Your App using Android Studio

Add Swipe To Refresh Feature To Your App Using Android Studio If you haven't watched the video watch it now! Source Code Android Manifest.xml < manifest xmlns: android = "http://schemas.android.com/apk/res/android" package= "swiperefresh.com.swipetorefresh" > < uses-permission android :name= "android.permission.INTERNET" /> < application android :allowBackup= "true" android :icon= "@mipmap/ic_launcher" android :label= "@string/app_name" android :roundIcon= "@mipmap/ic_launcher_round" android :supportsRtl= "true" android :theme= "@style/AppTheme" > < activity android :name= ".MainActivity" > < intent-filter > < action android :name= "android.intent.action.MAIN" /> < category android :name= "android.intent.cate...

Add SeekBar Inside Dialog Box

Add SeekBar Inside Dialog Box  If you haven`t yet watched the video, Watch  it  Now...! Open your   Sketchware  project.Add  Dialog Box  component. Go to the logic section & add the  blocks  which are necessary to create a  dialog box. Now you have to make some modifications.In order to add SeekBar you have to use add source directly block.Add the following code inside it.Please watch the above video for reference final SeekBar cb1 = new SeekBar(MainActivity.this); LinearLayout.LayoutParams lpar = new LinearLayout.LayoutParams(LinearLayout.LayoutParams.WRAP_CONTENT, LinearLayout.LayoutParams.WRAP_CONTENT); cb1.setLayoutParams(lpar); dialog.setView(cb1); Inside the block  " dialog OK Button Clicked ",  add the following code using  add source directly block textview1.setText(String.valueOf(cb1.getProgress())); Thats It :) Now Run your Application ...

Create Text to speech converter app using Sketchware

Create Text to speech converter app using Sketchware If you haven't yet watched the video , watch it right now ! Open Sketchware . Create new project .Go to the logic section  . In on Create event , add the following code t1=new android.speech.tts.TextToSpeech(getApplicationContext(), new android.speech.tts.TextToSpeech.OnInitListener() { @Override public void onInit(int status) { if(status != android.speech.tts.TextToSpeech.ERROR) { t1.setLanguage(Locale.UK); } } }); } android.speech.tts.TextToSpeech t1; private void nothing(){  Go to the logic section and tap on Button1 on Click event Create a string variable named  " speak ". Now set the value of that string variable using  blocks. Please watch the above video for Reference. Now use add source directly block and add the following code t1.speak( speak , android.speech.tts.TextToSpeech.QUEUE_FLUSH, null);   Run the app. ...

Add Checkbox Inside Dialog Box | Sketchware tutorial

Add Checkbox Inside Dialog Box  If you haven`t yet watched the video, Watch it Now...! Open your Sketchware project.Add Dialog Box component. Go to the logic section & add the blocks which are necessary to create a dialog box. A screenshot is given below for your reference.                                    Now you have to make some modifications.In order to add checkbox you have to use add source directly block.Add the following code inside it.Screenshot is given below for your reference final CheckBox cb1 = new CheckBox(MainActivity.this); cb1.setText("CheckBox"); LinearLayout.LayoutParams lpar = new LinearLayout.LayoutParams(LinearLayout.LayoutParams.WRAP_CONTENT, LinearLayout.LayoutParams.WRAP_CONTENT); cb1.setLayoutParams(lpar); dialog.setView(cb1); Inside the block " dialog OK Button Clicked ", add the following code using add...

Add Edittext Inside Dialog Box

Add Edittext Inside Dialog Box If you haven`t yet watched the video... Watch  it right  now!!! The code used in the above video is available here. final EditText edittext1= new EditText(MainActivity.this); LinearLayout.LayoutParams lpar = new LinearLayout.LayoutParams(LinearLayout.LayoutParams.WRAP_CONTENT, LinearLayout.LayoutParams.WRAP_CONTENT); edittext1.setLayoutParams(lpar); dialog.setView(edittext1); textview1.setText(edittext1.getText());

Restrict the length of Edittext characters

Restrict the length of Edittext characters  1) Open your sketchware project.Add edittext. In the logic section, OnActivityCreate  Add the following code InputFilter [] editFilters = edittext1 . getFilters (); InputFilter [] newFilters = new InputFilter [ editFilters . length + 1 ]; System . arraycopy ( editFilters , 0 , newFilters , 0 , editFilters . length ); newFilters [ editFilters . length ] = new InputFilter . LengthFilter ( 10 ); edittext1 . setFilters ( newFilters ); If you have any doubts  , comment below

Add Admob Interstitial Ads To Your Sketchware Project Using AIDE

Add Admob Interstitial Ads To Your Sketchware Project Using AIDE 1) Export your Project from Sketchware. The project will be in the format of zip file.Extract it.Check whether any files are missing.In my case the build.gradle file was missing.So I copied the build.gradle file of my previous project and pasted it . Note : After pasting , change the application id in the build.gradle file to the package name of the project in which you want to add Ads                                                                                                                                                ...

Implement Custom Toast In Your App Using Sketchware

Implement Custom Toast In Your App Using Sketchware In this tutorial I will show you how to implement custom toast.Its very easy and simple. Follow the steps .... 1)Create a  new project in Sketchware . Add a Button .  Screenshot is given Below              2)Add a New Custom View .In the custom view add a Linear Layout . Inside the LinearLayout add a Textview. Screenshot is Given Below                                                                           3) Now go to the logic area. You will see two events. onCreate & Button:button1 onClick.                                      Click on But...

How To Use Switch In Sketchware

How to make use of switch? Watch the video tutorial to get to know the use of switch.... Below is a very simple tutorial. Youtube Url If you find this tutorial helpful please comment below. 

Did you like this tutorial ?