[Q] Adding text to image - Android Software Development

Hey,
It's a bit hard to explain, but i'll try.
Well i have a picture with a speechbubble on, in which i want to add a box where the user can add text. When the text is added and the user decides to save the image, i want the text they wrote to be editing onto the image.
So when the picture is saved it has the text the user wrote in the text field to be on the image.
Hope you understand, and i hope this is a place where i can ask

Doesn't picsaypro so this? Check the market.
Sent from my MOTWX435KT using XDA App

boinq said:
Hey,
It's a bit hard to explain, but i'll try.
Well i have a picture with a speechbubble on, in which i want to add a box where the user can add text. When the text is added and the user decides to save the image, i want the text they wrote to be editing onto the image.
So when the picture is saved it has the text the user wrote in the text field to be on the image.
Hope you understand, and i hope this is a place where i can ask
Click to expand...
Click to collapse
You could use a view to draw your stuff onto a canvas, then grab the bitmap of that view with View.getDrawingCache(), then save that bitmap to a FileOutputStream with Bitmap.compress().

Related

Emoticons Help

Can someone let me know how you put these in an sms message please?
Thanks in advance
I would also like to know if that is possible, so if any one knows any thing about that please help.
On the text page press menu at the bottom right, insert/picture video/mydocuments/uacontents/emoticon all done.
Hope that helps.
Thank you....
I think what we meant is how to insert an emoticon in line with the text message. The tip above merely creates a Picture message, with the emoticon as the main picture, which is daft.
bloob said:
I think what we meant is how to insert an emoticon in line with the text message. The tip above merely creates a Picture message, with the emoticon as the main picture, which is daft.
Click to expand...
Click to collapse
That is what I am after. I know my old C902 all you had to do was press the full stop twice and then scroll thye emoticons....
why don't you use Smiley SMS? It works perfect. incl. animated smileys'.
Just google it, its free. (version 1.68 is the latest.
Steven
Steven13 said:
why don't you use Smiley SMS? It works perfect. incl. animated smileys'.
Just google it, its free. (version 1.68 is the latest.
Steven
Click to expand...
Click to collapse
I will give that a go...
http://forum.xda-developers.com/showthread.php?t=328363
There is no way to have them by default in WM, but take a look here http://forum.xda-developers.com/showthread.php?t=328363
Or you could just alter the texts in your templates to smileys. They will show up as icons on phones that support smileys.

Stock SMS/MMS changes

Hi,
I just did my first steps in Android programming. And what is better to learn by improving something that you dislike?
So I changed a very tiny thing: the SMS/MMS app's "Send" button.
It now shows from the beginning the remaining letters of an SMS. All this appears on the "Send" button now (below the "Send", just like the text when you send an MMS).
I put a screenshot of before/after into the attachment, so please take a look and tell me what you think. Does this make sense? Should I make something of this configurable? Any further suggestions?
I did this primarily to learn a bit about Android, but now I'd like to go further. So any comment welcome
My thanks go to olearyp from the CM IRC channel
Cheers
Chris
Love it! Big help, for sure. Is it for the black background mod/CM MMS app?
drod2169 said:
Is it for the black background mod/CM MMS app?
Click to expand...
Click to collapse
I've looked at the patch, and it should require minimal massaging to apply to irrenhaus-based messaging apps. Most of the actual message entry code appears to be unchanged or nearly so from the AOSP version.
Message code is indeed completely unchanged.
I'd like to know if you think that I should add preferences for this like enable/disable it or configure the number of letters before it kicks in. But maybe that would be too much for such a tiny feature.
EDIT:
Now I see what you mean with black background mod: The thing that is on my mobile and enables me to activate a "fullscreen" keybord which disables the "remaining letters" display completely. I'll rebase my changes against CM sources. They are currently against the original ones.
Thanks for the feedback so far!
Cheers
Chris
Patch available
The patch is in the review now, if anyone wants to take a look on it. I'm a new user so I can't post links yet, but it's on the CM reviewboard as number 686.
Cheers,
Chris
nice work ^_^
Nice work papillon81, very usefull
Hopefully they can put this in a nightly.
Can you implement an option that let's you choose with which app you want to send the sms, when pressing the send button or the button for new message?
I use websms for sending sms, but want to use the stock sms app for reading. It's a bit annoying to go back to homescreen and than open the websms app everytime.
Best implementation would be that when you press new message it just asks, if you want to use stock sms app or websms (if installed). For the send button in the message threads it would be nice that it asks and when websms is chosen, it copies the typed text and the recepient to websms (if possible).
Well, the best option would be to use the stock SMS app for reading and writing and supply different backends so that you can send SMS via your provider as well as via an internet service.
The patch is still in review, so if you like it, comment on reviewboard, too
Chris

[Q] Confused with coding for layout.

Hi there, long time lurker first time poster here!
Slowly getting into android but i really cant get my head around the layouts. I would love to be able to use the AbsoluteLayouts but that isn't a good idea anymore.
Basically after some work i have managed to get a gallery working at the top of the screen. I want my app to look like this in essence: Ok can't post outside links at the moment, fair enough. Think of the android market. Icons to the left and a bit of information for each app next to it and a buy button on the right.
However i have no idea where to start off. Since i have the gallery already i have no idea how i can add things underneath it without screwing anything up.
Can anyone help? Thanks in advance!
Sorry to bump but the issue has changed, I have built an app but would like like the text to be besides the icon. Any chance someone can help? Using a linear layout.
http://img263.imageshack.us/i/sellscreen.jpg/
RED_ said:
Sorry to bump but the issue has changed, I have built an app but would like like the text to be besides the icon. Any chance someone can help? Using a linear layout.
http://img263.imageshack.us/i/sellscreen.jpg/
Click to expand...
Click to collapse
Are you using a List View? Looks like one.
How do you build up your content for the list?
In my view the best solution for your problem would be:
- Use a ListView
- Build your own ListAdapter (drived from BaseAdapter for example)
The Adapter builds the view for each item (or recycles an already built up view, the ListView handles that).
The view for each item would be a horizontal oriented LinearLayout with two items (the image and the text) and the adapter fills the layout with the information of the current item.
For better layout handling I would define the layout for the items in an extra xml file and use the LayoutInflater-Service inside the Adapter (if a view has to be built).
Hope this helps and points into a helpful direction
Devmil
Thanks for replying, managed to find a solution in the end without using ListView. Thought about moving to a RelativeLayout as its more effcient but as my app is very small anyway in the end i've just gone and used nested LinearLayouts with a textview and imageview in each one.
Ridiculously simple when you look back on it.
I was actually going to use this tutorial which does what you explained i think: http://www.anddev.org/iconified_textlist_-_the_making_of-t97.html but it left me with a force close error so that went out the window.

S Note 2014 text conversion

Is there any way in S note to convert hand writing directly to to text without using keyboard or having to circle text and then convert to text...... The reason I am confused is because I have seen videos that just show writing a word on blank sheet and it automatically converts to text???
thanks
tom
wingman1800 said:
Is there any way in S note to convert hand writing directly to to text without using keyboard or having to circle text and then convert to text...... The reason I am confused is because I have seen videos that just show writing a word on blank sheet and it automatically converts to text???
thanks
tom
Click to expand...
Click to collapse
When you are in edit mode, tap in the "T" icon to have your written text automatically translate to typed as you write. If you select the pen looking icon, it will just leave it as hand-written.
not sure I get it....... do you still have 1/2 of the page to write on and1/2 for text??? Thats what I am tring to get away from. I also can not seem to get in edit mode while I am writing?? pls adv
tom

[Q] Text to American Sign Language Translator App Development Help

I am trying to make an app that allows the user to input text, and then images meaning that word come up on the screen. I already have Eclipse set up on my linux 64 bit box. How would I do this, as I am just starting to learn android development? I am trying to make this app using this tutorial: https://developer.android.com/training/basics/firstapp/building-ui.html but changing the activity so it shows images in a sequence (kinda like a GIF). Any way to do this?
Vlasp said:
I am trying to make an app that allows the user to input text, and then images meaning that word come up on the screen. I already have Eclipse set up on my linux 64 bit box. How would I do this, as I am just starting to learn android development? I am trying to make this app using this tutorial: https://developer.android.com/training/basics/firstapp/building-ui.html but changing the activity so it shows images in a sequence (kinda like a GIF). Any way to do this?
Click to expand...
Click to collapse
I think you should create an ArrayList with the images and keywords.
Then if you click the search button you have to loop trough all the items and check if the keywords contain your searched text if so then you add the image to your layout else you don't.
Hope this helps
Sent from my SM-N9005 using XDA Premium 4 mobile app
Rick Clephas said:
I think you should create an ArrayList with the images and keywords.
Then if you click the search button you have to loop trough all the items and check if the keywords contain your searched text if so then you add the image to your layout else you don't.
Hope this helps
Click to expand...
Click to collapse
Agreed, but I think a HashMap<String, Integer> would be better in this case .
@OP: I don't get the second part of the question with the GIF, try to start with only an EditText, a Button and an ImageView. Then learn how to get the text which the user entered and set up the hashmap and your image resources.
SimplicityApks said:
Agreed, but I think a HashMap<String, Integer> would be better in this case .
@OP: I don't get the second part of the question with the GIF, try to start with only an EditText, a Button and an ImageView. Then learn how to get the text which the user entered and set up the hashmap and your image resources.
Click to expand...
Click to collapse
Yes that would probably be better :thumbup:
Sent from my SM-N9005 using XDA Premium 4 mobile app

Categories

Resources