[android-developers] Re: put() in ResponseCache invoked with a wrong URI?

2009-09-18 Thread Matt Kanninen
I am seeing the same thing. On Aug 3, 12:27 am, Guitou drumsensati...@gmail.com wrote: Hi, I extended ResponseCache as follow : public class DataLoader extends ResponseCache {         @Override         public CacheResponse get(URI uri, String arg1,                         MapString,

[android-developers] Re: put() in ResponseCache invoked with a wrong URI?

2009-09-18 Thread Matt Kanninen
(DataLoader, Put() + conn.getURL); return null; } On Sep 18, 5:43 pm, Matt Kanninen mathias...@gmail.com wrote: I am seeing the same thing. On Aug 3, 12:27 am, Guitou drumsensati...@gmail.com wrote: Hi, I extended ResponseCache as follow : public class DataLoader

[android-developers] Re: Uniquely identifying a phone via an Http request

2009-10-09 Thread Matt Kanninen
You may be depended on carrier specific custom headers, best way to know is to grab a handset, hit a server, and look at the headers. A group that may have a better answer on this sort of issue is: http://tech.groups.yahoo.com/group/wmlprogramming/ -MK On Oct 9, 1:55 pm, stanlick

[android-developers] Problem with setting a previously transparent backgrount white in onPageFinished

2009-10-20 Thread Matt Kanninen
I have a webview which I like to be transparent, until the first page loads. I set it transparent like so: mWebView.setBackgroundColor(0); then I set it to use this WebViewClient private class OurWebViewClient extends WebViewClient { public void

[android-developers] Re: Text wrapping around image

2009-10-20 Thread Matt Kanninen
I spent a fair amount of time doing the same thing. Html.fromHTML is helpful, but it seems to basically take each img tag it encounters and add it to the textview like a character. So you can have one line of text to the left, and one line to the right, but you cant have multiple lines of text

[android-developers] Re: Keep pressing screen slow down the app very much

2009-10-20 Thread Matt Kanninen
Is this really the best way to solve this problem? Sleeping in an on*Event just sounds wrong. On Oct 19, 8:50 pm, Nightwolf mikh...@gmail.com wrote: Try this solution public boolean onTouchEvent(final MotionEvent event) {                 try {                         Thread.sleep(50);    

[android-developers] Re: Android User Experience and UI refinements

2009-10-27 Thread Matt Kanninen
I always found it easier to implement my own tabs, using whatever drawable.xml and pngs I want with the various states. You can continue to do that for any image, button view or background image you want. That way if you don't like the giant orange highlight in your color scheme you don't have

[android-developers] Re: Start app from browser

2009-11-03 Thread Matt Kanninen
I believe you'll want to register a URI pattern that your application handles. You can look for content provider samples for that. Then on your own page display a link that matches that URI pattern. You still depend on the user clicking the link. You can google for how people link to their

[android-developers] Re: Widget Layout Frustration

2009-11-11 Thread Matt Kanninen
When I'm 2px off I find negative layout margins help immensely. http://developer.android.com/reference/android/view/ViewGroup.MarginLayoutParams.html On Oct 29, 8:40 pm, Evan Ruff evan.r...@gmail.com wrote: Hey Guys, I was hoping someone could help me with a home screen widget I'm trying to

[android-developers] Re: Choosing Dev Phone

2009-11-13 Thread Matt Kanninen
The only problem I see with the G1 is the doubts I've seen expressed about whether it will get Android 2.0. -- 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

[android-developers] Re: Getting Google order number programmatically after app is bought from Market

2009-11-20 Thread Matt Kanninen
Awesome! Could this be an apache licensed project hosted on google code? -MK On Nov 20, 8:25 am, polyclefsoftware dja...@gmail.com wrote: Hi UBZack, I'm currently working on a Google Checkout client for Android that generates simple sales reports based on a date range and order status,

[android-developers] Re: market.android.com app listings

2009-11-20 Thread Matt Kanninen
Good question but I think this: http://www.google.com/support/forum/p/Android+Market/ is where you should be looking for the answer. On Nov 20, 9:20 am, rcs rsar...@gmail.com wrote: Does anyone know how to change one's app listing onhttp://market.android.com? We've updated our Android Market

[android-developers] Re: How to configure your application to ensure proper display on Motorola Droid?

2009-11-20 Thread Matt Kanninen
You should be able to compile against 1.6 right? That seemed to give us all tools necessary to support Long displays. My plan is to compile against 1.6, but only use 1.5 APIs. Put the droid layouts in res/layout-long, and test on 1.6 and 2.0 devices, and a 1.5 emulator. It seems the browser

[android-developers] Re: Using FLAG_ACTIVITY_CLEAR_TOP, but don't restart target activity?

2009-11-21 Thread Matt Kanninen
I had never seen so much use required of OR until I started doing Android application development. On Nov 21, 5:07 pm, Mark Murphy mmur...@commonsware.com wrote: Mark Wyszomierski wrote: Hi, I'd like to use FLAG_ACTIVITY_CLEAR_TOP to launch an activity in my app. It has one feature I

[android-developers] Re: Random phone restarts, anyone else experience this?

2009-11-21 Thread Matt Kanninen
My Droid restarts about once a day. This discussion probably belongs another board, perhaps Android discuss, or as a bug report. On Nov 21, 6:38 am, Mark Wyszomierski mar...@gmail.com wrote: Hi, Not sure if anyone else is experiencing this. My G1 will randomly restart itself up to two times

[android-developers] Bitmap memory errorsn, static strings becoming null, MediaRecorder.release hangs

2009-11-21 Thread Matt Kanninen
If my app runs for more then half an hour on the G1 it will fail on inflating views from xml, giving an error about insufficient memory creating a bitmap. Another issue, which may be a side effect is that global static strings that are assigned at startup become null. I have worked around that

[android-developers] java.lang.OutOfMemoryError: bitmap size exceeds VM budget

2009-11-25 Thread Matt Kanninen
This: private static final int[] glowDrawableIds={ R.drawable.graphic_microphoneglow_01, R.drawable.graphic_microphoneglow_02, R.drawable.graphic_microphoneglow_03, R.drawable.graphic_microphoneglow_04,

[android-developers] Re: java.lang.OutOfMemoryError: bitmap size exceeds VM budget

2009-11-25 Thread Matt Kanninen
a href=http://code.google.com/p/android/issues/detail?id=5045;Issue 5045/a http://code.google.com/p/android/issues/detail?id=5045 On Nov 25, 9:37 am, Matt Kanninen mathias...@gmail.com wrote: This:         private static final int[] glowDrawableIds

[android-developers] Re: Accessing images from gallery

2009-11-25 Thread Matt Kanninen
This happens with small images as well, it has to do with the Bitmap cache, it's a recurring issue, and it's still in 2.0. On Nov 24, 9:52 am, Mark Murphy mmur...@commonsware.com wrote: JasonMP wrote: Ok, I'm getting a couple things that look funny. snip 11-24 10:28:52.758:

[android-developers] Re: java.lang.OutOfMemoryError: bitmap size exceeds VM budget

2009-11-25 Thread Matt Kanninen
, if possible. Use BitmapFactory.decode and set the 'inSampleSize' of your bitmap-options to scale down the size of the bitmap to be loaded and rendered on the screen. On Nov 25, 12:46 pm, Matt Kanninen mathias...@gmail.com wrote: a href=http://code.google.com/p/android/issues/detail?id=5045

[android-developers] Re: java.lang.OutOfMemoryError: bitmap size exceeds VM budget

2009-11-25 Thread Matt Kanninen
this error means you have too many graphics loaded at once, or are unloading and loading a lot of graphics in a row so the finalizer can't reclaim the bitmap memory in time. Matt On Nov 25, 12:46 pm, Matt Kanninen mathias...@gmail.com wrote: a href=http://code.google.com/p/android/issues/detail?id

[android-developers] Re: java.lang.OutOfMemoryError: bitmap size exceeds VM budget

2009-11-25 Thread Matt Kanninen
the limit and the GC doesn't get to the bitmaps in time. Matt On Wed, Nov 25, 2009 at 2:37 PM, Matt Kanninen mathias...@gmail.com wrote: Matt, So in this case I definitely am frequently loading and unloading small images.  Those 10 id's all point at different states in our animation.  I can

[android-developers] Re: Unexpected Resumes Running Under 2.0

2009-12-01 Thread Matt Kanninen
On Oct 29, 1:08 pm, Nmix nepean...@gmail.com wrote: Elsewhere in the log, I found something in the logs put out by the system process that from their timestamp may be correlated with the uninstall/install process initiated by ADB: 10-29 20:33:14.391:

[android-developers] Re: Out of memory / orientation change / Memory Analyzer question

2010-01-21 Thread Matt Kanninen
I had a similar issue, randomly getting the external allocation too large for this process error. For me, it started when I added android:targetSdkVersion=4 to the manifest, and went away when I removed that bit. On Jan 21, 3:17 pm, OldSkoolMark m...@sublimeslime.com wrote: Yes,  the OOM is

[android-developers] Roll Call

2010-01-28 Thread Matt Kanninen
Would it be off topic, if I was to suggest, or just myself start a thread, where Android developers describe who they are, what countries they are in, what cities, etc? My name is Matt Kanninen I am in California. -- You received this message because you are subscribed to the Google Groups

[android-developers] Re: Variable values just get lost!??!?

2010-02-08 Thread Matt Kanninen
When I unexpectedly saw important, small, static strings get cleared, my solution was to surround them with getters and setters, and check if they were null each time. In the setter I would write them to private internal storage, and in the getter, if I found a null I'd check if they were stored

[android-developers] Re: Hey Mr or Ms Moderator...

2010-02-12 Thread Matt Kanninen
It is normal. This post of yours did make it through. On Feb 12, 6:26 am, tony obrien tobsourcecode...@gmail.com wrote: Hi, I have been attempting to operate within the android-developers and android-beginners Groups. I understand that new members are moderated, and completely agree with

[android-developers] Re: New sales have come to a halt Re: Developer console stopped updating?

2010-02-12 Thread Matt Kanninen
Google seems to be kind of busy. My Nexus 1 just got updated to 2.1 update 1, we're supposed to get Droid updates, they launched Buzz, people have started using Google Wave, and I'm really excited about Video and Voice chat in Gmail, using Googletalk, from Firefox or Chrome. On Jan 28, 5:43 am,

[android-developers] Re: IP Adress of android device

2010-02-12 Thread Matt Kanninen
I highly recommend you don't do Client to Client communcications if you can avoid it. You should do Client - Server - Client. There are lots of free server side options. I like App Enginer myself, but I have not had to do server side work since 2006. On Jan 28, 5:13 pm, Tony jituo...@gmail.com

[android-developers] New Android Project - Create from existing source - Unhandled event loop exception, java.lang.StackOverflowError

2010-02-23 Thread Matt Kanninen
This work flow is causing Eclipse to give me: Unhandled event loop exception java.lang.StackOverflowError Looking at the eclipse log it gives just a bit more information: Unhandled event loop exception java.lang.StackOverflowError org.eclipse.ui I am running: Eclipse IDE for Java Developers

[android-developers] Re: java.lang.OutOfMemoryError: bitmap size exceeds VM budget

2009-12-02 Thread Matt Kanninen
The app worked great on the G1. I've clearly hit a case where the framework made some decisions that result in poorer performance on the Droid. The bitmap out of memory errors can still occur on any setLayout(res/ xml/id), after running the app for 5-30 mins. But I did fix the bitmap out of

[android-developers] Re: java.lang.OutOfMemoryError: bitmap size exceeds VM budget

2009-12-02 Thread Matt Kanninen
What did I do wrong? I worked within the defined limitations, then a new handset came out with stricter limitations. I'm kind of confused how you can blame me! On Dec 2, 5:19 pm, Romain Guy romain...@android.com wrote: The Droid has more pixels and a high display density, therefore bitmaps

[android-developers] Re: java.lang.OutOfMemoryError: bitmap size exceeds VM budget

2009-12-02 Thread Matt Kanninen
since it gives apps more RAM (24 MB instead of 16 MB.) On Wed, Dec 2, 2009 at 5:29 PM, Matt Kanninen mathias...@gmail.com wrote: What did I do wrong?  I worked within the defined limitations, then a new handset came out with stricter limitations. I'm kind of confused how you can blame me

[android-developers] Re: java.lang.OutOfMemoryError: bitmap size exceeds VM budget

2009-12-03 Thread Matt Kanninen
on each asset. It'd be real cool if there was an easy way to just remove all my unused PNGs from my project, before I double them. I have not go through and removed every PNG that is no longer being referenced yet. My 2 cents, Matt Kanninen Android Developer On Dec 2, 8:38 pm, SoftwareForMe.com

[android-developers] Re: Beginner Bitmap Question

2009-12-03 Thread Matt Kanninen
http://developer.android.com/guide/topics/graphics/index.html#draw-with-canvas I think you next need to display your canvas. It does not appear to be attached to your view hierarchy, that I can see. You setContetView main, but I don't see you attach to any views. On Dec 3, 9:37 am, Neilz

[android-developers] Re: How to install my app and keep an icon from showing up in the application tray

2009-12-03 Thread Matt Kanninen
I recommend you don't display anything to the user until the next time they run the main application, and on first run of the main application you congratulate the user on the upgrade. You could go over board and add more code to the main application to test for the existence of the second

[android-developers] Re: how to support multi-touch of Android cupcake?

2009-12-03 Thread Matt Kanninen
http://groups.google.com/group/android-platform What led you to post that question here? Was it a google search? What was your search term? Did you follow a link? From where? On Dec 3, 1:44 am, JW jov...@gmail.com wrote: Is there anyone know how to add multi-touch function in cupcake? I

[android-developers] Re: Load Android App on HTC Smartphone?

2009-12-03 Thread Matt Kanninen
Go to your settings on your phone, make sure your application development settings have USB debugging checked. Do this on every phone you encounter, as soon as you encounter it. On Dec 3, 10:08 am, VBMichi michael.ka...@googlemail.com wrote: Already done, but the device list is still empty.

[android-developers] New SDK!

2009-12-03 Thread Matt Kanninen
As I wait for it download I'll enjoy the documentation. I'm particularly excited about: http://developer.android.com/guide/developing/tools/layoutopt.html layoutopt layoutopt is a command-line tool that helps you optimize the layouts and layout hierarchies of your applications. You can run it

[android-developers] Re: HTML sanitization

2009-12-04 Thread Matt Kanninen
http://d.android.com/reference/android/text/Html.html This lets you put sanitized html content into a textview. It's great for clickable links or styled text with inline images if you aren't too picky about where the image ends up. It's going to basically treat each image as a character in the

[android-developers] Re: Who do you consider as the Android mobile Apps developers Guru ?

2009-12-04 Thread Matt Kanninen
Go to http://groups.google.com/group/android-developers/about, it's the top 2 most frequent poster Dianne Hackborn and Mark Murphy. The both are rated 4 stars with over 200 ratings! One gets paid by google to, among other things, Guru for us, and the other gets payed by us when you buy his very

[android-developers] Re: The way to access the android phone.

2009-12-09 Thread Matt Kanninen
Write an Android application, send the apk to the handset from your PC software. Profit. On Dec 9, 3:47 pm, Paul Turchenko paul.turche...@gmail.com wrote: Same here On Dec 8, 2:17 pm, feng jack jacky...@gmail.com wrote: Hi, Buddies, I am writing a PC software, which is used to read,

[android-developers] Re: Only Droid Support Bluetooth API?

2009-12-09 Thread Matt Kanninen
I've had bluetooth issues on my Droid. I was able to get voice and music over bluetooth with my Jabra headset, but not my Sony car stereo. My Blackberry 8830 was able to play music fine over said stereo for years. I'm ready to put a good stereo into my 2 other cars, I was planning on waiting

[android-developers] Re: List view with textviews and imageview, best practices

2009-12-10 Thread Matt Kanninen
I did something similar, but the textView is populated from SQLLite. I'm still having issues with the SQLLite cursor. I tried: http://developer.android.com/reference/android/app/Activity.html#startManagingCursor%28android.database.Cursor%29 but at best it throws ugly log messages. So I'm

[android-developers] noHistory=true rocks

2009-12-10 Thread Matt Kanninen
activity android:name=.activities.Result android:label=@string/arl_results android:screenOrientation=portrait android:noHistory=true/ activity this was invaluable in debugging Droid out of Bitmap memory issues. -- You received this message because you are subscribed to the Google Groups

[android-developers] Re: java.lang.OutOfMemoryError: bitmap size exceeds VM budget

2009-12-10 Thread Matt Kanninen
I recommend the only things you make static be strings, and that for everything else you are considering making static, instead write it to file and use static methods, that expect to be passed a context, to access the data. I think my problems might be camera related, so my plan is to stop using

[android-developers] Re: noHistory=true rocks

2009-12-10 Thread Matt Kanninen
the history stack...  though I could be totally wrong. :p) On Thu, Dec 10, 2009 at 2:56 PM, Matt Kanninen mathias...@gmail.com wrote:        activity android:name=.activities.Result android:label=@string/arl_results android:screenOrientation=portrait android:noHistory=true/ activity

[android-developers] Re: AnimationDrawable and Out of Memory Errors

2009-12-10 Thread Matt Kanninen
Best of luck. I recommend you create a very small test application to reproduce the bug, and submit it to b.android.com. On Dec 10, 12:52 pm, Mark Hansen stonedon...@gmail.com wrote: So I want to start an animation when my application starts that always visible in the application.  So reading

[android-developers] Re: Block Switch App

2009-12-10 Thread Matt Kanninen
Not only is the source there, but it's pretty liberally licensed. I'm a fan of the Apache License now. On Dec 10, 12:57 pm, Jason Proctor jason.android.li...@gmail.com wrote: (btw, i have no connection with Google and IMHO Android is great but in no way perfect. but claiming that it's not open

[android-developers] Re: AnimationDrawable and Out of Memory Errors

2009-12-10 Thread Matt Kanninen
writing every class. On Dec 10, 3:47 pm, Romain Guy romain...@android.com wrote: If there's an OutOfMemoryError, it's most likely that the app is using too much memory and/or leaking. Filing a bug won't help. On Thu, Dec 10, 2009 at 3:43 PM, Matt Kanninen mathias...@gmail.com wrote: Best

[android-developers] Re: Camera intent - what's safe to use?

2009-12-10 Thread Matt Kanninen
Thanks for this, on reading it, it occured to me I have no reason not to invoke the standard camera intent instead of what I'm doing now. I just spent some time looking for best practices for result codes. I didn't find much, I plan to use MYACTIVITY.class.hashCode(). On a similar note, what do

[android-developers] Re: Camera intent - what's safe to use?

2009-12-10 Thread Matt Kanninen
On Android I'd say java or javac is basically a preprocessor for dalvik. On Dec 10, 4:39 pm, Jason Proctor jason.android.li...@gmail.com wrote: On a similar note, what do yall use for your log tags?  I go back and forth between static final Strings and this.getClass().getCanonicalName ().  The

[android-developers] Re: Camera intent - what's safe to use?

2009-12-10 Thread Matt Kanninen
As I understand it if you do public static final boolean DEBUG = false; if(DEBUG){ doStuff(); } javac will strip the doStuff call since it's known to be unreachable at compile time. On Dec 10, 4:59 pm, Jason Proctor jason.android.li...@gmail.com wrote: it would be nice to - #ifdef DEBUG

[android-developers] Re: java.lang.OutOfMemoryError: bitmap size exceeds VM budget

2009-12-10 Thread Matt Kanninen
sure the capacity of your cache of bitmaps is limited. Be sure to set the static reference to null when the activity is destroyed or paused, etc. On Dec 10, 6:05 pm, Matt Kanninen mathias...@gmail.com wrote: I recommend the only things you make static be strings, and that for everything else

[android-developers] Re: Camera intent - what's safe to use?

2009-12-10 Thread Matt Kanninen
Ok I'm at the point where I'm trying to read back the image returned from the camera, I didn't notice till now the Hero is special. So you're just doing what works for the Hero, catching the null pointer, then doing what works for the rest? I'm betting this is an Android 1.5 issue? Most of the

[android-developers] Re: Camera intent - what's safe to use?

2009-12-10 Thread Matt Kanninen
Ohh this is a lot uglier then I thought: http://code.google.com/p/android/issues/detail?id=1480 I think we need a google blog post on how to do this and support 1.5, 1.6 and 2.0 handsets. On Dec 10, 5:38 pm, Matt Kanninen mathias...@gmail.com wrote: Ok I'm at the point where I'm trying

[android-developers] Re: leaked window?

2009-12-11 Thread Matt Kanninen
On Dec 11, 9:45 am, stanlick stanl...@gmail.com wrote: It sure seems like there is a lot of guess-and-be-golly with Android today.  I'm not complaining guys -- just stating my observation. Today? It always has, and always will be. Although the problem could be helped if Google starts hiring

[android-developers] Re: java.lang.OutOfMemoryError: bitmap size exceeds VM budget

2009-12-11 Thread Matt Kanninen
:) On Dec 10, 8:27 pm, Matt Kanninen mathias...@gmail.com wrote: I don't get it.  If you're nulling your static bitmap in onPause why is it static to begin with? Also what you want to do is probably very different for a game that is basically all taking place in one activity and trying to avoid

[android-developers] } catch (OutOfMemoryError E) {

2009-12-11 Thread Matt Kanninen
Can I ask what Android does with un caught OutOfMemoryErrors that it wouldn't do if I caught them? It's really tempting for me to do this: try { setContentView(R.layout.result); } catch (OutOfMemoryError E) { outOfMemoryCount++; e.printStackTrace();

[android-developers] Re: US export law

2009-12-11 Thread Matt Kanninen
Not as described. It is possible to break US export laws from code, but its hard to do without seeing a big warning first. IIRC you have to code your own cryptography and make it too strong. It's silly, and I hope the law I'm thinking of isn't actually enforced anymore. On Dec 11, 10:16 am,

[android-developers] Re: AnimationDrawable and Out of Memory Errors

2009-12-11 Thread Matt Kanninen
to be the case. On Dec 10, 7:53 pm, Romain Guy romain...@android.com wrote: DDMS has a feature to dump the Java heap. You can then analyze is using tools like hat, MAT, JProfiler, etc. On Thu, Dec 10, 2009 at 4:17 PM, Matt Kanninen mathias...@gmail.com wrote: Got any advice on tools

[android-developers] Re: Extending the webkit or creating webkit plug in

2009-12-14 Thread Matt Kanninen
You can't extend webkit or the default browser on existing Android devices, but you can create your own Android distribution and alter webkit however you please, then install this new firmware on your own devices or make it available for rooted phones. You can also ship your own application that

[android-developers] Re: Why are onCreate() onStart() etc. called when handset orientation is changed?

2009-12-15 Thread Matt Kanninen
On Dec 15, 4:10 am, steff stefan.dierd...@googlemail.com wrote: But my problem is this (at this point my misunderstanding kicks in): whenever I rotate the device the onCreate(), onStart() etc. methods are called, causing my app to act as if it just started. Furthermore, I feel unable to

[android-developers] Re: Is there a way to print the activity stack ?

2009-12-15 Thread Matt Kanninen
Best way I know is to track state within your activities. Looking at the state diagram on: http://developer.android.com/reference/android/app/Activity.html if onResume has been called and onPause has not then your activity should be in the foreground. It might not have focus though, if a

[android-developers] Re: How to Read/Write .CSV

2009-12-15 Thread Matt Kanninen
Doesn't sound like an Android question to me, just look for Java CSV samples. If you need some Android examples for file IO those are plentiful. Here for example is how to write to your apps private directory: FileOutputStream fos = context.openFileOutput(fileName,

[android-developers] Re: GK:How to Kill all Activity at a time ?

2009-12-15 Thread Matt Kanninen
I've implemented a Sign Out function before which was much like exit except we still wanted the initial login screen to display. You can try to open your activities with startActivityForResult and in onActivityResult check if you were sent an exit code you chose, then call finish in every

[android-developers] Re: How to get the WebView UserAgent (without having a Context)

2009-12-15 Thread Matt Kanninen
So many things require a context I'm just in the habit at this point of passing the Context around everywhere. You can get in trouble if you try to preserve a reference to a context past it's lifetime though. On Dec 15, 10:59 am, Mariano Kamp mariano.k...@gmail.com wrote: Hi,   I am

[android-developers] Re: ActivityThread.ContextCleanupInfo leaking memory?

2009-12-16 Thread Matt Kanninen
dramatically less noticeable. Thanks, -Matt Kanninen On Dec 16, 8:19 am, freezy phree...@gmail.com wrote: Hi all, I'm trying to locate a memory leak in my app (it's client for a mediacenter). So I start it up, go to the screen that lists all movies, go back to my home activity, trigger

[android-developers] Re: Multiple screen sizes problem ( layouts )

2009-12-16 Thread Matt Kanninen
What uses layout-large? layout-long is used by my droid. On Dec 16, 7:18 am, Dilli dilliraomca...@gmail.com wrote: Hi all, I have created layout-large and testing against android 2.0.1 WVGA. however, its picking layout-normal. Can anybody suggest me what I am doing wrong. Even though, I

[android-developers] Re: ddms

2009-12-16 Thread Matt Kanninen
Try just using adb pull /data/anr/traces.txt /PC/YOUR_FOLDER On Dec 16, 5:37 am, Business Talk roman.businesst...@gmail.com wrote: I am trying to debug my device from a windows system with no IDE, just the android sdk, jdk and jre. I am using the ddms to do so. I works fine. I can see the

[android-developers] Re: OutofMemoryError: bitmap size exceeds VM budget.....

2009-12-18 Thread Matt Kanninen
How did you resolve it? I think we do need a list of ways one can cause this, how you figure out what caused it, and what to do to fix it. On Dec 18, 8:11 am, Abhi abhishek.r.sha...@gmail.com wrote: Resolved!!! On Dec 18, 9:25 am, Abhi abhishek.r.sha...@gmail.com wrote: Anyone? On Dec

[android-developers] Re: ClassLoader leaking memory?

2009-12-18 Thread Matt Kanninen
If you have a small sample that demonstrates the problem that seems perfect for b.android.com. On Dec 17, 6:01 pm, B++ bet...@gmail.com wrote: After some further analysis, it seems that the problem lies on the DexFile. The PathClassLoader internally invokes the DexFile which apparently unzips

[android-developers] Re: Upload multiple versions for single android application for different SDK levels 1.5, 1.6, 2.0

2009-12-18 Thread Matt Kanninen
An Android developer has to develop the habit of untraining management that is used to J2ME. If you release multiple different APKs you technically can fork your codebase, into different packages, to target different firmware. But you don't want to compete with yourself for market listings, you

[android-developers] Re: Camera intent - what's safe to use?

2009-12-18 Thread Matt Kanninen
On Dec 11, 4:37 pm, Vytautas Vaitukaitis vaitukaitis.vytau...@googlemail.com wrote: @Matt Yes, you're absolutely right - I'm trying to do what works on Hero - if that fails, I do what works on all the other phones. I'm not quite sure about which of the Camera API issues you're talking

[android-developers] Re: } catch (OutOfMemoryError E) {

2009-12-18 Thread Matt Kanninen
); e.printStackTrace(); finish(); } catch (InflateException e) { GlobalUtils.outOfMemoryCount++; Log.e(getClass().getCanonicalName(),GlobalUtils.outOfMemoryCount +GlobalUtils.outOfMemoryCount); e.printStackTrace(); finish(); } On Dec 11, 11:19 am, Matt Kanninen

[android-developers] Re: Android Dev Phone with Verizon?

2010-01-04 Thread Matt Kanninen
The Droid, and HTC's main line being G1 MyTouch and Hero are all popular handsets that work fine as dev phones. It doesn't seem like the other Android handsets are seeing much usage right now, based on the analytics I've seen. But I would choose carefully in picking which phones to develop on,

[android-developers] What does targetSdkVersion do?

2010-01-05 Thread Matt Kanninen
What does targetSdkVersion do? There isn't much detail on what targetSdkVersion actually does. I've read: http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#target android:targetSdkVersion An integer designating the API Level that the application is targetting.

[android-developers] Re: What does targetSdkVersion do?

2010-01-06 Thread Matt Kanninen
-screens. Can also disable compatibility features, like reporting a smaller size than the actual display and scaling your app up. See:http://developer.android.com/intl/zh-TW/guide/practices/screens_suppo... On Jan 5, 9:15 pm, Matt Kanninen mathias...@gmail.com wrote: What does targetSdkVersion do

[android-developers] Re: Null pointer exception

2010-01-06 Thread Matt Kanninen
I do the management in onStop, for my cursor which supplies the data needed by a ListView (which means the cursor has to be open whenever the activity is displayed). @Override protected void onStop() { super.onStop(); if(db!=null){

Re: 回复: [android-developers] Re: how to clear activity stack in task

2010-01-06 Thread Matt Kanninen
Hard to do without changing code. I always end having to implement logout(), so all my activities extend a custom base activity, and in that base activity in onCreate I always end up checking for a global static: if(!isLoggedIn){ finish(); return; } On Jan 6, 4:43 am, Zhihong GUO

[android-developers] Re: How to GIF image for a finate time

2010-01-06 Thread Matt Kanninen
Yeah that's probably the right answer. In theory you can open a GIF as a video, it hasn't worked for me in practice. Actually it pisses me off that in the specs for Android phones they say they support the GIF filetype. They really should say they have partial support, until GIFs are animated

[android-developers] Re: How to run application in Back ground?

2010-01-06 Thread Matt Kanninen
So most applications are android Activites, long running processes outside of a given activity should be Android Services. The other major kind of Android thingy are content providers. On Jan 6, 3:33 am, Ganeshkumar ganesh.andr...@gmail.com wrote: Hello Friends, I want to develope an

[android-developers] Re: Android Books?...

2010-01-06 Thread Matt Kanninen
I do get the impression most game developers ignore most of the Android specific stuff. They still have to respect the Android lifestyle, and a game or two I otherwise like fails to properly save state... but you basically end up writing directly to the canvas and can follow the standards for

[android-developers] Re: App crashes on Droid, works fine on G1

2010-01-08 Thread Matt Kanninen
Do you specify a target SDK in your manifest? Do you use any Droid specific layouts? What firmwares do you support? You can throw giant try catches around problematic code, log the exception to local file, and upload them to your servers. Although you might want to warn users you do this in

[android-developers] Re: What does targetSdkVersion do?

2010-01-08 Thread Matt Kanninen
. I can't help debug this issue too much longer either, I'll be off the project, and on to other Android applications soon. -MK On Jan 6, 4:27 pm, Dianne Hackborn hack...@android.com wrote: On Wed, Jan 6, 2010 at 3:10 PM, Matt Kanninen mathias...@gmail.com wrote:        supports-screens

[android-developers] Nexus bug

2010-01-08 Thread Matt Kanninen
I've found that you have to write firmware and or hardware specific camera code. As such I didn't touch the code inherited that worked on every Android handset. But it doesn't work on the Nexus. Mind you I saw similar setParameters failed errors on other handsets in the logs, but it just seemed

[android-developers] Re: Carnegie Mellon University seeks Android developers opinion

2010-01-08 Thread Matt Kanninen
This seems like an insightful survey. I like the idea of academic interest in this hard problem. On Jan 7, 9:26 pm, Mobile Survey CMU shikha...@gmail.com wrote: We are conducting a survey of mobile application developers aimed at improving our understanding of mobile application development,

[android-developers] Re: Battery Life vs Features

2010-01-14 Thread Matt Kanninen
It's pretty easy for users to check which applications are draining the battery, so it's in your interest not to have your application on the top of the list. I say conserve battery wherever possible, but a good user experience and quality application is more important. On Jan 14, 2:27 pm,

[android-developers] Re: Bitmaps and OutOfMemoryError: Best Practices needed

2010-09-03 Thread Matt Kanninen
I found OutOfMemory Bitmap errors happened more frequently when I had a compatibility mode set. Although that was just on the Moto Droid, on Android 2.1, back in December. On Sep 3, 12:44 pm, blahblah...@gmail.com blahblah...@gmail.com wrote: We can't split up the bitmap into smaller ones. It

[android-developers] Re: Your feedback on Samples/Tutorials/Articles

2010-04-09 Thread Matt Kanninen
I've been using Sidewiki, it's an easy way to comment on problems with documentation, it's almost as good as directly fixing the docs myself. On Mar 25, 12:41 pm, Fred Grott(Android Expert, http://mobilebytes.wordpress.com) fred.gr...@gmail.com wrote: Might I make suggestion? Several of us

[android-developers] Re: How to stay backwards and forwards compatible - targetSDKVersion, hdpi, minSDKVersion?

2010-04-16 Thread Matt Kanninen
On Apr 16, 3:31 pm, Dianne Hackborn hack...@android.com wrote: 3. Even if I leave out the targetSdkVersion=4, the app runs ok. So do I really need it? You do if you want the system to run your app as well as possible on SDK 4 or later. The worst bug I've had so far in Android development

[android-developers] Re: OutOfMemoryError: how best to transfer large video files into a byte array?

2010-04-21 Thread Matt Kanninen
I think you are on the right track. I have had very similar problems in the past. For me the temporary file solution was obvious because I had to modify the media before I uploaded it. Once you have a temporary file, then you have the generic problem of uploading a large file to a web server,

[android-developers] Re: Android on Symbian

2010-04-21 Thread Matt Kanninen
I've been told that my applications will be useless until they allow the user to make toast. In theory Symbian is being open sourced, and in theory Android is already open source, so as time goes by it should be easier to get them to inter operate. Also, Nokia does have a linux platfom, Maemo,

[android-developers] Re: Unit Testing : Who uses it ?

2010-04-21 Thread Matt Kanninen
I find that most of my problems are device or user specific issues. So to be useful, the unit tests would have to run on the actual hardware used by consumers, and would have to emulate the behavior of real users. Years ago, when I had to write a small bit of generic java code for server side

[android-developers] private input method

2010-04-29 Thread Matt Kanninen
Can I create an input method that is private, not available to other applications on the phone? -- 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

[android-developers] Re: private input method

2010-04-29 Thread Matt Kanninen
, Mark Murphy mmur...@commonsware.com wrote: Matt Kanninen wrote: Can I create an input method that is private, not available to other applications on the phone? Not that I am aware of, at least through the standard IME system. -- Mark Murphy (a Commons Guy)http://commonsware.com|http

[android-developers] Re: Is it possible to start an Activity from a non-context class?

2010-05-04 Thread Matt Kanninen
Yeah thats what I usually do. I'm also a fan of static methods that get passed a Context object. You can also have your application or activities extend an interface, and have your methods expect that interface. The important thing is that your utility code trigger an execution thread, with

[android-developers] Re: Access active window from a background service

2010-05-04 Thread Matt Kanninen
I hope not. On May 4, 10:10 am, Tudor Tihan tudorti...@gmail.com wrote: Is there a way to access the currently active window belonging to a different process from a background service and be allowed to modify some of its properties such as the transparency ? -- You received this message

[android-developers] Re: Lots of lost sales due to Credit Card authorization.

2010-05-04 Thread Matt Kanninen
I would suggest you post a thread discussing the issue on Android Developers, as you have already done. There is also help and support for the market application itself, I don't have the link handy. You can't actually make Google do anything, but it wouldn't surprise me if this is the sort of

[android-developers] Re: XMPP service, jabber , push notification

2010-05-05 Thread Matt Kanninen
It's hard to download an application from the Android Market without having a google account registered on the phone, it's hard to have a google account without a gmail account. I don't think there are many Android users who don't have a google account. There are probably some that have turned

  1   2   >