[android-developers] Re: TextView inner shadow

2010-12-18 Thread Stefan Klumpp
I'm also interested in that.

Anyone?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Android: DeadObjectException for InputMethodService (SoftKeyboard API sample)

2010-11-03 Thread Stefan Klumpp
I'm playing around with a modified version of the SoftKeyboard sample
and "sometimes" get a `DeadObjectException` when using the fullscreen
mode (e.g. when orientation == landscape). I can still enter text, but
the `ExtractEditText` doesn't update and I get the logcat output
below, whenever I hit a new key.

When I switch to portrait (no fullscreen mode) I can see the entered
characters. When I then go back to landscape (fullscreen mode) the
`ExtractEditText` is updated with the characters. However, when I then
try to enter new character the problem repeats.

Also, when in fullscreen mode and I change the cursor position it does
change it in the `ExtractEditText` but doesn't really change the
position for my `InputConnection`. I believe this problem/bug is
already in the SoftKeyboard API sample, since I didn't modify anything
related to that, however, so far I wasn't able to figure out where.

Maybe someone can point me in the right direction?



13349 InputMethodManager  W  IME died:
com.playground.keyboard/.MyInputMethod
13349 InputMethodManager  W  android.os.DeadObjectException
13349 InputMethodManager  W at
android.os.BinderProxy.transact(Native Method)
13349 InputMethodManager  W at
com.android.internal.view.IInputMethodSession$Stub
$Proxy.updateSelection(IInputMethodSession.java:227)
13349 InputMethodManager  W at
android.view.inputmethod.InputMethodManager.updateSelection(InputMethodManager.java:
1190)
13349 InputMethodManager  W at
android.widget.TextView.onDraw(TextView.java:4064)
13349 InputMethodManager  W at
android.view.View.draw(View.java:6591)
13349 InputMethodManager  W at
android.view.ViewGroup.drawChild(ViewGroup.java:1531)
13349 InputMethodManager  W at
android.view.ViewGroup.dispatchDraw(ViewGroup.java:1258)
13349 InputMethodManager  W at
android.view.ViewGroup.drawChild(ViewGroup.java:1529)
13349 InputMethodManager  W at
android.view.ViewGroup.dispatchDraw(ViewGroup.java:1258)
13349 InputMethodManager  W at
android.view.View.draw(View.java:6697)
13349 InputMethodManager  W at
android.widget.FrameLayout.draw(FrameLayout.java:352)
13349 InputMethodManager  W at
android.view.ViewGroup.drawChild(ViewGroup.java:1531)
13349 InputMethodManager  W at
android.view.ViewGroup.dispatchDraw(ViewGroup.java:1258)
13349 InputMethodManager  W at
android.view.View.draw(View.java:6594)
13349 InputMethodManager  W at
android.view.ViewGroup.drawChild(ViewGroup.java:1531)
13349 InputMethodManager  W at
android.view.ViewGroup.dispatchDraw(ViewGroup.java:1258)
13349 InputMethodManager  W at
android.view.View.draw(View.java:6594)
13349 InputMethodManager  W at
android.widget.FrameLayout.draw(FrameLayout.java:352)
13349 InputMethodManager  W at
android.view.ViewGroup.drawChild(ViewGroup.java:1531)
13349 InputMethodManager  W at
android.view.ViewGroup.dispatchDraw(ViewGroup.java:1258)
13349 InputMethodManager  W at
android.view.ViewGroup.drawChild(ViewGroup.java:1529)
13349 InputMethodManager  W at
android.view.ViewGroup.dispatchDraw(ViewGroup.java:1258)
13349 InputMethodManager  W at
android.view.View.draw(View.java:6594)
13349 InputMethodManager  W at
android.widget.FrameLayout.draw(FrameLayout.java:352)
13349 InputMethodManager  W at
com.android.internal.policy.impl.PhoneWindow
$DecorView.draw(PhoneWindow.java:1884)
13349 InputMethodManager  W at
android.view.ViewRoot.draw(ViewRoot.java:1349)
13349 InputMethodManager  W at
android.view.ViewRoot.performTraversals(ViewRoot.java:1114)
13349 InputMethodManager  W at
android.view.ViewRoot.handleMessage(ViewRoot.java:1633)
13349 InputMethodManager  W at
android.os.Handler.dispatchMessage(Handler.java:99)
13349 InputMethodManager  W at
android.os.Looper.loop(Looper.java:123)
13349 InputMethodManager  W at
android.app.ActivityThread.main(ActivityThread.java:4363)
13349 InputMethodManager  W at
java.lang.reflect.Method.invokeNative(Native Method)
13349 InputMethodManager  W at
java.lang.reflect.Method.invoke(Method.java:521)
13349 InputMethodManager  W at
com.android.internal.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit.java:862)
13349 InputMethodManager  W at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:620)
13349 InputMethodManager  W at
dalvik.system.NativeStart.main(Native Method)


