Go Back   Android Forums > Android Development > Application Development
Application Development Dev lounge for our application developers.

Get excited for the Samsung Galaxy S5! Find everything you need and discuss it in our Galaxy S5 Forum!

test: Reply
 
LinkBack Thread Tools
Old June 29th, 2013, 11:11 PM   #1 (permalink)
New Member
Thread Author (OP)
 
Join Date: Mar 2013
Posts: 11
 
Device(s):
Carrier: Not Provided

Thanks: 3
Thanked 0 Times in 0 Posts
Default Please help!

I am creating an android apps for our research project and we are having a problem in creating a core function of creating new xml file when the user chooses "new project".
Is this function is possible?

c0dered22 is offline  
Reply With Quote
sponsored links
Old June 30th, 2013, 12:21 AM   #2 (permalink)
Senior Member
 
zimlokks's Avatar
 
Join Date: Oct 2011
Location: Los Angeles
Gender: Male
Posts: 642
 
Device(s): HTC Incredible: Tiny's CM10.1 ROM SAMSUNG GS2 E4GT: Dastin's CM10.1 :D
Carrier: N/A

Thanks: 163
Thanked 180 Times in 143 Posts
zimlokks@gmail.com
Default

what software are yu using to build your application?
__________________
Need help? PM me ill get bak to yu asap ヅ or contact me at


either hangout(talk) or email!



Did i help? Hit the Thanks button Like what i said? Then press the like button!
zimlokks is offline  
Reply With Quote
The Following User Says Thank You to zimlokks For This Useful Post:
c0dered22 (June 30th, 2013)
Old June 30th, 2013, 03:15 AM   #3 (permalink)
New Member
Thread Author (OP)
 
Join Date: Mar 2013
Posts: 11
 
Device(s):
Carrier: Not Provided

Thanks: 3
Thanked 0 Times in 0 Posts
Default

I am using Eclipse Juno now.
c0dered22 is offline  
Reply With Quote
Old June 30th, 2013, 03:16 AM   #4 (permalink)
Senior Member
 
zimlokks's Avatar
 
Join Date: Oct 2011
Location: Los Angeles
Gender: Male
Posts: 642
 
Device(s): HTC Incredible: Tiny's CM10.1 ROM SAMSUNG GS2 E4GT: Dastin's CM10.1 :D
Carrier: N/A

Thanks: 163
Thanked 180 Times in 143 Posts
zimlokks@gmail.com
Default

i cant help there, someone else will have to come around and help sorry.
zimlokks is offline  
Reply With Quote
Old June 30th, 2013, 09:05 AM   #5 (permalink)
Junior Member
 
Join Date: Mar 2013
Posts: 30
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 3 Times in 2 Posts
Default

When you are within eclipse, you are attempting to create a new android project and you are receiving an error?

What is the error you are seeing in the console, or in a dialog box?
shredcode is offline  
Reply With Quote
Old June 30th, 2013, 02:35 PM   #6 (permalink)
Senior Member
 
out of ideas's Avatar
 
Join Date: May 2012
Posts: 607
 
Device(s): ZTE Merit. ICScamwich OC. Galaxy Prevail CTMod 3.68
Carrier: Pigeons

Thanks: 58
Thanked 138 Times in 108 Posts
Default

go to new >android XML File, not new> project.
__________________
Stuff of mine:
Ice Cream Scamwich (ZTE 990s)

Deodexed Stock ZTE Merit
out of ideas is offline  
Reply With Quote
Old July 6th, 2013, 08:32 AM   #7 (permalink)
New Member
Thread Author (OP)
 
Join Date: Mar 2013
Posts: 11
 
Device(s):
Carrier: Not Provided

Thanks: 3
Thanked 0 Times in 0 Posts
Default

um I mean is when the user clicks the new project on our application a core function activates that create new xml file.
c0dered22 is offline  
Reply With Quote
Old July 6th, 2013, 12:59 PM   #8 (permalink)
Senior Member
 
out of ideas's Avatar
 
Join Date: May 2012
Posts: 607
 
Device(s): ZTE Merit. ICScamwich OC. Galaxy Prevail CTMod 3.68
Carrier: Pigeons

Thanks: 58
Thanked 138 Times in 108 Posts
Default

youre being way too vague.

so on the phone an end user would click a button and make an xml file?

why not have a premade xml and fill it with the data you need in there?

again you'd have to explain a lot better cuz this is just stabs in the dark.
out of ideas is offline  
Reply With Quote
Old July 6th, 2013, 01:22 PM   #9 (permalink)
New Member
Thread Author (OP)
 
Join Date: Mar 2013
Posts: 11
 
Device(s):
Carrier: Not Provided

