如何註冊我的APP是NFC程式呢?
1. 首先要先開起 AndroidManifest.xml
<activity android:configchanges="locale" android:label="@string/app_name" android:name=".MyNfc" android:screenorientation="portrait">
<intent-filter>
<action android:name="android.intent.action.MAIN">
<category android:name="android.intent.category.LAUNCHER">
</category></action>
</intent-filter>
<intent-filter>
<action android:name="android.nfc.action.TAG_DISCOVERED">
</action>
</intent-filter>
<intent-filter>
<action android:name="android.nfc.action.TECH_DISCOVERED">
</action></intent-filter>
<meta-data android:name="android.nfc.action.TECH_DISCOVERED" android:resource="@xml/nfc_tech_filter.xml">
</meta-data>
</activity>
標籤
- C
- android
- Objective-c
- Sort
- BlueTooth
- Python
- 133
- Apache
- ArrayList
- BluetoothChat
- C sharp
- C#
- CVS
- CheckBox
- Closest Pair
- Console.ReadLine
- HashMap
- NFC
- NSDocumentDirectory
- NSString
- Pandaboard
- SQLite
- UIAlertController
- VB
- Xcode6
- driver
- execSQL
- gatt error
- httpd.conf
- office
- primie check
- property
- sharedApplication
- 小小問題
2013年4月18日 星期四
2012年5月3日 星期四
[Android] SimpleDateFormat ms
java.text.SimpleDateFormat date =
new java.text.SimpleDateFormat(""yyyy/MM/dd HH:mm:ss:SSS"); //SS = ms
saveTime = date.format(new Date(System.currentTimeMillis()));
new java.text.SimpleDateFormat(""yyyy/MM/dd HH:mm:ss:SSS"); //SS = ms
saveTime = date.format(new Date(System.currentTimeMillis()));
2011年5月22日 星期日
apache httpd.conf virtual directory
Apache virtual directory設定:
以windows 7安裝appserv為例
appserv www 目錄在 C:\AppServ\www
想要新增一virtual directory取代本機端檔案夾目錄
找到apache的httpd.conf
以我的安裝為例, C:\AppServ\Apache2.2\conf
在空白處加上:
以windows 7安裝appserv為例
appserv www 目錄在 C:\AppServ\www
想要新增一virtual directory取代本機端檔案夾目錄
找到apache的httpd.conf
以我的安裝為例, C:\AppServ\Apache2.2\conf
在空白處加上:
標籤:
小小問題,
Apache,
httpd.conf
2011年5月16日 星期一
[C] read txt file number and separate save
ex:
輸入:
1 5 3 5
23 59 0 34
21 33 21 10
0 0 0 0
輸出 :
1 5 3 5
23 59 0 34
21 33 21 10
0 0 0 0
#include<stdio.h>
int main( void )
{
int h1 , m1 , h2 , m2;
while(1)
{
輸入:
1 5 3 5
23 59 0 34
21 33 21 10
0 0 0 0
輸出 :
1 5 3 5
23 59 0 34
21 33 21 10
0 0 0 0
#include<stdio.h>
int main( void )
{
int h1 , m1 , h2 , m2;
while(1)
{
[C#] Console.ReadLine txt file
ex:
輸入:
1 5 3 5
23 59 0 34
21 33 21 10
0 0 0 0
輸出 :
1 5 3 5
23 59 0 34
21 33 21 10
using System;
using System.Collections.Generic;
using System.Text;
using System.IO;
using System.Collections;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
string line;
while( (line=Console.ReadLine()) != null)
輸入:
1 5 3 5
23 59 0 34
21 33 21 10
0 0 0 0
輸出 :
1 5 3 5
23 59 0 34
21 33 21 10
using System;
using System.Collections.Generic;
using System.Text;
using System.IO;
using System.Collections;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
string line;
while( (line=Console.ReadLine()) != null)
[VB] Console.ReadLine txt file
ex:
輸入:
1 5 3 5
23 59 0 34
21 33 21 10
0 0 0 0
輸出 :
1 5 3 5
23 59 0 34
21 33 21 10
Imports System
Imports Microsoft.VisualBasic
Imports System.IO
Imports System.Collections
Module Module1
Sub Main()
Dim intA, intB, intC, intD As Integer
Dim intTotal As Integer
intTotal = 0
Dim line As String
DO
輸入:
1 5 3 5
23 59 0 34
21 33 21 10
0 0 0 0
輸出 :
1 5 3 5
23 59 0 34
21 33 21 10
Imports System
Imports Microsoft.VisualBasic
Imports System.IO
Imports System.Collections
Module Module1
Sub Main()
Dim intA, intB, intC, intD As Integer
Dim intTotal As Integer
intTotal = 0
Dim line As String
DO
標籤:
Console.ReadLine,
VB
訂閱:
文章 (Atom)