Friday, 10 October 2014

Android Expandable ListView

CLICK HERE TO DOWNLOAD THIS PROJECT

activity_main.xml

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_height="match_parent"
    android:layout_width="wrap_content"
    android:paddingLeft="16dp"
    android:paddingRight="16dp"
    android:paddingTop="16dp"
    android:paddingBottom="16dp"
    >
<ExpandableListView
    android:id="@+id/exp_list"
    android:layout_height="match_parent"
   android:layout_width="match_parent"
  android:indicatorLeft="?android:attr/expandableListPreferredItemIndicatorLeft"
    android:divider="#A4C739"
    android:dividerHeight="0.5dp"
     ></ExpandableListView>
    </RelativeLayout>

parent_layout.xml

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
   android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical"
   >
   <TextView
    android:id="@+id/parent_txt"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:paddingLeft="?android:attr/expandableListPreferredItemPaddingLeft"
    android:textColor="#A4C739"
    android:paddingTop="10dp"
    android:paddingBottom="10dp"
    />
 
    </LinearLayout>

child_layout.xml

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
   android:layout_width="match_parent"
   android:layout_height="wrap_content"
   android:orientation="vertical"
     >
    <TextView
        android:id="@+id/child_txt"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:paddingLeft="?android:attr/expandableListPreferredChildPaddingLeft"
        android:paddingTop="10dp"
        android:paddingBottom="10dp"
        />

    </LinearLayout>

MainActivity.java

package com.easyway2in;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;

import android.app.Activity;
import android.os.Bundle;
import android.widget.ExpandableListView;


public class MainActivity extends Activity {
HashMap<String, List<String>> Movies_category;
List<String> Movies_list;
ExpandableListView Exp_list;
MoviesAdapter adapter;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        Exp_list = (ExpandableListView) findViewById(R.id.exp_list);
        Movies_category = DataProvider.getInfo();
        Movies_list = new ArrayList<String>(Movies_category.keySet());
        adapter = new MoviesAdapter(this, Movies_category, Movies_list);
        Exp_list.setAdapter(adapter);
    }
}

MoviesAdapter.java

package com.easyway2in;

import java.util.HashMap;
import java.util.List;

import android.content.Context;
import android.graphics.Typeface;
import android.util.MonthDisplayHelper;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseExpandableListAdapter;
import android.widget.TextView;

public class MoviesAdapter extends BaseExpandableListAdapter{
private Context ctx;
private HashMap<String, List<String>> Movies_Category;
private List<String> Movies_List;
public MoviesAdapter(Context ctx, HashMap<String, List<String>> Movies_Category, List<String> Movies_List )
{
this.ctx = ctx;
this.Movies_Category = Movies_Category;
this.Movies_List = Movies_List;
}

@Override
public Object getChild(int parent, int child) {
return Movies_Category.get(Movies_List.get(parent)).get(child);
}

@Override
public long getChildId(int parent, int child) {
// TODO Auto-generated method stub
return child;
}

@Override
public View getChildView(int parent, int child, boolean lastChild, View convertview,
ViewGroup parentview) 
{
String child_title =  (String) getChild(parent, child);
if(convertview == null)
{
LayoutInflater inflator = (LayoutInflater) ctx.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
   convertview = inflator.inflate(R.layout.child_layout, parentview,false);
}
TextView child_textview = (TextView) convertview.findViewById(R.id.child_txt);
child_textview.setText(child_title);
return convertview;
}

@Override
public int getChildrenCount(int arg0) {
return Movies_Category.get(Movies_List.get(arg0)).size();
}

@Override
public Object getGroup(int arg0) {
// TODO Auto-generated method stub
return Movies_List.get(arg0);
}

@Override
public int getGroupCount() {
// TODO Auto-generated method stub
return Movies_List.size();
}

@Override
public long getGroupId(int arg0) {
// TODO Auto-generated method stub
return arg0;
}

@Override
public View getGroupView(int parent, boolean isExpanded, View convertview, ViewGroup parentview) {
// TODO Auto-generated method stub
String group_title = (String) getGroup(parent);
if(convertview == null)
{
LayoutInflater inflator = (LayoutInflater) ctx.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
   convertview = inflator.inflate(R.layout.parent_layout, parentview,false);
}
TextView parent_textview = (TextView) convertview.findViewById(R.id.parent_txt);
parent_textview.setTypeface(null, Typeface.BOLD);
parent_textview.setText(group_title);
return convertview;
}

@Override
public boolean hasStableIds() {
// TODO Auto-generated method stub
return false;
}

@Override
public boolean isChildSelectable(int arg0, int arg1) {
// TODO Auto-generated method stub
return false;
}

}

