Re: [android-developers] USB debugging - device serial number ???????? OR APK Application was not installed

2012-08-07 Thread Kostya Vasilyev
Unsigned apk? How do you do that? Eclipse and ant both sign apps with a generic (generated) debug key, unless requested to use your release key. For the second issue, might want to check the logcat (adb logcat in a console, or DDMS or Eclipse logcat panel) to see if it contains any clues. -- K

Re: [android-developers] USB debugging - device serial number ???????? OR APK Application was not installed

2012-08-07 Thread Kostya Vasilyev
2012/8/7 blitheringeejit holmes...@googlemail.com On Tuesday, August 7, 2012 11:31:26 AM UTC+1, Kostya Vasilyev wrote: Unsigned apk? How do you do that? Right-click on the Package Android Tools Export Unsigned Application Package Ah, yes, I'd been using Ant for my release builds

Re: [android-developers] Re: webview client, that intercepts img requests on API 8

2012-08-06 Thread Kostya Vasilyev
2012/8/7 Kristopher Micinski krismicin...@gmail.com Yes, but implementing this proxy would require rooting the device. Not necessarily - if the WebView is under the developer's control (i.e. there is no intention to do this system-wide), then it should be possible to feed the WebView a URL

Re: [android-developers] PendingIntent's arent unique

2012-08-06 Thread Kostya Vasilyev
Move the call to appWidgetManager.updateAppWidget inside the loop. -- K 2012/8/6 f.Audire fh2...@googlemail.com Hi, I dont understand why my PendingIntents arent unique. The toast in OnReceive always shows the Id of the last created Widget . @Override public void onUpdate(Context

Re: [android-developers] Re: versioning error in Android 2.0

2012-08-06 Thread Kostya Vasilyev
match_parent and fill_parent are handled by the resource compiler and are the same at runtime (check ViewGroup.LayoutParams). Posting a portion of your layout file should help. -- K 2012/8/7 Justin Anderson magouyaw...@gmail.com Maybe it says something like fill_parent and it wants to see

Re: [android-developers] Re: webview client, that intercepts img requests on API 8

2012-08-06 Thread Kostya Vasilyev
kris On Mon, Aug 6, 2012 at 5:32 PM, Kostya Vasilyev kmans...@gmail.com wrote: 2012/8/7 Kristopher Micinski krismicin...@gmail.com Yes, but implementing this proxy would require rooting the device. Not necessarily - if the WebView is under the developer's control (i.e

Re: [android-developers] Re: Reason for Dead Trigger lagging on Nexus S

2012-08-05 Thread Kostya Vasilyev
One possible reason is that a service that returns START_STICKY from its onStartCommand will cause the app's process to be re-created (usually after a five second delay, but I've seen larger delays too). Such services are considered to be a big no-no. There are two interesting things here: 1 -

Re: [android-developers] Lost Password of Keystore

2012-08-04 Thread Kostya Vasilyev
But you have backed it up to a usb flash drive, right? Or maybe checked into a remote source control repository? If you have, restoring the key should be really easy. 04.08.2012 16:07 пользователь Giuseppe Brando giuseppe.brando...@gmail.com написал: Hi Boys, I've a big probem, I've lost a

Re: [android-developers] SecurityException in RemoteViewsService?

2012-08-04 Thread Kostya Vasilyev
I've run into this exact issue before. My fix was to add Binder.clearCallingIdentity() in my RemoteViewsService callbacks where I needed to access my non-exported provider. Now we're back from the launcher's identity to the identity of the app's process, where access is allowed. It fit into the

Re: [android-developers] SecurityException in RemoteViewsService?

2012-08-04 Thread Kostya Vasilyev
04.08.2012 19:54 пользователь Mark Murphy mmur...@commonsware.com написал: On Sat, Aug 4, 2012 at 11:47 AM, NickL nicklongi...@gmail.com wrote: The error happened when I call mResolver.query(Abc.CONTENT_URI, null, null, null, null); in onDataSetChanged(). Does that help? This suggests

Re: [android-developers] SecurityException in RemoteViewsService?

2012-08-04 Thread Kostya Vasilyev
, null, null); in onDataSetChanged(). Does that help? On Saturday, August 4, 2012 11:20:51 AM UTC-4, Kostya Vasilyev wrote: I've run into this exact issue before. My fix was to add Binder.**clearCallingIdentity() in my RemoteViewsService callbacks where I needed to access my non-exported

Re: [android-developers] Lost Password of Keystore

2012-08-04 Thread Kostya Vasilyev
Great advice, John, thanks, I swear we see about one of these a week. ... and if I may add -- make sure that your email password is strong, or that you use an email other than the one publicly listed with your app. Oh wait, what happens if you forget that one? :-) 04.08.2012 20:53 пользователь

Re: [android-developers] tablet 7 inch

