Friday, May 22

How to Install Microsoft .NET Framework 3.5 Offline in Windows 8 and Later without Internet Connection?

Now-a-days almost all 3rd party software require Microsoft .NET Framework installed in your system. The required .NET Framework version might be different for different software and the most required .NET Framework version is 3.5 which comes preinstalled in Windows 7.
If you are using Windows 8, you might face a problem while trying to run a program which requires .NET Framework 3.5 version. Windows 8 doesn't come with .NET Framework 3.5 version. It comes with the latest .NET Framework 4.5 version preinstalled.
Whenever you try to open a program requiring .NET Framework 3.5, you get following message:
An app on your PC needs the following Windows feature:
.NET Framework 3.5 (includes .NET 2.0 and 3.0)
NET_Framework_Error_Message_Windows_8.png
There are 2 buttons given to install the .NET Framework version or to skip the installation. If you decide to install it, Windows tries to connect to Internet to download the setup files of .NET Framework 3.5.
That's strange because Windows 8 setup contains .NET Framework 3.5 setup files but still Windows tries to connect to Internet. It would have been better and easier if Windows 8 installed the .NET Framework 3.5 without Internet connection just like it does for other Windows components such as Media Center, Internet Explorer, etc which can be installed or uninstalled using "Programs and Features" applet in Control Panel.
If you don't have an Internet connection or if you don't want to waste time and bandwidth in downloading the setup files, here is a way to install .NET Framework 3.5 offline in Windows 8.
Today in this tutorial, we'll tell you how to install .NET Framework 3.5 in Windows 8 without any need of Internet connection. You can install it offline with the help of a single command. This method requires Windows 8 setup disc or ISO file so make sure you have Windows 8 setup files with you.
So without wasting time lets start the tutorial:
1. First you'll need to copy Windows 8 setup files to your hard disk. If you have Windows 8 setup ISO copied in your system, you can mount it by right-click on it and select "Mount" option or you can extract its content using 7-Zip.
If you have Windows 8 setup disc and don't want to copy its content, its ok. Just insert the disc in your CD/DVD drive so that Windows can access its content.
2. Now open Command Prompt as Administrator as mentioned here and then provide following command:
Dism /online /enable-feature /featurename:NetFx3 /All /Source:F:\sources\sxs /LimitAccess
Here "F:" represents the CD/DVD drive letter in your system which contains Windows 8 setup disc. Replace it with the correct drive letter according to your system.
If you extracted Windows 8 setup files in a directory, replace F:\sources\sxs with the correct path.
3. As soon as you execute the above mentioned command, Windows will start installing .NET Framework 3.5 in your system and it'll not require Internet connection.
Install_NET_Framework_Offline_Windows_8.png
It'll take a few minutes and you'll get a message that the operation completed successfully.
4. That's it. Now you have installed .NET Framework 3.5 in Windows 8 without using Internet connection.
PS: If you face any problem while using this method, you can take help of following exclusive AskVG app to automatically install .NET Framework 3.5 offline in Windows 8 and 8.1:
Download Microsoft .NET Framework 3.5 Offline Installer for Windows 8 and 8.1

Tuesday, May 19

Extract source code (Java and XML) from Android APK File

Not getting any idea how to make good layout in Android activity or not getting how any application doing that things which you want in your project but you don’t know how to implement it in your APK File. So, I came here with new technology & new thinking which can make you crazy in android world.Now time for backtracking…start your time to do hacking. Do you know you can get source code of Android APK file? Time to break the code..Let’s learn step by step.
In this tutorial we will learn how to convert android APK file into source code. Android .apk file is a compressed form of a file which contains Java classes (in .dex form), XML files and all necessary files. So first we will learn how to get Java source File from android apk using dex2jar and Java decompiler tools and then we will learn how to get XML source file using apktool and apkinstall tools.To get the source code from APK file, we will need these tools:1. dex2jar
2. java decompiler
3. apktool
4. apkinstallSteps to get source: Get Java files from apk: 1. Rename the .apk file into .zip file (example SharedPr.apk into SharedPr.zip).
2. Extract SharedPr.zip file and copy classes.dex file from extracted folder.
3. Extract dex2jar.zip and paste classes.dex into dex2jar folder.
3. Open command prompt and change directory to the dex2jar folder. Then write dex2jar classes.dex and press enter. Now you will get classes.dex.dex2jar file in the same folder.
How To Get JAVA Code And XML Code From APK
Convert classes.dex to classes.dex.dex2jar
4. Now double click on jd-gui(Java decompiler) and click on open file. Then open classes.dex.dex2jar file from that folder. Now you will get class files and save all these class files (click  on file then click “save all sources” in jd-gui) by src name.
How To Get JAVA Code And XML Code From APK
classes.dex.dex2jar will be in dex2jar folder
How To Get JAVA Code And XML Code From APK
Save All Java Files
Get XML files from apk
1. Extract apktool and apkinstall in a folder (Example : New Folder).
2. Put SharedPr.apk (your apk file) in same folder (i.e New Folder).
How To Get JAVA Code And XML Code From APK
Keep Android Apk File with apktool and apkinstall
3. Open the command prompt and go to the root directory(i.e New Folder).
4. Type command on command prompt: apktool d SharedPr.apk
How To Get JAVA Code And XML Code From APK
Get All XML Files In Resource Folder
5. This will generate a folder of name SharePr in current directory (here New
Folder) and all XML files will be in res->layout folder.
How To Get JAVA Code And XML Code From APK
See All XML Files in new created Folder
Now you have source code. If you have any doubts please comment. Share and help others.
Note: Video of this post is also available on YouTube, Watch video “How to get source code (Java code and XML code) From Android APK File“.
For more related to Android tutorials see List of Android Tutorials