DataProvider.java

package com.easyway2in;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;

public class DataProvider {
public static HashMap<String, List<String>> getInfo()
{
HashMap<String, List<String>> MoviesDetails = new HashMap<String, List<String>>();
List<String> Action_Movies = new ArrayList<String>();
Action_Movies.add("300 Rise of an Empire");
Action_Movies.add("Robocop");
Action_Movies.add("The Hunger Games");
Action_Movies.add("The Expendables 3");
Action_Movies.add("Guardian of the Galaxy");
List<String> Romntic_Movies = new ArrayList<String>();
Romntic_Movies.add("Mean Girls");
Romntic_Movies.add("Failure To Launch");
Romntic_Movies.add("The House Bunny");
Romntic_Movies.add("Ghost of Girlfriends Past");
Romntic_Movies.add("The Devil Wears Prada");
List<String> Horror_Movies= new ArrayList<String>();
Horror_Movies.add("The Conjuring");
Horror_Movies.add("Drag Me to Hell");
Horror_Movies.add("Sinister");
Horror_Movies.add("Sleepy Hollow");
Horror_Movies.add("Eden lake");
List<String> Comedy_Movies = new ArrayList<String>();
Comedy_Movies.add("Ride Along");
Comedy_Movies.add("That Awkward Moment");
Comedy_Movies.add("Wish I Was Here");
Comedy_Movies.add("About last Night");
Comedy_Movies.add("This is the End");
MoviesDetails.put("Action Movies", Action_Movies);
MoviesDetails.put("Romantic Movies", Romntic_Movies);
MoviesDetails.put("Horror Movies", Horror_Movies);
MoviesDetails.put("Comedy Movies", Comedy_Movies);
return MoviesDetails;
}

}






Tuesday, 7 October 2014

How to Install Cracked Apps to your Windows 8 Phone ? [GUIDE]














Dev Unlock your Windows Phone
Searched for cracked apps/games for windows phone all over the internet? But didn’t find any?
Here’s a great news for you all!!
We are starting a new section of Windows phone cracked apps and games!
But before that, you must Dev Unlock your phone to install those Cracked XAPs.
Prerequisites
How to Dev Unlock?
  1. Turn on your phone and unlock the phone screen.
  2. On your phone, ensure that the date and time are correct.
  3. Connect your phone to your computer by using the USB cable that came with your phone.
  4. On your computer’s Start screen, switch to All apps view.
  5. Under Windows Phone SDK 8.0, click Windows Phone Developer Registration. The app starts, as shown in the screenshot.
  6. Verify that the Status message displays Identified Windows Phone 8 device. Click the Register button to unlock the phone.  If your phone is already registered, the Status message indicates this and you see an Unregisterbutton.
  7. Click Register.
  8. In the Sign In dialog box for your Microsoft account (formerly known as a Windows Live ID), enter the email address and password for your Microsoft account. Click Sign In.If you’re a registered developer, be sure to use the Microsoft account associated with your developer account.
  9. After your phone is successfully registered, the Status message displays Congratulations! You have successfully unlocked your Windows Phone.
Your phone is now registered. You can now deploy Cracked XAPs to the phone

Screenshot

How to Enable Hidden Slide to Shutdown Feature on Windows [Guide]














Slide To Shutdown
One of the (many) complaints people had about Windows 8, was how unnecessarily awkward it was to shut it down. Windows 8.1 makes that aspect of things much easier. You can still go through the Charms bar, but you can also now right-click the new Start button and shut down, or sign out there.
There is another method though, and that’s to use the “Slide to shutdown your PC” option. This isn’t activated by default, but it’s easy to summon, and you can create shortcuts for it.
This is a hidden jem in everybody’s Windows 8/8.1 installations. Microsoft have added this feature to help touch device users, but still normal users have to access to it :)
How To Enable Slide To Shutdown Feature ?
  1. Right Click on the desktop and go to New then Shortcut
  2. Type In The Box (C:\Windows\System32\SlideToShutDown.exe)
  3. Click Next Then Type The Shortcut Name
  4. Click Finish And Your Done! You Can See The Shortcut On Your Desktop
Screenshots

AdwCleaner – Removes Toolbars and Other Malware in One Click [ GUIDE ]














AdwCleaner
Windows: Even the most careful among us can sometimes fall prey to crapware, and when that happens, you could spend quite awhile trying to uninstall every last bit of it. AdwCleaner, a simple portable little application makes that process dead simple, by finding all the pieces and deleting them for you.
 Many antivirus programs and uninstaller programs can handle browser toolbars and other crapware, but sometimes, even they can’t uninstall all the pieces. Heck, sometimes you aren’t even sure what you’re looking for. AdwCleaner is a portable program that finds every last bit of crapware on your system for you, with just one click.