2012-08-04 Thread Kostya Vasilyev
This should help: http://android-developers.blogspot.com/2011/07/new-tools-for-managing-screen-sizes.html -- K 2012/8/4 Sadhna Upadhyay sadhna.braah...@gmail.com Hi everybody, i am making an app for tablet 7.0 now i don't know which layout folder is required for xml u.i design can any

Re: [android-developers] Overlay item in ImageView

2012-08-03 Thread Kostya Vasilyev
A PopupWindow would be a good option too: 1 - it would use its own hardware surface, even on 2.*, so it's show / hide animations, if any, won't disturb the other view 2 - it could be larger than the view it's attached to, if necessary... 03.08.2012 18:37 пользователь Nadeem Hasan

Re: [android-developers] How to READ the option menu text color

2012-08-03 Thread Kostya Vasilyev
2012/8/3 Spiral123 cumis...@gmail.com OK...my second attempt to find the device value of textColorPrimaryDisableOnly: [snip] My attempt at reflection didn't seem to work either: Class myClass = Class.forName(android.R$styleable); int mTextColor =

Re: [android-developers] AndEngineTexturePackerExtension and TexturePackLoader constructor issue

2012-08-03 Thread Kostya Vasilyev
Sounds like a case of mismatched imports. 04.08.2012 3:29 пользователь billb b...@briskynet.com написал: I have a project that finally reached a steady-state that was functional when I had computer issues. I saved my entire project (I'm using Eclipse v4.2.0) and then fixed my hardware

Re: [android-developers] How to READ the option menu text color

2012-08-02 Thread Kostya Vasilyev
Take look in the platform's styles.xml and themes.xml. These sound somewhat promising: style name=Widget.TextView.PopupMenu item name=android:clickabletrue/item item name=android:textAppearance@style/TextAppearance.Widget.TextView.PopupMenu/item /style style

Re: [android-developers] Re: Android ListView Issue

2012-08-02 Thread Kostya Vasilyev
2012/8/3 bob b...@coolfone.comze.com Sounds like you are messing with BLOBs in a database. Turns out this does not work well on Android. Why not? As was already pointed out, not loading a bunch of blobs in a query behind a ListView should fix the issue with only a small code change -- i.e.

Re: [android-developers] How to READ the option menu text color

2012-08-02 Thread Kostya Vasilyev
it to a canvas and reading a pixel value from there. Again, you will want to get this drawable from the style - a manufacturer could keep the original drawable in place, add a new one, and change the reference (style attribute). On Thursday, August 2, 2012 4:35:16 PM UTC-4, Kostya Vasilyev wrote: Take

Re: [android-developers] Re: Action Bar and Navigation Bar in Android 2.2

2012-08-01 Thread Kostya Vasilyev
Action Bar Sherlock. Google for it. 01.08.2012 10:33 пользователь Meena Rengarajan meenasoft...@gmail.com написал: I am not sure , is it possible to create action and navigation bar in Android 2.2 ? can anyone help me On Wednesday, August 1, 2012 11:53:13 AM UTC+5:30, Meena Rengarajan wrote:

Re: [android-developers] Re: Action Bar and Navigation Bar in Android 2.2

2012-08-01 Thread Kostya Vasilyev
Sherlock runs on android 2.1 and above. Not sure what you mean by other youtubes - AFAIK, there is only one. 01.08.2012 10:49 пользователь Meena Rengarajan meenasoft...@gmail.com написал: Not clearly given in Sherlock youtube based on Android 2.2 . Any other youtubes are there . Can anyone

Re: [android-developers] Re: Device compatibility when publishing on the Play Store

2012-08-01 Thread Kostya Vasilyev
Um, no activities? 01.08.2012 12:33 пользователь Amokrane amokrane.chen...@gmail.com написал: Le mardi 31 juillet 2012 22:53:33 UTC+2, RichardC a écrit : Paste your manifest here please Sure, ?xml version=1.0 encoding=utf-8? manifest

Re: [android-developers] Re: Device compatibility when publishing on the Play Store

2012-08-01 Thread Kostya Vasilyev
août 2012 11:15:05 UTC+2, Kostya Vasilyev a écrit : Um, no activities? 01.08.2012 12:33 пользователь Amokrane amokrane.chen...@gmail.com написал: Le mardi 31 juillet 2012 22:53:33 UTC+2, RichardC a écrit : Paste your manifest here please Sure, ?xml version=1.0 encoding=utf-8

Re: [android-developers] is it possible to make tab on top and bottom of screen

2012-07-31 Thread Kostya Vasilyev
Um, ultimately, their are just views with some backgrounds and a bit of code behind them. You could copy some code and drawables out of the Android sources, or search GitHub / Google Code / etc. for some similar widgets. Perhaps try ActionBarSherlock, since it has its own action bar style tabs

Re: [android-developers] Fragments Bitmap Recycling + a bunch of bitmap oriented questions.

2012-07-31 Thread Kostya Vasilyev
An insurance policy that covers out of memory exceptions? 2012/7/31 gjs garyjamessi...@gmail.com Hi, I saw recently I could take out an insurance policy that had unlimited cover amount, I guess the premium has unlimited cost as well ;-) Regards On Tuesday, July 31, 2012 10:51:11 AM