Thanks: 3
Thanked 0 Times in 0 Posts
Default

Oh sorry for that.

Okay I will explain it.

Our apps is called "VN MAKER".

A development apps that let the user create a Visual Novel.

The thing is we don't know what to do in creating new project and we are thinking

of creating new xml file as a body of the "New Project" I am talking.

And then when the user chooses the "New Project" a new XML file will be created as

the body of the "New Project" of "VN Maker"

And my problem is, I don't have an idea how can I put it in codes or s it really possible to creat that function.
c0dered22 is offline  
Reply With Quote
Old July 6th, 2013, 02:05 PM   #10 (permalink)
Senior Member
 
out of ideas's Avatar
 
Join Date: May 2012
Posts: 607
 
Device(s): ZTE Merit. ICScamwich OC. Galaxy Prevail CTMod 3.68
Carrier: Pigeons

Thanks: 58
Thanked 138 Times in 108 Posts
Default

So like they could write their own novel thing? like taking a new note?

If it's something like that, then just put a blank xml page in the app, with an EditText box they can type in. that way, when they pick new project, it will open up a blank page they can add to as they see fit.
out of ideas is offline  
Reply With Quote
The Following User Says Thank You to out of ideas For This Useful Post:
c0dered22 (July 6th, 2013)
sponsored links
Old July 8th, 2013, 07:59 PM   #11 (permalink)
New Member
Thread Author (OP)
 
Join Date: Mar 2013
Posts: 11
 
Device(s):
Carrier: Not Provided

Thanks: 3
Thanked 0 Times in 0 Posts
Default

thanks for the idea, but can I have another question.

Is there any function that a user can add Image by just clicking a button?

It's like you can browse a certain database folder and then chose image from that database and add it on the project.
c0dered22 is offline  
Reply With Quote
Old July 9th, 2013, 12:53 AM   #12 (permalink)
Senior Member
 
out of ideas's Avatar
 
Join Date: May 2012
Posts: 607
 
Device(s): ZTE Merit. ICScamwich OC. Galaxy Prevail CTMod 3.68
Carrier: Pigeons

Thanks: 58
Thanked 138 Times in 108 Posts
Default

Yup. I'll give ya some code for a head start

Code:
 else if (item.getTitle().toString().equalsIgnoreCase("Pick an image")) {
            Intent i = new Intent(Intent.ACTION_PICK,
                    android.provider.MediaStore.Images.Media.INTERNAL_CONTENT_URI);
      
                startActivityForResult(i, IMAGE);
            Toast.makeText(this, "your Screenshots are here", Toast.LENGTH_LONG).show();
                    }
        return true;
        
    }
    @Override
    protected void onActivityResult(int requestCode, int resultCode, Intent data) {
      super.onActivityResult(requestCode, resultCode, data);

      if(resultCode==RESULT_OK && requestCode==IMAGE){
       Uri selectedImage=data.getData();
       String path=getPath(selectedImage);

       Bitmap bitmapImage=BitmapFactory.decodeFile(path);
//this part puts it on a imageview
       ImageView image=(ImageView)findViewById(R.id.image);
       image.setImageBitmap(bitmapImage);

      }
    }

    public String getPath(Uri uri){
      String[] filePathColumn={MediaStore.Images.Media.DATA};

      Cursor cursor=getContentResolver().query(uri, filePathColumn, null, null, null);
      cursor.moveToFirst();
      int columnIndex=cursor.getColumnIndex(filePathColumn[0]);

      return cursor.getString(columnIndex);
    }
I use that to let people use their gallery to pick an image off their sdcard and set it to an imageview.

play around with it a little and you can get them them to pull it out of a drawable folder.

you got lucky I had Eclipse open
out of ideas is offline  
Reply With Quote
The Following User Says Thank You to out of ideas For This Useful Post:
c0dered22 (July 9th, 2013)
Old July 9th, 2013, 06:09 AM   #13 (permalink)
New Member
Thread Author (OP)
 
Join Date: Mar 2013
Posts: 11
 
Device(s):
Carrier: Not Provided

Thanks: 3
Thanked 0 Times in 0 Posts
Default

Oh, thanks this really help us.
c0dered22 is offline  
Reply With Quote
Old July 13th, 2013, 10:40 AM   #14 (permalink)
New Member
Thread Author (OP)
 
Join Date: Mar 2013
Posts: 11
 
Device(s):
Carrier: Not Provided

Thanks: 3
Thanked 0 Times in 0 Posts
Default

I have another question.
How can I add music.
for example.
If the button is pressed it can add music in the file. like on the earlier question that is about image.
c0dered22 is offline  
Reply With Quote
Reply


Go Back   Android Forums > Android Development > Application Development
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 03:14 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.