Easy to make, lots of tutorials, requires another language unfortunately but still a useful skill.
Not always applicable, but can be a good approach.
Best of luck, I know there are some hard steps to take (particularly the stage of "ok I can write code but what can I actually do with it"), but things really build after a while. Oh, and I've been coding for maybe 17 years and
1. I keep writing code that's wrong 2. I get basic things wrong all the time 3. I still have to regularly look things up
My wife is learning to code, and I think she felt these things meant she wasn't doing well at it, but it's really common. I'm just used to it and have more experience finding my mistakes because I've made them so much.
> and the micro:bit seems a good solution to that.
I think so. I think there's a huge step forwards when you can get something working quickly, then build from there.
I'm buying my youngest step-child a Micro:bit for Christmas. Well, I say it's for him...
I think that I'll be doing something similar ;-)
It feels like having to get regulatory approval, surveys and having OSHA oversight while making sandcastles.
https://developers.google.com/beacons/proximity/get-started
Android dev used to say to go to eclipse, now it's JetBrains apparently. Have a look at the "your first app" here:
https://developer.android.com/training/basics/firstapp/index...
Compare just part of the code for making text appear:
public class MainActivity extends AppCompatActivity {
public static final String EXTRA_MESSAGE = "com.example.myfirstapp.MESSAGE";
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
}
/** Called when the user taps the Send button */
public void sendMessage(View view) {
Intent intent = new Intent(this, DisplayMessageActivity.class);
EditText editText = (EditText) findViewById(R.id.editText);
String message = editText.getText().toString();
intent.putExtra(EXTRA_MESSAGE, message);
startActivity(intent);
}
}
Which comes along with XML like this All you need to do is declare which activity is the logical parent in the AndroidManifest.xml file. So open the file at app >
manifests > AndroidManifest.xml, locate the <activity> tag for DisplayMessageActivity and replace it with the following:
<activity android:name=".DisplayMessageActivity"
android:parentActivityName=".MainActivity" >
<!-- The meta-data tag is required if you support API level 15 and lower -->
<meta-data
android:name="android.support.PARENT_ACTIVITY"
android:value=".MainActivity" />
</activity>
This is before trying to get radios working, beacons, etc. Just text, a button and "back".For something exciting and interesting, I'd rather not see "paste the following XML" anywhere in the instructions.
You know what? I'm already bored. And that's before I've started trying to install eclipse and what sdks I need and whether to use kotlin and how to setup the right things.
I mean, I found the google docs and one of the first steps is
> Request an OAuth 2.0 Client ID
Great, going to get some young kids excited by explaining what oauth is and how to log into the google developers console.
Next up, what XML you need to know to create an interface and add what threads are and ...
Or:
https://makecode.microbit.org/projects/hot-or-cold
Done.