Re: [android-developers] lineSpacingExtra does not work on 5.0 for EditText

2015-08-08 Thread Harri Smått
It seems this bug has been reported long ago (with no workaround AFAIK); https://code.google.com/p/android/issues/detail?id=78706 — H On 5 Aug 2015, at 08:17, 永亮 赵 jasonzhao0...@gmail.com wrote: lineSpacingExtra does not work on 5.0 for EditText, can anybody help me. 赵永亮 (Jason Zhao)

Re: [android-developers] Google Play removed my app, but I have no idea why

2015-07-07 Thread Harri Smått
This piece of news may or may not relate to problems you face; http://uk.businessinsider.com/google-removes-batterybot-pro-from-app-store-after-study-from-zscaler-research-2015-7 But of course I'm just speculating. -- H On Tuesday, July 7, 2015, Mathieu mathieu.debr...@gmail.com wrote: I

[android-developers] RippleEffect

2015-07-05 Thread Harri Smått
Hello All, I played around with RippleDrawable in order to figure out how to utilize it for other needs than touch feedback only. But to my surprise the documentation is very vague/limited (especially states list) and I have no idea how RippleDrawable catches touch length (touch up especially).

Re: [android-developers] Re: How to implement crossfade texture effect in Opengl?

2014-12-29 Thread Harri Smått
Hello, You most definitely need to write a GLSL shader when dealing with OpenGL ES 2.0 or later. But it will be a very simple one where you need to sample two textures and calculate mixed color output value from them. Instead of calculating linear interpolation by hand there is a built-in

Re: [android-developers] Android GCM without a 3rd party server (Device to Device push notification without 3rd party server via GCM)

2014-07-08 Thread Harri Smått
On 7 Jul 2014, at 16:38, MS ms.jackspar...@gmail.com wrote: Are we missing anything by not choosing to push via our own server? Is following such an implementation correct? Guess it works - but isn't it any concern to you that you need to bundle your Sender Id, usually stored only on

Re: [android-developers] ATTN all developing on Mac OS X: need working SDK/ADT

2014-06-29 Thread Harri Smått
Hey, Something weird happened on my Eclipse installation too after I had updated Android SDK packages from Android Studio earlier this weekend. Eclipse did complain Android SDK 23 requires ADT 23, or something similar, but when I hit the automatic update button Eclipse found me no updates.

Re: [android-developers] ATTN all developing on Mac OS X: need working SDK/ADT

2014-06-29 Thread Harri Smått
On 30 Jun 2014, at 01:11, Jim Graham spooky1...@gmail.com wrote: On Mon, Jun 30, 2014 at 12:18:17AM +0300, Harri Sm?tt wrote: Removing the existing ADT Plugin from Software Sites in preferences - then adding it back using Install New Software - finally let me upgrade ADT to the latest

Re: [android-developers] ATTN all developing on Mac OS X: need working SDK/ADT

2014-06-29 Thread Harri Smått
On 30 Jun 2014, at 01:44, Kostya Vasilyev kmans...@gmail.com wrote: 6 - And finally -- Eclipse offered to *replace* the already installed ADT tools 22 with new tools 23. I believe I saw very similar operation. Eclipse did not update ADT the way I have seen it working before - but the

Re: [android-developers] In 4.4, Paint.measureText() is not backwards compatible. Any workarounds?

2013-12-11 Thread Harri Smått
Is it really necessary to have string width in sub-pixel width? One could expect you need to round the previously returned value in any case either by yourself or some other means before using it in any case.. Unfortunately, as for finding another way of calculating the sub-pixel width, I

Re: [android-developers] Displaying Google Map Android API V2 in fragment

2013-12-11 Thread Harri Smått
You should keep following in mind (in regard to your original SO code snippet); 1. Once you add the fragment containing map, and call commit(), the fragment IS NOT added right away. See FragmentManager.executePendingTransactions() for executing the commit() asap. 2. If you still cannot get the

Re: [android-developers] Filename with invalid encoding crashes File.list()

2013-12-11 Thread Harri Smått
Looking at the crash log it seems so that the filename is not valid UTF-8 format.. Do you happen to have any idea how such a filename took place to begin with? — H On 11 Dec 2013, at 16:43, Martin Heller heller.m...@gmail.com wrote: Hello, I have encountered a crash in the

Re: [android-developers] How to get write permission on sd card when using mksdcard?

2013-12-11 Thread Harri Smått
Is this correct group for your question? android-building sounds a bit more alike if I was asked. — H On 11 Dec 2013, at 13:29, joare...@googlemail.com joare...@gmail.com wrote: $./adb shell $su mount -o rw,remount rootfs / chmod 777 /mnt/sdcard -- You received this