Re: [android-developers] How to deal with random hangs without stack dump?

2012-07-31 Thread Kostya Vasilyev
SoundPool? Galaxy S2? https://groups.google.com/d/topic/android-developers/pAv5UfQgtH4/discussion -- K 2012/7/31 Francisco M. Marzoa Alonso fmmar...@gmail.com Hi there, I am facing some random hangs without neither stack dump or force close message. My app is simply closed without no

Re: [android-developers] ADB Multi-phone Connection Reliability

2012-07-28 Thread Kostya Vasilyev
2012/7/28 Andrey tur...@gmail.com Kostya, Thanks, I doubt the ports/hubs are an issue (since it happens on several computers, with or without hubs), but the USB cables could be the problem. Do you think these cables would be worth trying?

Re: [android-developers] Arial show?

2012-07-27 Thread Kostya Vasilyev
Don't forget Roboto, as well - which is a sans serif type, and is densely spaced, making it somewhat decorative... 27.07.2012 15:08 пользователь bob b...@coolfone.comze.com написал: Ok, thanks. I guess this is what Android folks use when they wanna get fancy:

Re: [android-developers] Unsubscribe

2012-07-27 Thread Kostya Vasilyev
2012/7/27 Jim Graham spooky1...@gmail.com On Thu, Jul 26, 2012 at 10:35:18PM -0700, Andy dev wrote: Anyone made any progress with this issue, I still cannot pinpoint what causes it? It's like life after death - no-one who knows for sure is able to share his knowledge :) It's nothing

Re: [android-developers] mobile eye for windows phone 7.5 mango

2012-07-27 Thread Kostya Vasilyev
Hey, some of us have Windows Phone devices too :) ( whoops... ban for life now? ) 2012/7/27 Justin Anderson magouyaw...@gmail.com You do realize this is an *ANDROID* group? Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Thu, Jul 26, 2012 at

Re: [android-developers] ListView with custom view item refresh issue

2012-07-27 Thread Kostya Vasilyev
I'm not seeing any evidence why getViewTypeCount() or getItemViewType() would be needed. Based on the description, the items views appear to be homogeneous. It looks weird to me that public void refreshView does not take an int position parameter. How does it know that it needs to set the views

Re: [android-developers] ADB Multi-phone Connection Reliability

2012-07-27 Thread Kostya Vasilyev
Are you sure you haven't got a sub-par USB cable? Or that you're not overloading the USB ports they're plugged in? I used to see this a lot a few months ago, it drove me crazy, tried a few different cables and hubs then switched to LCD monitors with built-in hubs (which are in turn connected

Re: [android-developers] Say Hello to the Menu?

2012-07-26 Thread Kostya Vasilyev
It's not just the physical menu button - overall, there seems to be a trend in ICS/JB to move away from previously established metaphors, like buttons that look like buttons, and the long press (which supposedly takes too much time). Instead, we're supposed to tap on various layout elements that,

Re: [android-developers] Re: List of Phone/Manufacturer/OS specific issues with Android.

2012-07-26 Thread Kostya Vasilyev
Device: HTC Inredible S with 2.3, and maybe others. Issue: SQLite databases are opened in WAL mode. Impact: If the process is killed while the database is still open, the WAL file is not deleted, and next time is appended to (rather than truncated). This causes the file to grow larger and

Re: [android-developers] adb push is broken

2012-07-26 Thread Kostya Vasilyev
Yeah, I noticed that too. You've got to specify the exact target filename, e.g. adb push foo.txt /mnt/sdcard/foo.txt Using a target directory name was allowed before, but doesn't work anymore. -- K 2012/7/26 Eddie edwardezerg...@googlemail.com adb push foo.txt /mnt/extSdCard Does not work

Re: [android-developers] LVL service binding fails on ALLVIEW PC ALLDRO SPEED tablet

2012-07-26 Thread Kostya Vasilyev
Ask the user to check the Google Play app version. I'd guess the device uses the Play app obtained in unofficial ways (putting it mildly), and as such, various pieces of functionality may break in unexpected ways. -- K 2012/7/24 Acubeware supp...@acubeware.com Hi, We have published an app

Re: [android-developers] adb push is broken

2012-07-26 Thread Kostya Vasilyev
for this. On Thursday, 26 July 2012 11:21:07 UTC+1, Kostya Vasilyev wrote: Yeah, I noticed that too. You've got to specify the exact target filename, e.g. adb push foo.txt /mnt/sdcard/foo.txt Using a target directory name was allowed before, but doesn't work anymore. -- K 2012/7/26 Eddie

