Szukam freelancerow Java, Android, Visual C#.
Witam,
Poszukuje ludzi ktorzy chca sobie dorobic troche kasy ,pomagajac przy prostych aplikacjach.
ZAZNACZAM ! (Prostych)
Przyklad :
1.Wyskakuje mi error(czasami bardzo prosty-zle postawiona kropka itp)
2.Wysylam tobie kod na email.
3. Masz 10 godzin na odeslanie mi podpowiedzi/rozwiazania .
4. W ciagu 10 min od otrzymania odpowiedzi odsylam tobie 20zl na twoj paypal.
5. Bez sciemy. Nie masz doswiadczenia. NIE PISZ.
Przyklad problemu (kod java w aplikacji na android):
I'm having some trouble with Indents, I'm trying to pass a String Value to a second activity it gives me a warning "local variable address is not used "
Then when I click on the listview to take me to the second activity the app crashes only when this code in there, if i take it out it opens the second activity no problem.
I've included the part of the code I thing is relevant
My Main Activity
String address = "home";
@Override
public void onItemClick(AdapterView<?> parent, View view,int position, long id) {
if(position == 0){
Intent contact1 = new Intent(MainActivity.this, Obama.class);
contact1.putExtra("address", address);
startActivity(contact1);
}
}
My Second Activity
public class Obama extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_obama);
Intent contact1= getIntent();
String address = contact1.getExtras().getString("address"); //this line is where the error is "local variable address is not used "
}
Czy jestes w stanie to rozwiazac?
Jesli tak to napisz do mnie.
Pozdrawiam