Re: [android-developers] Unlike previous versions, Paint.measureText() returns a rounded value in 4.4?

2013-12-11 Thread Harri Smått
Why are you using one pixel sized text for measuring? It can only cause you trouble if the rounding did not occur before automatically. Make text size somewhere near to 1000 pixels in size (or higher if the platform allows) and you have basis for calculating sub pixel values on certain

Re: [android-developers] why does not android.content.SharedPreferences#getAll() return an unmodifiable map ?

2013-12-11 Thread Harri Smått
I am quite sure this relates to the fact changing the values on a Map object, i.e on memory only, does not give too many options to store same values on SDcard more for later use. — H On 10 Dec 2013, at 21:57, Palmer Eldritch the.u...@gmail.com wrote: As per its docs : Note that you

Re: [android-developers] Using the Expansion Pack for optional data

2013-12-11 Thread Harri Smått
I have never tried expansion files myself, but reading the documentation tells about two types of expansion files; 1. Main expansion file (required) 2. Patch expansion file (optional) Maybe combining the two would give you an optional expansion file instead if you let the main one be empty..

Re: [android-developers] Filename with invalid encoding crashes File.list()

2013-12-11 Thread Harri Smått
(not converting filename to UTF-8). However, what concerns me is that files with such filenames can appear in the filesystem (intentionally or unintentionally), and an application crash is not a very good response to such occurence. Martin On 12/11/2013 07:19 PM, Harri Smått wrote: Looking

Re: [android-developers] How to parse this json

2013-12-10 Thread Harri Smått
Isn’t that a JSON array of JSON arrays? Should it be no problem to parse outmost JSON array, grab instances of inner JSON arrays and use JSONArray.getString(index) to retrieve the values. Hope I am not too badly mistaken :) — H On 10 Dec 2013, at 06:53, Arun Kumar K arunkuma...@npcompete.net

[android-developers] Job alert!

2013-10-16 Thread Harri Smått
weCame -- 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,

[android-developers] Using Fragments with support library ViewPager

2013-10-11 Thread Harri Smått
Hello All, I have following requirement: 1. Main application view contains support.v4.ViewPager only 2. First 4 screens are Views 3. Last, 5th, screen is the actual application ui I noticed that ViewPager onCreateView returns an Object but to my surprise it didn't work when I returned the

[android-developers] Determine when view/views below my view have changed

2013-09-29 Thread Harri Smått
Hello All, I'm in the midst of implementing somewhat dynamic background blur effect for Android (similar to what iOS7 has) and I'm keen to have this one optimisation in place. In my implementation I'm trying to achieve following: 1. I extend default layout classes and call them blur layouts 2.

Re: [android-developers] Unexpected SecurityException

2013-09-29 Thread Harri Smått
Hi, I would be more interested why other devices you've ran this code on (?) have not caused similar exception. According to docs Intent.ACTION_AIRPLANE_MODE_CHANGED should be protected for system usage only. -- Harri On Sun, Sep 29, 2013 at 6:06 PM, elio francesconi

Re: [android-developers] When to show a dialog from Fragment and when not to

2013-04-14 Thread Harri Smått
Hi, You could try using Fragment.isVisible() to determine whether the fragment is visible and can trigger a dialog. For situations where fragment is in the background you could use a Toast perhaps? -- H On Apr 14, 2013, at 4:25 PM, William Ferguson william.fergu...@xandar.com.au wrote: I

Re: [android-developers] setRate method and seekto methods for audio player

2013-04-11 Thread Harri Smått
Hi, I'm not too familiar with OpenSL on Android but it supports both seeking and sample play rate parameters. http://stackoverflow.com/questions/6763149/tutorials-for-opensl-es-for-android -- H On Apr 11, 2013, at 5:26 PM, bob b...@coolfone.comze.com wrote: Well, android.media.MediaPlayer

Re: [android-developers] Loading Images Using HttpURLConnection Concurrently

2013-04-06 Thread Harri Smått
Hi, Is it possible for you to share an example of an image URL you're using? -- H On Apr 6, 2013, at 5:59 AM, Alex Fu alex.fu...@gmail.com wrote: I tested HTTPS and I'm getting a 400 Bad Request error when using mobile data. On WiFi, everything goes through smoothly... wth. -- -- You

Re: [android-developers] Android 4.2.2: IndexedDB support in WebView

2013-03-21 Thread Harri Smått
Hi, According to this table there is no support for IndexedDB in Android browser; http://caniuse.com/indexeddb -- Harri On Mar 21, 2013, at 7:23 PM, bardu bard...@gmail.com wrote: What is the state of support for IndexedDB in Android 4.2.2? Is there any support in WebView? If not, is there