FYI: I also posted the question on StackOverflow:
http://stackoverflow.com/questions/4086415/android-deadobjectexception-for-inputmethodservice-softkeyboard-api-sample

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@

[android-developers] Resources, examples or tutorials to develop a custom fullscreen IME

2010-08-25 Thread Stefan Klumpp
I try to find resources on how to develop a fullscreen IME (one that
covers the whole screen size) for Android. Someone asked the same
question here: http://stackoverflow.com/questions/2749964 but no
response so far.

Anyone here can help?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Android IME: how to show a pop-up dialog?

2010-08-17 Thread Stefan Klumpp
I already asked this question on StackOverflow, but wasn't able to
receive a helpful answer by now. I thought here on the Google Group
might be a few more advanced Android developers who would be able to
point me in the right direction.

A detailed description of my question is here:
http://stackoverflow.com/questions/3494476/android-ime-how-to-show-a-pop-up-dialog

Thanks

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Google Analytics for Android: Dispatcher thinks it finished, but there were 65 failed events

2010-03-19 Thread Stefan Klumpp
There is also a discussion going on here:
http://stackoverflow.com/questions/1607822/android-what-does-this-google-analytics-dispatcher-warning-mean

Unfortunately with no solution so far.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

To unsubscribe from this group, send email to 
android-developers+unsubscribegooglegroups.com or reply to this email with the 
words "REMOVE ME" as the subject.


[android-developers] Google Analytics for Android: Dispatcher thinks it finished, but there were 65 failed events

2010-03-18 Thread Stefan Klumpp
I get this strange error message: W/googleanalytics(29930): Dispatcher
thinks it finished, but there were 65 failed events

Anyone an idea where this comes from and what the solution/workaround
is?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: singleTask + activity stack not preserved?

2010-03-10 Thread Stefan Klumpp
> + If there is no intent_filter listed then even with
> launchMode=singleTask re-launch from Home returns to the last activity
> in the task.

Okay if removing all  entries in the manifest is the
solution (or temp. workaround) how do then start your application?
Don't you need at least these entries:





-Stefan

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Nexus One - Geocoder causes IOException - works perfectly with other devices and emulator

2010-01-22 Thread Stefan Klumpp
Okay. The weird thing is now: sometimes it works. Sometimes it
doesn't. Anyone a clue?

On Jan 18, 5:20 pm, Stefan Klumpp  wrote:
> The code below works perfectly for real devices running on 1.5, 1.6
> and 2.0 as well as the emulator running on 2.1. However, executing it
> on the Nexus One (running 2.1) raises an IOException:
>
> java.io.IOException: Unable to parse response from server
> at android.location.Geocoder.getFromLocation(Geocoder.java:124)
>
> That's the code snippet where it happens:
>
> Double myLatitude = AppObject.myLocation.getLatitude();
> Double myLongitude = AppObject.myLocation.getLongitude();
> Geocoder geocoder = new Geocoder(MainActivity.this);
> java.util.List addressList;
> try {
>         addressList = geocoder.getFromLocation(myLatitude, myLongitude, 5);
>         if(addressList!=null && addressList.size()>0) {
>                 currentAddress = new String();
>                 currentAddress = addressList.get(0).getAddressLine(0) + ", "
>                 + addressList.get(0).getAddressLine(1) + ", "
>                 + addressList.get(0).getAddressLine(2);
>
>         }
>         return true;
>
> } catch (IOException e) {
>
>         e.printStackTrace();
>         return false;
>
> }
>
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Android 2.1 bug: uses res/layout-v3 instead of res/layout

