Software has been uploaded to Android marketplace: http://www.appchina.com/soft_detail_203638_0_10.html
The annual spring festival begins again, and people want to go home comfortably for the New Year. The first choice for most people is to train, and ordinary people have the ability to pay. However, it is very difficult to buy a ticket. Currently, there are many types of ticket booking methods, such as station ticketing, on-site ticketing, online booking, and telephone booking.
Station ticket purchase, purchase tickets at the agent site will not be said, boring.
Online ticket booking. You can select this option. Many people say that tickets cannot be booked on the Internet. To be honest, the ticket booking website is really not doing well, but one reason you cannot get a ticket is that your network is too bad. There are also a lot of people around me who have successfully booked tickets through the Internet. The Ministry of Railways said that it would be enough to use 2 m broadband. In fact, this is just a fool of you. According to my tests over the past few days, 8 m or more broadband has an advantage. Your home does not have 8 m broadband, you don't want to book a ticket as soon as possible. Otherwise, you can only pick up others' leftovers ......
Booking tickets by phone. The core of today is this. Whether or not to call the phone is a very serious problem. Have you ever wondered if you are tired of repeating the dial-up operation? Can we simplify this operation ??? Can I ask the program to enable automatic dialing for you until the dial is reached? If you have an idea, you have to do it.
Using this software to book tickets, you have prepared at least four Android phones, which is basically foolproof.
As of today, this program has helped many people in the company to book a sleeper.
In fact, I also sent this program last year, called Crazy ticket booking. It was done with my colleague douzifly.
Ticket Booking result:
The procedure is very simple, as follows:
It is to enable a service and monitor whether the phone is hung up. If the phone is hung up, immediately resend the call.
The implementation is as follows:
Import Android. App. Service;
Import Android. content. intent;
Import android.net. Uri;
Import Android. OS. ibinder;
Import Android. telephony. phonestatelistener;
Import Android. telephony. telephonymanager;
Public class loopcallservice extends Service {
Public static string phonenumber = "95105105 ";
Public static Boolean is_call = false;
@ Override
Public ibinder onbind (intent ){
Return NULL;
}
Void loopcall (){
If (is_call ){
Intent intent = new intent (intent. action_call, Uri. parse ("Tel :"
+ Phonenumber ));
Intent. setflags (intent. flag_activity_new_task );
Startactivity (intent );
}
}
Telephonymanager phonemgr;
Myphonestatelistener = new myphonestatelistener ();
@ Override
Public int onstartcommand (intent, int flags, int startid ){
Phonenumber = intent. getextras (). getstring ("phonenumber ");
Phonemgr = (telephonymanager) getsystemservice (telephony_service );
Phonemgr. Listen (myphonestatelistener,
Phonestatelistener. listen_call_state );
Return super. onstartcommand (intent, flags, startid );
}
@ Override
Public void ondestroy (){
If (phonemgr! = NULL ){
Phonemgr. Listen (myphonestatelistener,
Phonestatelistener. listen_none );
}
}
Class myphonestatelistener extends phonestatelistener {
@ Override
Public void oncallstatechanged (INT state, string incomingnumber ){
Switch (state ){
Case telephonymanager. call_state_idle:
Loopcall ();
Break;
}
}
}
}
In the past, the program was called Crazy dial-up. It seems to have been uploaded to the android network, which should be able to be searched.
The current program is called ticket booking by phone. It was uploaded to the android electronic market yesterday, but the review has not yet passed.
This program has changed the original limit on the number of times of dialing. It is a loop dialing, which is as simple as possible and does not require complicated and beautiful interfaces,
Only one purpose is to call the ticket booking phone number.
The program runs as follows:
Mail: weiwutan@gmail.com