- First of all, as a user app, I think it should not access the root "/" directly. So I assign root to Environment.getExternalStorageDirectory(), it's the Android external storage directory.
- Secondly, if a file/directory is hidden or un-readable, it will not be display.
Create /res/layout/row.
[ read more ]
ListView in simplest form with plain text only. This exercise describe how to add a icon in ListView.
create a new file in /res/layout/row.xml, to setup our layout on each row.
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/an
[ read more ]
It's the simplest form of ListView, extends ListActivity. The list is displayed as a single line of plain text, using the simple Android built-in layout "android.R.layout.simple_list_item_1".
package com.exercise.AndroidList;
import android.app.ListActivity;
import android.os.Bundle;
impor
[ read more ]
An example on pasting an image that is on system clipboard in Java on a JFrame. Here we've used a JLabel and set the image from the clipboard to it as icon.
Example
// Import for BorderLayout
import java.awt.*;
// Import for JFrame, JLabel
import javax.swing.*;
// Import for Clip
[ read more ]
Hi last evening i am worry about the thing that i delete data from Cell of the Excel file but when i retrieving data and displaying it was showing me that cell from which i delete data as “null” and that is the Problem for Me …….. Now for that I solve it like that ...
[ read more ]
Hi last evening i am worry about the thing that i delete data from Cell of the Excel file but when i retrieving data and displaying it was showing me that cell from which i delete data as “null” and that is the Problem for Me …….. Now for that I solve it like that ...
[ read more ]
1. Custom Views
1.1. Defining own Views
You can also create you own Views by either extending existing Views classes or by extending View directly.
Views draw themself in the onDraw() method. You get a Canvas object which allows to perform drawing operations on it, e.g. draw lin
[ read more ]
/*
* BTC.java
*
*/
import com.sun.midp.lcdui.Text;
import javax.microedition.midlet.*;
import javax.microedition.lcdui.*;
/**
*
* @author Zeeshan
* @version
*/
public class BTC extends MIDlet {
Displayable d1;
graphics g;
login l=new login();
newuser n=new newuser();
l
[ read more ]