Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6928283
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T11:09:59+00:00 2026-05-27T11:09:59+00:00

I am tyring to figure out how to make an app that lets the

  • 0

I am tyring to figure out how to make an app that lets the users of the app post items for sale with pictures where other users that search it can view those items. For example something like craigslist for android. I want to set up an app where users can fill in edit texts like Category, Title, Price, Description and a Picture of the item they want to post for sale. How can I achieve this so users can search for items as well. From what I understand I have to take what a user is inputting for sale and send to a server so others can search it, right? Can anyone direct in a direction to get started, this is what I have for a user to post an item:

public class Post extends Activity implements OnClickListener {

    ImageButton ibutton1;
    ImageButton ibutton2;
    ImageButton ibutton3;
    ImageButton ibutton4;
    ImageButton ibutton5;
    ImageButton ibutton6;


    Intent i1;
    Intent i2;
    Intent i3;
    Intent i4;
    Intent i5;
    Intent i6;

    final static int cameraData1 = 1;
    final static int cameraData2 = 2;
    final static int cameraData3 = 3;
    final static int cameraData4 = 4;
    final static int cameraData5 = 5;
    final static int cameraData6 = 6;

    Bitmap bmp;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.post);

        Button button = (Button) findViewById(R.id.bNext);
        button.setOnClickListener(mNextListener);

        // Category spinner set up
        Spinner cSpinner = (Spinner) findViewById(R.id.spCategoryPost);
        ArrayAdapter<CharSequence> adapter2 = ArrayAdapter.createFromResource(
                this, R.array.category_array,
                android.R.layout.simple_spinner_item);
        adapter2.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
        cSpinner.setAdapter(adapter2);

        cSpinner.setOnItemSelectedListener(new MyOnItemSelectedListener2());
        initialize();
    }

    private void initialize() {
        ibutton1 = (ImageButton) findViewById(R.id.imageButton1);
        ibutton2 = (ImageButton) findViewById(R.id.imageButton2);
        ibutton3 = (ImageButton) findViewById(R.id.imageButton3);
        ibutton4 = (ImageButton) findViewById(R.id.imageButton4);
        ibutton5 = (ImageButton) findViewById(R.id.imageButton5);
        ibutton6 = (ImageButton) findViewById(R.id.imageButton6);
        ibutton1.setOnClickListener(this);
        ibutton2.setOnClickListener(this);
        ibutton3.setOnClickListener(this);
        ibutton4.setOnClickListener(this);
        ibutton5.setOnClickListener(this);
        ibutton6.setOnClickListener(this);
    }

    public void onClick(View Images) {
        switch (Images.getId()) {

        case R.id.imageButton1:
            i1 = new Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE);
            startActivityForResult(i1, cameraData1);
            break;
        case R.id.imageButton2:
            i2 = new Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE);
            startActivityForResult(i2, cameraData2);
            break;
        case R.id.imageButton3:
            i3 = new Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE);
            startActivityForResult(i3, cameraData3);
            break;
        case R.id.imageButton4:
            i4 = new Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE);
            startActivityForResult(i4, cameraData4);
            break;
        case R.id.imageButton5:
            i5 = new Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE);
            startActivityForResult(i5, cameraData5);
            break;
        case R.id.imageButton6:
            i6 = new Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE);
            startActivityForResult(i6, cameraData6);
            break;
        }

    }

    private OnClickListener mNextListener = new OnClickListener() {
        public void onClick(View v) {

            EditText edit = (EditText) findViewById(R.id.etTitle);
            EditText editP = (EditText) findViewById(R.id.etPrice);
            EditText editD = (EditText) findViewById(R.id.etDescription);
            long currentTime = System.currentTimeMillis();
            Calendar cal = Calendar.getInstance();
            cal.setTimeInMillis(currentTime);
            String showTime=String.format("%1$tI:%1$tM:%1$tS %1$Tp",cal);

            Intent intent = new Intent(Post.this, PostSet.class);
            intent.putExtra("com.mandam.isellibuy.TITLE", edit.getText().toString());
            intent.putExtra("com.mandam.isellibuy.PRICE", editP.getText().toString());
            intent.putExtra("com.mandam.isellibuy.DESC", editD.getText().toString());
            intent.putExtra("currentTime", currentTime);
            startActivity(intent);

        }
    };
    @Override
    protected void onActivityResult(int requestCode, int resultCode, Intent data) {
        super.onActivityResult(requestCode, resultCode, data);
        if (resultCode ==  RESULT_OK){
            Bundle extras = data.getExtras();
            bmp = (Bitmap) extras.get("data");
            ibutton1.setImageBitmap(bmp);
        }
    }

}

Now I take the value of all these edit texts, spinner, and images and return it to another activity where the user can view all of this to make sure it looks good and post the item for sale, here is the activity:

public class PostSet extends Activity {



    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.post_set);

        // Setting text of edit text tvTitle from class Post
        TextView tv1 = (TextView) findViewById (R.id.tvTitleText);
        TextView tv2 = (TextView) findViewById (R.id.tvPrice);
        TextView tv3 = (TextView) findViewById (R.id.tvTimeStamp);
        TextView tv4 = (TextView) findViewById (R.id.tvDescription);

        Intent intent = getIntent();
        String edit = intent.getStringExtra("com.mandam.isellibuy.TITLE");
        String editP = intent.getStringExtra("com.mandam.isellibuy.PRICE");
        String editD = intent.getStringExtra("com.mandam.isellibuy.DESC");
        //long currentTime = extras.getLong("currentTime");

        tv1.setText(edit);
        tv2.setText(editP);
        tv4.setText(editD);
        //tv3.setText(currentTime);


    }



}

Now this Activity just displays all the input from the user to look it over and there is a button “Submit” that the user clicks to submit the item for sale so others can view the item on my app. This is where I get confused how do I achieve that?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T11:10:00+00:00Added an answer on May 27, 2026 at 11:10 am

    So the answer to your question in the title “does Android have a server…” is no. There’s no server that Google provides specifically for Android. However, Android can do standard network communication–you can use any accessible server of your choice. There are plenty of free (tiered) servers including Google App Engine, Heroku and AWS. You’ll have to create your own server-side component though.

    You’re probably getting downvotes because the actual body of your question is extremely broad. I could probably reword your question as “How can I create Craigslist but for Android?”. There’s a lot involved and there are a huge range of possibilities and differing requirements. You need to break down your problem into pieces, fill in what you can and then if you have any specific technical questions about pieces of that, then ask those here on StackOverflow.

    I will try to help you get started in the right direction as you asked though, you should take a look at learning how to implement a web service, then create one to post your listings to and to retrieve listings. In that web service you’ll have to interpret the request, and most likely save the data into a database. Likewise when retrieving listings, you’ll have to go to the database to retrieve previously stored listings, potentially filter/sort them and then return them in some form back.

    This is not a trivial task, good luck.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to figure out how my iOS app should work after Facebook make
I'm trying to figure out how to make it so that when I'm moving
I've been trying to figure out how I can make a query with MySQL
I'm trying to make getJSON to use JSONP object, but I can't figure out
I'm trying to make a quick sample Backbone.js app that has a Post model,
I'm trying to make a page that my mobile phone app can hit to
I am trying to figure out how to make my layout have the following
I'm trying to figure out how to make jQuery slide #content2 down and replace
I'm trying to figure out a way to make demos for a program I've
I'm trying to figure out how if there's a way to make a hostname

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.