adafruit / Bluefruit_LE_Connect_Android_V2

Bluefruit LE Connect Android source code (V2)
MIT License
92 stars 76 forks source link

Instructions for those new to Android development? #8

Closed mariedilworth closed 5 years ago

mariedilworth commented 5 years ago

Could some basic instructions be provided about how to run this code in Android studio? I'm new to Android development and so it's not entirely obvious to me how to integrate this code into an app? Thanks.

mariedilworth commented 5 years ago

After locating activity_main.xml I am now getting "URI not registered" errors...

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:id="@+id/container"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="@color/background"
    android:orientation="vertical"
    tools:context=".app.MainActivity">

    <FrameLayout
        android:id="@+id/contentLayout"
        android:layout_width="match_parent"
        android:layout_height="match_parent" />

</RelativeLayout>
mariedilworth commented 5 years ago

Managed to run the app by syncing with Gradle files and updating something in my android studio. Running ok now.

datanonymous commented 5 years ago

Adjust the source in tools:context