|
Sounds like a good deal on *your* end but he could be a terrible developer, the game could just not be what you want, or you could lose money because it's not profitable. Why are you using elance for game development anyways? Why not be a part of the process? Get a team of free monkeys from gamedev.net to make you a prototype at least. There's a sub-forum for posting projects and hiring developers. You'll at least know if your idea makes anyone excited before you dish out 4k.
|
|
|
|
|
I have a ListView. As there are several columns, for sure the horizontal scroll bar will appear. Once data is populated in ListView, the user may click on the horizontal bar, move to right or left, to see the rest of the information.
Point is: Once the user finish moving the scroll bar, I want the focus to be set to a TextBox. How to do so?
Edit: Platform is Windows 6.5
modified 30-Oct-12 10:29am.
|
|
|
|
|
Hi All,
Hope you are doing good!!
We have one requirement , i.e. Integrate PayPal with application for payment process.
Say for example, If user register and want to purchase one package with 49$ then we have to accept the payment via PayPal,
I would like to if this is possible and also would like to know that apple is approve the application with PayPal Integration.
Looking forward to hear back from all of you.
Thanks,
Regards
Keyur Satyadev
|
|
|
|
|
This is my code
package nct.edu.om.nizcotec;
import nct.edu.om.nizcotec.R;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.ImageButton;
import android.widget.TextView;
import android.widget.Toast;
public class Event extends Activity {
SQLiteDatabase mydatabase;
ImageButton home;
TextView mytext;
//String name;
String name,age,address,mobile,deptname;
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.event);
try{
mydatabase=openOrCreateDatabase("NCTDB",Context.MODE_PRIVATE,null);
mydatabase.execSQL("create table events(eventID integer primary key autoincrement,event_Name text not null,event_group text not null,event_startDate date not null,event_endDate date not null,event_time text not null,event_location text not null,event_type text not null);");
//Toast.makeText(nct.edu.om.nizcotec.Event.this,"The Database is Created..." , Toast.LENGTH_LONG).show();
}
catch(Exception e) {
//Toast.makeText(nct.edu.om.nizcotec.Event.this, "Database already exits, can't create", Toast.LENGTH_LONG).show();
}
home=(ImageButton)this.findViewById(R.id.imageButton1);
Button btn_upload = (Button)this.findViewById(R.id.upload );
Button btn_delete = (Button)this.findViewById(R.id.wipe );
ImageButton college = (ImageButton)this.findViewById(R.id.imageButton2);
//mytext = (TextView)this.findViewById(R.id.recname);
home.setOnClickListener(new OnClickListener() {
public void onClick(View v) {
// TODO Auto-generated method stub
Intent home=new Intent(Event.this,Home.class);
startActivity(home);
finish();
}
});
/* btn_upload.setOnClickListener(new OnClickListener() {
public void onClick(View v) {
// TODO Auto-generated method stub
try{
mydatabase=openOrCreateDatabase("NCTDB",Context.MODE_PRIVATE,null);
mydatabase.execSQL("create table events(eventID integer primary key autoincrement,event_Name text not null,event_group text not null,event_startDate date not null,event_endDate date not null,event_time text not null,event_location text not null,event_type text not null);");
//Toast.makeText(nct.edu.om.nizcotec.Event.this,"The Database is Created..." , Toast.LENGTH_LONG).show();
}
catch(Exception e) {
//Toast.makeText(nct.edu.om.nizcotec.Event.this, "Database already exits, can't create", Toast.LENGTH_LONG).show();
}
}
});
*/ //Button btn_insert - This code is to insert record into the students table. //
btn_upload.setOnClickListener(new OnClickListener() {
public void onClick(View v) {
try{
mydatabase.execSQL("insert into events values(1 ,'A','Mubadron','2012-07-05','2012-07-09','8AM-9AM ','jabrain hall','SA')");
mydatabase.execSQL("insert into events values(2,'B','Ebdaat','2012-04-04','2012-04-05',' 10AM-APM','multi postin hall','CA')");
mydatabase.execSQL("insert into events values(3,'C','health group','2012-03-13','2012-03-15','8AM-10AM ','student club','CA')");
mydatabase.execSQL("insert into events values(4,'D','IT club','2012-02-11','2012-02-13','8AM-12AM ','jbrain hall','TW')");
mydatabase.execSQL("insert into events values(5,'F','Ebdaat','2012-07-22','-2012-07-22',' 7PM-10PM','jbrain hall','SP')");
mydatabase.execSQL("insert into events values(6,'E','Hamsat','2012-03-03','2012-03-04','10AM-12AM ','jbrain hall','SP')");
mydatabase.execSQL("insert into events values(7,'G','IT club','2012-1-12','2012-1-13','8AM-3PM ','multi postin hall','TW')");
mydatabase.execSQL("insert into events values(8,'H','college group','2012-5-4','2012-5-5','10AM-12AM ','college area','CA')");
mydatabase.execSQL("insert into events values(9,'K','Mubadron','2012-8-6','2012-08-08','10AM-12AM ','multi postin hall','SA')");
mydatabase.execSQL("insert into events values(10,'K','college group','2012-10-09','2012-10-10','8AM-10AM ','student hall','CA')");
Toast.makeText(nct.edu.om.nizcotec.Event.this,"Data uploaded.." , Toast.LENGTH_LONG).show();
}
catch(Exception e) {
Toast.makeText(nct.edu.om.nizcotec.Event.this, "Exception" +e, Toast.LENGTH_LONG).show();
//Toast.makeText(nct.edu.om.nizcotec.Event.this,"Data uploaded.." , Toast.LENGTH_LONG).show();
}
}
});
//Button btn_delete - This code is to delete all the records in evente table. //
btn_delete.setOnClickListener(new OnClickListener() {
public void onClick(View v) {
try{
mydatabase.execSQL("delete from events");
Toast.makeText(nct.edu.om.nizcotec.Event.this,"Data Deleted...", Toast.LENGTH_LONG).show();
}
catch(Exception e)
{
Toast.makeText(nct.edu.om.nizcotec.Event.this,"Exception : " + e, Toast.LENGTH_LONG).show();
//Toast.makeText(nct.edu.om.nizcotec.Event.this,"Data Deleted...", Toast.LENGTH_LONG).show();
}
}
});
college.setOnClickListener(new OnClickListener() {
public void onClick(View v) {
Intent college=new Intent(Event.this,College.class);
startActivity(college);
finish();
final Cursor c = mydatabase.rawQuery("select * from events where event_type='SA'",null);
int count=c.getCount();
//String event_Name = null;
Toast.makeText(nct.edu.om.nizcotec.Event.this,"Total Nof of rows are..."+count, Toast.LENGTH_LONG).show();
if (count==0)
{
Toast.makeText(nct.edu.om.nizcotec.Event.this,"There is no Data ...", Toast.LENGTH_LONG).show();
}
while (!c.isAfterLast()){
// Toast.makeText(nct.edu.om.nizcotec.Event.this,c.getInt(0)+" "+c.getString(1), Toast.LENGTH_LONG).show();
// c.getString(1).show();
//mytext.setText(c.getInt(0)+" "+c.getString(1));
// mytext.setText(c.getString(1));
c.moveToNext();
}
c.close();
}
});
}
}
|
|
|
|
|
Hi Guys,
I populated my listview in android using ArrayAdapter . Populating my listview is easy BUT I'm having trouble adding new item on it dynamically.
Kindly check my code.
[Activity(Label = "Country List", MainLauncher = true)]
public class MyListViewActivity : Activity
{
List<string> countries = new List<string>();
ArrayAdapter<string> adapter;
ListView lvw;
protected override void OnCreate(Bundle bundle)
{
base.OnCreate(bundle);
SetContentView(Resource.Layout.ListviewLayout);
InitCounties();
lvw = FindViewById<ListView>(Resource.Id.lvwCountry);
EditText txtMsg = FindViewById<EditText>(Resource.Id.edit_text_out);
Button btnSend = FindViewById<Button>(Resource.Id.button_send);
adapter = new ArrayAdapter<string>(this, Android.Resource.Layout.SimpleListItem1, countries);
lvw.Adapter = adapter;
lvw.TextFilterEnabled = true;
lvw.FastScrollEnabled = true;
btnSend.Click += delegate(object sender, EventArgs e)
{
addItems(txtMsg.Text);
};
}
}
void InitCounties()
{
countries.Add("Philippines");
countries.Add("USA");
countries.Add("Hong Kong");
countries.Add("Singapore");
countries.Add("Russia");
countries.Add("Afghanistan");
countries.Add("Albania");
countries.Add("Algeria");
countries.Add("American Samoa");
countries.Add("Andorra");
}
public void addItems(string newItem)
{
counties.Add(newItem);
adapter.NotifyDataSetChanged();
}
Actually the newitem will add in the collection but when I break and check the adapter, the property Count does not changed and my listview is still the same.
I know I'm missing somewhere in my code but I don't know where exactly it is.
BTW, I'm using Visual Studio 2010 (Mono for Android) in my code.
Thanks
if(you type your code here) {
Messagebox.Show("You help me a lot!");
}
else {
You help me = null;
}
modified 19-Oct-12 3:39am.
|
|
|
|