2010-01-22 Thread Stefan Klumpp
Thanks for your response Lance.

> The documentation states that version qualifiers are for that version
> and higher, not just that version:
Yes, I mixed that up. Is corrected now.

> Although there are bugs. Android 2.0.0 matches only -v6, for example.
Yes, I just figured that out as well by accidentally using -v6 instead
of -v5 ;-)

-Stefan

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Android 2.1 bug: uses res/layout-v3 instead of res/layout

2010-01-21 Thread Stefan Klumpp
In addition to the general res/layout folder I have a res/layout-v3
folder for backward compatibility with Android 1.5, which has problems
with some RelativeLayouts.

It works perfectly with all phones and emulator versions tested so
far. Except of 2.1 (emulator and Nexus One). They choose to display
the Android 1.5 layout (res/layout-v3) instead of the default res/
layout.

Can anyone else confirm that? Is this an Android OS bug? If so, where
is the best place to submit the bug report?

Thanks
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Nexus One - Geocoder causes IOException - works perfectly with other devices and emulator

2010-01-18 Thread Stefan Klumpp
The code below works perfectly for real devices running on 1.5, 1.6
and 2.0 as well as the emulator running on 2.1. However, executing it
on the Nexus One (running 2.1) raises an IOException:

java.io.IOException: Unable to parse response from server
at android.location.Geocoder.getFromLocation(Geocoder.java:124)

That's the code snippet where it happens:

Double myLatitude = AppObject.myLocation.getLatitude();
Double myLongitude = AppObject.myLocation.getLongitude();
Geocoder geocoder = new Geocoder(MainActivity.this);
java.util.List addressList;
try {
addressList = geocoder.getFromLocation(myLatitude, myLongitude, 5);
if(addressList!=null && addressList.size()>0) {
currentAddress = new String();
currentAddress = addressList.get(0).getAddressLine(0) + ", "
+ addressList.get(0).getAddressLine(1) + ", "
+ addressList.get(0).getAddressLine(2);

}
return true;

} catch (IOException e) {
e.printStackTrace();
return false;
}
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Can't access Motorola Milestone on Ubuntu 9.10 via adb (HTC Magic works perfectly fine)

2010-01-12 Thread Stefan Klumpp
I've two phones, the HTC Magic and since today also the Motorola
Milestone.

While the Magic works perfectly, I'm not able to access the Milestone
via USB (adb devices).

Here are my log outputs and settings for both:

## HTC Magic 
lsusb:
Bus 001 Device 009: ID 0bb4:0c02 High Tech Computer Corp.

/etc/udev/rules.d/51-android.rules:
SUBSYSTEM=="usb", SYSFS{idVendor}=="0bb4", MODE="0666"

/var/log/messages
Jan 12 20:05:44 ubuntu kernel: [  764.343311] scsi 9:0:0:0: Direct-
Access HTC  Android Phone0100 PQ: 0 ANSI: 2
Jan 12 20:05:44 ubuntu kernel: [  764.343826] sd 9:0:0:0: Attached
scsi generic sg2 type 0
Jan 12 20:05:44 ubuntu kernel: [  764.353414] sd 9:0:0:0: [sdb]
Attached SCSI removable disk


## Motorola Milestone 
lsusb:
Bus 001 Device 010: ID 22b8:41da Motorola PCS

/etc/udev/rules.d/51-android.rules:
SUBSYSTEM=="usb", SYSFS{idVendor}=="22b8", MODE="0666"

/var/log/messages
Jan 12 20:10:09 ubuntu kernel: [ 1028.580017] usb 1-3: new high speed
USB device using ehci_hcd and address 11
Jan 12 20:10:09 ubuntu kernel: [ 1028.731068] usb 1-3: configuration
#1 chosen from 1 choice


