Kotlin AlertBox with EditText - General Questions and Answers

Hi,
I'm building an App and need to implement a possibility to enter text when the fab is clicked.
Code:
//Floating Action Button
val fab = my_fab
fab.setButtonIconResource(R.drawable.plus)
fab.setButtonPosition(POSITION_BOTTOM.or(POSITION_END))
fab.setOnClickListener{ fab ->
println("Clicked fab")
//updateDataset(data)
addToDataset("Jonas Eisele")
Instead of adding the static name I want to have a more dynamic way of entering names.
If you need some more code have a look at tradena.me [click on explore in the lower left corner] <-- this is a URL (I'm to new to post links)
thanks in advance
Jonas

Related

[Q] Keyboard Dock Shortcut List

I haven't found these documented anywhere yet, so I thought I'd post what I've discovered so far.
Here's a list of keyboard dock shortcuts that work in the default browser.
Some of these only work when your cursor is sitting in an input field on a web form and I've noted those below with an asterisk...
CTRL-SHIFT Select input method
ALT-SPACEBAR Alternate Keyboard
FN-TAB Toggle Browser Toolbar on/off when it's hidden
CTRL-A Text Selection/Select All
CTRL-C Copy
CTRL-I Zoom In
CTRL-O Zoom Out
CTRL-P Browser Settings *
CTRL-R Refresh *
CTRL-S Share Page URL *
CTRL-T Open new browser tab
CTRL-V Paste *
CTRL-ALT-W Close Current Tab
CTRL-X Cut *
* Only works if you have your cursor sitting in an input field on a web form
EDIT: Some of these shortcuts only work occasionally. Not sure why.
Crtrl + F works too.
menu button and space bar goes to your home page also

[APP][Honeycomb] SiMi TaskNote 0.9.6 [06.10.2011]

SiMi.TaskNotes is a Note and Task application. It is something like Taskpaper on the iPad.
How it works:
TaskNotes knows about four things: projects, tasks, notes, and tags. As you type, these items are auto-formatted so that your lists are easier to read.
- To create a task, type a line starting with a "-".
- To create a project, type a line starting with "/".
- Any line that isn't a task or project is a note.
- To change a task into a project type "-" at the beginning of a task.
- To change a project into a task type "/" at the beginning of a project.
- To change a task back to a note type "-" at the beginning of a task.
- To change a project back to a note type "/" at the beginning of a project.
- To indent an item tap space when the cursor is at the start of the item.
- To unindent an item tap delete when the cursor is at the start of the item.
- to mark a task as done swipe from left to right on the task.
- to mark a task as undone swipe from right to left on the task.
What's next:
- Portrait support.
- Tags e.g. @home or @work.
- Synchronization with Google Task, Toodledo,...
- Synchronization with SiMi.GTD.
- Send notes by email.
- Searching.
- Filtering.
Version 0.9.5
- Bugfixes
- Search for notes
- Send notes as email
Version 0.9.6
- Portrait support
Market link SiMi TaskNote
Small Video on how it works
Have Fun
Sorry, am I the only one who's being confused terribly by the instructions?
To summarise what you wrote:
- (New) + "-" = Task
- (New) + "/" = Project
- (New) + (nothing) = Note
- Task + "-" = Project
- Project + "/" = Task
- Task + "-" = Note
- Project + "/" = Note
The last 2 lines contradict with the previous 2 lines, as the instructions are the same. I believe it to be a typo? Logically, REMOVING the symbol should turn it back to a Note?
I like how it is implemented, but I believe there are easier ways to achieve the switching of types? Like...
...buttons perhaps?
Great UI btw, keep it improving! =D
FoliathR said:
Sorry, am I the only one who's being confused terribly by the instructions?
To summarise what you wrote:
- (New) + "-" = Task
- (New) + "/" = Project
- (New) + (nothing) = Note
- Task + "-" = Project
- Project + "/" = Task
- Task + "-" = Note
- Project + "/" = Note
The last 2 lines contradict with the previous 2 lines, as the instructions are the same. I believe it to be a typo? Logically, REMOVING the symbol should turn it back to a Note?
I like how it is implemented, but I believe there are easier ways to achieve the switching of types? Like...
...buttons perhaps?
Great UI btw, keep it improving! =D
Click to expand...
Click to collapse
Hi
Not really ...
I made a small video to show how it works. I will post the link when the upload is done.
Have fun
Looks cool, drat, HC only
Oh man I love this app very easy to use when you get the hang of it. One issue though, it force closes when deleting notes. Moto xoom running rooted stock 3.2 rom and kernal . Keep this alive.....!
johnny0911 said:
Oh man I love this app very easy to use when you get the hang of it. One issue though, it force closes when deleting notes. Moto xoom running rooted stock 3.2 rom and kernal . Keep this alive.....!
Click to expand...
Click to collapse
Thanks
New version which some Bugfixes will be available tomorrow.
Have Fun

[APP][2.3.3+][NFC] NFC ReTAG

Hi,
the last days I played a lot with my Nexus S and some NFC tags.
One problem was, that most of the NFC tags I have (hotel keycards, lift passes, price tags, merchandising key fobs etc.) are write protected. So no fun with these tags.
Buying plain NFC tags is an option, but I decided to write a little app (NFC ReTAG) that only reads the ID of the NFC Tag and connects theses tags via a database to various functions (e.g. Toggle Wlan/ Bluetooth, launch installed apps, set ringer mode , navigation, browser etc.)
https://market.android.com/details?id=com.widgapp.NFC_ReTAG_FREE
Try it out! Have fun!
---------------------------------------------------------------------------------
Features:
UPDATE 1.2:
* Toggle Bluetooth without Pop-up
* Mute 'Tag detected' Pop-up via preferences
* Calendar entry: Open new calendar entry. Starting time: now; Duration: 1h -> Title will be set according to parameter
* Timestamp: Adds a calendar timestamp in the calendar (ID 1) -> Title will be set according to parameter
* Mediabutton: Simulates media buttons (Parameter: Toggle Play, Play, Pause, Stop, Next, Previous, Fast Forward, Rewind)
* Show homescreen: Jump to the homescreen. No Parameter
* Wait: Add a wait period. Parameter: milliseconds (2500 = 2,5 seconds)
* Show Pop-up: Shows a custom pop-up. Parameter = Pop-up text.
* Improved UI and some other minor tweaks
UPDATE 1.1: "Tasker" tasks added. (To use this feature, <b>Tasker</b> must be installed and the option <b>Misc / Allow External Access</b> must be set in <b>Tasker UI</b>.)
Version 1.0:
WLan -> Parameter: 0=OFF, 1=ON, 2= TOGGLE
Bluetooth -> Parameter: 0=OFF, 1=ON, 2= TOGGLE
Ringer mode -> Parameter: 0=SILENT, 1=VIBRATE, 2= NORMAL
Navigate -> Parameter: addresses like "Google Mountain View" or "Berlin Alexanderplatz 1"
Launcher: Launch any installed app. Choose Launcher and a list of all installed apps will pop up. Click an app to choose -> parameter will automatically be set! Dont change parameter manually!
Browse -> Parameter: any website (e.g. www.google.com)
Call -> Phone number or USSD code (e.g. 555 111 222 or *123#)
Dial -> used for Dialer codes (e.g. *#06# -> IMEI))
Automode enable: start saved functions when tag is detected. Automode disabled: edit saved functions when tag is detected.
You can also manually edit the database and simulate a tag via the database button.
regards
ascsa
update 1.2 just released ;-)
--> Have a look at: http://forum.xda-developers.com/showthread.php?t=1477138
or the main thread within the gnx forum: http://forum.xda-developers.com/showthread.php?t=1477138

[Q]First application

Hi guys, i want to do a very simple app for WP7.
It's my first app, so i'm very noob
I put a butto, and i want that when i click on it, it opens a picture.
How i can do that?
There is a guide for noob like me?
you might probably wanna check the guide from Microsoft student..
Please try this out an see if it works. This is using a default empty silverlight project.
In the designer (MainPage.xaml), add a button and an Image element using the XAML:
<Button Name="testButton" Width="140" Height="100" VerticalAlignment="Top" Click="testButton_Click">Open</Button>
<Image Name="imageElement" Width="300" Height="300"></Image>
This should be added inside the Grid Element named "ContentPanel"
Next add the image to your project by right clicking your project in the solution explorer and selecting:
Add -> Existing Item -> And add an image called "test-image.png"
Click on the added image, in the Properties box, set Build Action -> Copy Always
In the code-behind file (MainPage.xaml.cs), add the reference to the library BitmapImage by adding "using System.Windows.Media.Imaging;" to the top of the file.
Add a click event handler for the button using the code:
private void testButton_Click(object sender, RoutedEventArgs e)
{
Uri imageUri = new Uri("/[ProjectName];component/test-image.png", UriKind.Relative);
BitmapImage testImageBitmap = new BitmapImage(imageUri);
this.imageElement.Source = testImageBitmap;
}
But make sure to replace [ProjectName] with the name of your windows phone project.

Anyone help me mod Silk Browser add long press back key

Sorry my english
I want mod Silk Browser TV full work for Shield TV. but Shield TV have not Menu key, and press Voice Search Shield will open Google Assistant(In Fire TV when i press Menu Key or Voice Search Key. It will open Menu of Silk).
I have ideal "long press Back Key to open Menu (call ) " use function
public boolean onKeyLongPress(int keyCode, KeyEvent event)
{
if (keyCode == KeyEvent.KEYCODE_BACK)
{
// do some thing. i will put code showHome() in here
return true;
}
return super.onKeyLongPress(keyCode, event);
}
I create app "androidphysicalexample" use simple project bellow in eclispe and put code above in project.
https://examples.javacodegeeks.com/android/core/ui/events/android-physical-keys-example/
I use apk tool to decomplie apk androidphysicalexample to view function onKeyLongPress in file .smali then modify to .smali of Silk (i try modify to FireTvSlateActivity.smali but nothing when i long press back key )
Anyone can help me. thank
if you can help me. you can download Silk in here
https://drive.google.com/file/d/1XJCE6pt0BB--mb2n0W5K5IUg0ul8Z2Ww/view?usp=drivesdk
- and use website http://www.javadecompilers.com/apk
to decomplie to source code

Categories

Resources