Re: [android-developers] Spinner Styling - Am I Nuts??

2012-07-26 Thread Kostya Vasilyev
The contents of a spinner is provided by its adapter. Check the layout used by your adapter's getView(). -- K 2012/7/26 Evan Ruff evan.r...@gmail.com Hey guys! I have a spinner backed up by an ArrayAdapter in my layout. I'd like to change the look of the spinner button to match the buttons

Re: [android-developers] Spinner Styling - Am I Nuts??

2012-07-26 Thread Kostya Vasilyev
menu of items? Thanks, E On Thursday, July 26, 2012 8:38:36 AM UTC-4, Kostya Vasilyev wrote: The contents of a spinner is provided by its adapter. Check the layout used by your adapter's getView(). -- K 2012/7/26 Evan Ruff evan.r...@gmail.com Hey guys! I have a spinner backed up

Re: [android-developers] Spinner Styling - Am I Nuts??

2012-07-26 Thread Kostya Vasilyev
2012/7/26 Mark Murphy mmur...@commonsware.com On Thu, Jul 26, 2012 at 8:44 AM, Evan Ruff evan.r...@gmail.com wrote: Thanks for the response. Just to clarify, the getView in the adapter sets the BUTTON? I thought that set the view for the actual menu of items? The SpinnerAdapter supplies

Re: [android-developers] adb push is broken

2012-07-26 Thread Kostya Vasilyev
Haven't thought to try the trailing slash, thanks. It's definitely changed from earlier versions, though. 26.07.2012 16:59 пользователь Nikolay Elenkov nikolay.elen...@gmail.com написал: On Thu, Jul 26, 2012 at 7:21 PM, Kostya Vasilyev kmans...@gmail.com wrote: Yeah, I noticed that too

Re: [android-developers] WebView - fit to screen and avoid extra space

2012-07-26 Thread Kostya Vasilyev
For your last item, get rid of the wide viewport. Don't know about the rest. 26.07.2012 17:26 пользователь nishma muthamma8...@gmail.com написал: Hi, In the default the email application (ICS), the content of the email is displayed in a WebView (actual view used is RigidWebview). There are

Re: [android-developers] No event delivery in Stopped State in version 4.x?

2012-07-25 Thread Kostya Vasilyev
AFAIK, this has been the case since Android 3.1. 2012/7/26 Philippe Laporte plapo...@devicescape.com Hi, Is the following quote true? There is no other way? In platform 4.x, all applications, upon installation, are placed in a stopped state. This is the same state that the application

Re: [android-developers] Re: Calling networkInfo.isConnected()

2012-07-24 Thread Kostya Vasilyev
2012/7/24 Robert Greenwalt rgreenw...@google.com If either your background data setting is off OR you are in the foreground you will be told you are connected (provided a connection, of course). Ah, it's good to know there is a special case for when the app is in the foreground. I don't

Re: [android-developers] Re: disable log messages dataCallback(16, 0x11af10) when using mCamera.setPreviewCallback(this);

2012-07-24 Thread Kostya Vasilyev
Pipe logcat through grep with an exclude filter? 24.07.2012 16:54 пользователь Fernando F. Gallego ferdy...@gmail.com написал: I am also interested and I didn't find the way... On Friday, December 10, 2010 4:46:20 PM UTC+1, andev wrote: Im using Camera.setPreviewCallback method to retrieve

Re: [android-developers] Re: LVL + proguard: Google play answers Market not Managed

2012-07-23 Thread Kostya Vasilyev
-keep public class com.android.vending.licensing.ILicensingService The latest LVL library version uses a different package name, com.android.vending.licensing has been replaced with com.google.android.vending.licensing. Check ILicensingService.java and adjust your ProGuard rules accordingly. --

Re: [android-developers] Preferences button to return to main activity

