Android system transplantation and debugging -------) how to modify the NFC module of the Android mobile phone so that NFC can be used in the black screen
We all know that, without modifying the source code, NFC can only be used a
Q: Card simulation on Android NFC mobile phone
Modify the last description
1. Q: Can I simulate a card on an androidnfc mobile phone?
A: It is technically feasible. However, for general developers, it only seems technically feasible :(
2. Q: How to implement it?
A: There are two methods: one is hardware-based, calle
HCE mode allows the software to simulate smart cards and generate electronic virtual smart cards .HCE (host-based card Emulation) is an analog smart card software that exists as software in Android (for example: APK). HCE is characterized by analog intelligent IC Card (ISO 7816-4), can be used in finance, transportation, communications and other industry applications, HCE is a software simulation of the Intelligent IC card, so there will be aid, can s
Android, BlackBerry all provide the analog NFC card API, theoretically can use the phone to simulate a meal card, traffic card, and even bank card to carry out identity authentication, trading, is not very happy, the mood is very excited ah.
Wait
The reality is
Application Scenarios:
Most of the domestic, 99% of the cards are the cheapest M1 cards, and th
In this example, refer to the NFC ForegoundDispatch in ApiDemos to introduce the basic steps for compiling Android NFC, because only MifareClassic tags are available at hand, you need to modify the ForegoundDispatch code to detect NFC tags of the MifareClassic type. The basic steps for reading and writing
Android NFC and androidnfc
NFC introduction:
Near Field Communication Near-Field Communication is a data transmission technology.
A major difference from wifi, Bluetooth, infrared and other data transmission technologies is that the effective distance generally cannot exceed 4 cm.
NFC supports three working modes:
1.
code or even recompile.
So how do we solve this problem? To know how to simulate NFC, you need to first understand how NFC works on a macro level. This is an example of NFC tags. NFC data transfer is similar to this one. When the NFC tag is near the
Protocol and provides a unified interface to the upstream layer. Including format analysis and processing, and discovery and registration mechanism.
2. nfcapi
Provides interfaces for upstream applications based on different operating systems and middleware. Use jsr257 and corresponding extensions on the Java Virtual Machine, and use Andro to record nfcapi and corresponding extensions on the Android operating system.
3.
This article is an example of how Android obtains SD card and cell phone ROM capacity. Share to everyone for your reference, specific as follows:
Here is a simple example to get the capacity of the SD card and the capacity of the cell phone ROM, the code is as follows:
NFC Overview
NFC is short for Near Field Communication, which is short for Near-range wireless Communication technology. NFC, jointly developed by Philips and Sony, is a non-
Contact identification and interconnection technologies can be used in mobile devices, consumer electronic products,
Provides close-range wireless communication between PCs and smart control
phonegap maps to the interface rendering, animation and other performance issues, so if the application involves these features, you can choose another native solution on the phone, here we will only introduce the android native solution. For the native protocol interface based on JSON, you can use the original NiO of Android, or use Mina and other quick open-so
support only one NFCAdapter, you can use the Getdefaultaapater method directly to obtain system-supported Adapter.Nfcadapter class: This device's NFC adapter, can be defined intent to request that the system detects tags to send reminders to your activity, and provide the partyLaw to register the front desk tag reminder release and front desk ndef push.Ndefmessage class: Ndef is the data structure defined by the
Android mobile phone.
Next, paste the simple Applet source code: http://download.csdn.net/detail/hellogv/8090041.
The general idea is: the Applet defines two user-defined commands, namely, pai_ins_1 and pai_ins_2, with the names starting with pai_linoleic. When Android phones send pai_ins_1 and pai_ins_2 via NFC, the
near-field radio waves, which can power the passive target. These passive targets include labels that do not require a power supply. Card, can also be a power-supply device.Compared to other wireless communication technologies, such as Bluetooth and WiFi. NFC offers lower loan and distance, low cost, no power supply, no matching, and the entire communication process can be completed in just one second.An Android
The emergence of NFC (near-field communication function) is undoubtedly an innovation in the history of mobile phones. It makes mobile phones closer to people's lives, windows Phone 8, the operating system of the new generation of mobile phones, is also integrating NFC into Windows Phone 8. According to the wpcentral m
.
3, manually into the repair mode, click "Confirm" immediately after the software prompts manual into the repair mode. Mobile phone, enter the repair mode of the different methods, please be sure to follow the software prompts to operate
Samsung Model:
Confirm cell phone shutdown, both hands hold down the volume at the sam
(tag); if (ndef!=null) {ndef.connect (); if (! Ndef.iswritable ()) {return;} if (Ndef.getmaxsize () in this activity, you can click the button and jump to another activity, which is used to display the list of appsPackage Com.cayden.run.application;import Java.util.arraylist;import Java.util.list;import Android.app.listactivity;import Android.content.intent;import Android.content.pm.packageinfo;import Android.content.pm.packagemanager;import Android.os.bundle;import Android.view.view;import And
Today, we have a CSDN community activity to answer questions about how to learn, understand, and develop the Android system, and learn more about Android: wi-Fi, NFC, and GPS book answers questions and understands the implementation principles of the Android Framework. Activity link: http://bbs.csdn.net/topics/39076527
"); the } the the @Override - Publicndefmessage Createndefmessage (nfcevent event) { in //TODO auto-generated Method Stub the theString Text =Mbeamtext.gettext (). toString (). Trim (); About if("". Equals (text)) { theText = "Default Text"; the //when the phone is near another phone, make it automatically turn on the calculator the //ndefmessage ndefmessag
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.