Showing posts with label Android. Show all posts
Showing posts with label Android. Show all posts

Wednesday, December 24, 2014

Blizzard released Heathstone for Android tablet

In the Christmas Eve 2014. Blizzard released its card game Hearthstone to Google Play

Click the link below to download from Google Play
https://play.google.com/store/apps/details?id=com.blizzard.wtcg.hearthstone

Monday, March 17, 2014

Android Development Trend

Android is regarded as the swift growing mobile running program platforms. Android development has become the most aggressive territories of company. Android programmers are busy designing apps because a huge quantity of mobile producers are getting associated with Android. Java is the heart of the platform, creating it the most stable mobile running systems inside the planet. The mobile telephone marketplace for this platform is growing at a steady 30% a year according to favored marketplace analysis.

One of the number one methods to go regarding this technologies is to outsource it to an offshore development centre plus receive high-end applications developed. Below to hire services of expert programmers whom can convert a company dreams into fact. You are able to select custom development of the Android apps, that will not merely strengthen the sales of the goods plus services, & enable we inside branding a company.

These apps have become among the right advertising tools for companies because of the ever-growing recognition of the platform. Mobile giants like Google, HTC, Intel, LG, Nokia, Motorola, Nvidia, Qualcomm plus Samsung are endorsing Android. This recognition is causing paradigm alter inside the mobile development industry with innovations happening frequently.

Latest Android Development Trends:

Like desktops plus laptops, double core processing looks to function as the future of cell phones. Android has been among the early movers with close to one-fourth cell phones to be available inside 2011. It is a huge step forward inside terms of performance, power existence plus can provide unmatched mobile experience.
Advances inside Android development would turn it into an online payment tool. That day is not far whenever you are capable to employ the telephone inside destination of the credit cards to buy goods plus services. By the complete of 2011 a some handsets with this functionality are expected to debut inside the marketplace.
Adobe has established AIR for Android platform, that will allow programmers to drive mobile AIR apps built with Adobes developer platform. It will provide Flash programmers direct access to the Android marketplace without to understand anything hot.
Tablet PCs are the future of mobile technologies plus programmers are searching into the future of the marketplace really really. Android working program is expected to introduce several revolutionary tips inside the Tablet PC marketplace inside the coming years.
Cloud processing is regarded as the hottest discussed subjects inside the technologies marketplace today plus Android isnt far behind. This form of development can ease sharing of resources between equipment, that will confirm useful for companies.

This mobile development is approximately its method to function as the hottest mobile running program inside the planet, causing huge phenomenon amidst the device fans all over the world. To obtain your app built plus more info found on the same, see http://www.evontech.com/android-development.html.

Vishal Arora is an iPhone plus Flash expert functioning because a technical author with Evon Technologies, an offshore development business dealing with mobile, software, plus internet application development.
For more info, see http://www.evontech.com

Sunday, March 9, 2014

Tips for Android Application Development through a Third Party Developer

Of the items which have changed the means inside that you employ the handheld equipment, applications are possibly the foremost. Today, you utilize these equipment because over only because phones plus organizers. Apps have been developed for functions because diverse because guiding travelers approximately inside an unknown city to recording the heartbeats of people. In truth, these apps are considered because thus reliable which even practitioners are utilizing these rather of stethoscopes.

You need heard stories which are individuals generating fortunes in brief periods of time by Android application development. We should not think which all they managed to succeed simply because they had tremendous technical abilities connected to the languages inside that these apps are created inside. The fact of the matter is the fact that they managed to create apps which subsequently proven to be prevalent considering these really added value to the equipment approximately that they were installed.

Even should you are not a whiz inside the languages or platforms inside that Android application development is completed, we want not worry considering the specialists may handle the technical aspect of the development should you tell them what service we want to offer by a application.

While selecting specialists whom usually do this job for we, it usually is a greater idea to select the specialists that are piece of the organization. Should you donate the assignment to a business, you are capable to make sure which there is somebody to supply we technical assistance whether or not the expert whom really tailored the system is unavailable for certain cause. Moreover, well-organized businesses manage to achieve more inside a brief time period considering they could take pleasure in the blessings of dividing work based on the specialization of the individuals.

While choosing that business you’ll choose, you need to remember which there are many fly-by-night providers struggling to fleece folks like we.

Therefore, you need to be cautious regarding selecting a firm which has been providing services for many years.

