Skip to main content

Posts

Showing posts from 2017

Sort an Array Elements in Java

Sort an Array Elements in Java To sort array element in java no need to write new concept just change the syntax of c programming into java code.. also click ==>here for java odd and even number code
Java Program to Find Largest Number Among Three Numbers Input three number from user and compare these number with each others and find largest number among these three numbers Find Largest Number Program in Java

Java Program to Find Odd or Even number

Java Program to Find Odd or Even number In below code i will show you how to design Java Program to Find Odd or Even number. In this program we receive input value from keyboard and find modulo 2 (num%2) of number if reminder of number is zero then that number is even other wise odd. Even numbers are those which are divisible by 2, and which numbers are not divisible 2 is called odd numbers. Java Program to Find Odd or Even Explnation of Code Scanner s=new Scanner(System.in): are used for receive input from keyboard. nextInt(): method are used for get integer type value from keyboard. System.out.println("....."): are used for display message on screen or console.

How to Capture WPA Passwords with Fluxion

How to Capture WPA Passwords with Fluxion Install Fluxion To get Fluxion running on our Kali Linux system, clone the git repository with: git clone =>https://github.com/wi-fi-analyzer/fluxion Note: The developer of Fluxion shut down the product recently, but you can get an older version of it using the command above instead (not the URL you see in the image below). Then, let's check for missing dependencies by navigating to the folder and starting it up for the first time. cd fluxion sudo ./fluxion You'll likely see the following, where some dependencies will be needed. Run the installer to fetch dependencies and set your board to green with: sudo ./Installer.sh A window will open to handle installing the missing packages. Be patient and let it finish installing dependencies. After all the dependencies are met, our board is green and we can proceed to the attack interface. Run the Fluxion command again with sudo ./fluxion ...

How to Add a Facebook Share Button to Blogger Posts

How to Add a Facebook Share Button to Blogger Posts Allowing others to easily share your content on social media is something that is always important. Thankfully, many of the services we use for our online promotion have social sharing buttons that we can implement into our websites. Adding a Facebook Share button to Blogger is a little different than some other sites because we want the button to automatically insert the URL of the page the visitor is currently on, or the post they want to share, without having to update this link manually. Adding a Share button to your blog’s template will ensure that it stays in place at the bottom of every post, and with the code below, the link will be automatically inserted into the button. Let’s get started Login to your Blogger account and backup your template in case something goes wrong. You can do this by clicking the Backup/Restore button in the top corner and saving the file to your computer. Go to Template > Edit HTML. Cl...

Working with Android 7.1 App Shortcuts

Working with Android 7.1 App Shortcuts Android 7.1 introduced a new feature called App Shortcuts. When you long press your app icon, it shows shortcuts to specific actions which can be launched, on supported launchers. For example, a dialer app can show shortcuts to your recently dialed numbers. A messaging app can show shortcuts to your recent conversations. In this tutorial, we will create two Activities and add these activities as shortcuts. Prerequisites Make sure you have updated your Android SDK to 7.1 and Created a virtual device with Android 7.1 System Image. creating project Here I have created an Android Studio project with package com.lagahit.appshortcuts also Activity as MainActivity and layout as activity_main. Our main layout has a Button to launch Profile Activity. Creating Profile Activity To the left of Android Studio, you will find Project Explorer. Right Click on the app from the project explorer and select, New -> Activit...

Few time saving tips on Android Studio

Few time saving tips on Android Studio Some developers may already be using these methods to save some time. So if you haven’t, it may save a few minutes of your time. Generate Getters and Setters in Android Studio If you are creating a model class to store data with large number of variables, you may have manually created getters and setters for all those variables. This may help you to save some time. Right click anywhere inside the class. Select Generate -> Getter and Setter Now select the variables for which the getters and setters should be generated. Now Android Studio automatically generates it for you. Shortcut Key Alt + Enter -> Generate -> Getter and Setter Implement Methods Unimplemented methods in a interface can be implemented by using the shortcut key, Ctrl + I Command + I (Mac) A dialog pops up. Then select OK. Override Methods To override a method from Super class you can use the shortcut key, Ctrl + O Command + O ...

How to Run Kali Linux on Android using Linux Deploy

