Quantcast
Channel: Appcelerator Developer Center Q&A Unanswered Questions 20
Viewing all articles
Browse latest Browse all 8068

Search bar focus on android

$
0
0

Hi the,

I have a search bar that is separated from tableview. Problem i have now is that the search bar is focused without the keyboard when I pressed back button after start activity. I use start activity to open a file such as video or pdf and when I press back button, the search bar automatically focused(without keyboard, just the blue line in the search bar).

I have tried .hide and then .show but doesn't work.

Here is my start activity code:

Ti.Android.currentActivity.startActivity(Ti.Android.createIntent({
                action: Ti.Android.ACTION_VIEW,
                type: ext, //'application/pdf',//video/*
                data: magfile.nativePath
            }));
This is on Android and am using 3.1.1.

Viewing all articles
Browse latest Browse all 8068

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>