Skip to main content

Posts

Showing posts from April, 2013

NFC- Writing and Reading Mutiple Records at a time

I'm writting this article to help an android developers who is working in NFC and getting confused on how to  write multiple records and how to read them at a go .            I want you to do the following steps ... copy the following xml into your layout/yourfile     <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"         android:layout_width="fill_parent"         android:layout_height="fill_parent" >         <TableLayout             android:layout_width="wrap_content"             android:layout_height="wrap_content"             android:layout_alignParentBottom="true"             android:layout_alignParentLeft="true"             android:layout_alignParentRight="true"      ...

Android-How to change your Text to different Styles.

       Everyone wanna present their apps stylish .Font Styles have one of the great part while presenting your app.        All you need is True Type Font(ttf) file of your desired styles(Ex: Amalgam.ttf ).you can download them from here or you can get all ttf files by searching over the Internet.          paste it (or them ) in your assets folder  like below,       In your xml file create the Textviews like below, <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"     xmlns:tools="http://schemas.android.com/tools"     android:layout_width="match_parent"     android:layout_height="match_parent" >     <TextView         android:id="@+id/tv"         android:layout_w...

How to access the .txt file and Image file

create your xml file with an image and text with the position where you want . copy your text file and image in your assets folder here I've pasted "text.txt" and "risk.jpg" in assets folder. In the Textfile write your content as your own .Ex: Here I've written "Hi! This's Rakesh" In your Java file ,use the snippets given below , package com.example.accessfromassets; import java.io.IOException; import java.io.InputStream; import android.app.Activity; import android.graphics.drawable.Drawable; import android.os.Bundle; import android.widget.ImageView; import android.widget.TextView; public class MainActivity extends Activity {     ImageView mImage;     TextView mText;     @Override     public void onCreate(Bundle savedInstanceState) {         super.onCreate(savedInstanceState);         setContentView(R.layout.activity_main); ...

Android-Bar chart, Line chart and Pie chart

The Bar Chart ,Line Chart and Pie Chart are the commonly used charts among the mobile developers.In such a way android also supports such thing more easily . Here I've just given the source codes and screen shots of them .If the Chart in the Screen shots meets your need ,then download the source codes                                                                                                                                                       Bar Chart Source Code :  here Pie Chart Source Code :  here Line Chart   Source Code :  he...