nordicsemiconductor / android-nrf-beacon-for-eddystone Goto Github PK
View Code? Open in Web Editor NEWAn application with Eddystone GATT Configuration Service & Google Nearby API and Proximity API.
License: BSD 3-Clause "New" or "Revised" License
An application with Eddystone GATT Configuration Service & Google Nearby API and Proximity API.
License: BSD 3-Clause "New" or "Revised" License
When I edit slot , and I select the uid frame,and then I dismiss it .open again,the Instance ID data shows a problem.
I configured my G Dev console:
I used the same SHA1 for debugging my app from android studio.
I tried several times to build gradle file. But always it shows below message.
Use JsonReader.setLenient(true) to accept malformed JSON at line 1 column 10 path $
After following the "How to Guide" of the project readme and connecting to the Eddystone Beacon Devkit, I tried editing one of its slots, but as soon as I touched the edit button, the app crashed. At this point, I was using a Moto G.
Using another Android (this time a Samsung Galaxy S5) and following the same procedure, after pressing the edit button the app did not crash. So I selected EID and a value of K between 10 and 15, but submitting generated an error message, suggesting to wait some time and try again, even though, it never worked.
When using Samsung Galaxy S7 Edge, error 133 shows up every time. Galaxy S5 connects successfully sometimes, but not always. This happens with your HEX file: https://github.com/NordicSemiconductor/nrf5-sdk-for-eddystone/blob/master/hex/nrf5_sdk_for_eddystone_v0.5.hex
I get the same result with both HWs: PCA10040 and our open-source sensor beacon platform: http://ruuvitag.com
When I try to register an UID beacon, I get
Error 403
Error message: Unknown error
Error status: Unable to register beacon
I'm running https://github.com/NordicSemiconductor/nrf5-sdk-for-eddystone/blob/master/hex/nrf5_sdk_for_eddystone_v0.6.hex
and using the latest app version on Galaxy S7 Edge.
Another thing: AFAIK after the slot has been enabled, it cannot be disabled. Only replaced. So maybe you could add one more frame type called "EMPTY"? Or just a trash bin icon. User might also need some help documentation that can be read directly from the app. At the moment it's pretty hard to use if the user is not really familiar with the Eddystone specs. Or at least a link pointing to documentation.
Hi,
I'm trying to do some tests with Android Studio, but the app returns these 4 errors:
Error:(48, 17) No resource found that matches the given name (at 'text' with value '@string/scanning_info').
Error:(30, 24) No resource found that matches the given name (at 'title' with value '@string/action_about').
Error:(30, 24) No resource found that matches the given name (at 'title' with value '@string/action_remove').
Error:Execution failed for task ':app:processDebugResources'.
com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/Users/Mitoman/Library/Android/sdk/build-tools/23.0.3/aapt'' finished with non-zero exit value 1
How I can fix it? Thanks!
Hi,
I'm here one more time. But now I'm getting a issue when I try to run the application in android kitkat. The problem happens after connecting with the beacon in the following sequence:
FATAL EXCEPTION: android.os.NetworkOnMainThreadException at android.os.StrictMode$AndroidBlockGuardPolicy.onNetwork(StrictMode.java:1145) at com.android.org.conscrypt.OpenSSLSocketImpl$SSLInputStream.read(OpenSSLSocketImpl.java:683) at okio.Okio$2.read(Okio.java:137) at okio.AsyncTimeout$2.read(AsyncTimeout.java:211) at okio.RealBufferedSource.request(RealBufferedSource.java:71) at okio.RealBufferedSource.require(RealBufferedSource.java:64) at okio.RealBufferedSource.readHexadecimalUnsignedLong(RealBufferedSource.java:270) at com.squareup.okhttp.internal.http.HttpConnection$ChunkedSource.readChunkSize(HttpConnection.java:479) at com.squareup.okhttp.internal.http.HttpConnection$ChunkedSource.read(HttpConnection.java:460) at com.squareup.okhttp.internal.Util.skipAll(Util.java:176) at com.squareup.okhttp.internal.Util.discard(Util.java:158) at com.squareup.okhttp.internal.http.HttpConnection$ChunkedSource.close(HttpConnection.java:499) at okio.RealBufferedSource.close(RealBufferedSource.java:374) at okio.RealBufferedSource.close(RealBufferedSource.java:374) at okio.InflaterSource.close(InflaterSource.java:126) at okio.GzipSource.close(GzipSource.java:182) at okio.RealBufferedSource.close(RealBufferedSource.java:374) at com.squareup.okhttp.internal.Util.closeQuietly(Util.java:90) at com.squareup.okhttp.ResponseBody.bytes(ResponseBody.java:59) at com.squareup.okhttp.ResponseBody.string(ResponseBody.java:83) at br.edu.ufcg.virtus.honeywell.eddystone.update.GoogleSignInDialogFragment$2.onResponse(GoogleSignInDialogFragment.java:197) at br.edu.ufcg.virtus.honeywell.eddystone.util.HttpCallback$2.run(HttpCallback.java:54) at android.os.Handler.handleCallback(Handler.java:733) at android.os.Handler.dispatchMessage(Handler.java:95) at android.os.Looper.loop(Looper.java:136) at android.app.ActivityThread.main(ActivityThread.java:5072) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:515) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:609) at dalvik.system.NativeStart.main(Native Method)
The solution for problem "NetworkOnMainThreadException" is using AsyncTask, but where this occurs is already within a AsyncTask (RequestAccessTokenTask at line 181 in class GoogleSignInDialogFragment). This problem never occurs when the app runs in android Nougat.
Hi,
I am not able to log in with my google account. No error is triggered when I try to log in and the following message is shown in the application "Please sign in with your google account to register / select projects for beacon registration.". But the account I used has the project with the credentials set up and added the API's to the beacon proximity, nearby messages and URL shortener. I put the api key into the Utils class and into android.manifest too. Following is the screen shot of the error and the message displayed in the application.
Note: permissions for the BeaconEditor, AttachmentEditor, and AttachmentPublisher were also given.
Trying to save data to the third slot (slot 2) sometimes (but not always!) crashes with the following error:
Process: no.nordicsemi.android.nrfbeacon.nearby, PID: 4368
java.lang.IndexOutOfBoundsException: Invalid index 2, size is 1
at java.util.ArrayList.throwIndexOutOfBoundsException(ArrayList.java:255)
at java.util.ArrayList.set(ArrayList.java:481)
at no.nordicsemi.android.nrfbeacon.nearby.update.UpdateFragment.configureUrlSlot(UpdateFragment.java:1555)
at no.nordicsemi.android.nrfbeacon.nearby.update.ReadWriteAdvertisementSlotDialogFragment$2.onClick(ReadWriteAdvertisementSlotDialogFragment.java:285)
at android.view.View.performClick(View.java:5204)
at android.view.View$PerformClick.run(View.java:21153)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5417)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
In addition, some beacons come with both interval and power set to zero in the second and third slots - currently, it is not possible to configure a URL in these slots before setting the interval and power (pressing configure has no effect - if this is a technical limitation, could it instead show a hint?).
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.