Coder Social home page Coder Social logo

nordicsemiconductor / android-nrf-beacon-for-eddystone Goto Github PK

View Code? Open in Web Editor NEW
48.0 48.0 18.0 2.04 MB

An application with Eddystone GATT Configuration Service & Google Nearby API and Proximity API.

License: BSD 3-Clause "New" or "Revised" License

Java 100.00%

android-nrf-beacon-for-eddystone's People

Contributors

coderbyheart avatar philips77 avatar roshanrajaratnam avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

android-nrf-beacon-for-eddystone's Issues

Build failed

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 $

App stops working when editing nRF52 Devkit

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.

Error 403

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.

Gradle build finished with 4 errors

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

captura de pantalla 2016-05-23 a las 11 45 27

captura de pantalla 2016-05-23 a las 11 45 33

captura de pantalla 2016-05-23 a las 11 45 36

How I can fix it? Thanks!

Problem with Android Kitkat (version 4.4.X)

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:

  • Connect the beacon;
  • In Configuration connection, change the URL Frame to EID;
  • set the exponent timer;
  • hit the Configure button;
    After that the Google signin popup appears, when i select the account, the application breaks and the following error is triggered in the console:

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.

Problem to sign in with my account google to list google projects

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.

screenshot_2017-06-05-14-29-31_br edu ufcg virtus honeywell eddystone

Note: permissions for the BeaconEditor, AttachmentEditor, and AttachmentPublisher were also given.

Crash when editing third slot; inability to save url without setting interval and power

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?).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.