Re: [android-developers] OpenGL Tracer not working with a Nexus 7?

2013-03-19 Thread Harri Smått
Hi, There's this one rather recent issue which might be related to what you're seeing; https://code.google.com/p/android/issues/detail?id=52446 -- H On Mar 19, 2013, at 8:06 PM, Digipom digi...@gmail.com wrote: I'm also seeing the same problem with a Galaxy Nexus, just like this guy:

Re: [android-developers] Re: pause breaks...

2013-01-28 Thread Harri Smått
Hi, As for OpenGL related resources GLSurfaceView.setPreserveEGLContextOnPause(true) is pretty handy. While documentation states that it doesn't work on all devices, Android source indicates this is the case only on OpenGL ES prior 2.0. -- H On Jan 28, 2013, at 11:11 PM, Nobu Games

Re: [android-developers] Main Activity/Service Communication

2013-01-19 Thread Harri Smått
Hi, You could also consider option 3; Start an asynchronous task (native Java Thread or AsyncTask) for your processing needs. -- H On Jan 19, 2013, at 3:15 PM, dashman erjdri...@gmail.com wrote: Option 1 - create a service - that waits and returns status. haven't figured out a way of doing

Re: [android-developers] Launching play store for specific product

2013-01-17 Thread Harri Smått
Hi, This should be possible using Intent.ACTION_VIEW with market:// protocol. See this SO question for example; http://stackoverflow.com/questions/10922762/open-link-of-google-play-store-in-mobile-version-android -- H On Jan 17, 2013, at 7:44 PM, JPS jp_sem...@hotmail.com wrote: Hi I'm

Re: [android-developers] How to use Android HorizontalScrollView to move image one by one

2013-01-17 Thread Harri Smått
Hi, There's a free application called Android UI Patterns on Play Market you can use to try out many of the open source UI implementations for Android. In your case ViewPager Tabbar is maybe the most interesting part of the application in which you can find horizontal scrolling

Re: [android-developers] Re: Toast not showing on Samsung Galaxy S3 (latest update 4.1.2)

2013-01-15 Thread Harri Smått
Hi, There's a bug filed on Android bug database; http://code.google.com/p/android/issues/detail?id=35013 In other words, if you disable application notifications, Toasts also are disabled for that particular application. Could this be the reason for behaviour Tobias is facing? -- H On Jan

Re: [android-developers] How to switch between 2 renderers?

2013-01-14 Thread Harri Smått
Hi, AFAIK, only way around the problem is to introduce a proxy renderer. Meaning you install this proxy as renderer and its only purpose is to delegate rendering calls to actual implementation classes. -- H On Mon, Jan 14, 2013 at 12:11 PM, MobileVisuals eyv...@astralvisuals.com wrote: I have

Re: [android-developers] How to switch between 2 renderers?

2013-01-14 Thread Harri Smått
Hi, Yes, using one renderer only which delegates commands further. -- H On Mon, Jan 14, 2013 at 1:47 PM, MobileVisuals eyv...@astralvisuals.com wrote: I see, do you mean using the proxy renderer as the only renderer? On Monday, January 14, 2013 12:30:50 PM UTC+1, Harri Smått wrote: Hi

Re: [android-developers] Re: upgrading metropcs from 2.3.4 to 4.0.3

2013-01-11 Thread Harri Smått
Hi, Assuming it's unlocked you could try Kies to update its firmware to latest one; http://www.samsung.com/us/kies/ -- H On Jan 11, 2013, at 10:08 PM, John Merlino stoici...@aol.com wrote: Its a samsung On Jan 11, 3:01 pm, John Merlino stoici...@aol.com wrote: Im trying to test

Re: [android-developers] android opengl

2013-01-09 Thread Harri Smått
Hi, Here's some code I've been using for spline creation (or bezier curves to be more exact); https://github.com/harism/android_effects/blob/master/src/fi/harism/effects/ViewSplines.java https://github.com/harism/android_effects/blob/master/res/raw/spline_vs.txt

Re: [android-developers] cleaner shaders

2012-12-10 Thread Harri Smått
I've been putting shader code into assets or raw resources for a long while. Writing your shaders as strings is a pain. -- H On Dec 11, 2012 12:29 AM, bob b...@coolfone.comze.com wrote: I'm looking at the BasicGLSurfaceView example, and I'm thinking maybe the vertex shader and fragment shader

Re: [android-developers] RenderScript

2012-11-28 Thread Harri Smått
Hi, Not only across multiple CPUs but also a way to produce near to NDK speed code over different devices. Ideally lots of RenderScript code can be ran on GPU which makes it even faster than CPU. -- H On Nov 28, 2012, at 6:38 PM, bob b...@coolfone.comze.com wrote: I'm trying to understand