How to Run Kali Linux on Android using Linux Deploy Getting Kali Linux to run on ARM hardware has been a major goal for us since day one. So far, we’ve built native images for the Samsung Chromebook, Odroid U2, Raspberry Pi, RK3306, Galaxy Note 10.1, CuBox, Efika MX, and BeagleBone Black to name a few. This however does not mean you cannot install Kali Linux in a chroot on almost any modern device that runs Android. In fact, the developers of Linux Deploy have made it extremely easy to get any number of Linux distributions installed in a chroot environment using a simple GUI builder. PREREQUISITES 1)A device running Android 2.1 and above, rooted. 2)At least 5 GB free space on internal or external storage. 3)A fast, wireless internet connection. 4)Patience to wait for a distribution to bootstrap from the network. CONFIGURING LINUX DEPLOY FOR KALI There’s actually very little to be done to get Kali installed. By choosing Kali Linux in the “Distribution” tab, you’...

Samsung Galaxy S6 Edge Power On Off Key Button Switch Jumper Ways Smartphone Repairing

Samsung Galaxy S6 Edge Power On Off Key Button Switch Jumper Ways Smartphone Repairing Samsung Galaxy S6 Edge charging ok, flash ok, but not powering phone, this mean power button cut/line problem.So now follow simple power button jumper ways. Smartphone Repairing If you are facing an energy problem in Samsung Galaxy S6 Edge diagrams in this article can help. Continue with the following troubleshooting solutions and establish bridges necessary for the points that have been damaged. Samsung Galaxy S6 Edge Dead does not start Solution Samsung Galaxy S6 Edge keys Power Jumper Samsung Galaxy S6 Edge On Off Button Ways Samsung Galaxy S6 Edge power button point Trick damaged bridge. Trace point of damage to the meter or check off switch with a new one. We can check problem button to connect the phone to the charger with mobile entertainment indicator appears on the screen and pressing the power button, then this is a power button problem. See diagram and apply jumpers as diagram. Smar...

Samsung Galaxy S6 edge Plus camera not working problem solution jumper ways Smartphone Repairing

Samsung Galaxy S6 edge Plus camera not working problem solution jumper ways Smartphone Repairing if you are facing camera problem in Samsung Galaxy S6 edge Plus fix rare camera solution with jumpers is possible once you have read all this post. It is vary useful for Samsung Galaxy S6 edge Plus camera jumper ways. Smartphone Repairing If you see a black screen or your camera application crashes constantly, follow the steps below to fix the problem. If you have a problem with your smartphone, the first thing to do is find out if it is a software or hardware problem. Start Face time or any other video chat application and try to make a video call to a friend of yours. Check both cameras on the smart phone. If they work well during the video call, you can be happy: it’s a software problem that you can easily fix. In basic troubleshooting check back camera and front camera if both are not working it can be fault of software application. While in other case only back rare camera is n...

Samsung Galaxy Grand Neo I9060 Cell Phone Screen Repair Light Problem Solution Jumper Ways Smartphone Repairing

Samsung Galaxy Grand Neo I9060 Cell Phone Screen Repair Light Problem Solution Jumper Ways Smartphone Repairing This post is all about Samsung Galaxy Grand Neo I9060 fix phone screen problem solution. If mobile phone scree display is not working good or the screen light is not working. Samsung Galaxy Grand Neo I9060 cracked screen repair is only possible with phone screen replacement. But if the screen is not broken then replace phone screen is not required. Smartphone Repairing If Samsung Galaxy Grand Neo I9060 screen is blinking or dim light having blank scree. In all these case we have to disassemble the smart phone and check screen jack if there is any rust carbon or damages of screen jack pins.Samsung Galaxy Grand Neo I9060 phone repair tutorials are given in a few more posts so you can search other repairing problem solutions here. If screen jack have no any fault then the above mobile screen repair diagram will help you to find out tracks that are used in screen functi...

Samsung Galaxy Grand Prime Plus G532F Insert Sim Card Problem Solution Jumper Ways Smartphone Repairing