AdwCleaner is a free removal tool for :
  • Adware (ads softwares)
  • PUP/LPI (Potentially Undesirable Program)
  • Toolbars
  • Hijacker (Hijack of the browser’s homepage)
By using AdwCleaner you can easily remove many of these types of programs for a better user experience on your computer and while browsing the web.
The types of programs that AdwCleaner targets are typically bundled with free programs that you download from the web.
In many cases when you download and install a program, the install will state that these programs will be installed along with the program you downloaded. Unless you perform a Custom install, these unwanted programs will automatically be installed on your computer leaving you with extra browser toolbars, adware, and other unwanted programs.
AdwCleaner is designed to search for and remove these types of programs. It works with a Search and Clean mode. It can be easily uninstalled using the mode “Uninstall”. It’s compatible with Windows XP, Vista, 7, 8, 8.1 in 32 & 64 bits.
How to use it?
  1. Download AdwCleaner (from the link provided) to your desktop.
  2. Double click on AdwCleaner.exe to run the tool (Run As Administrator).
  3. Click on the Search button to scan your system.
  4. It’ll display you a log with everything it thinks is left over from crapware
  5. You can then click the “Clean” button to remove it all at once.
  6. Your desktop icons will be disappear, this is normal so don’t be worry about that.
  7. Press OK when asked to close all programs and follow the onscreen prompts.
  8. Press OK again to allow AdwCleaner to restart the computer and complete the removal process.
  9. AdwCleaner will reboot your computer and remove the files and registry entries associated with the various adware or other junkware that you are removing. 
  10. On reboot, AdwCleaner will display a log showing the files, folders, and registry entries that were removed, this log will be also saved on your systemdrive as well.
Screenshots

How to boost your old iDevice with iOS7 [Guide]






Whited00r 7 brings iOS 7’s new look to older devices
If you have an old iPhone or iPod touch that can’t run the latest firmware, Whited00r 7 is a custom iOS firmware that brings the look and (some) features of iOS 7 to older devices!
Features
  • Several times faster than regular iOS
  • Pre-Jailbroken
  • Latest CyCorder for recording video
  • Low-memory Multitasking
  • Fast boot times
  • No laggy motions
  • Multitasking with a card-based interface
  • Control Center
  • iOS 7 like Push Notifications
How to install?
This tutorial provides all the instructions that you will need to install Whited00r to your device. Please remember that you are doing this at your own risk. Whited00r supports iPhone 2G, iPhone 3G, iPod Touch 1G and iPod Touch 2G (both old BootRom MB and new BootRom MC versions). Please use the buttons below to select your device. Download the correct firmware corresponding to your computer’s operating system in order to receive the correct instillation guide.
iPhone 2G   –   iPhone 3G   –   iPod 1G   –   iPod 2G
  • Steps:
  1. Backup your data
  2. Download firmware
  3. Install using iTunes. Click on the restore key in iTunes while holding shift on windows or option on mac and then select the firmware you downloaded in step
  4. lAfter restore which takes about 15 minutes, setup the device as a new device.
  5. Enjoy your new iDevice!
If you encounter any problems during installation, this may help (Step-by-step guide to your device):
  1. Download the firmware
  2. Open Redsn0w and click on ‘Extra’ button and then on ‘Pwned DFU’. Follow the instructions provided by Redsn0w. At the end of the process your device will be in Pwned DFU State with black screen.
  3. Click on Restore while holding SHIFT key (⇧) on your keyboard and select the Whited00r Software Update (.ipsw) from you computer.
  4. Please reboot your device to complete the installation.
Video Guide How to install Whited00r
After Installation: 
  • How To Fix Push Notifications
The first step we suggest to do is a Push Notifications test. Remember that on Whited00r Unlocker firmwares Push Notification don’t work by default: this is not a problem of Whited00r firmware itself, but it is caused by the fact that Whited00r Unlocker firmwares skip the activation you should do via iTunes after the restore (technically, they are ‘hacktivated’)
On the other hand, any Whited00r Normal firmware should have Push Notification working ‘out of the box’, since you will have to pass the iTunes activation in order to use your device
Test Push Notifications with iPusher. You can find it on the AppStore or on AppTimeMachine: this is a simple application to test Push Notification, nothing else
Push Notification are not working? Do you need a fix to enable them? Use the service of PushFixer.com that is tested with Whited00r 6 PushFixer.com
Enjoy!