[Q] How to make an activity to import text? - Java for Android App Development

Hi every body,
I want to create an activity to import text and export text in the same activity like pictures I post below.
Pic story 1: Text View contains the text which is imported from the text field below.
In this picture, the keyboard is hidden below.
Pic story 2: When I press the text field, the keyboard will appear and the text field is pushed above. Now, the text view is covered by the keyboard and the text field and it automatically show the last row of the content. I can scroll the text view area to show all content of it.
After I input a text from the text field, the text view will automatically show it (text) at the last row.
Can you tell me how to code it?
Thank you a lot!

TextView.settext(textview.gettext() +"\n"+edittext.gettext());
Sent from my GT-S5570 using XDA Premium 4 mobile app

Related

S.O.S. Sent sms folder!!!

Hi guys!
I've got a problem sending sms with my Jam:
I write the text... I tap on "send to" and I browse on my contacts... I select one of my contact's number an then I tap on send button.
It works fine and the text is sent!
Well... when I go to sms sent items I can see the text I sent but there is the N I use instead the contact's name!!!! grrrr.....
If I reply one received sms it works fine and I can see on my sent items the name of the sender....
Any idea?
i've also noticed some glitches with sms on the magician, but i dont use the send to function, i just type the first couple letters of the contacts name in the "to" area and the names with those first couple letters will come up, click on the one desired and click send.
I think the reason i'm having problems is cuz i have spb pocket plus which completely exits the messaging app, so i just minimize it instead of completely exiting it.
If you start typing the contacts name in the To: field it gives you the option to autocomplete using their mobile number and will then show their name against the message in sent items. But if you browse contacts it will just use the number against the message in sent items.
fone fanatic, once you send a message wait for the little bubble to pop up saying message sent before you close the application, otherwise it ends up sending the message twice.

How to change the SMS and EMAIL view

Hi guys,
wondering if its possible to every time that the SMS icon is pressed to see as default view "All messages" instead of the default view which is the one with the funny "post it" view.
And the same with the emails, if its possible to every time that you press the email icon, to see instead the default view the "Inbox" view.
thanks a mil

Remove E-mail Addreses from showing up in text message address book

Quick question. On my new S4 I got today,
1. I click the text message icon
2. I click the create new text icon in the top right hand corner
3. Then I click the other icon in the top right corner (looks like a person's head) to bring up my contacts, and when I start flipping through all of them, it starts to display every single e-mail address I've ever written to.... mixed in with all my regular contacts! Very annoying.
How do I remove all these e-mail addresses from showing up? I've already opened open: Contacts > Settings button > Contacts to display. I changed that to "phone numbers only" but this doesn't update the text app. Only your phonebook.
Any ideas?
No one knows?
:'(
Idk of a solution..but why not just type the first few letters of the persons name instead of tapping the "head" and scrolling through all your contacts..
Sent from my SAMSUNG-SGH-I337 using xda app-developers app

[GUIDE]My Text - SMS stored text messages

The SMS function for WM 6x is a Microsoft Inbox service. One useful feature is that it has a library of 10 stored text messages which you can customise and store on your phone.
The list of stored text messages can be viewed when you are in the view, reply or forward SMS context. The list will be shown when you tap on "My Text" from the SMS menu icon. There is an Edit function for you to customise your own messages for future use.
The problem faced by WM users is that when they hard-reset or flash a ROM, they will have to re-edit their stored text messages all over again this can be time-consuming. In this forum, there had been questions asked about the location of the stored text messages, but their queries were usually not responded to, or a vague answer answer was given.
The solution is to import the Registry settings after a hard-reset or flashing a ROM. The Registry settings:
Code:
[HKEY_CURRENT_USER\Software\Microsoft\Inbox\PresetMsgs]
"0"="Stored text #01"
"1"="Stored text #02"
"2"="Stored text #03"
"3"="Stored text #04"
"4"="Stored text #05"
"5"="Stored text #06"
"6"="Stored text #07"
"7"="Stored text #08"
"8"="Stored text #09"
"9"="Stored text #10"
Steps:
1. Cut and paste the text from the Code box and save it to a Registry file on your microSD, e.g., MSinbox.reg
2. Use any Text Editor to edit the values of the "Stored Text #01 through #10" to customise your own.
3. From now on, when you hard-reset or flash a ROM, you only need to import the Registry settings.
Use a File Explorer software
Navigate to the file location of the Registry file
Double-tap on the Registry file
Tap "Yes" to accept the import
4. There is no need to restart the cellphone - just terminate the SMS software and re-start. The SMS software will read the Registry each time it starts.

[Q] text/words in textView are jumping

Hello!
My problem is when i add text in textView by String value. Some lasts words from lines are going below to the new one. How can i block it? The reason is maybe the size of font is too big for that text. Its songs text with chords, where chords are going below their line but they have to be in the same line . Maybe there is some stuff like "Match_parent" but to the single line of txt? I dont know.
Please help
I think you have to use singleLine="true" in your xml file for the txtView
now my text is in 1 line but my problem is here when i want :
"this is my text" in 1 line, but it looks "this is my" and "text" is in second line, texts are lyrics of songs so there are many lines
for example:
this is my
text
this is my text
this is my text
Matma said:
now my text is in 1 line but my problem is here when i want :
"this is my text" in 1 line, but it looks "this is my" and "text" is in second line, texts are lyrics of songs so there are many lines
for example:
this is my
text
this is my text
this is my text
Click to expand...
Click to collapse
Paste the whole lyrics in one text view, that is in the values/strings.XML and use single text view.
Use /n to create a new line
And use android:layout_width="fill_parent" in your XML file of that text view.
And also if you like set android:gravity="center_horizontal" for text view
Sent from my YU Yureka using Tapatalk

Categories

Resources