tag:blogger.com,1999:blog-72578100450200703492024-03-13T20:21:21.370+05:30The Complete ReferenceUnknownnoreply@blogger.comBlogger116125tag:blogger.com,1999:blog-7257810045020070349.post-6950407989064649262011-08-30T22:08:00.002+05:302012-01-14T21:29:09.829+05:30Simple Mobile Game in J2ME(Canvas Continued):-
In previous tutorial we learned about a simple canvas class.
In this tutoial we will try to create a simple gaming interface using Canvas.
In this code we have created a canvas class and created its object in our Midlet.
Inside the constructor SampleCanvas() , we read a image and then create a sprite ,which represent the moving item inside the game.
You can download sample sprite image from Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-7257810045020070349.post-14164751782179768332011-08-29T22:16:00.001+05:302011-08-30T21:07:45.763+05:30RecordStore in J2ME :- (Continued)
In previous tutorial we learned how to create a simple recordstore.
In this tutorial we will also learn deletion and updation of records.
But keep 1 thing in mind , delete the topmost record only (it will also work otherwise ,but will break the sequence as the deleted record is left as a null pointer).
One more thing , when you run this code on toolkit ,it will remember the last data entered,toUnknownnoreply@blogger.com0tag:blogger.com,1999:blog-7257810045020070349.post-47712184888719943222011-08-04T23:08:00.002+05:302011-08-04T23:14:53.518+05:30Bluetooth in J2ME :- Simple chat application
In previous tutorial , we learned about Bluetooth Device Discovery.
In this tutorial we will learn ,how to make simple bluetooth connection .In this we will implement the code in which approval for connection is not required by the sender. Reciever automatically recieves the sent text.
Here is the code for the Bluetooth Chat:-(2 .java files )
Client.java:-
import java.io.*;
import Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-7257810045020070349.post-62129886297741618752011-07-29T22:08:00.004+05:302011-08-04T23:17:21.373+05:30Bluetooth in J2ME : Bluetooth Device Discovery
In this tutorial we will learn about Mobile Bluetooth and its application using J2ME.
First of all , for all those who give more importance to underlying protocols , i found a beautiful explaination on this site:-
http://developers.sun.com/mobility/midp/articles/bluetooth1
Now after you know basic protocol structure (However its not mandatory to create application) , we can start with the Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-7257810045020070349.post-13397217943906261552011-05-16T12:50:00.001+05:302011-05-16T19:33:42.260+05:30To avoid potential deadlock, operations that may block, such as networking, should be performed in a different thread than the commandAction() handler.
This type of runtime errors occur due to potential deadlock situations.
I bet you might have faced it a lot if you copy codes from famous J2ME tutorial sites.(even i did)
These occurs when you do critical operations such as networking video,audio or image capture etc. inside commandAction.
The best solution for it is to just ad the trouble creating code to a new thread.
Let me show how.Let us Unknownnoreply@blogger.com2tag:blogger.com,1999:blog-7257810045020070349.post-85793392463310459902011-05-15T23:32:00.002+05:302011-05-16T12:28:39.118+05:30HTTP Connection in J2ME HTTP is a request-response protocol in which the parameters of request must be set before the request is sent.
The connection exists in one of three states:
* Setup, in which the request parameters can be set
* Connected, in which request parameters have been sent and the response is expected
* Closed, the final state, in whichUnknownnoreply@blogger.com2tag:blogger.com,1999:blog-7257810045020070349.post-60286893642943673522011-04-06T23:15:00.000+05:302011-08-30T21:08:39.441+05:30RercordStore:-Saving data in mobile
In this tutorial we will learn how to save various file types(video ,audio ,images as well as text ) in a recordstore.Now when you go through the code you'll find
byte[] bytestream = t.getString().getBytes();
here t is a textfield.Hence we save text in this case.
If you want to save image or video ,simply convert it to bytes and then replace t.getString().getBytes() by the bytes you just got.
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-7257810045020070349.post-27944071057047425592010-12-23T18:55:00.001+05:302010-12-23T18:59:45.483+05:30Creating a Camera Appliction in J2MEIn this tutorial you will learn to create a simple camera program.For this we will use a canvas class named "VideoCanavas" and call it in our main MIDlet "CameraMidlet".
Here we first make the camera view visible by camera button and then add the capture button to take a snapshot.Also we create a class "Video" inside "CameraMidlet" to capture the picture.
For making camera view visible we have Unknownnoreply@blogger.com1tag:blogger.com,1999:blog-7257810045020070349.post-18061039432262386222010-12-16T17:32:00.003+05:302011-08-30T22:11:48.440+05:30Canvas in J2ME
A Canvas component represents a blank rectangular area of the screen onto which the application can draw or from which the application can trap input events from the user.
An application must subclass(extend) the Canvas class in order to get useful functionality such as creating a custom component. The paint method must be overridden in order to perform custom graphics on the canvas.
To Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-7257810045020070349.post-85635762082010276452010-10-26T21:42:00.006+05:302010-12-21T18:10:31.462+05:30Video Player in J2ME In this tutorial we will learn how to create a simple Video player in J2ME.
Instead of creating a brand new code lets reuse the code we made in previous tutorial "J2MEAudioPlayer".
Click here to go to previous tutorial.
However i found 1 limitation that the video length should be limited if we are viewing it Unknownnoreply@blogger.com2tag:blogger.com,1999:blog-7257810045020070349.post-56038886863249345052010-10-19T13:12:00.003+05:302010-10-26T21:53:12.329+05:30Using List and Gauge (AudioPlayer continued...)This tutorial is an extension to the previous one. To view that click here.
In this tutorial we will learn 2 more display items.First is a list which itself creates a single instance of screen display just like form.LIST are of 3 types:-
EXCLUSIVE
IMPLICIT
MULTIPLE
In this tutorial we will use implicit type. Syntax of list is:-
List(String title, int listType, String[] stringElements,Unknownnoreply@blogger.com3tag:blogger.com,1999:blog-7257810045020070349.post-87444312165202574652010-10-08T21:50:00.003+05:302010-10-08T21:53:54.632+05:30Simple Audio player mobile application using J2MEIn this tutorial we will learn how to create a simple audio player which plays .wav sound files.
For this we use javax.microedition.media.* package.
This provides us with Player class which allows us to create audio player.
To run this program you need to have a .wav file named as "1.wav".
Download sample .wav file from here.
To start with this tutorial you need to go through all previous Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-7257810045020070349.post-6018931094571784852010-10-01T22:03:00.006+05:302010-10-03T10:20:36.354+05:30Working with multiple display pages in J2METill now we have worked with only single page on which we kept on changing the display using setCurrent property.
Now we will learn how to deal with a seperate java code file.
For this we will create a simple midlet "Midlet1" on which we will display a question with four answers ,each having a checkbox in front of it.
Then we will have a lock button which locks the selected answer.
Now we Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-7257810045020070349.post-90087587570785366032010-09-25T22:56:00.010+05:302010-10-03T10:21:01.425+05:30Creating a simple login page project in J2METhis tutorial explains how to create a basic login page which includes textfields ,checkbox as well as alerts and ticker.
A ticker is a class using which we can move the text along the width of the screen.
But before you read this tutorial please go through the previous ones. (First Tutorial) &Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-7257810045020070349.post-61619618488158949402010-09-22T16:08:00.023+05:302010-10-03T10:18:21.168+05:30Textboxes,Labels and more events in J2METhis post explains adding multiple command buttons in a mobile application ,adding textboxes and labels as well as basic idea of displayable class
Note:- Before viewing this video please go through the previous tutorials as well since this one is the extention of previous tutorials.
Starting with J2ME
Understanding basic midlet source code
Learning Command action in J2ME (Events)
To View Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-7257810045020070349.post-57627878679045559802010-09-13T23:11:00.008+05:302010-10-03T10:19:05.363+05:30Learning Command action in J2ME (Events)This post gives you general overview about command buttons in a mobile application as well as redirection from one screen to other within same midlet.
Note:- Before viewing this video please go through the previous tutorials as well since this one is the extention of previous tutorials.
Starting with J2ME
Understanding basic midlet source code
To View tutorial video Online CLICK HERE
To Unknownnoreply@blogger.com2tag:blogger.com,1999:blog-7257810045020070349.post-90955477392641255952010-09-12T22:43:00.012+05:302010-10-03T10:19:37.852+05:30Understanding basic J2ME mobile application codeIn my last post i gave the general overview to get started with mobile applications using netbeans.
Please refer it if you haven't already so that you can continue with this post.
First Tutorial
After viewing the previous screencast ,i realized it is far more simpler to understand from a screencast and even more easy to explain rather then writing . So i made this screencast (my first) .Hope youUnknownnoreply@blogger.com4tag:blogger.com,1999:blog-7257810045020070349.post-3291018703904664592010-09-08T22:17:00.006+05:302010-09-26T12:47:06.754+05:30Creating simple mobile application using J2MEWe'll use JAVA ME (Micro Edition) on NETBEANS to create a simple mobile application.
I suggest readers that they should know at least core JAVA(J2SE) if not J2EE to make these application.
Before that let me first introduce you to some basic terms:-
MIDLET:-A MIDlet is an application that uses the Mobile Information Device Profile (MIDP) of the Connected Limited Device Configuration (CLDC) for Unknownnoreply@blogger.com4tag:blogger.com,1999:blog-7257810045020070349.post-37931769557177721902010-09-07T22:36:00.000+05:302010-09-07T22:36:35.458+05:30Water filter turns filthy water drinkableUnknownnoreply@blogger.com0tag:blogger.com,1999:blog-7257810045020070349.post-54179765995473000772010-04-29T21:52:00.000+05:302010-04-29T21:52:48.609+05:30Stereo Mixing :-Sending Speaker output to microphoneStereo Mixing is a technique which allows you to share everything that you hear on your headphones with your friends .
This is done by simply transfering the audio input for headphone to the microphone.
To set up stereo mix in Windows XP just follow these steps:-
Open Volume control (2 methods are shown in the given picture).1st is to open it from start>all programs>control panel>sound Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-7257810045020070349.post-2944281575104921082010-04-14T23:04:00.000+05:302010-04-14T23:04:27.546+05:30Message sneak peak :- Reading mails made easierG-Mail has added one more feature to its repertoire.
Message Sneak Peek, a utility that you can turn on to get message previews without having to leave your inbox and actually open a message. You'll have to enable Message Sneak Peek in your Gmail settings, but once you have it turned on, all you have to do is right-click on message to see a pop-up message preview, complete with the Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-7257810045020070349.post-69204446620611538072010-04-13T13:16:00.000+05:302010-04-13T13:16:58.123+05:30Visual Studio 2010, .NET Framework 4 Unveiled
Microsoft unveils its Visual Studio 2010 and .NET Framework 4.
Silverlight 4 will be launched next week.
These new versions are packed with hundreds of new features, new functionalities and benefits that improve the development lifecycle from design to deployment.
Using the Visual Studio 2010, .NET Framework 4 tools, developers have a way to where they want to be and they also have a Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-7257810045020070349.post-56229755974407715142010-04-12T00:25:00.005+05:302010-04-12T17:17:30.345+05:30Mirror your Video (Inverting video using Matlab)Have you ever seen Saurav Ganguly batting right handed or Sachin Tendulkar batting left handed.
Well just watch this:-
You might be wondering when did sachin play such innings.
Its all mirrored.
The big question remains how to do this.
Ans.
1)Using Matlab
2)Using Java
3)Many other software's are available like photoshop
But i'll rather prefer Matlab because it is taught in my home subject(ECEUnknownnoreply@blogger.com0tag:blogger.com,1999:blog-7257810045020070349.post-27726068063001815632010-04-08T23:35:00.005+05:302010-04-10T12:50:48.690+05:30Hibernate Mode :- Automatic PC ShutDownHibernate is a feature of many computer operating systems where the contents of RAM are written to non-volatile storage before powering off the computer. When the computer is restarted it reloads the content of memory and is restored to the state it was in when hibernation was invoked. Hibernating and later restarting is faster than booting up every time. Most importantly it saves cool jackhttp://www.blogger.com/profile/17062236716036153814noreply@blogger.com0tag:blogger.com,1999:blog-7257810045020070349.post-86784626146201732072010-04-07T23:57:00.000+05:302010-04-07T23:57:56.531+05:30Sending E-mails to all G-mail contactsTired of entering the E-Mail ID's of all your contacts .
Even though dropdown menu helps in selecting the contacts still its too boring to select all.
The easy way out is to just click on contacts (present in left side) in G-Mail
See this image(click on it to zoom).
Now select "All contacts" as shown above.
Then select "All " option as shown above.
In case you want to send mail to selective Unknownnoreply@blogger.com0