Posts

Featured Post

Sketchware Generate Firebase Dynamic Link (Long Url To Short) | sketchware blocks explained

Image
  So Today I am going to discuss how to make long url to short link with firebase dynamic link Table of Contents View So first I'll design a ui for this app here is a example of app ui. I used a  edittext  to get long link a  button  to generate link. A  textview  to get generated link.                                      ui example Library Add firebase project in your sketchware and turn on appcompact library.                               Add Firebase Example Oncreate Leave oncreate section empty  Components section   Add a request network component as shown in picture. On Button Click Add a  string  I used  url_to_shorten  as string name Add an another string named json In the value of json put this a join and another join block inside this block.  Code for first part {    "longDynamicLink": "https://sketchprojects.page.link/?link= Change with you dynamic link  After that add you string variable (whose value is long url) Code for second part ",      "su

Create Percentage loading bar in sketchware

Image
  Helo Guys, Today i am going to tell how to make percentage loading bar in sketchware. How it works in Sketchware Pro ? For example you add a progress bar in sketchware and it looks normal but there is a method in which you can add a textview which will show how much percent is loaded. And the best thing is that this textview will be interlinked with progress bar. So let's start our project View manager In view manager section I have added a linear named  load   a progressbar named  progressbar1  and a textview named  persen  . Components manager In components manager I added a timer named  t  and a intent named  I  Oncreate I have added a number variable named  n .  1. Set number  n  to  0 2. Timer after  100ms  for every  100ms 3.  progressbar1  set progress  n 4. Add code which I had given below 5. //Do whatever you want when progress = 100 6. If  n=101  set  n  to  0  else  n  increase  1   Use this code in asd if (n==0) { persen.setText ("0%"); } if (n==1) { persen.