At a press conference last night, canonical partnered with the hardware vendor, BQ, to launch the first Ubuntu mobile--aquaris E4.5 for the consumer market, bringing a completely different operating experience from the common iphone and Android devices through the "Scopes" To respond quickly to your daily needs, i.e. cards, developers can write apps through HTML5 or Ubuntu native language qml code. Canonical says there is no plan to create an app store to compete with Apple's itunes App Store or
First show you the operating effect chart:
Because the address book is stored in a database on the phone, so we can use a method
Context.getcontentresolver (). Query (Phone.content_uri,
null, NULL, NULL, NULL);
To get the address book, this method returns the data type of a cursor, through the MoveToNext () method to obtain all the mobile phone nu
How to get android mobile phone contacts and display them by letter (3): android contacts
If you get the contact Profile and display it:
How to obtain bitmap Based on photoId:
public static Bitmap getContactPhoto(Context context, long photoId, BitmapFactory.Options options) { if (photoId
Add the following to bindView:
protected void setContactPhoto(C
How to get my own phone numberfrom Forum Nokia Wiki
Note
The source of this information is Symbian's FAQ-0970 but a key information from that article is missing: the sample code provided below is intended"Symbian operating system 7.0 (and later) binary access kit/devkit licensees".
What that basically means is that the APIs used are not public and can only be accessed through Symbian's partnership progra
How do I get my phone model?
I want to get the terminal model of the logged in user,
Make the following statistics.
I've tried the Moblie_detect class,
But there are not all types of mobile phones in this category, and no Xiaomi, Huawei and so on models,
I found my own and couldn't find the model of the specific phone.
If we want to get battery information for a cell phone, it can be broadcast. The system sends a broadcast when the battery level of the phone is changed. The specific code is as follows// Register intentfilter.addaction (intent.action_battery_changed); Mcontext.registerreceiver (MHallReceiver, IntentFilter ); // Broadcast processing intent.getaction (). Equals (i
To do a query identification system, the goods need to be queried with the IP and the direction of the cargo to match. The problem is that it is accurate to use a computer to test IP access. I know the IP is randomly assigned, but Unicom is Unicom Telecom is telecommunications, network segment or fixed in a range.But I use the mobile phone to access to obtain IP when actually appeared unicom mobile phone di
today, get up and look at the once downloaded N-more code, casually picked a simple look, look at the name (get mobile phone number, get mobile phone operator) Very interesting to learn a bit. and then found that only can get car
First, determine whether there is network data connection:The most basic network state judgment, if there is no network connection, all operations will not go on.Microsoft.Phone.Net.NetworkInformation.NetworkInterface.GetIsNetworkAvailable ()Second, determine the network type (gsm/cdma/wifi/ethernet):In the general application, need to know the network status is also three kinds: No network, wifi/ethernet, mobile network.The difference between the three is:1, "No network": Do not explain, we all
When developing, we often get high-width data from the phone's screen. Usually we will write a fetch method such as Getscreen () and then call the Getscreen () method in OnCreate (). The result we may get is the width of the height of 0. What is this for? The reason is:In the activity life cycle, Oncreate,onstart, onresume are not real screen visible (visible) point-in-time, real visible The point in time i
Recently there are children's shoes asked me how to get to the iphone screenshot of the event, so this article will simply talk about how to deal with this problem.In the COCOS2DX engine, we can obtain in Appdelegate, the user will apply into the background, and return to the application of the event function. So the corresponding, COCOS2DX also in the engine gives us to intercept the screen and other such only mobile
Android in the custom control, often need to get the width of the screen height, every time to write, you can directly encapsulate him as a tool class, directly to use, nonsense, not to say, directly on the code/** * */package com.example.customview;import android.content.context;import android.util.DisplayMetrics; Import android.view.windowmanager;/** * Get phone
In this article, we show you how to get the IP address on your phone in the Ubuntu qml app.We add some code to our main.cpp to get the IP address:Main.cpp#include Main.qmlImport QtQuick 2.0import ubuntu.components 1.1/*! \brief MainView with a Label and Button Elements.*/mainview {//ObjectName for functional testing purposes (autopilot- QT5) ObjectName: "MainView
field of view, default: false in }); - Mapobj.addcontrol (geolocation); to geolocation.getcurrentposition (); + AMap.event.addListener (geolocation,' Complete', OnComplete); //Back to location information - AMap.event.addListener (geolocation,'Error', OnError); //return location error message the }); * $ functionOnComplete (obj) {Panax Notoginseng varRes= 'latitude and Longitude:' +obj.position+ - '\ n Accuracy range:' +obj.accuracy+ the
Note: can only be displayed in the real machine, the editor cannot display A.android version 1. Read directly through C #, the following Getbatterylevel () method int Getbatterylevel () { br> try { String capacitystring = System.IO.File.ReadAllText ("/sys/class/power_supply /battery/capacity "); Return Int. Parse (capacitystring); } catch (Exception e) { Debug.Log ("Failed to read battery power;" + e.message); } Return-1; } } version B.ios iOS needs to be written in Xcode. A stat
Touch screen version of the phone to automatically eject the keyboard to meet the three conditions:1. text Box get focus2, hand touch screen of this page3. No delayImplementation examples (similar to Weibo):Touch screen version similar to refresh the page text box to get focus while popping the phone keyboard practice
Originally can not get the Apple series model, but switch ideas, first determine whether it is Apple, and then use the resolution to obtain the modelGet Phone model function beginfunction Getphonetype () {Regular, ignoring casevar pattern_phone = new RegExp ("iphone", "I");var pattern_android = new RegExp ("Android", "I");var useragent = Navigator.userAgent.toLowerCase ();var isandroid = pattern_android.tes
Get Name,bundleidentitifer for apps that have been installed on your phone Class c =nsclassfromstring (@ "Lsapplicationworkspace"); ID s = [(ID) C performselector:nsselectorfromstring (@ "Defaultworkspace")]; Nsarray *array = [s performselector:nsselectorfromstring (@ "allinstalledapplications")]; For (ID item in array) { NSLog (@ "%@", [Item performselector:nsselectorfromstring (@ "Ap
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.