2012-07-23 Thread Kostya Vasilyev
2012/7/24 billb b...@briskynet.com Thanks for digging a bit deeper. I copied what you did and indeed got the click handled! The difference was that my subclass then referred to another layout xml file that actually showed a button as in this discussion (

Re: [android-developers] Re: Calling networkInfo.isConnected()

2012-07-23 Thread Kostya Vasilyev
It's also a good way to check if the user disabled network connectivity (i.e. the mobile data toggle), and starting with Android 4.0, this is also affected by the allow apps to perform background sync system setting. -- K 2012/7/24 Nathan nathan.d.mel...@gmail.com Since this message, I did

Re: [android-developers] Re: Calling networkInfo.isConnected()

2012-07-23 Thread Kostya Vasilyev
(mobile data togle, background-sync, etc). They are all rolled in. On Mon, Jul 23, 2012 at 2:44 PM, Kostya Vasilyev kmans...@gmail.comwrote: It's also a good way to check if the user disabled network connectivity (i.e. the mobile data toggle), and starting with Android 4.0, this is also affected

Re: [android-developers] Re: Jelly bean swiping task away from task list kills service

2012-07-22 Thread Kostya Vasilyev
:23:11 PM UTC+1, Andy dev wrote: Thanks. I'll keep looking for a solution then! On Friday, July 20, 2012 11:04:13 PM UTC+1, Kostya Vasilyev wrote: Yep, I can confirm this with my own foreground service on 4.1.1 (Galaxy Nexus). -- K 2012/7/21 Andy dev andrewpmo...@gmail.com Anyone

Re: [android-developers] Re: Jelly bean swiping task away from task list kills service

2012-07-22 Thread Kostya Vasilyev
2012/7/22 Pent supp...@apps.dinglisch.net Oh boy, I very much don't like the sound of that. Not particularly looking forward to getting a JB OTA update anymore after all the other backwards compat problems already reported by users. You can look forward to 4.1.2, 4.2 or 5.0... Pent

Re: [android-developers] Re: Jelly bean swiping task away from task list kills service

2012-07-22 Thread Kostya Vasilyev
Flow in the market). I do hold quite a bit in static variables, does any of that make a difference in this situation? On Sunday, July 22, 2012 11:14:16 AM UTC+1, Kostya Vasilyev wrote: I'm also seeing my application get killed even while it has a foreground service. It appears to happen

Re: [android-developers] app crashes when a map view is added

2012-07-21 Thread Kostya Vasilyev
I see it happen all the time... and without a MapView. It's some side effect of an application relaunch. Only happens during development. I already filed bug a few months ago. 21.07.2012 15:45 пользователь Ralph Bergmann | the4thFloor.eu ra...@the4thfloor.eu написал: Hello, on all my Android

Re: [android-developers] app crashes when a map view is added

2012-07-21 Thread Kostya Vasilyev
2012/7/21 Kostya Vasilyev kmans...@gmail.com I see it happen all the time... and without a MapView. Correction - used to see it all the time with 4.0.2/4.0.4. Appears to be fixed in 4.1.1 (although I haven't used it enough to say for sure). -- K It's some side effect of an application

Re: [android-developers] Re: static vs non-static inner classes

2012-07-20 Thread Kostya Vasilyev
It's also pretty easy to remove outstanding messages in an activity or fragment's end-of-lifecycle callbacks. Good idea anyway if those messages are supposed to trigger UI changes -- you won't want them to arrive after the activity/fragment has shut down. -- K 2012/7/20 joebowbeer

Re: [android-developers] Re: OEM-Official ADB USB Driver support (rant)

2012-07-20 Thread Kostya Vasilyev
Since no-one's offered you try using Linux, I'll do that now. Some devices still need some magic in the udev config file, but most don't. I'm seeing a big difference in how fast Eclipse launches an app after it's been built, it's much faster on Linux than on Windows (same computer, same Eclipse

Re: [android-developers] Re: Jelly bean swiping task away from task list kills service

2012-07-20 Thread Kostya Vasilyev
Yep, I can confirm this with my own foreground service on 4.1.1 (Galaxy Nexus). -- K 2012/7/21 Andy dev andrewpmo...@gmail.com Anyone at least confirm what I'm doing looks ok - even if you don't know the reason why. Just as a sanity check? On Thursday, July 19, 2012 10:19:22 PM UTC+1, Andy

Re: [android-developers] Re: READ_LOGS permission is not granted to 3rd party applications in Jelly Bean (api 16)

2012-07-19 Thread Kostya Vasilyev
In one of the prior messages on this thread, Dianne Hackborn mentioned her plans to implement a UI screen in Settings to enable READ_LOGS (for apps that have it in their manifest). One could hope that this screen, whenever it appears, will have a documented launch action - so that apps like

Re: [android-developers] Activity being started with old bundle data

2012-07-19 Thread Kostya Vasilyev
The root of the issue is described here: http://developer.android.com/reference/android/app/PendingIntent.html If the creating application later re-retrieves the same kind of PendingIntent (same operation, same Intent action, data, categories, and components, and same flags), it will receive a

Re: [android-developers] Seeing wierd things with JB on Nexus 7 and timers/activities

2012-07-18 Thread Kostya Vasilyev
Try adding loging to the activity's onDestroy. Methinks you might be seeing the activity get created, destroyed, and created again due to some combination of launch flags or requested screen orientation. -- K 2012/7/18 Mind steven...@gmail.com Debugged some more. This is not a race

Re: [android-developers] Preferences button to return to main activity

2012-07-18 Thread Kostya Vasilyev
Bill, Regarding the onClick not working... This made me go h so I put together a simple test: package org.kman.AquaMail.prefs; import android.content.Context; import android.preference.Preference; import android.util.AttributeSet; import android.widget.Toast; public class

Re: [android-developers] Seeing wierd things with JB on Nexus 7 and timers/activities

2012-07-18 Thread Kostya Vasilyev
It's also worth pointing out that two calls two onCreate don't necessarily mean two activity instances, if there is also a call to onDestroy for one of them. ( and this is ignoring things specific to Android completely - just a very basic observation that one can't make conclusions based on

Re: [android-developers] LinearLayout button mistery

2012-07-18 Thread Kostya Vasilyev
Your layout uses fixed width (100dp) for the buttons, which appears to not be sufficient on the second screen (Can/cel). The messed up vertical alignment might be a side effect of that. Consider using wrap_content or at least increasing the fixed widths. -- K 2012/7/18 CJ joven.ch...@gmail.com

Re: [android-developers] Re: READ_LOGS permission is not granted to 3rd party applications in Jelly Bean (api 16)

2012-07-18 Thread Kostya Vasilyev
Just ran a quick test on my Galaxy Nexus with stock OTA 4.1.1 1) Added the permission to the manifest: uses-permission android:name=android.permission.READ_LOGS/ 2) Pushed an update from Eclipse, this appeared in the adb logcat: 07-18 22:43:20.265 W/PackageManager( 306): Not granting

Re: [android-developers] Re: READ_LOGS permission is not granted to 3rd party applications in Jelly Bean (api 16)

2012-07-18 Thread Kostya Vasilyev
...@gmail.com Thanks for trying this out. Now it looks like that there is no supported way to grant development permissions on production devices. On Wednesday, July 18, 2012 9:49:54 PM UTC+3, Kostya Vasilyev wrote: Just ran a quick test on my Galaxy Nexus with stock OTA 4.1.1 1) Added

