Android studio, androidstudio

Source: Internet
Author: User

Android studio, androidstudio

The current work is related to Bluetooth, so I am eager to develop Android devices to debug my firmware,

After installing Android Studio and SDK, I would like to thank nordic for its public code and study it for a while.

There are two related codes. The Android-nRF-Toolbox was first found. This code is more comprehensive and needs to be debugged here,

But... For a person I don't know much about, it's still a little hard to understand, and I don't dare to modify it...

So I found this Android-nRF-UART, which is much simpler... Because there are only three java codes for. class.

 

OK, so we can start it After cloning it. Directly succeed, scatter the flowers ~...

 

However, for convenience of modification and debugging, The Uart service is the official uuid of Nordic by default.

    public static final UUID RX_SERVICE_UUID = UUID.fromString("6e400001-b5a3-f393-e0a9-e50e24dcca9e");    public static final UUID RX_CHAR_UUID = UUID.fromString("6e400002-b5a3-f393-e0a9-e50e24dcca9e");    public static final UUID TX_CHAR_UUID = UUID.fromString("6e400003-b5a3-f393-e0a9-e50e24dcca9e");

However, what I need is not this id ,,,

Therefore, it begins to die, starting from applicationId, changing the file name and pack name.

During the final compilation, it was strange that the build and R files of com. nordicsemi. Uart could not be replaced with the new id I needed. After finding a circle, I found that

 

It turns out to be an XML pot .. There are residual configuration information in manifests/AndroidManifesh. xml.

However, for lightweight app development, in addition to resource (png layout string. xml), you need to pay attention to class and manifeshs.

After cleaning all the packages registered in the XML file and the corresponding activity and service.

 

Now everything is normal. This product is the responsibility of Makefile. After this is done, the mystery of Android development disappears,

Visual Testing will soon be able to transform productivity. In fact, the overall difficulty is not as hard as C # developing win gadgets

Related Article

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.