Dec 19, 2014 11:46 PM
(This post was last modified: Dec 19, 2014 11:50 PM by _Wozniak_.)
I do not use an IDE, I just use notepad++ and Ant to compile my project.
(I also build the correct project directory, with a tool I made that uses the android sdk) My only issue is I do not know a lot about android and how to create a button.
current code:
But I get error on " final Button button = (Button) findViewById(R.id.button_id);" more specifically R.id.button_id. I got the source from developer.android.com.
Exact error from ant: (PHP highlighting to keep format & spacing)
Edit: In case you just tell me to use an IDE that might help, I really would like to just get this working :P
So far Eclipse/ADT/etc just are a little slow on my machine.
(I also build the correct project directory, with a tool I made that uses the android sdk) My only issue is I do not know a lot about android and how to create a button.
current code:
PHP Code
<?php
final Button button = (Button) findViewById(R.id.button_id);
button.setOnClickListener(new View.OnClickListener() {
public void onClick(View v) {
}
});
Exact error from ant: (PHP highlighting to keep format & spacing)
PHP Code
<?php
[javac] C:\Users\Jake\Desktop\TestingApp\src\com\wozniak\company\TestActivity.java:14: error: cannot find symbol
[javac] final Button button = (Button) findViewById(R.id.button_id);
[javac] ^
[javac] symbol: variable id
[javac] location: class R
Edit: In case you just tell me to use an IDE that might help, I really would like to just get this working :P
So far Eclipse/ADT/etc just are a little slow on my machine.



![[Image: TEGE4Zx.png]](https://i.imgur.com/TEGE4Zx.png)