You must moreover be cautious regarding the financial preparations which we agree to considering there are Android applicationdevelopment businesses which makes we agree to terms which makes we financially obliged for them despite the truth which we came up with all the idea to commence with.

Socialjitney.com is the premier android application development organization. We have tremendous experience building applications for iPhone, iPad, Blackberry, Android, plus Symbian.

Related Android Development Tips Articles

Thursday, March 6, 2014

Tips To Android Apps Developers For Android Application Development

 

Android development has moved beyond its horizons. It has developed a lot plus gained much recognition. Other platforms are far behind Android running program. Currently there are over million Android powered equipment being triggered every day. This really is not a less quantity. Google Play is the destination where Android programmers will publish their applications. Android rules over the global smart telephone marketplace. Almost all companies today need an android application built for advertising their company. They additionally utilize android application development to improve their internal & moreover exterior procedures. However, only a limited companies can succeed inside using the pros of android application development.

The cause why some companies cannot gain from android application development is the inability of the android apps programmers to understand the requires of consumers. It is an accepted truth which not all android apps programmers are best inside research plus art of mobile apps development. It arises which often they are doing not consider the standard basics so the complete outcome is not great. However, when certain caution is practiced then it becomes effortless to create a practical plus innovative application. This post aims to address certain points which can enable android apps developer inside creating a lucrative android application.

Responsive Internet Design:

Many of the net or mobile programmers are aware of the expression ‘responsive internet design’. It is a kind of website shape having cross browser & cross platform compatibilities. It is coded thus it is opened in every types of desktops, handheld PCs, plus smart phones. Android 4.0 Ice Cream Sandwich is based a small online sensitive shape. This adaptation tries to burn the rope between hundreds of kinds of Android-powered smart phones, pills, pills plus convertible tab-cum-laptops.

Lay Emphasis approximately Fragmentation:

Previously android apps programmers were capable to build 2 layouts for each screen thus which the working program may select the greatest of them by standard. But, it really is yet not the greatest answer for fragmentation. After the launch of Android 3.2 programmers developed the ability to provide out over 2 layouts. Hence, Androids apps developer will today optimize their applications to show up approximately all equipment.

Socialization Is Important:

Socialization is very significant even for computer codes. It assists inside spreading awareness amidst consumers. It has the swift method to receive approval from consumers for an application. For example, when a game-app is lucrative inside persuading the consumers to share their scores approximately his Facebook or Twitter profile, then it can equally succeed inside convincing alternative consumers associated to him to download the application found on the smart device.

Let The Icon Make A Lasting Impression:

Google Play provides over 700k applications plus many can stand because tough competitors for the android application. You should shape a icon inside such a means it leaves a durable impression found on the consumer. If the application has an appealing icon then it will lure countless consumers.

 

Diwiyne Johnson is functioning because content author at vanitypoint plus he likes to create regarding the subjects associated devices , Android App Development Phoenix , Mobile Apps Development plus different absorbing subjects.

Saturday, March 1, 2014

Tips To Find Right Android Apps Developer For Android App Development

 

Android is a software platform to employ conveniently plus freely. It is open source.

This is a product Google plus Start mobile telephone Partnership. This application platform is effortless to utilize. This allows the performance of the range of application. The performance of the platform is really effective plus provide among the ideal resources for mobile application development. These qualities create Android popular. The Android platform is a mobile running program, programs. This software development kit(SDK) include. This kit offers a developer API plus tool needed to create applications for Android.

Android being open characteristics of the source, the initial investment is not necessary. The application can be conveniently allocated found on the Internet. Few investments may bring huge money for we.

Registration is needed to commence application with Android, what we want. The upcoming step is to load the SDK.

Whenever it comes to the development of Android applications have 2 choices, either do it oneself or do it from the expert application developer for Android. The previous can be time intensive plus dangerous, too lengthy of specialized abilities plus less time-consuming, many persons select the after alternative.

This refuses to signify which all programs for Android programmers are advantageous plus may meet a goals. Seeing the growing industry for new players entered the marketplace. Below are certain strategies to aid we receive the proper Android application programmers.

Experience: the developer need enough encounter inside managing these project.

Customer Care: the developer ought to be capable to devote several time with all the customer to learn what functions ought to be included inside the application.

Quote within the comparison: One of the number one techniques to lower expense is to initially find quotations, create a cost evaluation plus solutions, plus, lastly, to settle.

