Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-5058] Android: Overriding Android device Search button behavior

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionCannot Reproduce
Resolution Date2013-04-26T08:54:26.000+0000
Affected Version/sRelease 1.7.1, Release 2.1.0
Fix Version/s2013 Sprint 13 API, 2013 Sprint 13
ComponentsAndroid
Labelsapi
ReporterFrancisco Antonio Duran Ramirez
Assigneejithinpv
Created2011-08-19T13:52:13.000+0000
Updated2017-03-21T22:21:38.000+0000

Description

Bug

Problem

When the activity indicator is running, and you press the search button of the mobile the activity indicator stops.

Reproducible steps:

1.Run the code below.

Expected behavior

Customer want to disable the search button when the activity indicator is running, or another solution to solve the problem.

Sample Code:

var win = Ti.UI.createWindow({ navBarHidden: true, layout: 'vertical' });
win.add(Ti.UI.createLabel({ text: '1. Leave this app and "Share" some text.', top: 20 }));
var button = Ti.UI.createButton({ title: '2. Touch me to crash the application.', top: 20 });

button.addEventListener('click', function() 
{
    
    

    var x=Ti.UI.createActivityIndicator(
    	{
        	message: '3. This alert should crash the app.'
    	});
    	
    	x.show();
    
    	setTimeout(function()
    	{
    		x.hide();	
    	},6000);
    
});

win.addEventListener('android:search', function() {
Ti.API.info('You clicked search button')


});


    

win.add(button);
win.open();

Helpdesk

APP-357876

Comments

  1. Shahid Latif 2011-08-20

    Adding two more thing. This shows following behavior too 1) when i send the http request to the server it will also stop that request and we are in blank situation. 2) it creates two instance of the application
  2. Junaid Younus 2012-07-12

    Tested on a Samsung Galaxy S2 with 2.1GA, issue still exists.
  3. jithinpv 2013-04-26

    cannot reproduce Tested with Titanium Studio, build: 3.0.1.201212181159 Titanium SDK version: 3.1.0 Android Emulator: Android SDK version: 2.2
  4. Lee Morris 2017-03-21

    Closing ticket as the issue cannot be reproduced and due to the above comments.

JSON Source