โปรเจคของผมเป็นเกี่ยวกับการแสดงค่า sensor วัดความเร่ง
ซึ่งโค้ดผมอ่านมาจากเว็ปนี้
http://developer.android.com/reference/android/hardware/SensorListener.html
แล้วผมไม่รู้จะเริ่มต้นเขียนยังไงอ่ะครับ ถึงจะแสดงออกมาได้
พี่ๆ ช่วยอธิบายผมหน่อยน่ะครับ
แล้วพวก edittext textview button ฯลฯ พวกนี้ผมได้ศึกษามาเบื้องต้นแร้วครับ
ขอบคุณครับ
#edit1 อีกอย่างผมไม่ค่อยรู้เกี่ยวกับ การเขียน .java เท่าไหร่นักอ่ะครับ ผมเรียนมาแค่ภาษา c ส่วน java กำลังศึกษาอยู่ครับ
This interface is deprecated.
Use SensorEventListener instead.
เขาว่า Interface ตัวนี้มัน deprecate ไปแล้ว ลองใช้ SensorEventListener ดูมั้ยครับ ?
ทีนี้ขอถามว่าใช้บรรดา listener เป็นหรือยังครับ ?
ใช้ไม่เป็นเลยครับพี่ แนะนำผมหน่อยครับ หรือมี Email ติดต่อ ด้วยครับ ขอบคุณครับ
#
ผมรันแอพลิเคชั่น ลงมือถือแร้วมันเออเร่ออ่ะครับ พี่ logcat
02-13 11:27:08.464: DEBUG/StatusBarPolicy(182): updateSignalStrength: numeric=52015, curOperator=TOT 3G
02-13 11:27:17.761: INFO/wpa_supplicant(1857): SCAN_RESULTS : [1]
02-13 11:27:17.890: DEBUG/BatteryService(121): update start
02-13 11:27:17.894: DEBUG/BatteryService(121): updateBattery level:99 scale:100 status:3 health:2 present:true voltage: 4100 temperature: 392 technology: Li-ion AC powered:false USB powered:true icon:17302368
02-13 11:27:17.898: ERROR/BatteryPolicy(182): onReceive intent:Intent { act=android.intent.action.BATTERY_CHANGED flg=0x60000000 (has extras) }
02-13 11:27:17.906: DEBUG/Elixir(370): Broadcast received: android.intent.action.BATTERY_CHANGED
02-13 11:27:17.910: DEBUG/Elixir(370): Refresh widgets for type: [BATTERY]
02-13 11:27:17.914: INFO/Elixir(370): WidgetUpdateService started
02-13 11:27:17.914: DEBUG/Elixir(370): WidgetUpdateTask update widgets: [171, 114, 173], all: false, forceUpdate: true
02-13 11:27:17.925: DEBUG/Elixir(370): WIDGET[171, 1×1]: updated in 13 ms
02-13 11:27:17.976: DEBUG/Elixir(370): WIDGET[114, 1×1]: updated in 4 ms
02-13 11:27:18.019: DEBUG/Elixir(370): WIDGET[173, 1×1]: updated in 12 ms
02-13 11:27:18.066: DEBUG/Elixir(370): No refresh needed
02-13 11:27:18.070: DEBUG/Elixir(370): Stop alarm
02-13 11:27:20.300: DEBUG/Elixir(370): Broadcast received: android.net.wifi.RSSI_CHANGED
02-13 11:27:20.300: DEBUG/Elixir(370): Refresh widgets for type: [WIFI_SIGNAL_STRENGTH]
02-13 11:27:27.527: DEBUG/AndroidRuntime(10482): >>>>>> AndroidRuntime START com.android.internal.os.RuntimeInit > AndroidRuntime START com.android.internal.os.RuntimeInit Num Sensor: 1
02-13 11:27:28.109: DEBUG/SensorManager(10498): ====>>>>>Num Sensor: 2
02-13 11:27:28.109: DEBUG/SensorManager(10498): ====>>>>>Num Sensor: 3
02-13 11:27:28.109: DEBUG/SensorManager(10498): ====>>>>>Num Sensor: 4
02-13 11:27:28.109: DEBUG/SensorManager(10498): ====>>>>>Num Sensor: 5
02-13 11:27:28.109: DEBUG/SensorManager(10498): ====>>>>>Num Sensor: 6
02-13 11:27:28.109: DEBUG/SensorManager(10498): ====>>>>>Num Sensor: 7
02-13 11:27:28.109: DEBUG/SensorManager(10498): ====>>>>>Num Sensor: 0
02-13 11:27:28.109: ERROR/SensorManager(10498): registerListener :: handle = 0 name= BMA020 3-axis Accelerometer delay= 200000 Listener= andrid.project.first$1@40517ad0
02-13 11:27:28.113: ERROR/SensorManager(10498): =======>>>Sensor Thread RUNNING sampleRate is 44100
02-13 11:28:33.921: DEBUG/AudioHardwareALSA(75): Buffer size: 2048
02-13 11:28:33.921: DEBUG/AudioHardwareALSA(75): Latency: 46439
02-13 11:28:33.925: DEBUG/KeyguardViewMediator(121): setHidden false
02-13 11:28:33.925: DEBUG/KeyguardViewMediator(121): setHidden false
02-13 11:28:33.957: DEBUG/KeyguardViewMediator(121): setHidden false
02-13 11:28:33.957: DEBUG/KeyguardViewMediator(121): setHidden false
02-13 11:28:33.972: DEBUG/KeyguardViewMediator(121): setHidden false
02-13 11:28:33.972: DEBUG/KeyguardViewMediator(121): setHidden false
02-13 11:28:33.988: DEBUG/KeyguardViewMediator(121): setHidden false
02-13 11:28:33.988: DEBUG/KeyguardViewMediator(121): setHidden false
02-13 11:28:34.003: DEBUG/KeyguardViewMediator(121): setHidden false
02-13 11:28:34.003: DEBUG/KeyguardViewMediator(121): setHidden false
02-13 11:28:34.019: DEBUG/KeyguardViewMediator(121): setHidden false
02-13 11:28:34.019: DEBUG/KeyguardViewMediator(121): setHidden false
02-13 11:28:34.035: DEBUG/KeyguardViewMediator(121): setHidden false
02-13 11:28:34.039: DEBUG/KeyguardViewMediator(121): setHidden false
02-13 11:28:34.039: DEBUG/KeyguardViewMediator(121): setHidden false
02-13 11:28:37.339: INFO/AudioHardwareALSA(75): Output standby called!!. Turn off PCM device.
02-13 11:28:38.863: DEBUG/dalvikvm(10529): GC_CONCURRENT freed 1407K, 56% free 3161K/7175K, external 2398K/2652K, paused 7ms+15ms
02-13 11:28:39.863: WARN/PowerManagerService(121): Timer 0x7->0x3|0x0
02-13 11:28:39.863: INFO/PowerManagerService(121): Ulight 7->3|0
02-13 11:28:41.039: DEBUG/dalvikvm(10529): GC_CONCURRENT freed 1042K, 57% free 3115K/7175K, external 2398K/2652K, paused 7ms+2ms
02-13 11:28:41.921: DEBUG/dalvikvm(121): GC_EXPLICIT freed 1460K, 38% free 8913K/14279K, external 10961K/12610K, paused 81ms
02-13 11:28:42.835: DEBUG/dalvikvm(10529): GC_CONCURRENT freed 906K, 58% free 3067K/7175K, external 2398K/2652K, paused 2ms+2ms
02-13 11:28:50.378: DEBUG/BatteryService(121): update start
02-13 11:28:50.386: DEBUG/BatteryService(121): updateBattery level:99 scale:100 status:3 health:2 present:true voltage: 4141 temperature: 394 technology: Li-ion AC powered:false USB powered:true icon:17302368
02-13 11:28:50.398: ERROR/BatteryPolicy(182): onReceive intent:Intent { act=android.intent.action.BATTERY_CHANGED flg=0x60000000 (has extras) }
02-13 11:28:50.410: DEBUG/Elixir(370): Broadcast received: android.intent.action.BATTERY_CHANGED
02-13 11:28:50.410: DEBUG/Elixir(370): Refresh widgets for type: [BATTERY]
02-13 11:28:50.414: INFO/Elixir(370): WidgetUpdateService started
02-13 11:28:50.417: DEBUG/Elixir(370): WidgetUpdateTask update widgets: [171, 114, 173], all: false, forceUpdate: true
02-13 11:28:50.421: DEBUG/Elixir(370): WIDGET[171, 1×1]: updated in 6 ms
02-13 11:28:50.476: DEBUG/Elixir(370): WIDGET[114, 1×1]: updated in 4 ms
02-13 11:28:50.531: DEBUG/Elixir(370): WIDGET[173, 1×1]: updated in 8 ms
02-13 11:28:50.562: DEBUG/Elixir(370): No refresh needed
02-13 11:28:50.562: DEBUG/Elixir(370): Stop alarm
02-13 11:28:59.753: DEBUG/Elixir(370): Broadcast received: android.net.wifi.RSSI_CHANGED
02-13 11:28:59.753: DEBUG/Elixir(370): Refresh widgets for type: [WIFI_SIGNAL_STRENGTH]
02-13 11:28:59.968: DEBUG/cn.miren.browser.widget.RssNewsView(10529): downloaded: 25
02-13 11:28:59.976: DEBUG/cn.miren.browser.widget(10529): cn.miren.browser.widget.news.refreshed
02-13 11:29:00.007: DEBUG/Elixir(370): Broadcast received: android.intent.action.TIME_TICK
02-13 11:29:00.007: DEBUG/Elixir(370): Refresh widgets for type: [TIME]
02-13 11:29:05.117: DEBUG/dalvikvm(10149): GC_EXPLICIT freed 279K, 54% free 2678K/5703K, external 2398K/2652K, paused 68ms
02-13 11:29:12.957: INFO/ActivityManager(121): Start proc com.google.android.gm for service com.google.android.gm/.provider.MailSyncAdapterService: pid=10545 uid=10039 gids={3003, 1015}
02-13 11:29:13.035: INFO/ActivityThread(10545): Pub gmail-ls: com.google.android.gm.provider.MailProvider
02-13 11:29:13.050: INFO/ActivityThread(10545): Pub gmail-downloads: com.google.android.gm.downloadprovider.DownloadProvider
02-13 11:29:13.054: INFO/ActivityThread(10545): Pub com.google.android.gm.attachmentspreviews: com.google.android.gm.AttachmentPreviewProvider
02-13 11:29:13.058: INFO/ActivityThread(10545): Pub com.google.android.gmail.SuggestionProvider: com.google.android.gm.SuggestionsProvider
02-13 11:29:13.320: INFO/Gmail(10545): calculateUnknownSyncRationalesAndPurgeInBackground: queueing
02-13 11:29:13.320: INFO/Gmail(10545): calculateUnknownSyncRationalesAndPurgeInBackground: running
02-13 11:29:13.398: INFO/Gmail(10545): MainSyncRequestProto: lowestBkwdConvoId: 0, highestHandledServerOp: 9128, normalSync: true
02-13 11:29:14.832: DEBUG/Elixir(370): Broadcast received: android.net.wifi.RSSI_CHANGED
02-13 11:29:14.832: DEBUG/Elixir(370): Refresh widgets for type: [WIFI_SIGNAL_STRENGTH]
02-13 11:29:17.855: INFO/wpa_supplicant(1857): SCAN_RESULTS : [1]
02-13 11:29:19.871: INFO/Elixir(370): Settings changed: [content://gmail-ls], refresh: [GMAIL]
02-13 11:29:19.871: DEBUG/Elixir(370): Refresh widgets for type: [GMAIL]
02-13 11:29:19.910: DEBUG/dalvikvm(10545): GC_EXPLICIT freed 838K, 54% free 3037K/6471K, external 2398K/2652K, paused 37ms
02-13 11:29:19.921: INFO/Gmail(10545): MainSyncRequestProto: lowestBkwdConvoId: 0, highestHandledServerOp: 9146, normalSync: true
02-13 11:29:20.542: DEBUG/BatteryService(121): update start
02-13 11:29:20.558: DEBUG/BatteryService(121): updateBattery level:99 scale:100 status:3 health:2 present:true voltage: 4142 temperature: 394 technology: Li-ion AC powered:false USB powered:true icon:17302368
02-13 11:29:20.574: DEBUG/Elixir(370): Broadcast received: android.intent.action.BATTERY_CHANGED
02-13 11:29:20.574: ERROR/BatteryPolicy(182): onReceive intent:Intent { act=android.intent.action.BATTERY_CHANGED flg=0x60000000 (has extras) }
02-13 11:29:20.578: DEBUG/Elixir(370): Refresh widgets for type: [BATTERY]
02-13 11:29:20.582: INFO/Elixir(370): WidgetUpdateService started
02-13 11:29:20.582: DEBUG/Elixir(370): WidgetUpdateTask update widgets: [171, 114, 173], all: false, forceUpdate: true
02-13 11:29:20.589: DEBUG/Elixir(370): WIDGET[171, 1×1]: updated in 5 ms
02-13 11:29:20.640: DEBUG/Elixir(370): WIDGET[114, 1×1]: updated in 3 ms
02-13 11:29:20.687: DEBUG/Elixir(370): WIDGET[173, 1×1]: updated in 13 ms
02-13 11:29:20.742: DEBUG/Elixir(370): No refresh needed
02-13 11:29:20.742: DEBUG/Elixir(370): Stop alarm
02-13 11:29:21.320: DEBUG/Gmail(10545): Inserting message 1393670069516624091. synced=true
02-13 11:29:21.410: INFO/Elixir(370): Settings changed: [content://gmail-ls], refresh: [GMAIL]
02-13 11:29:21.410: DEBUG/Elixir(370): Refresh widgets for type: [GMAIL]
02-13 11:29:21.445: DEBUG/dalvikvm(10545): GC_EXPLICIT freed 311K, 53% free 3047K/6471K, external 2398K/2652K, paused 34ms
02-13 11:29:21.449: INFO/Gmail(10545): MainSyncRequestProto: lowestBkwdConvoId: 0, highestHandledServerOp: 9148, normalSync: true
02-13 11:29:21.503: INFO/Elixir(370): Settings changed: [content://gmail-ls], refresh: [GMAIL]
02-13 11:29:21.503: DEBUG/Elixir(370): Refresh widgets for type: [GMAIL]
02-13 11:29:25.691: DEBUG/dalvikvm(370): GC_EXPLICIT freed 513K, 62% free 2749K/7175K, external 2398K/2652K, paused 118ms
Truly fine content…The admin have a great information…I contribute to your skilled through.. I hope you post again soon. I am very pleased to leave a comment to this blog out there who put out really honest information…
send congratulations flowers | UK florist delivery (http://www.flowersexpert.co.uk/index.php/occasions/congratulations-flowers.html)
The Big Miss, swing coach Hank Haney’s highly touted book on Tiger Asics Shoes Woods, hits stores in a couple weeks. And while Haney's story of Woods wanting to join Asics Kayano the Navy SEALs caused a bit Onitsuka Tiger of a stir a few weeks back, the New York Times brings us a few new angles on that story and Woods' relationship with ex-wife Asics Mexico 66 Lauta Elin Nordegren. The book primarily focuses on Haney's teaching relationship with Woods, Asics Australia a partnership during which Woods won six of his 14 majors. Still, as with any major work on Woods, the book touches on the scandals that Onitsuka Tiger Australia have dominated Woods' life since Asics Gel Kinsei Thanksgiving 2009. Haney, who quit teaching Woods in May 2010, had an up-close look at the changing relationship between Woods and now-ex-wife Elin Asics Kayano 17 (http://www.asicstigersonline.com/) Nordegren. “Tiger really liked her competitive streak [while they were dating] and seemed to enjoy treating her like one of the guys, needling her and even telling raunchy jokes around her, which Elin didn’t seem to mind,” Haney writes. “But as life became more complicated, I thought Elin changed.
Burberry Handbag (http://www.burberryhandbagsoutlet4u.com/) is fast getting the embodiment of just about every style conscious men, the personification of affordable luxury, a substantial idea within style industry, is obvious within their mind. The Burberry Backpacks Bags is among the the newest companies made in a really new way within assortment of bags. You are surround by developing honorable really feel as shortly when you suit on on our bags. They are essentially luxury leather-based goods, especially the handbags and wallets from the greatest great quality and best style design.
Balenciaga Handbags (http://www.balenciagaoutlets.com/) are our star products, you can purchase something you like here, you can purchase them at a minimal buying and selling worth from us even although the level of great quality may be guaranteed. We are expert Balenciaga Bags maker and we have obtained a exceptional reputation near to the entire world Balenciaga Outlet Online. Balenciaga Outlet over the internet also items bags in a really extremely unbelievably price, 1st to the outrageously worth in large style world. We try our most beneficial to provide you the relatively most beneficial programs.
Gucci Online (http://www.guccionlinestores.org/) is undoubtly a world-wide nicely acknowledged bag producer which consists of a history about 80 years. When speaking concerning the luxury handbags, Gucci Handbags from our Gucci Outlet over the internet frequently stand in the best quality. Now we would would rather show you one of the most selected Gucci Bags and Gucci Handbags within our over the internet store that will certainly attract your eyesight for its amazing design, also the dependable great quality and acceptable price. Fashion-forward, classy and timeless, they are not merely an minor but an main.
Kenneth Cole Collection.Hattie West.27 March 2012.AFTER the launch of its diffusion collection (925) two years ago in House of Fraser, Kenneth Cole is set to explore the opposite end of the spectrum when it unveils new label Kenneth Cole Collection this evening in New York. The range comprises both men’s and womenswear with advanced fabrics and styling, plus higher price-tags to match, in celebration of the label’s 30th birthday- a longstanding desire of Cole’s. “We’ve taken stabs at it in the past. We’ve decided to do it in a more thoughtful, controlled manner,” said Cole. “You’ll see elements of it now. We’ll test it, and then we’ll go from there. In this new world today, you can test better and respond more efficiently and more effectively than you could before.”
This really seriously a pleasant article. An publishing that fit this description demonstrates exactly how seriously the idea is actually thought of by the source. flower delivery colorado springs (http://flowercolorado.com/flower-delivery-Colorado.html)
This really seriously a pleasant article. An publishing that fit this description demonstrates exactly how seriously the idea is actually thought of by the source. flower delivery colorado springs (http://flowercolorado.com/flower-delivery-Colorado.html)
Thankfully, replica designer handbags are forward thinking, and give the stores which they supply to online a "Certified Online Retailer" badge which they can display on their websites.cheap designer handbags is incredibly popular, and the collectable nature of these beautiful pieces of means that many people are searching for them online.As with any designer label, there will always be companies selling abercrombie & fitch outlet, however when you are buying online how can you be sure that what you are purchasing is the genuine .If you are buying directly from the official cheap tiffany jewelry, then you are of course going to be getting the real deal.With the Murano oakley sunglasses, the genuine article has been heat treated to be extremely tough and durable.If they appear in designer replica handbags listings then they are sure to be an authentic reseller.However there are many resellers, and smaller sunglasses discount stores which may have special offers or stock a particular item which you cannot find elsewhere.Also, are all made with silver or gold centres, which minimises the amount of wear on cheap replica watches worn side by side.If you are still unsure about whether or not the site is genuine, you could always visit the genuine abercrombie and fitch sale website and do a store search for the online retailer.ray ban sunglasses are likely to be made of cheaper materials, and are therefore more prone to chipping and damage.Genuine sunglasses discount is crafted to a high standard, making this premium jewellery both desirable and practical.If you are looking to buy some more charms to add to your replica handbags, but are considering buying charms which are not official then there are a few things to consider.Firstly, the replica watches wholesale (http://www.hotbuybags.com/) may not fit well, either with hole being too small for the, or too big – so that the bead may move around more, causing more wear to the beads on either side.
Hey,friends…Nowadays,The most technically advanced shoe ever made by Onitsuka Tiger Mexico 66 (http://www.onitsukatigermexico66.us/), the Gel Kinsei II and GEL-Stratus 2.1 represents the ultimate evolution of the Impacr Guidance System, resulting in an amazing ride with the highest level of comfort on a stble, balanced platform. SoLyte midsole material combines better durability with lighter weight. The Discrete Heel Unit allows for better control of the material density throughout the heel unit. Improved forefoot cushioning and ride. More flexible
The innovative Onitsuka Tiger USA will continue to provide a lightweight ride, exceptional cushioning and a super flexible platform feel for runners with efficient neutral gaits. Open mesh upper offers excellent comfort and breathability. The Onitsuka Tiger Mini Cooper (http://www.onitsukatigermexico66.us/) is a cushioned shoes designed for the runner who desires shock attenuation, flexibility and an open toe box. Two improvements you’ll notice in the Men’s Asics Gel Stratus 2.1 new decoupled heel for better shock absorption and an even-more-supple upper!
The operation http://chihair-straightener.ca of drying head of hair, net straightening, comforting, in addition to straightening it really is which one needs repeatedly the using high quality methods and products. By using an unacceptable hairdressing goods, hair are able to turn into frizzy, broken, along with break CHI Hair Straightener. Leading to poor humidity and "dead" hair that's challenging or simply unachievable to development CHI Straightener. Determining the best curly hair clothing dryer for this job accessible can be just as significant as finding the right style tools, as an eample straighteners and also styling clubs. Curly hair relaers are commonly for ladies with ecessively fluorescent, thick, or even Black wild hair. Us citizens spend roughly 6 billion dollars money 1 year upon hairstyling tools, beauty salon sessions, together with common wild hair routine maintenance. However, there a wide selection of splendor great things about being duplicate one book season's tendencies, transforming the fitness of the head of hair regularly might result in wild hair damage CHI Flat Iron 2012. Hair straightening irons are the hottest methods to have a very modern and chic appear, many various methods have been completely attempted Hair Straightener CHI. Still, probably the greatest ways to accomplish this search is to try using Sedu ceramic straightening irons. They're just miture of clay ceramic straightening irons and ionic tourmalilne engineering that can make usage of infra red temperature. Whenever a girl determines to make use of one of them equipment, their head of hair becomes level and free of curls devoid of destruction, as the heat they final result a reduced amount of epensive damaging than water using regular hair straightner hair straightners normally. Clay ceramic straightening irons are getting to be a hot selection as they are light and portable, can heat swiftly, leave minor damage to the precise particles using the locks CHI Flat Iron (http://www.chihair-straightener.ca). Women who decide to be ready to straighten their head of hair in the home must obtain the best ceramic straightening irons greatly assist haired, put together with best hair dryers for any entire routine. Numerous choose Sedu flat irons, mainly because of their simplicity and in some cases temperature distribution. The Solia hair straightner is an additional popular option plus its built likewise because Sedu hair straightner. Chi hair straightening irons usually are another solution for ladies planning to eliminate frizz and make up a flat and likewise streamlined seem. Chi straighteners first shot to popularity together with the Qi earthenware hairdressing metal. All these hair straightners in addition to styler offer removable dishes this safeguard the hair cuticle. Qi hair straightening irons are manufactured such they help seal in color as well as wetness. Farouk Systems, Corporation. stands out as the only sanctioned manufacturer while in the Qi locks products; obtaining a realistic design is a crucial part along with the shopping method. Qi straighteners feature an adaptable temperature switch together with a level heating selection that delivers spotty heat regarding distinct facets of flowing hair. Chi hair straightening irons warm up quickly, providing convenience and usability. The queue of Chi hair straightening irons can be accessible in 3 various sizes: Mini, Qi Turbocompresseur, and massive Chi Turbocompresseur. Sources: Best Flat iron Related Articles Best, Hair, Straightener, this Article with a Friend!Receive Articles such as this one direct to your bo!Subscribe totally free today!