Tuesday, July 14, 2015

Steps To Extract Source Code (JAVA & XML) From An Android APK File

Pre -Requisites
First of all you need to download the following things as stated under:
Steps to Extract Source Code (Java)
  • Extract all the pre - requistics files.
  • Download your apk file and paste it on your desktop.
  • Rename your application (.apk to .zip) i.e. (ex: techiesnet.apk to techiesnet.zip)
  • Now extract the techiesnet.zip file.
Extracting Techies Net.zip file
Extracting Techies Net
  • Open the Techies Net folder, there you will find the classes.dex file.
Classes.dex file
  • Copy the classes.dex file and paste it in Dex2jar folder.
Classes.dex file
  • Now open the command prompt (Run -> Cmd -> Enter). There locate the cmd to your folder (ex: cd C:\Users\Shoeb Ahmad Fareed\Desktop\dex2jar-0.0.9.15)
  • Enter a command "dex2jar classes.dex"  -> Enter
  • Automatically classes_dex2jar.jar file will be created.
Classes.jar file
  • Now to go to Jd-Gui folder (Dex Compiler) -> Open jd-gui.exe
  • Go to File -> Open File and Locate the classes_dex2jar.jar file from Dex2jar folder
  • All the source will be displayed. Go to File -> Save all sources
  • By this you will get the source code of your application
Jar to source code (DexCompiler)
Steps To Extract XML Files
  • Create a XML folder on desktop. In that folder paste Apk tool, Apk install and android apk (techiesnet.apk) in that folder. (See the screenshot below)
Extracting XML files
  • Now open command prompt -> Locate your XML folder using the command "cd C:\Users\Shoeb Ahmad Fareed\Desktop\XML" -> Enter
  • There write the command "apktool d Techiesnet.apk" -> Enter
  • (Note: Replace Techiesnet with your application name)
  • Once all the process is completed. A folder with your application name will be created containing All the XML files.
cmd
  • As now you have got both android source code (java) and (XML). Combine them, and you can easily import the folder in your Android Development Tools using your Android_Manifest.xml file.
  • We think, you enjoyed the topic. Please let us know if you have queries.

Monday, June 30, 2014

How to Stop Google From Tracking You on the Web

Google_tracking_optout_storyimage.jpg

You probably know that websites keep track of how you're using them, and even the sites that don't require you to sign up with an account can keep a track of your preferences and behavior using cookies. But the biggest networks, like Google, and Facebook, keep tracking you even when you're not signed in and follow you around the Internet to serve you with "relevant" advertising and content. And since most of us will have signed up for at least one of Google's many popular services, that's the company that has the most information. Not everyone is comfortable with the idea of one company knowing so much about them. If you're one of these people, read on to find out how to minimize Google's tracking online.

Disable Tracking
This is the most important part of this guide. If you've noticed the same ads following you no matter which website you visit, it may be because Google is tracking you. Thankfully, Google makes it very easy to disable tracking. Go through these steps to protect your privacy.

1) Google has a page for advertisement settings. Visit it and sign in.

2) Here you will see two columns, one for advertisements you'll see on Google's websites and one for the advertisements you'll be shown on the Web. Based on your data, Google will have estimated your gender, age, languages you speak and your interests. Scroll down to Opt-out settings and click Opt-out in both columns. You'll notice that the data above will be replaced by N/A.

3) Google's advertising cookie is still tracking you. To remove it, head to the Advertising cookie opt-out page and click Download the cookie opt-out plugin. This plugin is available for Chrome, Internet Explorer and Firefox. After downloading this plugin, Google will stop tracking your browsing activity.

Google_tracking_optout_1.jpg

Disable Search History
While that stops the direct tracking, Google is still gathering a lot of information about your behavior. Whether you're using Gmail, or YouTube or Google itself to search for things, you're giving the company a clear trail of browsing data. The good news is that you can stop it from doing so easily. This is how:

1) Head to Google's account history page and sign in.

2) You will see four large cards (Things that you search for, Places you've been, Your YouTube searches, and Things that you've watched on YouTube). Each one of these will have a Pause button near the bottom-right and a Manage history link on the bottom-left.

3) Click Pause on all four tiles. This will stop Google from recording your personal data.

4) To remove the data that Google has already recorded, for each tile, click the Manage history link, then select the items, and click on "Remove items" to delete it all.

Google_tracking_optout_3.jpg

Disable Shared Endorsements
Last year, Google unveiled a new way to make advertisements more appealing - showing your Google+ activity next to advertisements. Here's what Google says about this, "To help your friends and others find cool stuff online, your activity (such as reviews, +1's, follows, shares, etc.) may be used along with your name and photo in commercial or other promotional contexts." If you'd rather not endorse products or services in advertisements posted on the Web, follow these steps.
1) Go to Google's shared endorsements settings page and sign in.
2) Now scroll down to the bottom and remove the check the box that reads, "Based on my activity, Google may show my name and profile photo in shared endorsements that appear in ads."
3) Once you've removed the tick-mark, click the blue Save button. That's it.

