[Q] Navigation issue with Tabbed activities - Android Software Development

Hi all
When creating a tabbed display using TabHost & TabWidget, one of the options for specifying the tab content is TabHost.TabSpec.setContent(Intent intent), which causes an activity to be launched as the tab content. This works fine except for one problem. I can't seem to use the trackball / d-pad to change focus from a field within the tab content (running as an embedded activity) to a field in the parent activity that is positioned below the tab content. The trackball / d-pad can be used to navigate to a field ABOVE the tab content, but not below.
This problem disappears if the tab content is specified using TabHost.TabSpec.setContent(int viewId) instead of setContent(Intent intent).
Does anyone know how to fix the above navigation issue for tabs that use embedded activities?
Thanks in advance ...

Related

BeyondPod 2.8 released

A new Public release of BeyondPod - Free, Open source RSS feed reader and podcatcher - is available.
Thanks to all of you who supported BeyondPod with suggestions and donations. We could not have done it without you!
Here are some of the new features in v2.8:
* There is now a way to view a summary of all "unread" items across all feeds in a given category.
* Added settings to start automatic updates on Startup and on Opening of a feed
* Added a link to Launch the BeyondShcheudler from within BeyondPod. BeyondScheduler is a companion application used to schedule various tasks such as Bluetooth On/Off and Wi-Fi On/Off (on some HTC made devices) to be executed at predefined time. BeyondPod also internally relies on the BeyondScheduler for its own scheduled updates.
* Added support for password protected feeds. You can now enter username/password in the feed properties
* Added a global setting that allows you to hide the "Read" feed items in Content View. A nice side effect of hiding the "Read" items is that the feeds render faster because the number of items is (much) smaller.
* Changed the functions of left and right D-pad keys in the "Feeds" and "Podcasts" views. Left key now always navigates to the built in player (if there is anything to play) and the right key navigates to the last feed content view. There are also dedicated "Go to Player" menu items in both views
* When generating unique feed names, instead of PCXXXXX.MP3, the file name pattern is now Feed NameXXXXX.MP3. This makes the podcast file name a bit more predictable and also by changing the feed name, it gives you some a control over the podcast name.
You can download the latest build http://www.codeplex.com/beyondpod

[Solved] Internet Tab 'Favourites' Live Thumbnails NOT Showing

Hi All,
I thought I'd share this little issue I've had, and managed to solve on my own *smug*
Basically, I was creating Favourites from within the tab and setting them to the quick launch style buttons on the tab itself.
None of them had thumbnails, always had the 'empty' globe icon.
I could press them, and off the browser went to the website, all works fine, just no thumbnail on the Internet tab.
I've been mostly using Skyfire as my default browser.
I've now discovered that to get around this, you need to browse to the website in question (in Opera, didn't try in IE), then add it as a favourite, then add the quick launch shortcut.
It may sound simple, but it seems a bit strange to be able to set up favourites outside of the browser (as the favourites work independent of a browser) but that the thumbnails aren't created.
Hope this helps someone
thanks for this post
now i've my thumbnail with oper10

My MUST-HAVE text editing app