Services offered: If a huge development company which refuses to signify which the service is greater plus vice versa, when a business is tiny, refuses to imply which services have the lowest shape.

Some advertising analysis plus explanation found on the table could create points extremely obvious. If a company has to be a huge guy, whom is accountable for the achievement of the system.

Reliability: iPhone application development must have a superior standing on the market plus be effective. Performance applications developed by any application developer is evaluated by careful monitoring of the application.

Terms plus conditions: conditions should be specified before placing the purchase to the organization’s application development. Utilizing the solutions of a established business to develop Android applications will function astonishing details.

MDE among the specialist plus reliable Offshore Mobile Application Development Company follow up all above procedures with customer plus has reliable plus effective  Android apps development services. Organize have huge experience inside mobile application field have expert are constantly willing to fulfill all customer requirement to offer greater mobile application as well as its customer care assist to all customer 24 hours. MDE has very qualified iphone, ipad plus android mobile application programmers.

MDE is the expert mobile apps development firm has android app development, iphone app development, ipad app development plus android game development services over the world. You are able to call you by telephone or deliver a ask for from the critiques kind.

Thursday, February 27, 2014

Ubuntu For Android Phone Now Available

Mar 16, 2012 Android is moving ahead with all the approach to create Ubuntu Linux conveniently accessible over several equipment. The Ubuntu for Android phone Then accessible plus it powered the contemporary smartphones to act because a PC. This really is usual thing which any Tegra 2 device has more advance CPU to compete effectively with elder laptops as well as the more future quad core chips usually place a lot more computing appropriate into a pocket. So now you are able to employ the android device because a PC. Adding a PC working program over a mobile OS could appear a small counter-intuitive nevertheless it need to be observed which, Android plus Ubuntu originate within the same Linux kernals thus it proves more suitable than we think.

Ubuntu approximately android is brilliant with its simplicity. Infact it’s thus absorbing which which we think which why they didn’t create it sooner. With this application, the full Ubuntu desktop OS might run approximately the telephone, together with android as a result of both are driven by the same kernel. Depending on the function among the OS takes nevertheless something ought to be observed which Android plus Ubuntu usually speak every alternative. So you are able to function with single contact lists, single e-mail inboxes, single calendars plus single set of documents rather of 2 of every item.

This unique OS approximately Android , makes best sense for experts plus company consumers. This feature of android device will substitute not just the company computer plus blackberry & your day to day workplace computer. This new feature offer the greater processing experience. Ubuntu approximately Android has the possible to alter the game for everyone. Wait for the time whenever each hotel space is fitted with a broad monitor along with a docking station plus only connect a device plus the trusty desktop OS is there rather of checking the send approximately the cheap android phones.

From years “PC inside a pocket” idea is within the marketplace however not inside the real sense nevertheless Ubuntu approximately Android will finally breathe lifetime inside the idea. So from today, smartphone reach the amount of performance offered with a contemporary computer. There are rumors like Android 5.0 jelly Bean which have double boot functions plus Microsoft wants new android phone to be a universal working program & apple is moving the same way. They all are placing their full efforts to set Ubuntu inside contemporary smartphone. So it appears which the fresh trend is well-defined plus all of the substantial manufactures are struggling to create working systems which run consistently over screens of all models.

About the auther:Alan,another cheap android telephone for sale,please see you url www.wholesaleonepiece.com

buy China Wholesale Cell Phone Accessories, brand brand-new mobile phones, inexpensive unlocked phones, & more! Buy mobile phones from you now for a greater deal at cheapest.

Tuesday, October 22, 2013

Download only email subject in JavaMail & imaps

I’m trying to download only subject of emails, because it should take less time (downloading ~10 emails with photos take approximately 10 min :/).

Code that I’m now using is:

    try {        Store store = session.getStore("imaps");        store.connect(...);        Folder folder = store.getFolder(folderName);        folder.open(Folder.READ_ONLY);        message = folder.getMessages();        for (Message m : message) {            System.out.println(m.getSubject());        }        folder.close(false);        store.close();    } catch (MessagingException e) {        ...    } catch (IOException e) {        ...    }

it seems to me that you should look into prefetching the messages with:

FetchProfile fp = new FetchProfile();fp.add(FetchProfile.Item.ENVELOPE);fp.add("Subject");folder.fetch(message, fp);

Monday, October 21, 2013

Tell when Android device is in sleep mode

