G GMC New Member Sep 15, 2011 #1 Hi Guys I have tried searching this one but havent come across anything. Im creating some basic apps to familirise myself with the IDE. At present ive created a main screen with two buttons. Upon clicking one of the buttons it should open a new activity for me. Code in Home Screen Sub btnadd_click startactivity("Add") End Sub Then in the new activity like the Home I called Sub Activity_create activity.loadlayout("Add") End Sub Im getting a java error each time i click the button indicating "java.io.filenotfoundexception: add.bal" I cant seem to locate a file by that name in my project however i can see Add.bas. Have i missed something simple here or am i getting an error as its looking for the wrong file extension??? Any help appreicated
Hi Guys I have tried searching this one but havent come across anything. Im creating some basic apps to familirise myself with the IDE. At present ive created a main screen with two buttons. Upon clicking one of the buttons it should open a new activity for me. Code in Home Screen Sub btnadd_click startactivity("Add") End Sub Then in the new activity like the Home I called Sub Activity_create activity.loadlayout("Add") End Sub Im getting a java error each time i click the button indicating "java.io.filenotfoundexception: add.bal" I cant seem to locate a file by that name in my project however i can see Add.bas. Have i missed something simple here or am i getting an error as its looking for the wrong file extension??? Any help appreicated
thedesolatesoul Expert Licensed User Longtime User Sep 15, 2011 #2 Add.bal is the basic for android layout file. If you havent created it using the Designer then you will need to create a layout and save it as Add.bal The layout contains all the views (buttons etc). Have a look at some examples in the Beginners Guide:http://www.b4x.com/android/files/guide.zip Also, for multiple activities, here is another example: http://www.b4x.com/forum/basic4andr...ls/6611-two-activities-example.html#post38609 Upvote 0
Add.bal is the basic for android layout file. If you havent created it using the Designer then you will need to create a layout and save it as Add.bal The layout contains all the views (buttons etc). Have a look at some examples in the Beginners Guide:http://www.b4x.com/android/files/guide.zip Also, for multiple activities, here is another example: http://www.b4x.com/forum/basic4andr...ls/6611-two-activities-example.html#post38609
G GMC New Member Sep 15, 2011 #3 Nice One As so that was it mate id created the activity within the Main Code IDE however i hadnt actually accessed the designer for the two new activities id created. Once i accessed and added the title everything worked fine. Cheers guys i went through the guide originally i must have forgot you need to make a change in the designer. Upvote 0
Nice One As so that was it mate id created the activity within the Main Code IDE however i hadnt actually accessed the designer for the two new activities id created. Once i accessed and added the title everything worked fine. Cheers guys i went through the guide originally i must have forgot you need to make a change in the designer.