I am proud to present Need To Write!
It's a text editor unlimited by file sizes and offers a lot of customization and power tools
Completely FREE version can be downloaded here!
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Difference between Paid and Free version is mainly in the poweruser options.
Paid version mainly adds lotsa poweruser options ;D
1) Remembers up to 9999 undo/redo operations
2) Control over the End-Of-Line characters (Apple, Unix and Windows tend to handle different End-Of-Line differently when doing plain text editing)
3) Allows user to specify buffer size
4) Allows custom fonts and background images
5) Allows user to customize 6 extra Themes in addition to the built-in 3 Themes.
6) Allows toggling of word wrap
7) Continuous Text to Speech.
8) Automatic backup of multiple files to user specified locations on SD card
Free version:
1) Remembers just 1 undo/redo operation, plus 1 reset buffer
2) Defaults to Android EOL handling
4) Fixed 10000 buffer size
5) Custom fonts and backgrounds disabled. You can still paint over the existing 3 themes with a solid color though, just adjust your Opacity bar in your themes dialog.
6) Customization of 3 built in Themes.
7) Always wordwrap
8) Text to Speech reads single paragraphs only.
9) Automatic backup of 1 file to user specified location on SD card
Version 1.71 features:
1) A File List, which works like a Bookshelf/Task_list/Recent_files hybrid management system. So basically, you can use it as a Task list, text bookreader, and text file editor as well.
2) Edit mode with unlimited file size, and tracking system to resume your reading/editing progress.
3) HTML mode! Supports non html files as well.
4) Text to Speech! I'm gonna use it to listening to ebooks when my eyes are tired
5) GoTo, Search, Replace, Cut, Copy, and Paste
6) Multiple Undo and Redo with undo history up to 9999(for the full version). Also comes with a sliding bar to easily rewind and fast forward the changes you made.
7) Themes! Customizable display; you can specify your own background images, custom fonts, background and font colors, line spacing, indents etc.
8) Landscape mode
9) EditText view with inertia scrolling, and yet no irritating problems of the view rectangle not being called to show your cursor, nor the rectangle jumping all over the place when you try to place your cursor far away.
10) Toggleable word wrap and autocapitalization (if supported by keyboard app)
11) Specify what End-Of-Line chars for saving your files with.
12) Tons of encoding options from ISO, windows 125_, Cyrillic, Japanese, Korean, Chinese, etc.
13) Share your files or just specific lines of selected text via email, bluetooth etc.
14) Automatic backup of files to user specified locations on SD card
15) HTML mode to easily switch between plain text and HTML view
If you like what you see, download now!
nice, gonna try it after i re-flashed my phone today.
hope the html view is up soon. gotta love it!
Latest version 1.3 is up!
Major changes are:
- Bookshelf/memo_list/recent_files hybrid system. Basically, you can use it as a memo list, bookreader, and text file editor.
- Fixed most of the pesky question marks by using windows-1252 as the default encoding.
- Added a lot of encoding options from ISO, windows 125_, Japanese, Korean, and Chinese.
- Themes! Customizable themes, and you can specify your own background images (Paid version only).
- Share your files via email/bluetooth etc.
- Built in file browser
- No more popup nag box! :s
New version 1.35!
New features:
1) Toggleable word wrap
2) Specify which type of End-Of-Line chars to use when saving files, '\r', '\n', or '\r'+'\n'
3) Improved Find/Replace and GoTo function. Background no longer dims.
4) Stability fixes, some quite important ones. Make sure you update if you haven't yet!
New version 1.40!
NTW now talks! Comes with ability to adjust pitch, speech rate, and supported languages.
But be warned, I think Android's Text to Speech is a bit buggy, so the voice doesn't really respond consistently to my controls for pitch and speech rate.
Edit: I found out it does respond consistently, but I have to be patient and wait for the next sentence to play naturally, instead of pressing stop and play for instant replay
v1.41 is out. It only patches NTW crashing due to certain Text to Speech settings. Download if you encounter this crashing.
maybe you can add it to market?
It is in the Market already, right from day 1.
Ok, I think I've solved the crashing problem some of you may be experiencing. Hopefully anyway......
v1.42
- Patches NTW crashing due to your phone's Text to Speech settings or lack of TTS.
- More encodings: ISO-2022 for JP, KR & CN. KOI-8R for russian.
Great great great app Man !!!
It's exactly what I'm looking for. Thanks a lot, and long life to NTW.
Do you plan any multi language option ? If so, I could translate it in French !
I have also few suggestions. ;-)
-It would be great to have the setting menu directly in the first page like other app.
-The preview under the text file is not necessary. It takes a lot of place. (it could only be an option)
-It could be nice to have a choice to select default directory.
-It's could be also an option to view or not last opened files
I have a little trouble. When I select a recent file from the list, I have this message:
<<Bug. Try Forget file then reopen again>>...but everything seems to be fine. And if I reopen, I have the same message.
Thanks for your answers.
Hi, its great to have more feedback from NTW users!
Thanks for your offer to translate. Currently I am not planning any multi-language option since the number of NTW users is still really small :'-(, plus I really have no idea how to go about implementing multi-language menus and popups elegantly, heheheh...
-It would be great to have the setting menu directly in the first page like other app.
I'm not sure what you mean... Are you talking about a row of options under the main editing window?
-The preview under the text file is not necessary. It takes a lot of place. (it could only be an option)
-It could be nice to have a choice to select default directory.
Yup, certainly doable. I'll try to implement them in the next version
-It's could be also an option to view or not last opened files
Do you mean to open the last opened file automatically simply by opening the NTW icon?
If so, I think I can implement that as well in the next version.
However, I will be very busy for the next 2 weeks in a horrible place called Clementi Camp, with no basic modern amenities, not even internet, sob sob sob :'-( , so any updates will have to be in April.
In the meantime, you can try creating a shortcut to your "default folder" on your home screen, then open your desired file with NTW directly from the folder.
About the bug you encountered, I have not managed to trigger it myself even though I coded the check for the trigger and I am using Galaxy S myself. It occurs due to issues when calculating the file percentage you are currently viewing. I would recommend that you first try a long press in the main file list menu to forget the file, then reopen it. If you still get the same message, then it would be best to avoid using GoTo, but otherwise, you should be able to continue your editing normally.
I will look into it when I'm back to civilization.
What functions are disabled in the Free Version?
Cool! This app's pretty sweet!
Just got out of Clementi camp! Thanks for your compliments and feedback! :')
The free version disables the ability to specify End-Of-Line chars, word wrap, font type, background textures, and buffer size (called "Chunk size" within NTW's controls). Text to Speech is also handicapped to single lines in the free version. The full version also allows up to 6 extra custom themes to be created.
I have no time to do any serious programming as I have to return to Clementi camp tomorrow, so any version updates you have suggested by will have to wait til next week earliest.
Just want to say this before I explode.
Multiple undo/redo at last!
In fact, there's even a sliding bar for you to easily rewind or fast forward all your changes.
It'll be available in the Android market within the next few hours!
Trial version gets a measly undo history of 1, just enough for "****! I accidentally deleted the whole paragraph!" situations.
Paid version gets undo history of 9999. In theory, I could make the history even longer, since the undo history only stores the specific characters that were changed/added, but if the user were to do a lot of pasting/deleting of long text segments, then the undo history may occupy the phone memory pretty fast, so lets not risk it.
Heheheheh!!! Always wanted to implement multiple undo/redo, but only recently figured out how to do so efficiently
v1.45
- Multiple undo/redo! Undo History bar allows easy rewinding or fast forwarding of your changes, maxed at 9999 steps.
"Reset chunk" replaces the original Undo/Redo menu option.
Clicking of "Reset chunk" is recorded in Undo history.
Note: Free version has Undo history of only 1 in addition to "Reset chunk".
- Improved File Browser
- Streamlined File List interface.
Long press to view the preview, file properties, "Forget" and "Share" options.
NTW v1.47 is out!
Basically, this update makes the search, goTo, and undo/redo operations much easier than before. It also makes much better use of the space at the top which was previously just showing the filename and current %.
- Implemented fast scroll thumbs for browser and NTW shelf .
- Icon toolbar for convenient undo/redo, goTo, search, load next/prev chunk. Long click of undo/redo buttons pop up the undo history bar. Click the % display to shwo the goTo dialog.
- Improved goTo function.
NTW v1.48 is out!
- Fast scroll thumb for the main text box! (Built from scratch, whew! The behavior of ListView's fast scroll thumb was really tough to emulate properly )
- Progress bar above icon bar to show you where is your currently loaded chunk.
- Search backwards in addition to searching forwards. Plus some tweaks to search behavior
yes, very nice app.. thanks a lot
been using this as my default app since the day you release it. thanks man!

Search Database From A Web Server

I want my app to have a search function but instead of searching locally, I want to search from the data on my web server and return the data in a JSON format. The good thing is, I know how to do this but I'm not sure how can I implement an activity with this kind of interface and behavior.
Legends are as follow: (Please see the mockup image that I attached below)
Black - Action Bar
Blue - Activity Container
Red - Searching (Search input and button here)
Green - List View (Fetched data from the web server)
Basically I want the user to input their search key and when they press the search button, a loading image will appear while the data are being fetched, when the fetching is completed I want the fetched data to appear on the list view on the same activity.
Thank you and have a good day!
clonedaccnt said:
I want my app to have a search function but instead of searching locally, I want to search from the data on my web server and return the data in a JSON format. The good thing is, I know how to do this but I'm not sure how can I implement an activity with this kind of interface and behavior.
Legends are as follow: (Please see the mockup image that I attached below)
Black - Action Bar
Blue - Activity Container
Red - Searching (Search input and button here)
Green - List View (Fetched data from the web server)
Basically I want the user to input their search key and when they press the search button, a loading image will appear while the data are being fetched, when the fetching is completed I want the fetched data to appear on the list view on the same activity.
Thank you and have a good day!
Click to expand...
Click to collapse
Your red searching layout can either be done manually using a horizontal LinearLayout with an ImageButton and an EditText, or, in my view far easier, with a SearchView in the ActionBar. Head over to this documentation page to set it up! You'll then get a call to onNewIntent with the search query and use that to update your ListView from the server.

Flyme OS 5.1.2.0G for MX5

Download: you can go to flymeos com to search, as can't post link here
Tips:
Downloading via mobile networks may incur additional charges. If possible,please download via Wi-Fi network.
To avoid loss of data & if required, please perform Flyme or relevant backups before upgrading.
To avoid bricking the phone, do not turn off or reboot the device while upgrading.
Attention:Flyme Account is removed from this version
[Home screen]
Floating notification:Notifications can be displayed in floating mode without interrupting operations.
Multi-task: Card-type multi-task lists are added and can be long pressed to lock an individual application.
Multi-screen mode:Based on the multi-task list, two applications can be displayed at the same time in multi-screen mode in an adjustable ratio (only some specific applications are supported).
Batch icon sorting:Icons can be selected and moved in batch mode to different pages or directorieson Home screen by long pressing Home screen and selecting Sorting Icons.
Shake to sort Homescreen: Icons on Home screen can be sorted rapidly by entering the Sort Icon mode and shaking the mobilephone.
[Lockscreen]
Music display on the locked screen: The cover and lyric of a song can be directly displayed on alocked screen.
Notification displayon the locked screen: In Settings> Notification and Status Bar, users can configure whether to display notifications on the locked screen and whether to light up the screen upon receipt of a notification.
[Notification bar]
Optimized layout:When the notification bar without unread notifications is dropped down, all switches are displayed on it by default; and when the notification bar with unread notifications is dropped down, more options the notifications can be viewed by pull down the zone.
Notification management: In Settings >Notification and status bar >Notifications management, users can configure the notification enablerand priority for each application.
Optimized: The GPS icon on the notification bar is updated.
Optimized: The brightness adjustment is optimized to solve slow brightening of the screenunder hard light.
Fixed: The Wi-Filist is displayed slowly occasionally when the little triangle of Wi-Fi On/Offis tapped.
Fixed: Bluetooth cannot be scanned in the Settings page after being scanned in the notification bar.
[Communications]
Floating notification: Incoming calls can be displayed as floating notifications.
Dial: The dial is designed as floating. By swiping the page, users can switch between contacts and call history.
Recording list:In Phone > Settings page, users can view recordings in Voice messages and Call recordings.
Dial switching: InPhone > Settings page, users can enable Switch dialer input method to switch the dialpad between T9 mode and full keyboard mode by tapping the bottom left keypad symbol on dialpad.
Incoming callmuting: Incoming calls can be muted by pressing the volume button.
Added: In the contact detail page, the avatar can be tapped to view the full-sized avatar.
Added: In the contact detail page, a Remove from blacklist functionis added.
Optimized: Callrecordings can be controlled via earphones controlling panel during playback. To play the nextrecording, double-click the panel; to play the previous recording, triple-click the earphone.
Optimized:Notifications for missed calls are adjusted to the highest priority by default.
Optimized: Incall history, Rejected and Rings X times are displayed in red.
Fixed: The mobilephone may be mistakenly touched upon receipt of incoming calls.
[Messages]
Floating notifications: Quick replies to SMSs are available in floating notifications.
SMS deletion: SMS deletion buttons are added to the SMS notifications.
Optimized: The location where the page for selecting scheduled SMSs is displayed is adjusted and a cancel button is added.
Optimized: The entry button for the contact detail page is added to the top right of the SMS session page.
Optimized: Messages setting options are adjusted, with Deliveryreport and Display MMS theme enabled.
Adjusted: UnreadSMSs are not topped and the quantity of unread SMSs is displayed on the tab.
Fixedccasionally no response is received when the SMS session content is long pressed.
Fixed: Some numbers fail to match the bottom bar menu.
[File Explorer]
Capacity display:A phone storage area in the home page of Home screen can be tapped to quickly redirect to the storage detail page.
Optimized: The Vault is hidden in the storage disk and always displayed in My Favorites.
Optimized: The sort order of document files in the case of sorting by file type is optimized.
Optimized: File name suffixes are added to icons of documents and packages.
Optimized: The alphabetical index bar is added to the right in the case of sorting by file name.
Fixed: Storage capacity is displayed as merely an integral when the phone is connected to a device with a capacity of over 1TB via OTG.
Fixed: The progress bar does not appear when an RAR package containing multiple files is extracted.
Design: The directory structure is optimized and an entry to file classifications isprovided.
Remote management: The remote management via FTP function is added, so that files inthe mobile phone can be managed directly on a computer in the same Wi-Fi network without connection using a data cable.
Hidden directoryor path: Users can specify whether to hide a directory or path in File > Setting.
Display ofstorage capacity: The remaining storage capacity is displayed on the home page of File Explorer.
Display: Detailed file names can be viewed by adjusting the file name display length.
[Settings]
Brand new design:The Setting page is adjusted in the aspects of interaction and functional grouping.
Volume classification: Volume can be managed by classification in Settings > Sound and Vibration > Volume.
Network sharing:A Wi-Fi network can be shared via QR code by tapping a Wi-Fi hotspot in Settings > WLAN.
Preferred network: A network can be connected preferably by tapping a Wi-Fi hotspot in Settings > WLAN
Battery management: The power consumption order is optimized, so that software and hardware power consumption is displayed separately.
Default application: Default applications can be specified for specific categories inSettings > Apps > Default apps.
Simulated colors:The color space can be simulated in color blindness mode or in amblyopia modein Settings >Accessibility > Developer options > Simulated color space.
Battery management: The option ‘History details’ is added to the power consumption page and specificusage can be viewed by time period and status.
Optimizedptions related to filtering notifications on the locked screen in visitor modeare optimized.
Optimized:Settings can be performedin multi-screen mode.
[Security]
Permission management: In Permissions > Disable mutual application start-up can be enabled to trackmutual application awaking behaviors and cut off the awaking path with one tap.
Call and SMSblocking: The call and SMS blocking function is moved to the security centerand unknown numbers and hidden numbers can be blocked.
Cache clearing whitelist: App caches, redundant APKs, and app residuals can be whitelisted toprevent unexpected removal.
Scheduled clearing: The Scan and clear option is added to scheduled cleaning for convenience.
Traffic information in the notification bar: The Display data usage in the notification bar switch is added in Data > Settings.
Phone acceleration: Apps running on the background can be disabled to accelerate theoperating speed of the mobile phone.
Quick scan and one-key optimization: The health status of the mobile phone can be known upon entering the interface without waiting. All problems can be fixed with one key.
Appanti-counterfeiting: Fake apps can be detected to prevent potential risks.
Self-start-upmanagement: The function is upgraded and its entry is moved to Auto-launch > Mutual start-up. The permission of mutual awaking can be specified for each application freely and the awaking history can be viewed visually, preventing one application for all.
Desktop shortcut:Home screen Shortcut management is added to permission management to prevent forcible generation of desktop shortcuts for third-party apps.
[Toolkit]
The Toolkit applicationis added.
Flashlight: Three-gear brightness adjustment and the SOS mode are supported.
Mirror: Normal,distorted, rotated and symmetric mirror effects are available.
Compassrientations and longitudes and latitudes can be displayed.
Level meter: The levelness can be viewed visually.
Ruler: Measuring in cmand inch is supported.
Magnifier: The torch mode is supported, so that the magnifier can be used at night.
Shortcut:Frequently used tools can be added as desktop shortcuts.
Added: The deletefunction is added to the share interface of mirror photo shooting.
Optimized: Mirrorphoto shooting is not processed as mirroring by default.
Optimized: Thecopy for buttons in the compass correction page is modified.
[Browser]
Home page: Abrand new design is applied in the home page.
Window: The layout of tabs in the window is optimized.
Tool bar: The bottom tool bar is added to allow more visualized operations.
[Video]
Floating windowlayback in floating windows is supported in video apps, perfectly achieving Picturein Picture. Seamless switching between floating and full-screen playback issupported without buffering.
[Camera]
GIF shooting: The GIF shooting mode is supported, so that users can easily create emotion packages.
Time stamp: Thetimestamp switch is added to Camera > Settings.
Flashlight: Historical flashlight settings can be remembered to avoid repeated setting.
Manual modeptions for saturation, contrast and white balance are added.
[Gallery]
Photo favoriteshotos can be added to the Favorites directory for quick viewing.
Custom cover:Users can replace the cover with another picture by long pressing the cover ofa directory.
Small-sized photofiltering: The switch for clearing small-sized photos is added to Gallery >Settings to make the gallery tidier.
Directory hidingirectories users do not want to display can be hidden directly by long pressing the directories.
Week view of photos: Switching between the month view and the week view can be performed conveniently by pinching to zoom.
Photo editing:The photo editing function is optimized with filter and mosaic adjusting functions.
Wallpaper setting: The wallpaper setting function is optimized to support custom the fuzzy level and overlap patterns.
[Calculator]
Exchange rate search: Exchange rates can be searched for directly by pressing country names.
Unit operationperations can be directly performed between different units.
Capitalization:Calculation results can be converted directly into uppercase by long pressingthem.
Added: Thousands separators are added.
Optimized:Formulas are displayed right above calculation results in the standard and scientific page.
Optimized: The display effects of texts in input boxes are adjusted.
[Clock]
Batch deletion:Clocks and the world clock can be deleted in batch mode by long pressing them.
Time scale: The timer can be adjusted to the time scale pattern.
[Memos]
Theme switching:The theme switching function is added and four themes with different plates and fonts are embedded.
Memo searching:The memo searching function is added for ease of searching for memos.
Text sharing: The function of sharing memos in text mode is added.
Doodle: A drawing board can be inserted directly for doodling.
Automatic numbering: Numbers can be created automatically for memos during memo editing.
Recording video:Recording video can be selected during insertion of recording.
Desktop plug-inesktop plug-ins are added to allow users to quickly create recording andphotos and display all memos.
[Painter]
Color: Morepreset colors are added.
[Calendar]
Floating ball ofevent: A floating ball of event is added to enable quick creation of new events.
Interval display:The interval between the current date and the target date can be viewed quickly from the top left of the calendar by tapping any target date.
Notice: The constant display of notices on the notification bar can be canceled by swiping them.
Account setting:The functions of adding accounts by email type and automatically configuring account information are added. The entry to Google accounts is added.
Gesture to zoom:Theme cards support gestures to zoom. Users can view details of the theme cardsmore conveniently.
Attachment: The attachment management function is added and the display location of attachmentin emails is optimized.
Search: The searching speed is greatly improved and key words are highlighted.
[Multi-task]
Optimized: Screenshots displayed in some task cards arestretched.
[Music]
Optimized: The playback interface is re-designed, with the download button displayed visually.
Optimized: The color preloading function is optimized, making page display smoother andlayered.
Optimized: The option for adding to favorites is added to display more visually upon tapping the playing song list.
Optimized:Margins of scroll bars in all pages are adapted, making the overall view more elegant and pleasant.
[WLAN]
Optimized: The plaintext display button is added near the Wi-Fi password input box.
Optimized: Wi-Fi fails to be enabled occasionally.
[Input method]
Default input method: The Fleshy input method is enabled by default, so that Hindi can be inputted directly.

Categories

Resources