[android-developers] Android Studio Preview and Maven

2013-05-18 Thread Rutton
Hello, I have an Android App using Maven and use Android Studio Preview. Compared to the normal Intellij Community 12, there is an additional panel in the Project-Structure->Module-> -> Facet 'Android' -> Maven, that says: "Import following options from pom.xml" with checkboxes for

[android-developers] Re: Renderscript Deprecated

2012-06-30 Thread Rutton
In the overview for the API Changes of Jelly Bean, it is mentioned: *Note:* The experimental Renderscript graphics engine is now deprecated. See https://developer.android.com/about/versions/android-4.1.html#Renderscript No one ever mentioned before, that it was "experimental". -- You received

[android-developers] Re: Intent with action ACTION_SEND to send name of a location and either address or geolocation

2012-05-08 Thread Rutton
Found it. ACTION_SEND does not allow to add a location parameter. Useful workaround is to send an URL that can be interpreted by the Mail Programm or Google+ Alternatively ACTION_VIEW with geo:x,y parameter is possible, but only apps that are understanding a geolocation (e.g. Google Maps etc.) c

[android-developers] Intent with action ACTION_SEND to send name of a location and either address or geolocation

2012-05-08 Thread Rutton
Hello, I have a small app that deals with concrete locations (points-of-interest). One functionality of this app is to well known Sharing to send one POI to an external app via an Intent with ACTION_SEND parameter. That works, but what not works is to send the address or geolocation of

Re: [android-developers] Aw: AsyncTask, Runnable Thread, ???

2011-07-01 Thread Rutton
Mark Murphy schrieb: > On Fri, Jul 1, 2011 at 10:22 AM, Rutton wrote: > > AsyncTask is a bit an overkill, as you may want to call your urls > > independently and then > > AT would create a Thread for each REST call. > > Actually, AsyncTask will use a thread out of a thr

[android-developers] Aw: AsyncTask, Runnable Thread, ???

2011-07-01 Thread Rutton
You may also take IntentService into account. I would prefer that or HandlerThread/Handler. AsyncTask is a bit an overkill, as you may want to call your urls independently and then AT would create a Thread for each REST call. R. -- You received this message because you are subscribed to the Go

[android-developers] Combination of StateListDrawable with LayerDrawable is buggy?

2011-06-30 Thread Rutton
Hello, I already posted today, as I need to improve something on a app. What I have is a combination of different kinds of drawables, that are created programmatically. I have not tested with static xml-drawables. The combination looks as the following below. The StateListDrawable should wor

[android-developers] Aw: ListView-Item with drawable highlightning - created programmatically