## Notes 
 * USB Debugging is enabled on both phones
 * After changing the udev rules I did a "service udev reload" and
"adb kill-server" -> didn't help
 * I even tried to restart the whole machine. Without success.

Anyone encountered a similar problem and had a solution?
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: How to downgrade T-Mobile G1 from Donut to Cupcake?

2010-01-05 Thread Stefan Klumpp
Most likely you will find the information you need on: http://theunlockr.com/

On Dec 18 2009, 5:03 pm, Greivin Lopez 
wrote:
> Hi,
>
> I need to supportAndroid1.5 (Cupcake) for my application but I don't
> have any 1.5 device.  I currently have a Motorola Droid with 2.0.1 and
> the T-Mobile G1 (HTC Dream) with 1.6 (Donut).
>
> What I want to do is todowngrademy G1 to the previous official OTA
> release of Cupcake.  I have no experience in rooting anAndroid
> device, so I would appreciate if someone could give me a step-by-step
> guide on how to accomplish this?
>
> Thank you in advance.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: ERROR: Application requires API version 6. Device API version is 5 (Android 2.0)

2010-01-04 Thread Stefan Klumpp
Thanks. That helped.

On Jan 4, 3:07 pm, Lance Nanek  wrote:
> > Is there anything else where
> > I have to make the change API 4 -> 3 other than the project
> > properties?
>
> Yes, the uses-sdk element in 
> AndroidManifest.xml:http://developer.android.com/intl/zh-TW/guide/topics/manifest/uses-sd...
>
> Changing the build target in the project properties doesn't
> automatically update this.
>
> On Jan 4, 7:47 am, Stefan Klumpp  wrote:
>
> > I've a similar problem:
>
> > [2010-01-04 13:44:18 - Tato]ERROR: Application requires API version 4.
> > Device API version is 3 (Android 1.5).
> > [2010-01-04 13:44:18 - Tato]Launch canceled!
>
> > I started my application with API version 4, but then changed it to
> > API version 3 (via project properties -> Android). Eclipse doesn't
> > give me any other errors other than that. Is there anything else where
> > I have to make the change API 4 -> 3 other than the project
> > properties?
>
> > Thanks
>
> > On Dec 7 2009, 11:54 am, "Dexter's Brain" 
> > wrote:
>
> > > Hi,
>
> > > Your project should be compiled(API Version) with atleast equal to the
> > > Device API version. Else, you will not be able to install it.
>
> > > Suppose you have a device with version 4, then an apk to run on this
> > > device, it can be 1,2,3,4 but not greater than 4.
>
> > > Just go to your project properties, and change the application API.
>
> > > Thanks,
> > > Kumar Bibek
>
> > >http://tech-droid.blogspot.com
>
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: ERROR: Application requires API version 6. Device API version is 5 (Android 2.0)

2010-01-04 Thread Stefan Klumpp
I've a similar problem:

[2010-01-04 13:44:18 - Tato]ERROR: Application requires API version 4.
Device API version is 3 (Android 1.5).
[2010-01-04 13:44:18 - Tato]Launch canceled!

I started my application with API version 4, but then changed it to
API version 3 (via project properties -> Android). Eclipse doesn't
give me any other errors other than that. Is there anything else where
I have to make the change API 4 -> 3 other than the project
properties?

Thanks

On Dec 7 2009, 11:54 am, "Dexter's Brain" 
wrote:
> Hi,
>
> Your project should be compiled(API Version) with atleast equal to the
> Device API version. Else, you will not be able to install it.
>
> Suppose you have a device with version 4, then an apk to run on this
> device, it can be 1,2,3,4 but not greater than 4.
>
> Just go to your project properties, and change the application API.
>
> Thanks,
> Kumar Bibek
>
> http://tech-droid.blogspot.com

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Forward search queries to one single activity that handles search

2009-12-15 Thread Stefan Klumpp
I just solved it. It was just a stupid typo. The solution is here on
Stackoverflow.com: http://stackoverflow.com/questions/1906964/

