Showing posts with label PROGRAM-MENIA. Show all posts
Showing posts with label PROGRAM-MENIA. Show all posts

Sunday, 29 June 2014

How To Extract Java source code and XML Layout from the APK file?

 WHAT IS APK FILE ?

 We can say APK files are a type of archive file, These files are specifically in zip format packages based on the JAR file format, with .apk as the filename extension. The MIME type associated with APK files is application/vnd.android.package-archive.We can extract the code from apk file these are some of the tools that will help you to extract the source code and xml layout file from the apk files.

HOW THE EXTRACT THE APK FILE ?

To extract the APK File,There are three tools you will need :
  • apktool, 
  • dex2jar, 
  • and jd-gui 
You can download  these tools from  following URLs:
 
  1. http://code.google.com/p/dex2jar/ 
  2. http://code.google.com/p/android-apktool/ 
  3. http://java.decompiler.free.fr/?q=jdgui

Make sure you follow the installation instructions for APKTool. Windows users will have to
download two files to get it working.

Once you have these downloaded and installed, the next thing you will need is an APK.

Now, that you have everything you will need to do the following:

  1. Extract the APK using APKTool. 
  2. Run: apktool d <apk>
  3. Extract the classes.dex file found in the APK file.
  4. Run: jar xvf <apk> classes.dex
  5. Extract the classes from classes.dex file. 
  6. Run: dex2jar classes.dexExtract the classes.dex.dex2jar.jar.
  7. Run: jar xvf classes.dex.dex2jar.jar

You now have the raw data available to you. You can use JD-Gui to peruse the extracted
classes and even save the source down as Java. All of the layouts, manifest, strings, images, and assets are also available to you in the appropriate folders.

 HAPPY  BLOGGING

Saturday, 28 June 2014

HTML Editores

HYPERTEXT MARKUP LANGUAGE(HTML)  is the basic building block of the web designing. in earlier when the website is developed we use the HTML. the problem with HTML is that in this we need to manually update the database.

HTML have following editors :-
  • Adobe Dreamweaver
  • Microsoft Expression Web
  • CoffeeCup HTML Editor
for the beginners , HTML code is written in simple NOTEPAD and this page is saved with .htm or .html extension.

to work on notepad we should follow these steps:-

STEP 1
  •  Open the new blank page in the NOTEPAD.


STEP 2

 LET WE WRITE THE FOLLOWING CODE IN NOTEPAD

<!DOCTYPE html>
<html>
<body>

<h1>My First Heading</h1>

<p>My first paragraph.</p>

</body>
</html> 
 

When you write code you have



 STEP 3

  • Select File -> Save as in the Notepad menu.
  • When saving an HTML file, use either the .htm or the .html file extension.
STEP 4

Double click on the saved notepad you will have
 
This is the basic step towards web designing .
 
stay tuned .....
            
 HAPPY BLOGGING !!

CSS Selectors


CSS selectors are used to select HTML elements based on their id, classes, types, attributes, values of attributes etc.




CSS Selectors are of different types:-
  1. Element selector
  2. ID selector
  3. Class selector
  4. Grouping selector


  GROUPING SELECTOR

  • It is used to minimize the code.
  • To group selectors, separate each selector with a comma.






then we have output as







ID Selector


  • it is used to select  the id attribute of an HTML tag to find the specific element.
  • find an element with a specific id, write a hash character, followed by the id of the element.

Friday, 27 June 2014

CSS Syntax

Every language have its own syntax.If we talk about HTML, C, C++  etc , they all have different syntax. CSS have also a syntax  shown below:-






  • Selector is the basic element which select the HTML Style i.e style should be <p> </p>or<h></h>. other one.
  • Declaration block consist of different type of Properties having its value .
let we take an CSS Syantax example

When we give the following INPUT......




In the Input we gave the color style as a blue and we use Paragraph style so in output we have result shown below


AS A OUTPUT WE HAVE 






SO STAY TUNED..HAPPY BLOGGING.......


Wednesday, 25 June 2014

CSS(Cascading style sheets) Introduction


To Learn CSS we need some understanding of the HTML/XHTML.

WHAT IS CSS ?
  • CSS stands for CASCADING STYLE SHEETS
  • CSS is introduced in HTML 4.0 to avoid the STYLE problem which comes during the coding of the web sites.
WHAT IS PROBLEM WITH HTML3.2?
  • When tags like <font>, and color attributes were added to the HTML 3.2 specification, it started a Complexion for web developers. Development of large web sites, where fonts and color information were added to every single page, became a long and expensive process.
  • To solve this problem, the World Wide Web Consortium (W3C) created CSS.
  • In HTML 4.0, all formatting could be removed from the HTML document, and stored in a separate CSS file.
  • Styles are normally saved in external .css files. External style sheets enable you to change the appearance and layout of all the pages in a Web site, just by editing one single file. 
EXAMPLE
<!DOCTYPE html>
<html>
<head>
<style>
body {
    background-color: #d0e4fe;
}

h1 {
    color: red;
    text-align: center;
}

p {
    font-family: "Times New Roman";
    font-size: 20px;
}
</style>
</head>
<body>

<h1>My First  Example</h1>
<p>This is a paragraph.</p>

</body>
</html>

In above example we decide the background color of the page , color & text alignment for h1 &
paragraph writing style for as well as the font size.

we need to save this coding in  .CSS extension.


Wednesday, 18 June 2014

Embed Video in Your Website /Blogger

hello ;
The Process of Embed Video  is quite simpler and easier. apply the following steps:

If you want to play a video in a web page, you can upload the video to YouTube and insert the proper HTML code to display the video.  (see also:http://itsknowledgemenia.blogspot.in/2014/06/samsung-glaxy-tab-s.html)

step 1:

You need the  COPY the embed code of the video

 

step 2:

after copying code you need to go in the HTML coding page and paste it where you want to show that video.

 step 3:

now you can publish or save the page ..it is applied on your website or blogger.

apply it & enjoy coding.....