Samsung Galaxy Grand Prime Plus G532F Insert Sim Card Problem Solution Jumper Ways Smartphone Repairing in case of insert sim problem in Samsung Galaxy Grand Prime Plus G532F it will show insert sim, sim not valid, and may not show signal.to solve Samsung Galaxy Grand Prime Plus G532F Insert Sim IC Solution Jumper Problem Ways we have to do a few simple steps as given in this post.in first step replace you sim and try it.scratch sim points in mobile slightly then try. Smartphone Repairing after dis assembly check all sim jack points at mother board with meter.check all these parts and track that are given in above diagram and if any of them is missing apply jumpers to make that path in good condition.if any of the components is missing replace it with new. you can change sim ic also and may can apply jumpers after removing ic from mother board.there are some posts also to describe that how to make jumpers in sim ic to solve insert sim problem. For more information and new ti...

Raspberry Pi making HTTP requests using Python

Raspberry Pi making HTTP requests using Python HTTP GET and POST requests can be used to communicate with web servers ,api etc. Using this method you can develop some cool apps with your Raspberry Pi. In this tutorial we are going to see how to make HTTP GET and POST requests with your Raspberry Pi. Making HTTP GET requests In Raspberry Pi the HTTP GET requests can be made using the package urllib. The code is very simple. By using the method urllib.urlopen() you can get the contents of the page. In this example I am making HTTP GET request to the url “http://api.learn2crack.com/rpi/rpi_get.php”. It will print the output as “Hello Raspberry Pi”. Example Making HTTP POST requests Http POST requests can be made using the package urllib and urllib2. The post parameters should be in the format of { ‘data’:’data’ }. The post request can be made using the method urllib2.Request(). By using the method urllib2.urlopen() you can get the contents of the page. In this example I a...

Install Android Apk in Android Emulator easily

Install Android Apk in Android Emulator easily Android is a Linux-based operating system designed primarily for touchscreen mobile devices such as smartphones and tablet computers. Initially developed by Android, Inc., which Google backed financially and later bought in 2005 Android was unveiled in 2007 along with the founding of the Open Handset Alliance: a consortium of hardware, software, and telecommunication companies devoted to advancing open standards for mobile devices. The first Android-powered phone was sold in October 2008. In order to use android emulator in your computer download and install android sdk and download the packages required. Download sdk from the link https://developer.android.com/sdk/index.html Start the emulator from the android virtual device manager. In windows change your directory to sdk/platform-tools and open the command prompt. Type adb devices to view the emulator attached. For example let us consider the apk...

How to decompile Android apk to Java source code

How to decompile Android apk to Java source code Finally we found a way to easily decompile Android apk to original java source code.Here are the instructions to decompile android apk to java source code. This method is also called as Reverse Engineering. Requirements: Eclipse IDE: Download and install eclipse IDE from the link. http://www.eclipse.org/downloads/ Dex2jar: Dex2jar converts the DEX (Dalvik Executable) files to the Java source. Download and extract dex2jar from the link. https://dex2jar.googlecode.com/files/dex2jar-0.0.9.15.zip JD-GUI: JD-GUI is used to see the soure Java Class files from the converted jar files. Download and extract JD-GUI from the link. https://innlab.googlecode.com/files/jd-gui-0.3.3.windows.zip Decompiling Instructions: 1.Open Eclipse IDE and create a new Java project named Android2Java. 2.Create a new folder “libs” in the root of your Android2Java project. 3.Paste the jar files in the lib folder of extracted dex2jar...

Control your Android device from a PC

Control your Android device from a PC It would be easy if you control your Android device from your PC. We are providing you a way to control your Android device from your PC’s browser via WiFi tethering or through Internet via a Android Application called AirDroid. Requirements: 1. An Android device2. AirDroid App:Download and install AirDroid from the link https://play.google.com/store/apps/details?id=com.sand.airdroid3. Open AirDroid and register for a AirDroid account. Connecting Device via WiFi: 1. Open AirDroid App.2. In the Tools tab select Tethering, then Enable Set up portable hotspot. 2. The in your PC connect to a Wireless AP called AirDroid AP.4. Then Open the URL http://192.168.43.1:8888/ in your browser. In the Android device AirDroid asks for permission, accept it. 3. Now you can control your Android device via Browser. 4. You can transfer files, Install Apps, Play Video etc. Connecting Device through Internet: 1. Connect both the Android Device...