On Dec 15, 6:18 pm, MrChaz  wrote:
> Take a look at the SearchManager 
> stuff:http://developer.android.com/reference/android/app/SearchManager.html
>
> From what I can see you only want one activity that responds to the
> search, the others need to be able to initiate (I think) what would be
> a 'local search'
> When you start a search the system it always going to create an
> instance of those classes which have the filter so they can process
> they search intent.
>
> On Dec 15, 2:38 pm, Stefan Klumpp  wrote:
>
> > Your assumption is partly right.
>
> > I want all activities to accept search queries (via the search button
> > on the phone), although I want only one single activity to handle the
> > search (via a web server) and display the results.
>
> > The problem is now, to make all activities accept search queries.
> > Therefor I have to add the  to all activities,
> > otherwise pressing the search button will only show up the default
> > Google Search, but not my custom search.
>
> > But having the  in each activity causes to create a new
> > instance (at least onCreate() is called) of that activity, whenever I
> > enter a String and start the search. And that is what I'd like to
> > avoid.
>
> > My goal is to have all activities accept search input (meaning
> > pressing the search button opens up the search box), but then as soon
> > as the search gets started it should be handled by the one single
> > search activity.
>
> > I hope that helps to better understand my problem.
>
> > On Dec 15, 1:50 pm, MrChaz  wrote:
>
> > > As I understand it you only want the intent-filter in the activity
> > > that does the searching.  The intent filter says the to platform "hey
> > > I can do this"
> > > Then in the activities you want to use the search you can
> > > startActivityForResult()
>
> > > On Dec 15, 12:11 pm, Stefan Klumpp  wrote:
>
> > > >  have an activity handling search (ACTIVITY_1), which works perfectly
> > > > when I use the search (via SEARCH button on the phone) within/from
> > > > this activity.
>
> > > > However, when I use search from another activity (ACTIVITY_2..x) by
> > > > implementing onNewIntent and forward the query string to my
> > > > Search_Activity.class (ACTIVITY_1) it always pauses ACTIVITY_2 first
> > > > and then goes to onCreate() of ACTIVITY_2.
>
> > > > @Override
> > > > protected void onNewIntent(Intent intent) {
> > > >     Log.i(TAG, "onNewIntent()");
>
> > > >     if (Intent.ACTION_SEARCH.equals(intent.getAction())) {
> > > >         Log.i(TAG, "= Intent: ACTION_SEARCH =");
> > > >         Intent myIntent = new Intent(getBaseContext(),
> > > > Search_Activity.class);
> > > >         myIntent.setAction(Intent.ACTION_SEARCH);
> > > >         myIntent.putExtra(SearchManager.QUERY, intent.getStringExtra
> > > > (SearchManager.QUERY));
> > > >         startActivity(myIntent);
> > > >     }
>
> > > > }
>
> > > >     * Why does it recreate my ACTIVITY_2 when it is already there and
> > > > doesn't go to onNewIntent directly?
> > > >     * Is there another way I can forward search queries directly to
> > > > ACTIVITY_1? For example via a setting in the Manifest.xml
> > > >     * Is it possible to generally forward all search queries
> > > > automatically to ACTIVITY_1 without even implementing onNewIntent in
> > > > all the other activities?
>
> > > > Currently I have to put an  in every single activity to
> > > > "activate" my custom search there and forward the query then to the
> > > > activity that handles search via the onNewIntent (as shown above).
>
> > > >  > > >     android:theme="@style/MyTheme">
> > > >     
> > > >         
> > > >         
> > > >     
> > > >      > > >         android:resource="@xml/searchable" />
> > > > 
>
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Forward search queries to one single activity that handles search

2009-12-15 Thread Stefan Klumpp
Your assumption is partly right.

I want all activities to accept search queries (via the search button
on the phone), although I want only one single activity to handle the
search (via a web server) and display the results.

The problem is now, to make all activities accept search queries.
Therefor I have to add the  to all activities,
otherwise pressing the search button will only show up the default
Google Search, but not my custom search.