2011-06-30 Thread Rutton
Well. The pasted code at the end works in a test example, but not in my real app :-(. Anyhow, thanks for your attention. R. public StateListDrawable createSelectedUnSelectedDrawable( Drawable normalDrawable, Drawable selectedDrawable) { int[] pressed = new int[] { android.R.a

[android-developers] ListView-Item with drawable highlightning - created programmatically

2011-06-29 Thread Rutton
Hello, I really hate to bump old topics, but I (also) really need a solution to this and the only googleable-example seems not to work. I also tried to reverse the sld.addState calls, so that "notMarked" as default is at the end (like the docs say, the most common at the end). But, still,

[android-developers] ListView setting item highlight drawable programmatically

2011-06-22 Thread Rutton
Hello there, I am playing with backgrounds for an app with some listviews. What I want is a custom highlight programmatically on pressing a list item. It needs to be done programmatically, as this app creates some background drawables programmatically. That seams to be easy with just creati

Aw: Re: [android-developers] trying to use application object, but cant use android object

2011-05-09 Thread Rutton
I use a custom app class and my Manifest looks like that: http://schemas.android.com/apk/res/android"; package="com." android:versionCode="1" android:versionName="1.0"> Don't forget that your MyApplication class needs to extend class Application. R. -- You received this message bec

[android-developers] Aw: how to use same activity for different listviews?

2011-05-06 Thread Rutton
You can also put one Layout (Linear or Relative) on your main screen that fills the screen and use something like layout.removeLayout (currentlistview) && layout.addLayout ( newlistview) to change the listview. Or, you can use one Listview and plugin different Adapters. I have used both for dif

[android-developers] Re: Assigned SDK-Version, minSdkVersion and ADT emulator version

2011-05-01 Thread Rutton
Found it. How to run on lower levels is described here: http://stackoverflow.com/questions/5186913/setting-minsdkversion-and-available-emulators R. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to androi

[android-developers] Assigned SDK-Version, minSdkVersion and ADT emulator version

2011-05-01 Thread Rutton
Hello, I am working on a little App, which has an assigned SDK-Version library of Android 2.2. This App uses Android 2.2 upwards specific calls because of some multitouch features. But it also has some sort of compatibility code with a runtime configuration to support Android 1.6. So, from

[android-developers] Re: starting apk from eclipse with "app data" erased

2011-04-13 Thread Rutton
Hmm. adb uninstall sounds quick. Always uninstalling by hand on a phone, just do to various "fresh start" tests is annoying. I would like to have a run configuration option. On 13 Apr., 21:18, Kostya Vasilyev wrote: > 13.04.2011 23:14, Rutton пишет: > > > A fresh start of

[android-developers] starting apk from eclipse with "app data" erased

2011-04-13 Thread Rutton
Hello there, does someone know of a way to do a fresh start of an apk with the eclipse run configuration, so that all app data (preferences, databases etc. ) are erased? I don't mean the "wipe user data" option of the emulator. A fresh start of just one apk on a real device. This would be qui

[android-developers] Re: DDMS

2011-03-19 Thread Rutton
You can also make a memory profiling dump with ddms (dump hprof at the device window) and analyze it with the eclipse memory analyzer. It can list all your memory consuming objects and allows to follow the incoming reference. -- You received this message because you are subscribed to the Google G

[android-developers] Re: Padding in relative layout fails for some reason

2011-03-06 Thread Rutton
I must add, that I am having a ninepatch drawable as background, with added padding part. Does someone know if this padding superseedes the layout padding? On 6 Mrz., 22:28, Rutton wrote: >     Hello there, > > I am working on a simple layout, that actually works. The only thing &

[android-developers] Re: Scrolling the contents of a LinearLayout

2011-03-06 Thread Rutton
I think adding a ScrollView, surrounding the corned LinearLayout would do the trick. On 6 Mrz., 22:37, Chris Stewart wrote: > I have a somewhat simple home screen, which I'm beginning to out grow.  The > view itself looks like the home screen to the Facebook app, but here's a > screen shot for re

[android-developers] Padding in relative layout fails for some reason

2011-03-06 Thread Rutton
Hello there, I am working on a simple layout, that actually works. The only thing is, that padding in a RelativeLayout does not work. Can someone have a look on that and tell me what is wrong? Its the padding in the title- RelativeLayout. R. http://schemas.android.com/apk/res/android";

[android-developers] Re: Moving an image in android

2011-03-06 Thread Rutton
ps://groups.google.com/group/android-developers/browse_thread/thre... > > Thanks Rutton, > > That example was helpful but I need the object to move to the drop zone not > just display a message. > i.e. When the user moves an image it should stay where the user drops it. > > Any id

[android-developers] Re: Moving an image in android

2011-03-06 Thread Rutton
If your desire is to experiment with drag'n drop, look here: https://groups.google.com/group/android-developers/browse_thread/thread/ef4d2f5774302d68 On 6 Mrz., 08:03, Raghav Sood wrote: > > Please, if you're very new in Android, don't try to make a game. Games are > > complicated. Start a littl

[android-developers] Re: Help figure out why im getting one star rattings

2011-03-01 Thread Rutton
After failing the first platform ("Platforms, Easy") a couple of times, my phone (Milestone one) hangs. Seems to be an endless loop/physics problem or something. Android wants to force close it. Another thing is, that failing at a plattform and falling to the ground doesn't stop the level. And not

[android-developers] Re: Share some of my work - Drag&Drop framework

2011-02-13 Thread Rutton
I tried your stuff and its great. I was suprised how little code for that is needed. To the licence: GPLed code can only used by also free stuff. So the projects using it, have to be also open source. Which prohibits the use in closed source projects. The Apache License would do as well as it fit

[android-developers] Re: ListView of CheckedTextView + SQLite, display checked rows ?

2011-02-12 Thread Rutton
If you have done a cursor adapter once, itis really easy. I have put some example code here. It is stripped down to the essentials: public class HistoryCursorAdapter extends CursorAdapter { private Cursor cursor; public HistoryCursorAdapter(Context context, Cursor c) {

[android-developers] Re: Question regarding RelativeLayout

2011-01-23 Thread Rutton
On 23 Jan., 15:38, Kostya Vasilyev wrote: > > Feel free to: > > http://code.google.com/p/android/issues/list > I will do so. Tried a bit with LinearLayout and weight (haven't used that before). Learned something new with that, thanks :-). R. -- You received this message because you are subsc

[android-developers] Re: Question regarding RelativeLayout

2011-01-23 Thread Rutton
Yeah, thanks. What you mention seems to be also a bug ;-). Perhaps someone may come up with a reason for that. Or, what about reporting it? R. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-dev

[android-developers] Re: Question regarding RelativeLayout

2011-01-23 Thread Rutton
On 23 Jan., 14:09, Kostya Vasilyev wrote: > Seems like your intent is a side-by-side layout for a tablet device. I was working on a landscape layout and thought I could "anchor" a fixed size RelativeLayout and use a stretched/spanning second RelativeLayout. In fact it works here now, but the fi

[android-developers] Question regarding RelativeLayout

2011-01-23 Thread Rutton
is correctly assign as toLeftOf and is on screen. Can someone tell me, why? Or is this a bug? Cheers, Rutton. -- 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@googl

[android-developers] Ringtone playing just once.

2010-12-17 Thread Rutton
Hello there, I am working on a little Service that plays ringtones/alarm-tones and such. What I want is to play a certain pattern with pauses and therefore I need to play such a tone once. At the moment I tried RingtoneManager/Ringtone and MediaPlayer. But both of them loop normal ringtones. I

[android-developers] Re: Problem with service unbind

2010-12-11 Thread Rutton
I will watch out. But can you tell me, what the BIND_DEBUG_UNBIND flag actually does? I hoped that it produces some more logcat output on when such actions occur. But I haven't seen that in the logs. Cheers, Rutton. -- You received this message because you are subscribed to the Google G

[android-developers] Re: Problem with service unbind

2010-12-11 Thread Rutton
pause activity {de.somebody.test/ de.somebody.test.move.MoveActivity}: java.lang.IllegalArgumentException: Service not registered: de.somebody.test.move.movebacken...@461ccf48 as RuntimeException. Well. This cant be the problem. Any more suggestions? Cheers, Rutton. -- You received this message

[android-developers] Problem with service unbind

2010-12-11 Thread Rutton
eally know, how this should provide debugging information? Cheers, Rutton. -- 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 gro

[android-developers] Re: App availability in Germany

2010-11-19 Thread Rutton
I am located in Germany and I can see your Morse Trainer in a light and pro version in the market. My device has Froyo. -- 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

[android-developers] Re: Localizing example somewhere?

2010-11-13 Thread Rutton
Thanks for all your help. I worked it out my way. Here is the code for a getLocalizedMessage in a custom exception: public String getLocalizedMessage() { Context c = LearningWordsApplication.getContext(); int id = R.string.error_unknown; swi

[android-developers] Re: Localizing example somewhere?

2010-11-12 Thread Rutton
Thanks for your kind explanation. The describing text is easy to realize, but what I wanted to really know is, how to deal with (custom formatted) exception messages. So, is it good practice to use the Exception e.getLocalizedMessage() and use the Java-mechanism to deal with that, perhaps in conjun

[android-developers] Localizing example somewhere?

2010-11-12 Thread Rutton
Hello, I am interested in localizing an app and have read the "Localizing Andrdoi Apps - Draft" article on the first page of the Android Developers group page. Unfortunately the example project isn't accessible anymore, clicking to download results in a not-available message. Does someone ha

[android-developers] Re: More complex Scrollview example needed.

2010-11-10 Thread Rutton
On 9 Nov., 23:53, Kostya Vasilyev wrote: > You could try ListView methods: setSelection, setSelectionFromTop. > > Not sure how well they work with cursor based adapters, but running some > tests is probably worthwhile.. setSelection does what it says. It is possible to jump right into the middle

[android-developers] Re: More complex Scrollview example needed.

2010-11-09 Thread Rutton
Hello, On 7 Nov., 17:01, Kostya Vasilyev wrote: > Another is to use a count query for the word, to find out its position > within the dictionary, and then setting the list view's position based on > that. This assumes that you feed the entire dictionary to the list view. I worked on it in

[android-developers] Re: More complex Scrollview example needed.

2010-11-07 Thread Rutton
The thing is, the BaseAdapter providing the info for the ListView does not have a list, it retrieves the items directly from the database, based on an offset. This is needed because the size of this list would be huge (about 10 entries). I have tried it with adding a lookup offset to the positi

[android-developers] Re: More complex Scrollview example needed.

2010-11-06 Thread Rutton
w, because of the recursive implementation. I ask myself, what to do now. I can do a simple solution and just displaying what is in the found record and display that. Or to ask, for a working solution that can be scrolled on display through the index. Cheers, Rutton. -- You received this message b

[android-developers] More complex Scrollview example needed.

2010-11-06 Thread Rutton
). So, my questions are: - Is it possible to start a ListView at some defined position (without reimplementing {Abs}ListView) - Or can someone provide an example on how to implement a more complex ScrollView? Cheers, Rutton -- You received this message because you are subscribed

[android-developers] ListView problems

2010-10-06 Thread Rutton
appropriate to that problem. Do I need an ExpandableListView (but without the dynamic expansion, only with dynamic creation)? Can someone point me to the right direction? Cheers, Rutton. The ListView Layout looks like that: --- beginning of a row -- subrow no. 1 (d

[android-developers] Re: How can i access the /data/data//files/my_file.txt on a real android device

2010-09-17 Thread Rutton
>From my unix/linux knowledge, I have to correct this: $ adb shell ls -ls /sdcard/bash_profile 32 -rwxrwxr-x1 1000 1015 157 Sep 15 14:13 /sdcard/ bash_profile - type of file is file - its empty for normal files, d for directory and some other values (see man ls) the leftmost "

[android-developers] Re: How can i access the /data/data//files/my_file.txt on a real android device

2010-09-17 Thread Rutton
>From my unix/linux knowledge, I have to correct this: $ adb shell ls -ls /sdcard/bash_profile 32 -rwxrwxr-x1 1000 1015 157 Sep 15 14:13 /sdcard/ bash_profile - type of file is right - its empty for normal files, d for directory and the leftmost "rwx" is permission of owner (r

[android-developers] Re: Unsuccessful install of successful built apk

2010-08-27 Thread Rutton
Allright. Got it. In an undelightful delirium I must have messed up the AndroidManifest.xml. I added an actitvity section and the apk shows now up in the emulator. Thanks, for pointing out that there goes something wrong with the initiation. Cheers, Rutton. -- You received this message because

[android-developers] Re: Unsuccessful install of successful built apk

2010-08-27 Thread Rutton
Hi, On 27 Aug., 17:50, "{ Devdroid }" wrote: > > W/RecognitionManagerService(   72): no available voice recognition > > services found > > What about this? Well, I don't do any Voice Recognition. Without posting the code here, I just use an Activity, a GLSurfaceView (with Renderer) and lots ;

[android-developers] Unsuccessful install of successful built apk

2010-08-27 Thread Rutton
de more info to solve the problem? Thank you. Cheers, Rutton. D/AndroidRuntime( 346): D/AndroidRuntime( 346): >>>>>>>>>>>>>> AndroidRuntime START <<<<<<<<<<<<<< D/AndroidRuntime( 346): CheckJNI is ON D/AndroidRu