Is there a way to tell when an Android device is in sleep mode? When testing my app, I press the power button to turn off the screen & need to wait until sleep mode is active. I then send messages to my device using Google Cloud Messaging (GCM) & then play a sound & notification once it arrives. But if I send this message before sleep mode is active, then I am not sure whether it received the message because it was still alive or because my service routine received started by the GCM broadcast receiver.

You can find out when the screen goes off using android.intent.action.SCREEN_OFF intent yet there is no Intent to find out with certainty if the device is in sleep mode as far as I know.

erasing EditText and EditView in Android

This is linked to a previous post:
My layout is like this:

INPUT TEXT (EditText)

BUTTON

OUTPUT TEXT (TextView)

Task:
When the user enters an input & upon button click the output text appears.
I have to make sure I make the input & output disappear some 10 seconds after the button click(and after the output text appears).

Now, I cannot add a “TextWatcher” on TextView.
Initially I tried to use Handler on inputText which can have a TextWatcher. But somehow the Handler keeps running all the time in the background & I cannot “cancel” it.

So I switched to using timers. I used a method in the button onCick() method:

onClick(){...    eraseText();....}public void eraseText(){TimerTask task = new TimerTask() {            public void run() {               inputText.setText("");               outputText.setText("");            }        };        Timer timer = new Timer();        timer.schedule(task, 1000,10000);}

And after 10 seconds I would like to call timer.cancel() ( yet don’t know where!!)
As you can see the problem is that I obtain an error complaining that only UI threads can alter views. How can do this ?

Thanks

I would use Handler class. You can easily post delayed code & cancel it. It will run in correct Thread. Also, you can add TextWatcher or OnFocusChangeListener to detect & cancel text erasing when a user starts editing text again.