But having the  in each activity causes to create a new
instance (at least onCreate() is called) of that activity, whenever I
enter a String and start the search. And that is what I'd like to
avoid.

My goal is to have all activities accept search input (meaning
pressing the search button opens up the search box), but then as soon
as the search gets started it should be handled by the one single
search activity.

I hope that helps to better understand my problem.

On Dec 15, 1:50 pm, MrChaz  wrote:
> As I understand it you only want the intent-filter in the activity
> that does the searching.  The intent filter says the to platform "hey
> I can do this"
> Then in the activities you want to use the search you can
> startActivityForResult()
>
> On Dec 15, 12:11 pm, Stefan Klumpp  wrote:
>
> >  have an activity handling search (ACTIVITY_1), which works perfectly
> > when I use the search (via SEARCH button on the phone) within/from
> > this activity.
>
> > However, when I use search from another activity (ACTIVITY_2..x) by
> > implementing onNewIntent and forward the query string to my
> > Search_Activity.class (ACTIVITY_1) it always pauses ACTIVITY_2 first
> > and then goes to onCreate() of ACTIVITY_2.
>
> > @Override
> > protected void onNewIntent(Intent intent) {
> >     Log.i(TAG, "onNewIntent()");
>
> >     if (Intent.ACTION_SEARCH.equals(intent.getAction())) {
> >         Log.i(TAG, "= Intent: ACTION_SEARCH =");
> >         Intent myIntent = new Intent(getBaseContext(),
> > Search_Activity.class);
> >         myIntent.setAction(Intent.ACTION_SEARCH);
> >         myIntent.putExtra(SearchManager.QUERY, intent.getStringExtra
> > (SearchManager.QUERY));
> >         startActivity(myIntent);
> >     }
>
> > }
>
> >     * Why does it recreate my ACTIVITY_2 when it is already there and
> > doesn't go to onNewIntent directly?
> >     * Is there another way I can forward search queries directly to
> > ACTIVITY_1? For example via a setting in the Manifest.xml
> >     * Is it possible to generally forward all search queries
> > automatically to ACTIVITY_1 without even implementing onNewIntent in
> > all the other activities?
>
> > Currently I have to put an  in every single activity to
> > "activate" my custom search there and forward the query then to the
> > activity that handles search via the onNewIntent (as shown above).
>
> >  >     android:theme="@style/MyTheme">
> >     
> >         
> >         
> >     
> >      >         android:resource="@xml/searchable" />
> > 
>
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Forward search queries to one single activity that handles search

2009-12-15 Thread Stefan Klumpp
 have an activity handling search (ACTIVITY_1), which works perfectly
when I use the search (via SEARCH button on the phone) within/from
this activity.

However, when I use search from another activity (ACTIVITY_2..x) by
implementing onNewIntent and forward the query string to my
Search_Activity.class (ACTIVITY_1) it always pauses ACTIVITY_2 first
and then goes to onCreate() of ACTIVITY_2.

@Override
protected void onNewIntent(Intent intent) {
Log.i(TAG, "onNewIntent()");

if (Intent.ACTION_SEARCH.equals(intent.getAction())) {
Log.i(TAG, "= Intent: ACTION_SEARCH =");
Intent myIntent = new Intent(getBaseContext(),
Search_Activity.class);
myIntent.setAction(Intent.ACTION_SEARCH);
myIntent.putExtra(SearchManager.QUERY, intent.getStringExtra
(SearchManager.QUERY));
startActivity(myIntent);
}

}


* Why does it recreate my ACTIVITY_2 when it is already there and
doesn't go to onNewIntent directly?
* Is there another way I can forward search queries directly to
ACTIVITY_1? For example via a setting in the Manifest.xml
* Is it possible to generally forward all search queries
automatically to ACTIVITY_1 without even implementing onNewIntent in
all the other activities?

Currently I have to put an  in every single activity to
"activate" my custom search there and forward the query then to the
activity that handles search via the onNewIntent (as shown above).









-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Making search available throughout the whole application

2009-11-24 Thread Stefan Klumpp
Right now I'm adding:


  
  