Google_tracking_optout_2.jpg

For Android, iOS Users
If a smartphone or tablet is your preferred device for browsing the Web, you can take a quick peek in its settings to disable tracking. On Android, head to Settings > Accounts & Sync > Google > Ads (on some devices, Google may appear in the Settings app itself). Now make sure that there is a check-mark next to Opt out of interest-based ads. On iOS, go to Settings > Privacy > Advertising and turn on Limit Ad Tracking. This will stop websites that serve advertisements from tracking your browsing activity.

Google_tracking_optout_iOS.jpg

Switch from Google
Still worried about your browsing history being tracked to deliver search results on the Web? TryDuckDuckGo, a search engine that respects your privacy. It doesn't tailor search results based on your interests or the websites you frequent. DuckDuckGo recently added several new features such as instant answers. Apple's iOS 8 supports DuckDuckGo and users will be able set it as the default search engine on their iOS devices.

Google_tracking_optout_duck.jpg


These steps should have helped you keep Google from tracking your Web activity



Monday, June 23, 2014

Using the viewport meta tag to control layout on mobile browsers

<meta name="viewport"
content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="HandheldFriendly" content="true">

It automatically give zoom-in effect which makes fields visible more clearly 

Thursday, June 19, 2014

How to Delete Gmail, Facebook, Twitter, Google+, YouTube, or LinkedIn account


Gmail
These days, almost everyone uses a Gmail account. In case you've decided to move on to another service though - or just want to delete an old account you no longer use - here are the steps you need to follow:
1) Head to this Google accounts page and log in.
2) Here you will see three links, one to remove Gmail without deleting your Google account, a second to remove Google Books and a third to close your Google account and delete all services. If you're sure about removing your Gmail account, click the first link. You'll see a warning page right away.
3) Now you will see a confirmation page. Click the check-box saying "Yes I would like to delete", enter a new primary email address you will use for other Google services, enter your Gmail password in the dialogue box,and click Remove Gmail. This will delete your Gmail account. Just to reiterate Google's warning, there's no coming back from this step, and all your mail will be gone forever.

Gmail_remove_account.jpg

Facebook
Facebook makes it very difficult to delete your account. You won't find the option to delete your account permanently simply by looking through the settings. To find that page, you can either to go to Facebook's help center or you can follow these steps:
1) If you're not sure whether you want to permanently remove your Facebook account, you can deactivate it. This way, you can rejoin within 30 days without losing your data. To do that, head to Facebook's security settings page.
2) Now click Deactivate your account. This link is buried beneath "When you're logged in" and you are unlikely to see it unless you're looking for it.
3) Facebook will now try to emotionally blackmail you into reversing your decision. If you ignore the photos of the people who "will miss you", you can select any reason and click Confirm.
4) If choose to delete your account permanently, go to Facebook's account deletion page and click Delete My Account.
5) You'll see a pop-up, where you'll have to enter your password and characters shown in an image (captcha). Click Okay and then click Okay again in a second pop-up. Facebook gives you a chance to change your mind - if you log in anytime in the next two weeks, Facebook will reactivate your account.

Facebook__delete_account.jpg

Twitter
If you'd rather stay away from the constant stream of tweets on this website, follow these steps to remove your account:
1) Head to Twitter settings and scroll to the bottom.
2) Now click Deactivate my account, which is a link below the Save changes button.
3) Twitter will give you a warning about what this means. If you're sure, you need to click on the Deactivate button. This will deactivate your Twitter account. If you change your mind and choose to return to the social network, you will have to log in within 30 days. After 30 days, Twitter will permanently remove your account.


Twitter_delete_account.jpg


Google+ & YouTube
Did you accidentally sign-up for Google+ from your Gmail account? It is extremely easy to delete your Google+ profile but it can have some unwanted consequences. First, your YouTube account will be removed too. Yes, all your YouTube comments will be removed and if you have a channel, it will be disabled. Secondly, you will not be able to leave reviews on Google Play store. This is because Google has integrated all three services together.
If you still want to take this step, this is what you need to do:
1) Go to the Google+ Downgrade page and sign in with your Google account.
2) Now scroll down all the way to the bottom and click the check-box next to "Required: Yes I understand that...".
3) Click Remove selected services. This will delete your Google+ and YouTube accounts.


Google_YouTube_account_delete.jpg


LinkedIn
The world's most popular career database, LinkedIn, can be quite annoying with its constant notification emails and updates that land in your inbox. Luckily, they've made it pretty easy to delete your account. Here's how:
1) Open LinkedIn's Privacy & Settings page and sign in.
2) Click the Account tab next to the shield icon near the bottom-left of the page.
3) Under the Helpful Links section, select Close your account.

Monday, June 2, 2014

MySQL - Select only Date/ Time from a 'DateTime' Column

SELECT DATE_FORMAT(NOW(), '%Y-%m-%d') DATEONLY,
       DATE_FORMAT(NOW(),'%H:%i:%s') TIMEONLY

OR


select date(ColumnName) from tablename


select time(ColumnName) from tablename