Re: [android-developers] Exclude asset-folder at compiletime in Eclipse

2012-07-17 Thread Kostya Vasilyev
http://en.wikipedia.org/wiki/NTFS_symbolic_link 2012/7/17 Zohob phil...@online.de No, since I'm under Windows the link is displayed as file *.lnk by Eclipse and not as a folder. Thus the compiler should interprete as file as well. -- You received this message because you are subscribed to

Re: [android-developers] Preferences button to return to main activity

2012-07-17 Thread Kostya Vasilyev
2012/7/17 billb b...@briskynet.com The findPreference method is deprecated. Yes, but the old Preference mechamism still works, at least in 4.1. You actually don't need to use findPreference -- Rather, create a Preference subclass, override onClick, and launch the main activity with an intent

Re: [android-developers] Preferences button to return to main activity

2012-07-17 Thread Kostya Vasilyev
UTC-7, Kostya Vasilyev wrote: The findPreference method is deprecated. Yes, but the old Preference mechamism still works, at least in 4.1. You actually don't need to use findPreference -- Rather, create a Preference subclass, override onClick, and launch the main activity with an intent

Re: [android-developers] New READ_EXTERNAL_STORAGE permission breaks file:// URIs

2012-07-17 Thread Kostya Vasilyev
2012/7/17 String sterling.ud...@googlemail.com On Tuesday, July 17, 2012 6:59:08 PM UTC+2, Dianne Hackborn wrote: You can put your data in your own content provider. I was doing that some time ago, but then I stopped because this imagery is already cached on SD, so I figured it was more

Re: [android-developers] Android inapp purchase failed for first time

2012-07-16 Thread Kostya Vasilyev
Looks quite similar to this one: http://code.google.com/p/marketbilling/issues/detail?id=30 16.07.2012 14:29 пользователь guna a guna@gmail.com написал: Hi, I used the Google's inapp purchase sample. I handled the purchase success in the handler as per sample code. But for the first time

Re: [android-developers] Keeping it fresh, back to service...

2012-07-16 Thread Kostya Vasilyev
In Eclipse, Window | Open Perspective | DDMS (Debug works too, IIRC). If you don't see the logcat panel, Window | Show Panel | Logcat. You can also run adb logcat from your operating system's command window. I think it's actually more convenient (as this keeps the logcat in an entirely separate

Re: [android-developers] DialogFragment - show soft keyboard upon creation

2012-07-16 Thread Kostya Vasilyev
Have you tried et.requestFocus() ? 2012/7/16 Simon Giddings mr.s.giddi...@gmail.com I have a simple dialog built with the compatibility libraries DialogFragment. It holds only 1. EditText 2. 2 buttons When the dialog is shown, the edit text control has the focus. At this point, I

Re: [android-developers] Re: static vs non-static inner classes

2012-07-16 Thread Kostya Vasilyev
2012/7/17 Lew lewbl...@gmail.com Use what makes the most sense *in the code* to express the logic. In your case this sounds like using inner classes instead of static nested classes. The rule of thumb is that inner classes are for when the inner instance needs access to the outer

Re: [android-developers] AppWidgetProvider

2012-07-15 Thread Kostya Vasilyev
Sounds like a bug to me. Even though widgets are rendered by another process - the home screen - the widget provider lives in your own application's process. What you can do is use IntentService, and push widget updates from there. It's not necessary to update widgets from within onUpdate - you

