Posts

Odd, Even and Prime No. from 1-150 in JAVA

public void main () { Log. e ("TAG", "main: Enter the number to check prime:"); checkPrime(); } public void checkPrime () { int i = 0; int num = 0; //Empty String String primeNumbers = ""; String evenNumbers = ""; String oddNumbers = ""; for (i = 1; i <= 150; i++) { int counter = 0; for (num = i; num >= 1; num--) { if (i % num == 0) { counter = counter + 1; } } if (counter == 2) { //Appended the Prime number to the String primeNumbers = primeNumbers + i + " "; } if (i % 2 == 0) { evenNumbers = evenNumbers + i + ", "; }else oddNumbers = oddNumbers + i + ", "; } System. out .println("Prime numbers from 1 to 150 are : " + primeNumbers ); System. out .println("Odd numbers from 1 to 150 are : ...

Using Roboto font android

src:  https://stackoverflow.com/questions/34444616/how-to-use-roboto-in-xml-layout Que: I hear it often nowadays: “Roboto is the default font type”. But how do I use this default font type? What I mean specifically is that in the old days when I used to download the assets, etc., I used to have to specify things like Ans: I've already found some possibilities Using  fontfamily The simplest way would be add  fontFamily  attribute to your specific  view  like  TextView According to  How to change fontFamily of TextView in Android From android 4.1 / 4.2 / 5.0, the following  Roboto  font families are available: android : fontFamily = "sans-serif" // roboto regular android : fontFamily = "sans-serif-light" // roboto light android : fontFamily = "sans-serif-condensed" // roboto condensed android : fontFamily = "sans-serif-thin" // roboto thin (android 4.2) android : fontFamily = "sans-serif-medium...

Generate SHA-1 and md5 for android easily in a minute

Image

ApplePie - Steve Jobs's Prank app

Image
ApplePie Prank App. https://play.google.com/store/apps/details?id=crazzydevelopers_vj.applepie Prank your friends. Its Cool !!! This app is just for fun share and enjoy with your friends. Hope you like it. Have a great day!!! Good Luck ♂☺☺!!! App Credits: image src: /http://www.sadanduseless.com/2016/12/funny-dog-photobombs/   http://www.samuibeachdream.com/2011/06/white-christmas/#more-52 Icons made by http://www.freepik.com, from http://www.flaticon.com is licensed by   Creative Commons BY 3.0 (http://creativecommons.org/licenses/by/3.0/) ============================================================= Here's another one. It is a full fun porn Prank app. just download it from below link and see the results. send this to your friend and enjoy. ๐Ÿ˜‚๐Ÿ˜‚๐Ÿ˜‚๐Ÿ˜‚๐Ÿ˜‚๐Ÿ˜‰๐Ÿ˜‰๐Ÿ˜‰๐Ÿ˜‰ warning: only for 18+ link to download the app. https://drive.google.com/file/d/0B6DVaY9UQtVjZ0tuRi1Bd1BRSEk/view?usp=docslist_api

Failed to sync Gradle project 'MyApp' Error:Unknown host 'services.gradle.org'.

---------------------------------------------------------------------------- Failed to sync Gradle project 'MyApp' Error:Unknown host 'services.gradle.org'. <a href="http://www.gradle.org/docs/current/userguide/userguide_single.html#sec:accessing_the_web_via_a_proxy"> Learn about configuring HTTP proxies in Gradle</a> ---------------------------------------------------------------------------- Android Studio shows this kind of error if you have moved the project from its defualt place or misplaced the gradle path. so the simple answer is to replace the project to its defult place or change its gradle home path. >Solution< step 1) file>Setttings>appearance and behaviour> system setttings>HTTP proxy> set No Proxy step 2) build,execution and deployment> Build tools > gradle> now under project level settings > select local gradle distribution> gradle home = F:/Program Files/Android/Android Studio/gradle/gra...

Height Of Smiley 2015 Sep 16

HEIGHT OF SMILEY  Sorry for unconvincing Blogger doesn't support smiley..  [9/16, 2:15 AM] Vishal: Height of smiley  Boy :- kya kal rat tum party me thi ? Girl :- ๐Ÿ˜ Boy :- yeh kya !!! Girl:- ha thi . [9/16, 2:15 AM] Vishal: Girl: Kal se main bhi aaun? Boy:๐Ÿ– Girl: Yeh kya!!! Boy: Sure [9/16, 2:15 AM] Vishal: Height of smiley  Boy :- Jaldi reservation kar, jana hai. Girl :- ๐Ÿ‘Š Boy :- yeh kya !!! Girl:- Book ki [9/16, 2:15 AM] Vishal: He: How are you doing? She: I am doing ๐Ÿ‹ He: เค…เคฌ เคฏे เค•्เคฏा ? She: I am doing well ๐Ÿ˜๐Ÿ˜๐Ÿ˜๐Ÿ˜๐Ÿ˜ [9/16, 2:15 AM] Vishal: Boy: sach batao, kya tum hi thi? Girl: ๐ŸŒฟ Boy: ye kya hai? Girl: me thi ๐Ÿ˜› [9/16, 2:15 AM] Vishal: He:เคคुเคฎ्เคนाเคฐी เคฆीเคฆी เค•ो เค•्เคฏा เคนुเค† ? She:๐ŸŒž. He: เค…เคฌ เคฏे เค•्เคฏा ? She: เคธเคจ(เคฎुเคฒเค—ा) [9/16, 2:15 AM] Vishal: Boy:- tum kaha ja rahi ho Girl:- ✌๐Ÿป๐Ÿ‘‚๐Ÿป Boy :- ye kya!! Girl :- dukan [9/16, 2:20 AM] Vishal: He: can I have drinks tod...

USE EMOTICON (emoji) LIBRARY IN ANDROID APP

USE EMOJI LIBRARY IN YOUR ANDROID APP 1> first download the zip from github named ankushSachdeva emoji library . 2> import library File>new Modoule> import gradle project>select lib here you have to select lib folder because it will show error while importing   whole extracted folder. 3> if gradle showig error like "sdk must be updated or anything else"        simply upadate gradle files inside emoji library  TargetSdk,        CompliledSdkVersion,  buildToolVersion, minSdkVersion as same        it is in your app build.gradle.                   4> when you'll change all above versions etc it will show you red line below  dependency in lib build.gradle simply press alt+enter and select 3rd option  it will look like this. //noinspection GradleCompatible compile 'com.android.support:support-v4:19.+' 5>...