Raising (Something Like) a Tweet
If you have such an account and do not mind using it for creating a Patchy
application, feel free to stick with it. Otherwise, create an identi.ca account
that you can use for your experimentation. Visit the identi.ca Web site and
sign up. Note that identi.ca will send a confirmation email to you, and you
must click the link on that email in order to be able to work with the REST
API.
Step #2: Create a Stub Application and Activity..............................
Using Eclipse or android create project, make a project named Patchy with
a stub activity named apt.tutorial.two.Patchy. The generated activity class
should resemble the following:
package apt.tutorial.two;
import android.app.Activity;
import android.os.Bundle;
public class Patchy extends Activity
{
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
}
}
Step #3: Create a Layout.....................................................................
Next, we need a layout for use with the Patchy activity. At the outset, we
want:
- A field for your identi.ca user name
- A field for your identi.ca password, needed to use much of the
identi.ca REST API
- A multi-line field for a status update you want to publish
- A Send button that will send the status update