Simple Android App

I've followed an instructional video for making an app in Android, and I've made a basic app that displays a picture on the phone and shows two buttons. But now I need to assign commands to the buttons: one to take you to another screen with an animated gif with a button to exit, and two a "cancel" button. But I don't know anything about java.

Please help me, I was hoping to start learning java by doing, and I've hit a roadblock early.

Please ChooseOneForumCarefully. There is a separate forum dedicated to questions related to Android. Though your original post is not clear on whether you're asking about Android or Java development, I think the topic is more suitable for that forum.

As for your problem, I don't think it's a good idea to try to learn Java by starting with Android development; actually, I don't think it's even possible. you should at least be familiar with Core Java in order to be able to develop something for Android, so I would suggest you start with that first.

The quieter you are, the more you are able to hear.

Johnny Cache

Greenhorn

Posts: 5

posted 5 years ago

My main goal is to write the app.

Maybe you're right, and this is the wrong subforum.

But all I need is to assign something to my button that takes me to another page that shows a gif and has another button.

The actual Android app exists already, it just doesn't do anything lol.

In Android, you have 'Activities' that you start, not pages that you show. You start an Activity by creating an Intent which the targeted Activity will respond to. There are different ways to do this depending on how the Activity is coded. For a quick tutorial on moving from Activity to Activity see this page on the Android developer's network.

Steve

Johnny Cache

Greenhorn

Posts: 5

posted 5 years ago

Thanks.

Looks like it might be complicated. I will give it a shot, though.

Johnny Cache

Greenhorn

Posts: 5

posted 5 years ago

I was a bit intimidated by the instructions linked to above, but finally got around to it today. Only thing is, now the whole app seems to be messed up, with 13 errors. (See attached.)

Without seeing code it is hard to be sure, but the errors with the missing resource IDs and the fact that the generate R class is not building suggests that you have a problem in one of your XML files. Probably not the Manifest, but either a layout or a value resource.