Posts

Showing posts with the label android tips

How I Loaded My Website Quick and Fast - Techcinefun

Image
Creating a Website (or) Blog is quick and easy, thanks to online tools like Blogger, Wordpress etc. Then to make it shine (or) easy to eyes, we will add images and videos to make a post engaging and interesting to read and in process of doing it the website starts loading slowly and will lose the user's due to low response time(loading time). On average a user waits less than 3sec for page to load and we have to load the website and make it clickable(in case it is mobile) under 3sec. In today's post I will share, How to load the website (or) blog in less than 3sec. Also Read :  How I Submitted My Blog to Google Search Since we already discussed one of major factor is loading of images, if we decrease the this time, then our pages will load quick and fast. Google has come up with image format(common image formats .jpg, .png etc) called WebP which according to Google make the web faster, now comes the question what is webp and how do I make the image WebP? Then let's jump i...

How to Add Git to Android Studio Projects and pushed it to (or) share it to GitHub

Image
To add version control such as git to your Android Studio Projects and then sharing it to Github follow the below steps: First, create the android project Then go to VCS  --> Import into Version Control  --> Create Git Repository Please find the image below for the reference Then select the root of your project for git init, refer to the image below Then go to Android Studio select root of project , right click and then select Git --> Add, refer to the image below Now again right click project name and select Git-->Commit, refer to the image below once you select commit you will be presented with another screen where you can write commit message and select commit Now our project has been added to the git any changes from now on will be tracked and added to the version control Share Project on GitHub To share the project on GitHub follows the below steps: Go to VCS --> Import into Version Control --> Share Project on GitHub, refer the image below ...

Android:How to parse JSON using Okhttp Library Example with Custom View (ImageView + TextView)

Hello to everyone, Today I am posting about JSON Parsing in Android using OkHttp Library. I went through many post for parsing json but there aren't any useful (or) detailed approach (or) step by step approach, so I decided to make a project with git and detailed every step in it.  You can get the whole code on GitHub JSONParsingUsingOkhttp .  Here each and every commit describe the steps I have taken to build the project, just import this project into the Android Studio and navigate through each and every commit to know the steps.  If you find it useful just share this project.

To Show (or) Hide the Keyboard When User Launches the Activity

If you are developing an Android Application which make use of EditText view, which every developer make use of one way (or) other, here is tip to load the keyboard as soon as you enter the activity (or) disable and show only when user places the cursor on the EditText TIP 4:            To show the keyboard as soon as the user launches the activity (or) enters the screen which contains EditText fields, Add the below line of code to AndroidManifest.xml file inside the tag : android :windowSoftInputMode= "adjustResize|stateHidden"             To disable the keyboard and show only when user places the cursor use the below line of code: android :windowSoftInputMode= "adjustResize|stateVisible"

How to move between Edittexts using Android Softkeyboard

So, you are developing a Login Screen (or) Registration Screen in which you allowed the user to type their details (or) credentials one by one, so instead of placing the cursor in each of the fields, we can as a developer give them the option of navigating the fields through the inbuilt keyboard TIP 3:              To navigate (or) switch through the fields in the Login form (or) Registration from (or) Any other form just add the below attribute to every view android:imeOptions="actionNext"

How to Resize the Image and preserve its aspect ratio when downloading image from the internet in Android

When loading Images from the network, we'll need to set a specific flag, adjustViewBounds to our layout TIP 2: To re-size the image and preserve its aspect ratio among many android devices while downloading it from the network (or) internet, just add the following attribute to the Imageview android:adjustViewBounds="true"

How to Capitalized the first letter in Edit Text in Android

Many of us building Android Apps Nowadays and they need some tips (or) guidelines also some sample code's to carry on their work and serve the community, so I thought why not I share some tips regarding android apps which I came across. TIP 1 :                 To capitalized first alphabet of any word in Edit Text, just add the following attribute to your xml of EditText View android:inputType="textCapWords"