Re: [android-developers] Resolution problem

2012-07-15 Thread Kostya Vasilyev
-hdpi or -xhdpi is not resolution, it's screen density - pixels per inch. hdpi is 240 dpi xhdpi is 320 dpi mdpi is 160dpi, and is the reference density, at which dp's are same as pixels http://developer.android.com/guide/practices/screens_support.html Images placed in -hdpi will be used as is

Re: [android-developers] Resolution problem

2012-07-15 Thread Kostya Vasilyev
2012/7/16 user123 ivanschu...@gmail.com Ok, thanks. And how do I know what resolution put in the hdpi folder? Depends on the image. Only you can know the answer to that. I want that the resolution of the images there look well in 240 dpi devices and scale without wasting unnecessary memory

Re: [android-developers] Re: READ_LOGS permission is not granted to 3rd party applications in Jelly Bean (api 16)

2012-07-13 Thread Kostya Vasilyev
2012/7/13 Mark Murphy mmur...@commonsware.com On Thu, Jul 12, 2012 at 7:39 PM, Peter Sinnott psinn...@gmail.com wrote: Is that new in JB? All I can manage to do is turn off the screen or reboot. I was able to get it working in a Galaxy Nexus running ICS, but only after several tries.

Re: [android-developers] Service launch issues

2012-07-13 Thread Kostya Vasilyev
In your manifest, the intent-filter matching action=path.to.file.MainActivity belongs to the service, and your code uses startActivity with this action. So first off, there is a mismatch in the component type. I'd guess this is the reason for the crash, but do check the logcat. Secondly, what is

Re: [android-developers] Switching Fragments to Full Screen

2012-07-13 Thread Kostya Vasilyev
You can call hide() http://developer.android.com/reference/android/app/FragmentTransaction.html#hide(android.app.Fragment) on the fragments you don't need, or hide their views (or their parents) yourself and call setUserVisibleHint()

Re: [android-developers] Re: READ_LOGS permission is not granted to 3rd party applications in Jelly Bean (api 16)

2012-07-12 Thread Kostya Vasilyev
I have my own logging solution in my app, and even though it's very useful... ... being able to see the system logs is invaluable and irreplaceable in some situations. For example, I recently experienced LVL validation failures and asked the users to use CatLog (one the of apps on Market that

Re: [android-developers] Re: READ_LOGS permission is not granted to 3rd party applications in Jelly Bean (api 16)

2012-07-12 Thread Kostya Vasilyev
2012/7/12 Dianne Hackborn hack...@android.com Applications accessing the system logs has been a long-standing issue. There is various code in the system that tries to trim personal and other dangerous information out when it prints to the log, but this often misses things, and just makes the

Re: [android-developers] Re: Showing Overflow menu button on ICS.

2012-07-11 Thread Kostya Vasilyev
They might have their own action bar implementation, just like gmail on 2.* uses its own, rather than the framework's Quick Contact Badge (you can tell on HTC devices, which has a modified version of this class in their firmware). 11.07.2012 17:46 пользователь Kiview shaolin.aven...@googlemail.com

Re: [android-developers] Emulate Gmail's Fragment System

2012-07-10 Thread Kostya Vasilyev
The stock email app does something similar, it's available in the source repository under packages/apps/Email. It uses a special layout view with an animation that drives layout changes via requestLayout / onLayout. Other than that, a particularly smooth way to slide a fragment on or off the

Re: [android-developers] Re: Sliding/moving fragments (like Gmail and Email app) in Honeycomb

2012-07-10 Thread Kostya Vasilyev
If you need to animate a view's size, that, as far as I'm concerned, you've got two choices: 1. setScaleX on the fragment's parent view, driven by one of the animation mechanisms. This will result in distortion, which may or may not be acceptable. 2. create a custom layout to serve as the

Re:: [android-developers] Stock Email Notifications

2012-07-10 Thread Kostya Vasilyev
The stock email app has a content provider that can be observed. Not sure if it's exported though, or what the required permissions are, if any. Check the sources. For gmail, some info used to be available, then was deliberay blocked, finally it seems like it's open again. The best people to

Re: [android-developers] Motorola Razr ICS upgrade broke my app