to every single  in the AndroidManifest.xml, receive the
Intent in each activity and forward the search string to one singleTop
activity that actually performs the search (via HTTP/JSON) and
displays the results in a list.

I'm wondering if there's a way how I can set-up the
AndroidManifest.xml, so that search is activated in each activity
within my application, but the search string will get forwarded from
Android's search box directly to my singleTop SearchResults_Activity
instead of going the way through validating events in each activity
and then forwarding the search string.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: BitmapFactory: decoder->decode returned false

2009-11-24 Thread Stefan Klumpp
I've done more testing and tried out different stuff. I've posted a
detailed description here:
http://stackoverflow.com/questions/1630258/android-bitmapfactory-decoder-decode-returned-false

However, still no perfect solution at this point.

On Nov 24, 11:02 am, Stefan Klumpp  wrote:
> Still no solution for that, but it seems that other developers have
> similar problems. The strange thing is that exactly the same image
> usually doesn't work, but sometimes it actually does. No idea why
> though.
>
> On Oct 27, 12:28 pm, Stefan Klumpp  wrote:
>
> > For my current application I collect images from different "event
> > providers" in Spain.
>
> > However, when downloading images from salir.com I get the following
> > logcat output:
> > 13970       Gallery_Activity  I  Fetching image 2/8 
> > URL:http://media.salir.com/_images_/verticales/a/0/1/0/2540-los_inmortale...
> > 13970     ServiceHttpRequest  I  Image [http://media.salir.com/
> > _images_/verticales/a/0/1/0/2540-los_inmortales_la_trattoria-
> > marc_aureli_27_29_no.jpg] fetched in [146ms]
> > 13970                   skia  D  --- decoder->decode returned
> > false
>
> > Searching for that error message didn't provide much useful results.
>
> > Anyone an idea what the problem could be?
>
> > Gracias!
>
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: BitmapFactory: decoder->decode returned false

2009-11-24 Thread Stefan Klumpp
Still no solution for that, but it seems that other developers have
similar problems. The strange thing is that exactly the same image
usually doesn't work, but sometimes it actually does. No idea why
though.

On Oct 27, 12:28 pm, Stefan Klumpp  wrote:
> For my current application I collect images from different "event
> providers" in Spain.
>
> However, when downloading images from salir.com I get the following
> logcat output:
> 13970       Gallery_Activity  I  Fetching image 2/8 
> URL:http://media.salir.com/_images_/verticales/a/0/1/0/2540-los_inmortale...
> 13970     ServiceHttpRequest  I  Image [http://media.salir.com/
> _images_/verticales/a/0/1/0/2540-los_inmortales_la_trattoria-
> marc_aureli_27_29_no.jpg] fetched in [146ms]
> 13970                   skia  D  --- decoder->decode returned
> false
>
> Searching for that error message didn't provide much useful results.
>
> Anyone an idea what the problem could be?
>
> Gracias!

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Current View object compare with R.id.my_layout

2009-11-02 Thread Stefan Klumpp
Is there a way to check whether my current View has inflated
R.id.my_layout_1 or R.id.my_layout_2? Something like
currentView.getLayoutID()?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] [Eclipse] layout preview doesn't work properly when using

2009-10-29 Thread Stefan Klumpp

When I include 

[android-developers] BitmapFactory: decoder->decode returned false

2009-10-27 Thread Stefan Klumpp

For my current application I collect images from different "event
providers" in Spain.

However, when downloading images from salir.com I get the following
logcat output:
13970   Gallery_Activity  I  Fetching image 2/8 URL:
http://media.salir.com/_images_/verticales/a/0/1/0/2540-los_inmortales_la_trattoria-marc_aureli_27_29_no.jpg
13970 ServiceHttpRequest  I  Image [http://media.salir.com/
_images_/verticales/a/0/1/0/2540-los_inmortales_la_trattoria-
marc_aureli_27_29_no.jpg] fetched in [146ms]
13970   skia  D  --- decoder->decode returned
false

Searching for that error message didn't provide much useful results.

Anyone an idea what the problem could be?

Gracias!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---