Re: [android-developers] issue Android NDK OpenGL ES 2.0 +VBO

2012-11-20 Thread Harri Smått
Hi, Here's a link to Apple Dev site which shows how to generate VBOs using default buffers. Maybe it gives an alternative for exact vertex buffer usage;

Re: [android-developers] Is is possible to have 2 settings files in a live wallpaper?

2012-11-12 Thread Harri Smått
Hi, I would say no. -- H On Nov 12, 2012, at 10:06 AM, MobileVisuals eyv...@astralvisuals.com wrote: So it is not possible to have 2 settings files in a live wallpaper? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this

Re: [android-developers] Photo effect

2012-11-12 Thread Harri Smått
Hi, I played around with the idea some time ago. You can find the source code at; https://github.com/harism/android_instacam Also LightBox PhotoProcessing project might be of your interest; https://github.com/lightbox/PhotoProcessing -- H On Nov 12, 2012, at 5:11 PM, Goutom

Re: [android-developers] Creating OpenGL shaders from an alternate class

2012-11-08 Thread Harri Smått
Hi, If you're still tackling with this problem here's an example of class that I've used successfully for compiling and using GLSL shader programs; https://github.com/harism/android_effects/blob/master/src/fi/harism/effects/EffectsShader.java Compile method (setProgram) throws an exception

Re: [android-developers] Blocked by Moderator?

2012-10-29 Thread Harri Smått
Hi, I found two messages posted by you, on October 17th and 22nd. If there are others consider resending them. And yes, it's either moderating or some other issue causing problems to post here every now and then AFAIK. -- H On Oct 27, 2012, at 1:42 AM, Anders Rundgren

Re: [android-developers] Using OpenGL ES 2.0 on camera buffers

2012-10-29 Thread Harri Smått
Hi, I'm not exactly sure if I understood your goal correctly but take a look on; http://developer.android.com/reference/android/graphics/SurfaceTexture.html http://developer.android.com/reference/android/hardware/Camera.html#setPreviewTexture(android.graphics.SurfaceTexture) They provide you

Re: [android-developers] openGL not removing all lines/points

2012-10-28 Thread Harri Smått
Hi, I think you're rendering too many elements in your onDrawFrame -method. buffer.position(0); gl.glVertexPointer(2, GL10.GL_FLOAT, 0, buffer); gl.glDrawArrays(GL10.GL_POINTS, 0, counter); Here counter seems to be number of values within buffer while you should render only number

Re: [android-developers] has the new facebook api (3.0) has some minimum version requirement?

2012-10-28 Thread Harri Smått
Hi, Which examples are you trying to run? The ones coming with Facebook SDK 3.0 beta .zip seem to work ok. And yes, new SDK is built against API level 8 (compared to 3 which it used to be). -- H On Oct 28, 2012, at 9:33 PM, Pedro Cortez pedro.fellipe.cor...@gmail.com wrote: i'm trying to

Re: [android-developers] has the new facebook api (3.0) has some minimum version requirement?

2012-10-28 Thread Harri Smått
, Pedro Cortez pedro.fellipe.cor...@gmail.com wrote: i've tried Scrumptious, I create an app at developers.facebook, put my key, config everything. I put at my samsung galaxy tab 7. Put it doesnt work On Sun, Oct 28, 2012 at 5:54 PM, Harri Smått har...@gmail.com wrote: Hi, Which

Re: [android-developers] XmlPullParser tag position

2012-10-18 Thread Harri Smått
On Oct 18, 2012, at 12:36 PM, Paolo Mancini paolo8...@gmail.com wrote: I need to obtain position (bytes) for each tag but I haven't found any method. Yesterday you needed an approximation of current position for setting up a progress bar, which one is it? -- H -- You received this message

Re: [android-developers] XmlPullParser tag position

2012-10-18 Thread Harri Smått
On Oct 18, 2012, at 1:50 PM, Paolo Mancini paolo8...@gmail.com wrote: Sorry, i've duplicated the topic…it's the same problem! In that case you could implement your own InputStream class which is actually only a proxy over existing InputStream. And you can count how many bytes have passed

Re: [android-developers] XmlPullParser and tag position