2012-07-08 Thread Kostya Vasilyev
The only thing that pops out of your description is the use of */* for mime type. Have you tried using the actual mime type to see if it fixes the issue? -- K 2012/7/8 yves...@gmail.com yves...@gmail.com We have an app on the Market, which works for ICS (we tried on Galaxy Nexus and Galaxy

Re:: [android-developers] Re: Color Picker Preference

2012-07-06 Thread Kostya Vasilyev
There is a nice color picker on Google Code called AmbilWarna. Converting it to a Dialog preference is trivial, start by subclassing :) 06.07.2012 13:04 пользователь Alfa 672008...@student.uksw.edu написал: in dont realy get it. can u explaint more? or a litle sample code maybe. because i need

Re: [android-developers] Showing a confirm dialog from the PreferenceAcivity

2012-07-05 Thread Kostya Vasilyev
DialogPreference, and Dialogs in general, work just fine on Android 3.* and 4.* And if you're asking about the compat library, AFAIK, ActionBarSherlock has a PreferenceActivity reimplementation that is compatible with the compat library's fragments. -- K 2012/7/5 Simon Giddings

Re: [android-developers] Adding build versions

2012-07-05 Thread Kostya Vasilyev
I wanted the same, and so made a few changes to Android's ant build scripts to extract the version name from the manifest and append it as a suffix to the apk name. ( along with some other stuff, like Market vs. non-Market, which use slightlity different code for updating and licensing, and are

Re: [android-developers] Re: activity looses ArrayList items

2012-07-05 Thread Kostya Vasilyev
All activity lifecycle callbacks are invoked on the same, main, UI thread. 2012/7/6 alex b alex_bramb...@yahoo.com I saw the notice about the syncronization of the Vector type, but it didn't help me find a solution to the problem. What I believe i need to do is... lock the ArrayList,

Re: [android-developers] Re: Problem optimizing views for having a fast scroll

2012-07-03 Thread Kostya Vasilyev
A custom view, assuming it's at the root of your item layout, is just as good as a view holder. Here is what you can do: - Override onFinishInflate in your item layout root view - Call this.findViewById to find children - Store them as member variables - Access in the adapter's getView, like

Re: [android-developers] Re: How to: Free to Paid App and retain preference and db files?

2012-07-01 Thread Kostya Vasilyev
Regarding the Internet permission - you don't have to use ads in the free version, rather offering the users some other incentive(s) to upgrade. 2012/7/1 Mystique joven.ch...@gmail.com Hi, good to learn from all of you here. One of the usual request for the paid version is to remove ads and

Re: [android-developers] Re: How to: Free to Paid App and retain preference and db files?

2012-07-01 Thread Kostya Vasilyev
2012/7/1 Mystique joven.ch...@gmail.com Yes, I have additional features for the paid version but was thinking to maintain the Ads in the free version. So you are suggestion to completely remove the Ads for free and focus on the Paid version for incentive? My suggestion, as a fellow

Re: [android-developers] new look for the android app developers website

2012-06-27 Thread Kostya Vasilyev
2012/6/24 appdev billium59z...@gmail.com Looks like the android app developers website made a big change. It will take getting used to. Any way to link to the old site/format? Yeah, I hear you. Grey text on grey background? A body font with very dense letter spacing? Headers with empty space

[android-developers] startForeground icon not showing on Galaxy Nexus

2012-06-26 Thread Kostya Vasilyev
Seeing a weird issue on my Galaxy Nexus with official 4.0.4 I have a service that uses startForeground to keep the process in memory, and, as required by the API, supplies a notification with an icon. Occasionally (about one every 5-10 calls to startForeground), the service's notification icon

Re: [android-developers] Re: startForeground icon not showing on Galaxy Nexus

2012-06-26 Thread Kostya Vasilyev
2012/6/26 Pent supp...@apps.dinglisch.net Are you changing the state of a component sometimes ? Yes, of a different component. If so, probably this: Looks like that's it. Thanks. -- K http://code.google.com/p/android/issues/detail?id=21635 Pent -- You received this message

Re:: [android-developers] Destroy WebView without leaking window

2012-06-22 Thread Kostya Vasilyev
Have you tried subclassing WebView and calling super.destroy() from onDetachedFromWindow()? 22.06.2012 14:07 пользователь Pent supp...@apps.dinglisch.net написал: If I have a WebView showing a javascript alert dialog, I can't find a way to leave the current activity (the one with the WebView)

Re: [android-developers] Re: Where to save data on devices without an sdcard?

2012-06-17 Thread Kostya Vasilyev
To give this discussion a bit more context: Various manufacturers (primarily HTC and Samsung) have been creating devices that have this additional memory partition (on top of the memory card and the internal storage), which can't be found using Android framework API, for the past two years or so.

Re: [android-developers] Play Store hijacking focus after in-app purchase dialog

2012-06-14 Thread Kostya Vasilyev
Google Play will always be launched as a separate *process*, as Mark already pointed out above. It may or may not be on the requesting app's activity stack, depending on the Android version (1.6 or above - although I suspect one would have to search high and low for a 1.6 device at this time).

Re: [android-developers] Activity has leaked window - no solution at stack

2012-06-14 Thread Kostya Vasilyev
Someone somewhere somehow (some code inside PhoneGap, by the looks of it) created an AlertDialog and didn't destroy it when the activity got destroyed. -- K 2012/6/14 Rocky rkjhaw1...@gmail.com All, I'm getting error Activity has leaked windows, when i'm calling index.html page through my

<    1   2   3   4   5   6   7   8   9   10   >