Handler handler;@Overrideprotected void onCreate(Bundle savedInstanceState) {    super.onCreate(savedInstanceState);    setContentView(R.layout.activity_main);    handler = new Handler();    final TextView textView = (TextView) findViewById(R.id.textView2);    final EditText editText = (EditText) findViewById(R.id.editText1);    final Runnable eraseText = new Runnable() {        @Override        public void run() {            textView.setText("");            editText.setText("");        }    };    editText.addTextChangedListener(new TextWatcher() {        @Override        public void onTextChanged(CharSequence s, int start, int before, int count) {            handler.removeCallbacks(eraseText);        }        @Override        public void beforeTextChanged(CharSequence s, int start, int count,                int after) {            // TODO Auto-generated method stub        }        @Override        public void afterTextChanged(Editable s) {            // TODO Auto-generated method stub        }    });    editText.setOnFocusChangeListener(new OnFocusChangeListener() {        @Override        public void onFocusChange(View arg0, boolean arg1) {            handler.removeCallbacks(eraseText);        }    });    findViewById(R.id.button1).setOnClickListener(new OnClickListener() {        @Override        public void onClick(View arg0) {            textView.setText(editText.getText().toString());            handler.removeCallbacks(eraseText);            handler.postDelayed(eraseText, 1000);        }    });}

Sunday, October 13, 2013

Need a Bitmap image of TabHost Layout

Hi friends am new to android. I created an application form filling with 4 tabs & now I need a screen shot of the layout if its edit text is filled on button click of save. Is it possible to do in android, if not in any format yet i want a copy of the fields with its image

Calendar.setOnClickListener(new OnClickListener() {@Overridepublic void onClick(View v) {    // TODO Auto-generated method stub     loadBitmapFromView((R.id.utils);}});}public static Bitmap loadBitmapFromView(View v) {    Bitmap b = Bitmap.createBitmap( v.getLayoutParams().width,         v.getLayoutParams().height, Bitmap.Config.ARGB_8888);                    Canvas c0 = new Canvas(b);    v.measure(v.getWidth(),v.getHeight());    v.layout(1,1,v.getWidth(),v.getHeight());    v.draw(c0);    return b;}

Hi in the above code its a relative layout where i tried for the layout output as image yet it shows error as width & height > 0

try this it may assist you

 public static Bitmap loadBitmapFromView(View v) {              Bitmap b = Bitmap.createBitmap( v.getWidth(), v.getHeight(), Bitmap.Config.ARGB_8888);                              Canvas c = new Canvas(b);              v.measure(v.getWidth(),v.getHeight());              v.layout(0,0,v.getWidth(),v.getHeight());              v.draw(c);              return b;        }

Saturday, October 12, 2013

Custom view with button in ArrayAdapter

I have defined a custom view (xml) for my ArrayAdapter for a ListView, which adds a Button. I’d like to create an OnClickListener for this Button per row, yet without creating a custom adapter. Is that possible, or does Android force me to create a custom ArrayAdapter for my ListView?

Here’s a snippet of what I’m doing:

glAdapter = new ArrayAdapter<Group>(getActivity(), R.layout.fragment_grouprow, R.id.groupRowText, ListOfGroups);ListView groupListView = (ListView)mainView.findViewById(R.id.listViewGroupMain);groupListView.setAdapter(glAdapter);groupListView.setOnItemClickListener(new AdapterView.OnItemClickListener() {    @Override      public void onItemClick(AdapterView<?> parent, View view, int position, long id) {          // Call function      }});

Now I’d like to add an OnClickListener for the Button in my custom view.

Thanks in advance,

Lali

You have to implement you own Adapter & in getView() method set OnClickListener on your button. Here kick off example:

public class CustomAdapter extends ArrayAdapter<Integer> {    private ListView listView;    public CustomAdapter(Context context, int textViewResourceId, Integer[] objects, ListView listView) {        super(context, textViewResourceId, objects);        this.listView = listView;    }    static class ViewHolder {        TextView text;        Button btn;    }    @Override    public View getView(final int position, View convertView, ViewGroup parent) {        Integer color = getItem(position);        View rowView = convertView;        if (rowView == null) {            LayoutInflater inflater = ((Activity) getContext()).getLayoutInflater();            rowView = inflater.inflate(R.layout.list_view_row, parent, false);            ViewHolder h = new ViewHolder();            h.text = (TextView) rowView.findViewById(R.id.item_text);            h.btn = rowView.findViewById(R.id.btn);            rowView.setTag(h);        }        ViewHolder h = (ViewHolder) rowView.getTag();        h.text.setText(color);        h.indicator.setOnClickListener(new View.OnClickListener() {            @Override            public void onClick(View v) {                // DO what you want to recieve on btn click there.            }        });        return rowView;    }}

ViewHolder here for optimization. You can read approximately this there.

Thursday, October 10, 2013

Display scrollview button click event

I have images under scrollview. I have a button to click event. When i click the button i need to display scrollview. But when i install app the scrollview is automatically displaying bottom of the page.

code:

<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"    android:paddingBottom="@dimen/activity_vertical_margin"    android:paddingLeft="@dimen/activity_horizontal_margin"    android:paddingRight="@dimen/activity_horizontal_margin"    android:paddingTop="@dimen/activity_vertical_margin"    tools:context=".Scroll" >    <HorizontalScrollView        android:id="@+id/scrl"        android:layout_width="wrap_content"        android:layout_height="wrap_content"        android:layout_marginTop="250dp" >        <LinearLayout            android:layout_width="wrap_content"            android:layout_height="wrap_content"            android:orientation="horizontal" >            <Button                android:layout_width="wrap_content"                android:layout_height="wrap_content"                android:background="@drawable/access"                />            <Button                android:layout_width="wrap_content"                android:layout_height="wrap_content"                android:background="@drawable/access1"                 />            <Button                android:layout_width="wrap_content"                android:layout_height="wrap_content"                android:background="@drawable/access2"                />            <Button                android:layout_width="wrap_content"                android:layout_height="wrap_content"                android:background="@drawable/access3"                 />            <Button                android:layout_width="wrap_content"                android:layout_height="wrap_content"                android:background="@drawable/access4"                />            <Button                android:layout_width="wrap_content"                android:layout_height="wrap_content"                android:background="@drawable/access5"                 />            <Button                android:layout_width="wrap_content"                android:layout_height="wrap_content"                android:background="@drawable/access6"                 />            <Button                android:layout_width="wrap_content"                android:layout_height="wrap_content"                android:background="@drawable/access7"                 />            <Button                android:layout_width="wrap_content"                android:layout_height="wrap_content"                android:background="@drawable/access8"                 />        </LinearLayout>    </HorizontalScrollView>    <Button         android:id="@+id/btn"        android:layout_width="fill_parent"        android:layout_height="wrap_content"/>        <TextView        android:layout_width="wrap_content"        android:layout_height="wrap_content"        android:text="@string/hello_world" /></RelativeLayout>

Button click:

Button btn=(Button)findViewById(R.id.btn);btn.setOnClickListener(new OnClickListener(){            @Override            public void onClick(View v) {                // TODO Auto-generated method stub    HorizontalScorllView    srl=(HorizontalScrollView)findViewById(R.id.scrl);                  }        });

By default set visiblity of android:id=”@+id/scrl” as invisible in xml.
After click on button
HorizontalScorllView srl=(HorizontalScrollView)findViewById(R.id.scrl);
set visiblity of srl as visble.

Tuesday, July 9, 2013

Install 64GB SD Card on Samsung Galaxy Tablet II P311x

Samsung Galaxy Tablet II P311X only support maximum 32GB external SD Card, Here is the solution that I make it support 64GB SDCard to store media & game files into external SD Card.

First of all the device must be rooted,

Download Paragon exFAT, NTFS & HFS+ from https://play.google.com/store/apps/details?id=com.paragon.mounter&feature=search_result#?t=W251bGwsMSwxLDEsImNvbS5wYXJhZ29uLm1vdW50ZXIiXQ..

, & format your sdcard with it as HFS, note: after format, this sdcard will no longer accessable by windows operation system with card reader directly.
Do NOT format this sdcard with the application in Android settings -> storage as this will format the sdcard into extfat format again.

After format, set the mount point & tick the auto-mount on boot.

Then install  “FolderMount”,
https://play.google.com/store/apps/details?id=com.devasque.fmount&feature=search_result#?t=W251bGwsMSwxLDEsImNvbS5kZXZhc3F1ZS5mbW91bnQiXQ..
I recommend you to go pro version as it can setup as many as mount point you want, the free version can only set 3 of them.

Then you can move any application/game folders which require large space with folder mount to safe the space of your internal SDCard

Saturday, February 2, 2013

Phonegap Sqlite (android)

Below Android environment use Phonegap operates Sqlite, code sees accessory.

(function(){$('#main').live('pageshow',function(){$('#createBtn').bind('click',function(){create('test','1.0','testDb',1000000);});$('#DropBtn').bind('click',function(){dropTable('DEMO','test','1.0','testDb',1000000);});$('#selectBtn').bind('click',function(){select('test','1.0','testDb',1000000);});$('#insertBtn').bind('click',function(){$('#addWindow').popup('open');});$('#saveBtn').bind('click',onSaveBtnClick);$('#deleteBtn').bind('click',onDeleteBtnClick);});function onSaveBtnClick(){var id = $('#idfield').val();var data = $('#datafield').val();if(id!=''&& data!=''){var db = getDb('test','1.0','testDb',1000000);db.transaction(function(tx){tx.executeSql('INSERT INTO DEMO (id, data) VALUES (?, ?)', [id,data]);}, errorCB, function(){$('#addWindow').popup('close');Alert(' adds successful'); newly$('#selectBtn').trigger('click');$('#msgdiv').empty();$('#idfield').val('');$('#datafield').val('');});}else{$('#msgdiv').text(' inputs Idand Data please! ! ');}}function onDeleteBtnClick(){var db = getDb('test','1.0','testDb',1000000);db.transaction(function(tx){tx.executeSql('DELETE FROM DEMO');}, errorCB, function(){Alert(' deletes overall recordsuccessfully! ');$('#resultList > tbody').empty();});}function getDb(dbName,dbVersion,dbDisplayname,dbSize){return window.openDatabase(dbName, dbVersion,dbDisplayname, dbSize);}function select(dbName,dbVersion,dbDisplayname,dbSize){var db = getDb(dbName,dbVersion,dbDisplayname,dbSize);db.transaction(queryDB, errorCB);}function dropTable(tableName,dbName,dbVersion,dbDisplayname,dbSize){var db = getDb(dbName,dbVersion,dbDisplayname,dbSize);db.transaction(function(tx){tx.executeSql('DROP TABLE IF EXISTS '+tableName);}, errorCB,function(){Alert(' deletes a success,tableName='+tableName);$('#resultList > tbody').empty();});}function queryDB(tx) {$('#resultList > tbody').empty();tx.executeSql('SELECT * FROM DEMO', [], function (tx, results) {var len = results.rows.length;var html = [];for (var i=0; i tbody').append($(html.join('')));},errorCB);}function create(dbName,dbVersion,dbDisplayname,dbSize){var db = getDb(dbName,dbVersion,dbDisplayname,dbSize);db.transaction(function(tx){tx.executeSql('DROP TABLE IF EXISTS DEMO');tx.executeSql('CREATE TABLE IF NOT EXISTS DEMO (id unique, data)');tx.executeSql('INSERT INTO DEMO (id, data) VALUES (1, "First row")');tx.executeSql('INSERT INTO DEMO (id, data) VALUES (2, "Second row")');Tx.executeSql('INSERTINTO DEMO (Id, data) VALUES (3, "Phonegap Sqlitechecks ")'); } , errorCB, function(){Alert(' establishs asuccess, dbName='+dbName);$('#selectBtn').trigger('click');});}function errorCB(err) {alert("Error processing SQL: "+err.code);}})();

Get screen resolution

The following code is to obtain screen resolution, through WindowManager.

WindowManager Wm = (WindowManager) Context.getSystemService(Context.WINDOW_SERVICE);Display D = Wm.getDefaultDisplay();MScreenWidth = D.getWidth();MScreenHeight = D.getHeight();//The following code gets condition column heightResources Res = Context.getResources();MStatusBarHeight = Context.getResources().getDimensionPixelSize(Com.android.internal.R.dimen.status_bar_height);//The following statement gets current configuration ConfigurationGetResources().getConfiguration()

Get Android WiFi Status in Android

Pass WifiManager to be able to obtain the state information of Wifi, these information are enclosed in WifiInfo, can obtain material state information from inside WifiInfo.
The means that obtains WifiManager is:
WifiManager WifiManager = (WifiManager)getSystemService(Context.WIFI_SERVICE);
The snippet that obtains WifiInfo is:

WifiInfo Info = WifiManager.getConnectionInfo();

The Wifi state information that can obtain has:

  • SSID;
  • BSSID;
  • MacAddress;
  • HiddenSSID;
  • IpAddress;
  • LinkSpped;
  • NetWorkId;
  • Rssi;
  • SupplicantState;

About detailed information, referenced Android SDK! : )

Tuesday, September 27, 2011

Run Heroes of Might and Magic III on Android

This old classic PC game – Heroes of Might & Magic III has brought to Android platform by an open source project VCMI, its development team has done a remarkable work to make it running on an Android tablet.

How to install:

1. Download VCMI from the Android market from https://market.android.com/details?id=eu.vcmi&hl=en

2. Run VCMI once, it will create the directories on your /sdcard/app-data

3. Install a full version of Heroes of Might & Magic ||| on your PC, you can buy it from http://www.gog.com/en/gamecard/heroes_of_might_and_magic_3_complete_edition , currently VCMI only support english version, you can find out more in their wiki http://wiki.vcmi.eu/index.php?title=Main_Page

4. After install the heroes of might & magic III you will need to install WOG, download from here http://www.maps4heroes.com/heroes3/files/allinone_385f.zip

5. Unzip WOG(files with install.exe) to Heroes of Might & Magic |||/UPDATE/ folder & run install.exe, this installation will take a while, please be patient.

6. Connect your tablet to your PC with USB cable & copy all files under your installation of Heroes of Might & Magic |||/* to /sdcard/app-data/eu.vcmi/

7. Run VCMI again after copy is finished & enjoy your game 🙂

NOTE: Currently only hotseat mode is enabled, you need to select multiple player -> hotseat as the AI engine is not completed yet
You can moreover download latest build of VCMI project from http://forum.vcmi.eu/portal.php

 

 

 

 

Wednesday, May 18, 2011

How to make phone calls from your android application

It is very simple to make a phone call from your android application.

1. add user permission to AndroidManifest.xml file

2. Use following coding to make the call

try {        Intent callIntent = new Intent(Intent.ACTION_CALL);        callIntent.setData(Uri.parse("tel:111111111"));        startActivity(callIntent);} catch (ActivityNotFoundException e) {        Log.e("Android Call", "Call failed", e);}

Tested with Android 1.5(version 3) or above

Saturday, September 25, 2010

HTC Hero Tethering after upgrade to Android 2.1

After my HTC Hero upgraded to Android 2.1, I found it is failed to use USB tethering, neither HTC Sync or PDANet works.

The solution is reset to factory settings & install the latest version of HTC sync on your PC, & everything will be working again.

You can download the HTC sync for Android 2.1 from http://www.htc.com/uk/SupportViewNews.aspx?dl_id=982&news_id=776

NOTICE: You will need to reinstall all the applications on your mobile.