2012-10-17 Thread Harri Smått
On Oct 17, 2012, at 5:56 PM, Paolo Mancini paolo8...@gmail.com wrote: Hi, I'm using the XmlPullParser to parse a large XML file. I need to obtain position (bytes) for each tag but I haven't found any method. I need this cause I want to trace the progression of the parsing (with the total

Re: [android-developers] applying effects to camera images

2012-10-06 Thread Harri Smått
On Oct 6, 2012, at 2:39 PM, Narendra Singh Rathore nsr.curi...@gmail.com wrote: Hi all, May anyone please tell, how to apply effects like sepia, mono, negative, etc, while using camera in my app. I started a project some time ago in which I implemented camera effects in realtime using

Re: [android-developers] breakpoint in onReceive

2012-10-04 Thread Harri Smått
On Oct 4, 2012, at 11:16 PM, bob b...@coolfone.comze.com wrote: So, can you not put a breakpoint in a broadcast receiver? Maybe someone corrects me but it's quite often the case a breakpoint does not work unless you have some code there. E.g adding something gibberish; int i = 0; ++i; And

Re: [android-developers] How can I prevent two buttons from being clicked at the same time?

2012-09-28 Thread Harri Smått
On Sep 28, 2012, at 11:45 PM, Streets Of Boston flyingdutc...@gmail.com wrote: Is there a reliable or proper way to prevent a click of multiple buttons at the same time, e.g. a second button won't click when another finger is still down on the screen? I don't know whether this is a proper

Re: [android-developers] Slow preparation of live-streams on devices with Android = 2.3.

2012-09-27 Thread Harri Smått
Hi, I could do some testing for you but first I need to know the stream URL. -- H -- 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

Re: [android-developers] Slow preparation of live-streams on devices with Android = 2.3.

2012-09-27 Thread Harri Smått
Hi, Unfortunately I wasn't able to reproduce similar behaviour on SGS2, only device I have, running ICS 4.0.4. I ran following code and stream started to play within 2-3 seconds delay it takes to bring GPRS connection alive. Using WiFi delay was only fraction of a second. mp = new

Re: [android-developers] uploading app to android market

2012-09-27 Thread Harri Smått
On Sep 27, 2012, at 10:34 PM, John Merlino stoici...@aol.com wrote: So I clicked the link and it took me back right to the sign up page: https://play.google.com/apps/publish/signup How do I upload my app? Signing in using your Google credentials should take you to Developer Console;

Re: [android-developers] Re: uploading app to android market

2012-09-27 Thread Harri Smått
On Sep 27, 2012, at 11:23 PM, John Merlino stoici...@aol.com wrote: It doens't take me to a developer console. It takes me back to the developer signup page. But I already did this already and made the payment and received the confirmation. I click the link on the confirmation while logged

Re: [android-developers] Android First Impressions

2012-09-25 Thread Harri Smått
Hi, Coming from Symbian world I was very happy with Android from day one. This applies to iOS and WP too most likely - OSs I haven't had time to play around with as much as wanted to. But I'm wondering is there something specific you find Android is lacking compared to J2SE? For me biggest

Re: [android-developers] checking WI-FI

2012-09-25 Thread Harri Smått
On Sep 25, 2012, at 1:15 PM, Saurabh Khemka saurabh.khem...@gmail.com wrote: How to check programmatically whether a device's wi-fi is on or not using phone gap? I'm not familiar with PhoneGap but there seems to be some information on connection type in the documentation;

Re: [android-developers] Multiuser Chating application on Android

2012-09-25 Thread Harri Smått
Hi, To begin with, I didn't find this information in your post, what protocol are you using? -- H -- 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

Re: [android-developers] Multiuser Chating application on Android

2012-09-25 Thread Harri Smått
Ah pardon me.. It was XMPP, missed a few posts in between. -- H On Sep 25, 2012 3:47 PM, Harri Smått har...@gmail.com wrote: Hi, To begin with, I didn't find this information in your post, what protocol are you using? -- H -- You received this message because you are subscribed

Re: [android-developers] Multiuser Chating application on Android

2012-09-25 Thread Harri Smått
Hi, I started with a Facebook chat client once. What I had was a LinearLayout into which I added buddy layouts dynamically every time I got an XMPP presence event from the parser. My situation may have been a bit different though as I implemented XMPP parser myself and never asked the server

Re: [android-developers] Android Future Extensions

2012-09-25 Thread Harri Smått
Hi, I'm afraid only very few of the people following the list have any knowledge on this topic. On the other hand, if there's something you think Android is missing might be easier subject for many of us. -- H On Sep 26, 2012, at 7:15 AM, srikanth srikanthandroidgro...@gmail.com wrote: Let

Re: [android-developers] How to design shopping cart android application..

2012-09-24 Thread Harri Smått
Hi, I find it very likely you need a list of items a user can choose them from. And if just possible it might be a good idea to put these items into separate easily identifiable categories. Now where these items come from goes well beyond my imagination so let's just say there are items for

Re: [android-developers] XML-JSON convertion

2012-09-24 Thread Harri Smått
Hi, I don't know about exact solution but if you're familiar with SAX parser it shouldn't be too difficult to build JSON hierarchy during parsing. Here's some code and other information to help you out; http://stackoverflow.com/questions/5113711/convert-xml-to-json-format -- H On Sep 24,

Re: [android-developers] Gradients on PNGs

2012-09-24 Thread Harri Smått
Hi, I checked the original image you provided with Intel emulator images and SGS2 by creating a layout with one ImageView only. They all showed properly. Could you provide more information on how you render it onto screen if you want me to do some more extensive testing? -- H On Sep 24,

Re: [android-developers] Search keyword within Google Play Store

2012-09-24 Thread Harri Smått
On Sep 24, 2012, at 7:02 PM, TreKing treking...@gmail.com wrote: On Wed, Sep 19, 2012 at 10:23 PM, Tokusei Noborio t.nobo...@gmail.com wrote: Do you know how to get the information? What information? I'm guessing Tokusei means search keywords used to navigate to application within

Re: [android-developers] problem using webview?

2012-09-23 Thread Harri Smått
Hi, Could you elaborate a little bit more about your setup; mainly Android version and/or device if this happens on device only? I ran the same code with my SGS2 (ICS 4.0.4) without no problems. -- H On Sep 23, 2012, at 10:04 AM, Hitendrasinh Gohil hitendrasin...@gmail.com wrote: I am

Re: [android-developers] Best strategy in handling location change

2012-09-23 Thread Harri Smått
Hi, This is a wild guess, totally out of my knowledge, but do you think listening to android.intent.action.TIMEZONE_CHANGED gave you means to act accordingly to your needs? -- H On Sep 23, 2012, at 9:59 AM, Ichsan ich...@gmail.com wrote: Currently, I'm creating an app which alarms user tasks

Re: [android-developers] Eclipse setup question

2012-09-23 Thread Harri Smått
Hi, What happens if you right-click on your project in package explorer? This screenshot is from OSX though; http://imgur.com/OrEBt -- H On Sep 23, 2012, at 4:27 PM, Jared Greenwald greenwaldja...@gmail.com wrote: 2 - How do I configure the Run button in Eclipse to run the app either on one

Re: [android-developers] Which API to install for icecream sandwich?

2012-09-23 Thread Harri Smått
Hi, My phone is 4.0.4 too but I'm usually developing with API level 8. And use API 15 sometimes also. -- H On Sep 23, 2012, at 9:33 AM, Shashi Shekhar shashi.carbo...@gmail.com wrote: My phone is running 4.0.4 but Android SDK is showing only 4.0 and 4.0.3 to download which should in

Re: [android-developers] Re: Help: My app has violated the spam provisions of the Content Policy

2012-09-23 Thread Harri Smått
Hi, I've never played around with keywords but I have to admit I tend to see huge difference in Google Maps keywords and the application in question here. For me the latter list seems more of a list of synonyms. -- H On Sep 23, 2012 11:48 PM, FiltrSoft kri...@gmail.com wrote: lol, it's do as I

Re: [android-developers] Re: Help: My app has violated the spam provisions of the Content Policy

2012-09-23 Thread Harri Smått
On Sep 24, 2012 12:06 AM, b0b pujos.mich...@gmail.com wrote: Does it mean that making a list with all words of the dictionary that are not synonyms is ok ? On Sunday, 23 September 2012 22:59:14 UTC+2, Harri Smått wrote: Hi, I've never played around with keywords but I have to admit I tend

Re: [android-developers] play .mov file in video player

2012-09-22 Thread Harri Smått
Hi, Most answers on the same issue seem to suggest this is pretty much undoable except for converting the video into a supported video format. See last comment on this SO answer if you're into trying to achieve this with ffmpeg.

Re: [android-developers] How can i make my activity in a service should be run continuously for every 1 minute

2012-09-22 Thread Harri Smått
Hi, What have you tried so far? Apparently you need a background service left running after the user has navigated away from the application. This service should enable you to show delayed toast after certain time limit. -- H -- You received this message because you are subscribed to the

Re: [android-developers] text to pdf in android

2012-09-22 Thread Harri Smått
Hi, I don't want to sound harsh but did you check e.g StackOverflow before asking here? Good thing about StackOverflow is that well-formed questions asked there show high on Google searches too; android convert text to pdf. That said, hope this answer provides some help;

Re: [android-developers] Key, Gesture, Menu, etc.. für History Up/Down

2012-09-22 Thread Harri Smått
Hi, While struggling with somewhat similar problematics I ended up utilizing long-press triggered menu. Don't know if this is an option for you though. -- H On Sep 22, 2012 6:21 PM, Jan Burse janbu...@fastmail.fm wrote: Dear All, Assume I have a terminal app for Android. How would I

Re: [android-developers] Key, Gesture, Menu, etc.. für History Up/Down

2012-09-22 Thread Harri Smått
...@fastmail.fm wrote: Harri Smått schrieb: While struggling with somewhat similar problematics I ended up utilizing long-press triggered menu. Don't know if this is an option for you though. Not sure whether I can use this inside a text component. Doesn't it trigger the copy/paste function

Re: [android-developers] Re: Posts not showing up?

2012-09-22 Thread Harri Smått
Hi, I'm quite sure moderators are following this mailing list and there ought not to be reason to bother them directly. -- H On Sep 22, 2012, at 6:51 PM, UgglyNoodle jus...@ugglynoodle.com wrote: If anybody has information on how to contact the moderators for this group, it would be much

Re: [android-developers] FLASH_MODE_TORCH doesn´t work in Samsung Galaxy Ace

2012-09-22 Thread Harri Smått
Hi, Are you instantiating 'cam' variable somewhere not shown on the code snippet you provided? -- H -- 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

Re: [android-developers] closing mobile network on galaxy s3

2012-09-22 Thread Harri Smått
Hi, Are you on ICS? If yes (this may apply to other Android versions too), you can switch packet data off from mobile network settings and disable use packet data. Did this help you out? -- H On Sep 22, 2012, at 11:34 PM, Salih Gündüz gunduz.sa...@gmail.com wrote: I can not close the mobile

Re: [android-developers] Matrix.orthoM - How to use it

2012-09-14 Thread Harri Smått
Hi, I'm usually doing the following (or the inverse); float ratio = (float) width / height; Matrix.orthoM(projection, -ratio, ratio, 1, -1, .1f, 100f); Especially using proper z -projection. -- H On Sep 14, 2012, at 11:25 AM, Steven Bruce stevebruc...@gmail.com wrote:

Re: [android-developers] Re: HttpResponse throwing an unidentified error?

2012-09-13 Thread Harri Smått
Hi, I didn't find the original message and location where you're executing this HTTP request. But if it's the UI thread, please see this blog post; http://www.androiddesignpatterns.com/2012/06/app-force-close-honeycomb-ics.html Hope this helps since same code you provided worked like a charm

Re: [android-developers] check if pressed within circle

2012-09-12 Thread Harri Smått
On Sep 12, 2012, at 5:09 AM, iQue max.nielse...@gmail.com wrote: this gives a weird result where 90% of the time the stick will set its position to 0,0 when I try to use it. Yup, I made a huge mistake there. Here's revised code; Point imageCenter = new Point(25, 25); Point touchPos =

Re: [android-developers] check if pressed within circle

2012-09-12 Thread Harri Smått
On Sep 12, 2012, at 1:31 PM, iQue max.nielse...@gmail.com wrote: Alright, so I change the previous code to this: int imgCenterX = initx - joystick.get_joystickBg().getWidth()/2 - 50; int imgCenterY = inity - joystick.get_joystickBg().getHeight()/2 - 50;

Re: [android-developers] Re: check if pressed within circle

2012-09-12 Thread Harri Smått
On Sep 12, 2012, at 1:59 PM, iQue max.nielse...@gmail.com wrote: thanks for taking your time to help me. It ALMOST works now, the stick acts lke imgCenterY and imgCenterX is a bit further down then they really are. I know I'm using the right positions cus if I draw a circle at that

Re: [android-developers] json format

2012-09-12 Thread Harri Smått
On Sep 12, 2012, at 3:40 PM, rauf qureshi qureshira...@gmail.com wrote: in above code when i send this request to server date automatic converted into following format 25/\10/\2012 can any body tell me how to send date on the server using json in 25/10/2012 format. It's the other way

Re: [android-developers] EditText without initial keyboard

2012-09-12 Thread Harri Smått
On Sep 12, 2012, at 7:51 PM, Ravin rperi...@yahoo.com wrote: Does anyone know how to configure an EditText object so that when it is created it does not show the keyboard until I tap on the text field. Right now the keyboard shows up right away on creation. I've used following code snippet

Re: [android-developers] check if pressed within circle

2012-09-11 Thread Harri Smått
On Sep 12, 2012, at 1:09 AM, iQue max.nielse...@gmail.com wrote: Say the joysticks background image is 50x50, how do I make a circle in android with this size in mind, and how do i check if im pressing within it. Use distance, int dx = imgCenterX - touch.x; int dy = imgCenterY - touch.y;

Re: [android-developers] how to retrieve data between specified date

2012-09-10 Thread Harri Smått
Hi, It may be best if you didn't store dates as Strings for this use case - if never to be more precise. Firstly, using Strings you hardcode application language. Secondly, comparisons become next to impossible compared to e.g long comparisons. -- H On Sep 10, 2012 9:07 AM, Sadhna Upadhyay

Re: [android-developers] Where to start for developing an Android Game?

2012-09-10 Thread Harri Smått
Hi, Instead of developing a simple game, try to come up with more detailed idea(s) what you want to see your game did. Saying this only in hopes that having some more specific goal gave you extra motivation for creating it. Good luck with your project in any case. -- H On Sep 10, 2012 5:23 AM,

Re: [android-developers] Question about SurfaceView and Threads

2012-09-10 Thread Harri Smått
On Sep 10, 2012 12:04 AM, Edvinas Kilbauskas edvinaskilbaus...@gmail.com wrote: I heard that android doesn't support plain old Java Threads. That's not true. Android supports basic Java Threads and there's no reason for not to use them when appropriate. But the thing is, you can not alter UI

Re: [android-developers] Rotate image around it's centre problem with matrix rotation

2012-09-10 Thread Harri Smått
Hi, Why are you adding constants X and Y to pivot point? -- H On Sep 10, 2012 4:18 PM, Haris haris...@gmail.com wrote: Hai all I am trying an application like rotating image with motion sensorMy problem is that the image does not rotate about centre properlyAnd my angle range is 0

Re: [android-developers] Re: Live wallpaper. nullPointerException when detecting preview mode

2012-09-07 Thread Harri Smått
Hi, It's very much sure isPreview() does not work within service Engine instantitation method. Not only for null pointer but there's no way newly created Engine knew whether it's in preview mode or not. Also, bear in mind it's not guaranteed a new Engine is created for preview and actual

Re: [android-developers] using pixel coordinates in opengl es 2

2012-08-29 Thread Harri Smått
Hi, I might be wrong but I think you can create an orthographic projection matrix for this purpose using Matrix.orthoM. Just provide it with top=0, bottom=height, left=0, right=width. -- H On Aug 29, 2012, at 8:50 PM, guich guiha...@gmail.com wrote: Hi, I downloaded and played with the

Re: [android-developers] how to .setText of a String with different colours?

2012-08-28 Thread Harri Smått
On Aug 28, 2012, at 6:52 PM, oriolmesia mesia@gmail.com wrote: Does anyone knows how to do it? This article is a good read for SpannableStrings; http://www.chrisumbel.com/article/android_textview_rich_text_spannablestring -- H -- You received this message because you are subscribed to

Re: [android-developers] AsyncTask - onPostExecute is not called

2012-08-28 Thread Harri Smått
On Aug 28, 2012, at 9:33 PM, anaOliveira oliveiranar...@gmail.com wrote: ... s.execute(new String [] {URL+param}); … to call the task. Someone can help me to understand which is the problem? I'm guessing your problem lies in how you call

Re: [android-developers] AsyncTask - onPostExecute is not called

2012-08-28 Thread Harri Smått
On Aug 28, 2012, at 10:20 PM, Ana Rita Brito Oliveira oliveiranar...@gmail.com wrote: I tried.. but with only one ore more URL the method doInBackground works and I can go to the service and got the result but when I try to do the onPostExecute.. that dind't work. True that, my mistake

Re: [android-developers] Re: android.os.NetworkOnMainThreadException error

2012-08-22 Thread Harri Smått
Study AsyncTask or spawn a regular Java Thread where you do XML fetch and parsing. Now it's all written within onCreate method. It shouldn't be a problem to find better examples on how to use them than I can give. -- H On Aug 22, 2012 5:38 PM, Vivek Bhusal vivekbhu...@gmail.com wrote: Some body

Re: [android-developers] Android Software Licensing

2012-08-21 Thread Harri Smått
On Aug 21, 2012, at 5:35 PM, Yashwant Patil yashvpa...@gmail.com wrote: Is it so that once I publish my app in Marketplace, the sourcecode of application indirectly becomes opensource? No. Source code most definitely does not become open source. However Java is maybe more easy language for

Re: [android-developers] ArrayList in TableLayout IndexOutOfBoundsException

2012-08-17 Thread Harri Smått
On Aug 17, 2012, at 10:58 AM, Иван Дунский i.duns...@gmail.com wrote: for (int i=start; iend; i++) Instead of doing this I'd say you should also add boundary checks e.g; for (int i=start; iend iforPrint.size(); i++) Or alternatively recalculate start and end so that they do not exceed

  1   2   3   >