ankush1432 / gesture-search-api-demo

Automatically exported from code.google.com/p/gesture-search-api-demo
0 stars 0 forks source link

Gesture Search does a force close on invokcation from another application #1

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
I am invoking Gesture Search with the following code taken from GestureApiDemo

      @Override
      public boolean onOptionsItemSelected(MenuItem item) {
        switch (item.getItemId()) {
          case GESTURE_SEARCH_ID:
            try {
              Intent intent = new Intent();
              intent.setAction("com.google.android.apps.gesturesearch.SEARCH");
              intent.setData(DrugDBSQLFormat.SEARCH_CONTENT_URI);
              intent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);
              intent.putExtra(SHOW_MODE, SHOW_ALL);
              intent.putExtra(THEME, THEME_LIGHT);

              startActivityForResult(intent, GESTURE_SEARCH_ID);
            } catch (ActivityNotFoundException e) {
                Toast t = Toast.makeText(this, "Google Gesture Search application needs to be installed", Toast.LENGTH_LONG);
                t.show();

            }
            break;

I have provided a contentProvider of my own. 

What is the expected output? What do you see instead?

Once the GestureSearch is launched (from menu option), it does a force cose 
with few seconds of delay. Nothing comes on screen before force close. Note 
that the Gesture Search application itself when laucnhed directly (and not 
through application) works fine. I do not see a stack dump also in logcat 
(debugging on an actual android phone)

What version of the product are you using? On what operating system?
Gesture search 1.4.1 and Android 2.2.1

Please provide any additional information below.

Original issue reported on code.google.com by sgu...@anantadvantages.com on 23 Nov 2011 at 6:39

GoogleCodeExporter commented 8 years ago
I have the same issue on HTC FLYER.
Example code is working well on SONY XPERIA Mini but not working on HTC FLYER.

Anyone knows how to solve this issue ?

vlatko.vukovic@gmail.com

Original comment by vlatko.v...@gmail.com on 10 May 2013 at 3:51

GoogleCodeExporter commented 8 years ago
I am also facing the same issue..m trying it on samsung grand duos??

Any solutions for this...also how can we get the character drawn...any links 
for that?

TIA
mohitcscs@gmail.com

Original comment by mohitc...@gmail.com on 31 Jul 2013 at 1:50