[android-developers] How to Check Accessibility TalkBack is ON or OFF Programmatically?
How to Check Accessibility TalkBack is ON or OFF Programmatically? Please Suggest... Thanks Regards, Abirami -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Simple database form example
I was afraid it would end up like that... Gone the Delphi days, gone... Gone the Objective-C days, gone... Thanks Steven -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Camera Orientation Issue
Hi I want to keep my camera in middle and place a top button bar and bottom button bar in my activity. I want to fix the activity in portrait mode. I need a support from 2.1 onwards. But each version is behaving differently. The method setDisplayOrientation() helps to display camera view normally instead of tilded view. I am forced to use Camera in landscape mode. I added in my manifest orientation as landscape. In this scenario everything works fine. If i change t portrait to fix my activity in always portrait the camera i get camera in center properly but all my top toolbar and bottom toolbar displayed in landscape. I want to use camera in landscape and place buttons in portrait. is there a way i can acheive this? -- *Thanks* *Chenna* -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Simple database form example
I don't think too many users would be happy with a machine generated edit dialog. On Oct 3, 2:27 pm, Jean-Michel jeanmichel.caz...@gmail.com wrote: I was afraid it would end up like that... Gone the Delphi days, gone... Gone the Objective-C days, gone... Thanks Steven -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: EditText with tiled background
Hi , Can anyone share working customseekbar example please Thanks in Advance.. On Thu, Sep 8, 2011 at 7:48 PM, Richard Lalancette richard.lalance...@gmail.com wrote: You can create an xml file for your background. In that XML file, you add an item called bitmap. On the bitmap item, you apply a PNG that can tile and set the tile mode to repeat. Example found here http://www.mokasocial.com/2011/02/create-a-custom-styled-ui-slider-seekbar-in-android/ ?xml version=1.0 encoding=utf-8? layer-list xmlns:android=http://schemas.android.com/apk/res/ android item clip shape gradient android:startColor=#FF5e8ea3 android:centerColor=#FF32a0d2 android:centerY=0.1 android:endColor=#FF13729e android:angle=270 / /shape /clip /item item clip bitmap xmlns:android=http://schemas.android.com/apk/res/ android android:src=@drawable/stripe_bg android:tileMode=repeat android:antialias=true android:dither=false android:filter=false android:gravity=left / /clip /item /layer-list Don't hesitate to grab 9-patch PNGs from my blog if you need :) android9patch.blogspot.com Richard. On Sep 7, 4:10 pm, Vladyslav Chyzhevskyi chyzhevs...@gmail.com wrote: Hi everyone! I tried to create EditText element with tiled background. I use 9-patch, but this scratch image for whole edit area, rather I want to repeat it, look like in picture below. https://lh4.googleusercontent.com/-4GC8DxBbmFs/TmfPKDk0GmI/AC.. . How I can do this? Any ideas? Thx a lot. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Debug.InstructionCount
Thanks for your help :) Ehsan On 29 September 2011 00:38, Kristopher Micinski krismicin...@gmail.comwrote: This isn't something you can (or should) be doing from the SDK alone. You'll want to look at another list, however I'd like to first just note that Dalvik already has support for this. (You can google dalvik profiler and find some information). You can also look into the implementation of the Debug class, though it didn't seem to provide enough to do full out profiling. And yes, this is at the VM level, not any native level. I'd say that if you're trying to write your own profiler from scratch, you'll want to look instead at some of the publicly available utilities, or in the worst case add some stuff onto android itself from what is already there. (Note however, that Dalvik does quite a bit of profiling to make informative decisions as to trace based JIT.) Kris On Thu, Sep 29, 2011 at 2:36 AM, ehsan azimzadeh ehsan.azimza...@gmail.com wrote: When I run a program, I want to count that how many times every Dalvik bytecode was executed. In other words bytecode profiling is my target. Can you help me? Thanks in advance Ehsan On 28 September 2011 06:07, Kristopher Micinski krismicin...@gmail.com wrote: Type of it? You mean like, Java type? It's dalvik, not everything runs ARM, and there wouldn't be a meaningful way to quantify this anyway, as the code is at least partially interpreted (ran on dalvik sans jit), plus API level 1 didn't *have* a jitter :-). Kris On Wed, Sep 28, 2011 at 8:37 AM, ehsan azimzadeh ehsan.azimza...@gmail.com wrote: Hi In below link: http://developer.android.com/reference/android/os/Debug.InstructionCount.html What do instructions mean? ARM instructions or Dalvik bytecodes? Which one? I want number and type of executed dynamic bytecode. How can I do this? Thanks Ehsan -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] binary not executing ?
I compile an normal C hello world program using arm-none-linux- gnueabi-gcc comiler. but i am executing generated binary file it prompt me bash: ./ Sample: cannot execute binary file error . When I compile using gcc compiler it generate a.out (default name), it executing properly. any body have any idea what I am doing wrong ? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: java.lang.exceptionInInitializerError
Hi, Thank you for the reply. I've solved the error by rebuilding everything (included my data), and it works. On Sep 23, 7:26 pm, RichardC richard.crit...@googlemail.com wrote: What is the source code around TestGame01.java:369 ? On Sep 23, 4:55 am, onionbread futh...@gmail.com wrote: 09-22 22:47:08.036: ERROR/AndroidRuntime(31237): FATAL EXCEPTION: main 09-22 22:47:08.036: ERROR/AndroidRuntime(31237): java.lang.ExceptionInInitializerError 09-22 22:47:08.036: ERROR/AndroidRuntime(31237): at java.lang.Class.newInstanceImpl(Native Method) 09-22 22:47:08.036: ERROR/AndroidRuntime(31237): at java.lang.Class.newInstance(Class.java:1429) 09-22 22:47:08.036: ERROR/AndroidRuntime(31237): Caused by: java.lang.UnsatisfiedLinkError: Library TestGame01 not found 09-22 22:47:08.036: ERROR/AndroidRuntime(31237): at java.lang.Runtime.loadLibrary(Runtime.java:461) 09-22 22:47:08.036: ERROR/AndroidRuntime(31237): at java.lang.System.loadLibrary(System.java:557) 09-22 22:47:08.036: ERROR/AndroidRuntime(31237): at com.test.android.TestGame01clinit(TestGame01.java:369) 09-22 22:47:08.036: ERROR/AndroidRuntime(31237): ... 15 more On Sep 22, 7:47 pm, RichardC richard.crit...@googlemail.com wrote: You have missed out the importent bits from the ddms log. Look for a line that includes caused by and/or include more of the exception log so we can have a look at it. On Sep 21, 10:27 am, onionbread futh...@gmail.com wrote: Hi, I'm new to android development but I have background in C++ and a bit of java. I'm trying to run a game in Samsung Galaxy S but it crash. When I check the error message from ddms, it shows: FATAL EXCEPTION: main java.lang.ExceptionInInitializerError at java.lang.Class.newInstanceImpl(Native Method) at java.lang.Class.newInstance(Class.java:1429) ... and so on What I want to know is, what exactly is the meaning of this error, does it crash during an initialization? If yes, is the location in the c main file or in java file? I read some information on android developer's reference (http:// developer.android.com/reference/java/lang/ ExceptionInInitializerError.html#ExceptionInInitializerError()) But, honestly, I still don't get it. I tried google this error message but couldn't find the answer I'm looking for. Any explanation on this error will be much appreciated. Thank you very much. :) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Simple database form example
Just for the record, Delphi or the Apple dev framewiork do not generate edit dialog, they rather do the opposite. You draw your dialog, bind widgets to your data(source) and the rest of it is automated. You have actually 0 line of code to write to do a simple DB edit form, even a master-detail from, just draw the page. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: GOOGLE PLUS-ANDROID INTEGRATION
Hey, The way to interact with g+, and specially with OAuth is the same one than for FaceBook. So you can have a look within their Api and do the same (or the FB's Android API sucks). As i know there is no special API for Android, but i think it should come soon (from open world or Google, who knows?). No obvious but can be done. After that you use their web-service, you unparse it and all should run. kind regards On Oct 3, 7:01 am, TreKing treking...@gmail.com wrote: On Fri, Sep 30, 2011 at 11:47 PM, krishna kumar krishna1...@gmail.comwrote: Pls help me with some links http://tinyurl.com/6jfskrm - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Select Tag - Item text not displayed in android tablet same as in Desktop browser
Hi, Did you solve the problem? I have the same problem as you described. On Aug 18, 12:38 pm, Arun David Shelly arundavidshe...@gmail.com wrote: Hi, My question is HTMLSelecttagwith Multiple selection same as in web applications is supported in android or not? On Aug 17, 8:22 pm, rich friedel rich.frie...@gmail.com wrote: I don't think there is supposed to be quotes around the 5 in the size attribute -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Select Tag - Item text not displayed in android browser
why HTML select Tag is not showing the text of the items when it viewed using android browser. Desktop browser showing the items with text visible but browser in android 2.3 mobile is not showing the text of the items. select option value=1Option 1/option option value=2Option 2/option option value=3Option 3/option option value=4Option 4/option option value=5Option 5/option option value=6Option 6/option /select -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: HTTP response Problem
Google recommends to use ResponseHandler for parsing contents of the entity, so I use the following code. Also there you can easily handle compressed (gziped) contents. As for encoding, first you should try to extract encoding information from the header. private ResponseHandlerString responseHandler = new ResponseHandlerString() { @Override public String handleResponse(HttpResponse response) throws ClientProtocolException, IOException { StatusLine statusLine = response.getStatusLine(); if (statusLine.getStatusCode() = 300) { throw new HttpResponseException(statusLine.getStatusCode(), statusLine.getReasonPhrase()); } HttpEntity entity = response.getEntity(); if(entity == null) return null; InputStream instream = entity.getContent(); Header contentEncoding = response.getFirstHeader(Content- Encoding); if (contentEncoding != null contentEncoding.getValue().equalsIgnoreCase(gzip)) { instream = new GZIPInputStream(instream); } return entity == null ? null : this.toString(entity, instream, UTF-8); } /** * Reads entity input stream into String with the given encoding. * Base code taken from org.apache.http.util.EntityUtils and slightly corrected * @param entity * @param instream * @param defaultCharset * @return * @throws IOException * @throws ParseException */ public String toString( final HttpEntity entity, final InputStream instream, final String defaultCharset) throws IOException, ParseException { if (entity == null) { throw new IllegalArgumentException(HTTP entity may not be null); } if (instream == null) { return null; } if (entity.getContentLength() Integer.MAX_VALUE) { throw new IllegalArgumentException(HTTP entity too large to be buffered in memory); } int i = (int)entity.getContentLength(); if (i 0) { i = 4096; } String charset = EntityUtils.getContentCharSet(entity); if (charset == null) { charset = defaultCharset; } if (charset == null) { charset = HTTP.DEFAULT_CONTENT_CHARSET; } Reader reader = new InputStreamReader(instream, charset); StringBuilder buffer=new StringBuilder(i); try { char[] tmp = new char[1024]; int l; while((l = reader.read(tmp)) != -1) { buffer.append(tmp, 0, l); } } finally { reader.close(); } return buffer.toString(); } }; protected String doGET(HttpClient cln, String url) throws IOException { HttpGet get = new HttpGet(url); setHttpHeader(get); //setup our request header data String responseS = null; try { responseS = cln.execute(get, new ResponseHandlerString()); return responseS; } catch(IOException iex) { //do some clean-up and rethrow throw iex; } } On Oct 2, 11:11 pm, Bob Kerns r...@acm.org wrote: One other little flaw there -- possibly serious -- is not specifying the encoding in the new InputStreamReader(stream, encoding) call. Generally, you should use UTF-8 if you have a choice -- and you should use
[android-developers] Android and QT
Hello! I have only question. Is any official support for qt in Android-based devices? If so, where can be find emulator for the Android device and other helpful information for getting started? Thank you beforehand for answers. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Text Animation
hi, i want to use marquee text move text bottom to top in android. any one help me out to solve my problem plz -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] android upgrading to 3.0?
Hello I am new to the group and would like to know how do I update my android, because my wireless carrier has not released the new versions... thanks -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] how can I start working on mind map
Hello All, I am totally new to the graphics world of android. Currently I am working on a project that will have the notes and I have to draw mind map according to that note. Currently I don't have any idea how can I opt the graphics for this kind of map? should I use open gl or it can be done with simple graphics class also? or is there any library that is providing such kind of memory map view. Thanks in advance. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Android and QT
Il Mon, 03 Oct 2011 01:33:16 -0700, Dmitriy Nikolaev ha scritto: I have only question. Is any official support for qt in Android-based devices? No. You must use the Android framework for GUIs. Bye. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: App crash report - InputChannel - could not read input channel file descriptors from parcel.
I just discovered today that the Samsung Galaxy S and/or the Nexus S are among those devices listed as OTHER, while tracking a NullPointerException in RingtonePickerActivity: http://stackoverflow.com/questions/5874372/nullpointerexception-when-calling-ringtonepreference-on-samsung-galaxy-s So it's another bug in a Samsung firmware (anyone remember their 2.2.1 for the Galaxy S losing randomly losing 3-rd party app settings?), but... guess who got the blame for this one? It seems very unusual and wrong to list a device from a major manufacturer that sold over 10 million units as, effectively, unknown, and doesn't help at all with analyzing the crash reports. I am also starting to suspect that Market sometimes corrupts applications while installing, or at the very least, there is a race condition with respect to manifest registered broadcast receivers. There is a bunch of these in my Market console: java.lang.RuntimeException: Unable to instantiate receiver class name here: java.lang.ClassNotFoundException: class name here in loader dalvik.system.PathClassLoader[/data/app/apk name -1 or -2.apk] Anyone seeing similar reports? ( And yes, the receiver is registered in the manifest, the class is present in the app, it does not reference internal or version-specific APIs, and works perfectly on a half-dozen devices I have from different vendors ) -- Kostya 03.10.2011 8:25, Zsolt Vasvari пишет: Once you have your app published for a while, you will see all kinds of weird crash reports. I, for example, cannot duplicate 80% of the crash reports I get. Of course, Google's refusal to actually share any info about the device, such as device type, OS version, etc, makes it extremely difficult to do anything. -- Kostya Vasilyev -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: how to check if device has hardware search key
On Sat, Oct 1, 2011 at 8:12 AM, Zsolt Vasvari zvasv...@gmail.com wrote: Having said that however, it will also say that using hardware buttons is likely to give a more pleasant user experience so it would be worth considering even for the end user interface. What's your definition of hardware buttons? Do you consider the buttons on the Nexus One to be hardware? I don't -- they are dedicated buttons, but there is nothing mechanical about them. It really is no different than using the button bar on Honeycomb. Sorry, hardware was not the right term to use. I have no hands-on experience with Android past 2.2 so I didn't realise there are on-screen system/button/status/whatever bars on Honeycomb. I'm still not sure how exactly those work anyway, especially how they interact with full-screen apps. I guess what I meant was how to check if the device has a control element that's always there, that the user can operate at any time and that sends KEYCODE_SEARCH. Ordinary hardware pushbutton is OK, virtual key (like on Galaxy S or Galaxy Tab or I presume Nexus One) is OK, an on-screen overlay that's never hidden even if the app is full-screen GLES would be OK, too. Sorry for the confusion, hope this makes it clearer. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: ListView and MotionEvent
On Mon, Oct 3, 2011 at 3:57 AM, Studio LFP studio@gmail.com wrote: The HTC Hero is fairly old. I keep one around because it's quite slow and if I can make something function fast on it, it will run exceptionally well on new hardware. As a curiosity does it have two way na vigation (just a scrollwheel and no touchscreen) for navigating up and down like on the blackberry, so that up and down sometimes also means left and right, or does it have separate left and right buttons. This makes a difference when programming the focusing of events. On a keyboard we have two degrees of freedom for navigation but with a single scrollwheel it's only one. If I program for two degrees of freedom devices with a single degree of freedom may find some buttons inaccessible if laid out horizontally. Any suggestions with this regard? Yes, it is nice to have an app also work with a keyboard attached to a tablet. Also, when I press enter on a listview item nothing happens. I thought it would generate a mousedown on the emulator but nothing happens. Do I need to modify my code to listen for some more events? Thanks, John Goche On the tablet you can use both a wired and a Bluetooth mouse (I've used a wired mouse and Bluetooth keyboard simultaneously). You shouldn't have to worry too much about the mouse as it is considered fake touch and just acts like a simulated finger event. Check out the Touchscreen section at this link to understand how to support it: http://developer.android.com/guide/topics/manifest/uses-feature-element.html#hw-features What you might want to test out is a tablet or phone with a Bluetooth keyboard with directional keys. I've run into a few apps that I wanted to use the directional keys on my Bluetooth keyboard and it wouldn't function properly. If you plan on doing apps that take a lot of input (like typing information in), your users will thank you if you support navigation via the keyboard. I'm not fond of having to constantly touch the screen to change input boxes when I have a tab and directional keys available. Some of the specialty hardware, like the Sony Xperia Play, have controls that take special consideration. I picked one up to make sure I could test things properly on an actual piece of hardware. Some even have special SDK add-ons available via Eclipse or from the manufacturers sites. It is one of the things that makes Android more challenging to code for, but I personally enjoy the challenge. It also gives us, the consumers, a lot of options and doesn't force everyone to be the same. Steven Studio LFP http://www.studio-lfp.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: how to check if device has hardware search key
On Sat, Oct 1, 2011 at 8:42 AM, Dianne Hackborn hack...@android.com wrote: What do you mean by go to settings and map their buttons? There is a well-defined keycode for search; you shouldn't need to ask the user to map that to anything. Sure, but as I mentioned in a previous message I'm explicitly and intentionally *not* using the button to search. I'm working on a game (well, entertainment software would be a more precise description but anyway ...) and to make it short, I'm just looking for a convenient way to control the program during development. Note this is *not* meant for release controls, at least at the moment. The problem is developers need to access more internal functionality directly (e.g. for testing) than will be exposed to the end user so I'm just looking for something reasonable to bind this to. In this case, it's much more convenient to operate the program using off-screen controls so I'm looking to leverage whatever the devices has. I already have a section in Preferences that lets people pick a control scheme based on what their device has so that's not a problem. I just thought if I could detect it myself I could automatically select a good default for the user. If I can't check I have to set the default to the least convenient scheme that works everywhere and ask everybody with devices that support more to set their controls manually. What would be the problem with letting programmers check if there's something on the device that sends KEYCODE_SEARCH? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: ListView and MotionEvent
I also noticed that a disabled button can be focused, which could require having to design a separate icon. I don't understand the point of this combination: if a button is disabled why does android make it possible for it to receive the focus? Regards, John Goche On Mon, Oct 3, 2011 at 12:00 PM, John Goche johngoch...@googlemail.comwrote: On Mon, Oct 3, 2011 at 3:57 AM, Studio LFP studio@gmail.com wrote: The HTC Hero is fairly old. I keep one around because it's quite slow and if I can make something function fast on it, it will run exceptionally well on new hardware. As a curiosity does it have two way na vigation (just a scrollwheel and no touchscreen) for navigating up and down like on the blackberry, so that up and down sometimes also means left and right, or does it have separate left and right buttons. This makes a difference when programming the focusing of events. On a keyboard we have two degrees of freedom for navigation but with a single scrollwheel it's only one. If I program for two degrees of freedom devices with a single degree of freedom may find some buttons inaccessible if laid out horizontally. Any suggestions with this regard? Yes, it is nice to have an app also work with a keyboard attached to a tablet. Also, when I press enter on a listview item nothing happens. I thought it would generate a mousedown on the emulator but nothing happens. Do I need to modify my code to listen for some more events? Thanks, John Goche -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Anyone got an example using CipherInputStream and PBE to work ?
Thanks, i will have a look. Sounds like i may completely have a wrong impression how the cipherstream have to be used. I was curious about how this can work: /* * Read a predefined data block. If the password is incorrect, we'll get a security * exception here. Without this, we will only get an IOException later when reading * the CipherInputStream, which is not specific enough for a good error message. */ int count = streamIn.read(); if (count = 0 || count 1024) { throw new IOException( mContext.getString(R.string.backup_restore_error_bad_file)); } byte[] input = new byte[count]; streamIn.read(input); pbeCipher.doFinal(input); -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] C2DM any example and some documents to read for
Thanks and Regards:- Ankur Goel 09019040351 S/W Engg. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] binary not executing ?
If you are trying to modify firmware, head over to http://source.android.com and find a group there on the Community tab. If you are trying to use the NDK, use the [android-ndk] Google Group. On Mon, Oct 3, 2011 at 4:06 AM, shubh shubhampatn...@gmail.com wrote: I compile an normal C hello world program using arm-none-linux- gnueabi-gcc comiler. but i am executing generated binary file it prompt me bash: ./ Sample: cannot execute binary file error . When I compile using gcc compiler it generate a.out (default name), it executing properly. any body have any idea what I am doing wrong ? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android 3.1 Programming Books: http://commonsware.com/books -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] how to change color of fonts in a listView?
I using a listView, but I set its background color to white, due to application requirements. when I run application, it showed a blank white screen when it went into the 'chapters-menu' activity. It only show when I 'highlight' the entire listView while application is running. I've a xml file that has the following layout with listview and buttons here. I try to change front by using 'android:color' attribute to @color/black, but still show blank screen. Here is the XML file ListView android:id=@+id/chapters_list android:layout_width=fill_parent android:layout_height=wrap_content android:layout_weight=1.0 android:textColor=@color/black / Button ... / Button ... / the following are the sources codes import android.os.Bundle; import android.widget.ArrayAdapter; import android.widget.ListView; import android.widget.Toast; import android.app.Activity; import android.view.View; public class cimaE1Chapters extends Activity { String[] chapters; /** Called when the activity is first created. */ public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.cimae1chapters); ListView list = (ListView) findViewById(R.id.chapters_list); chapters = getResources().getStringArray(R.array.chapters_array); list.setAdapter(new ArrayAdapterString(this, android.R.layout.simple_list_item_1, chapters)); } } much help is appreciated. thank you! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] how to change color of fonts in a listView?
On Mon, Oct 3, 2011 at 5:38 AM, Isaac Ng man.utd.juventus...@gmail.com wrote: I using a listView, but I set its background color to white, due to application requirements. You should probably do this by setting Theme.Light for the activity in the manifest, so everything adjusts in tandem, including your text color: http://developer.android.com/guide/topics/ui/themes.html#ApplyATheme I've a xml file that has the following layout with listview and buttons here. I try to change front by using 'android:color' attribute to @color/black, but still show blank screen. There is no android:color attribute on ListView or Button. Here is the XML file ListView android:id=@+id/chapters_list android:layout_width=fill_parent android:layout_height=wrap_content android:layout_weight=1.0 android:textColor=@color/black / There is no android:textColor attribute on ListView. If for some reason you do not want to use Theme.Light, you will need to supply an appropriate row layout to your Adapter that has the desired text color set on the TextView widget inside that row. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android 3.1 Programming Books: http://commonsware.com/books -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Android USB reverse tethering: How to fool the apps
Oh that's fine. But is there a run-time solution? I mean maybe we can just modify something at /sys or /dev at run-time? I don't quite understand how ConnectivityManager determines whether there is a Wi-Fi or GPRS/3G connection. On Oct 3, 9:59 am, Nikolay Elenkov nikolay.elen...@gmail.com wrote: On Sun, Oct 2, 2011 at 10:36 PM, Cyker Way cyker...@gmail.com wrote: So the question is: How can I hack the system to let this network connection check return success (so that I can fool these apps)? BTW. I use Cyanogenmod 7. And any solution specific to this MOD is also welcome. Modify ConnectivityManagerService (or whatever the actual name is) to return 'connection available' when your tethering is active. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Augmented Reality - Tutorial
Hey Folks, I am currently interested to create an Augmented Reality application for Android. I have no problem to create normal Android application and I am familiar with IDE, SDK and etc. But I just have no idea where to start for this Augmented Reality (AR) stuff. My intention is actually to make the drawing in the paper come alive in 3D when using the Android camera. But most of the tutorial in the web describing about the GPS and etc. I really need your help to point me any references I can use to create the application mentioned above. Thank's.. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Augmented Reality - Tutorial
use qualcomm sdk On Mon, Oct 3, 2011 at 4:46 PM, EdwardComb dzn.aie...@gmail.com wrote: Hey Folks, I am currently interested to create an Augmented Reality application for Android. I have no problem to create normal Android application and I am familiar with IDE, SDK and etc. But I just have no idea where to start for this Augmented Reality (AR) stuff. My intention is actually to make the drawing in the paper come alive in 3D when using the Android camera. But most of the tutorial in the web describing about the GPS and etc. I really need your help to point me any references I can use to create the application mentioned above. Thank's.. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Regards Abhishek Talwar 9953395712 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: 3d models in Android
For some guidance, take a look at this: http://libgdx.l33tlabs.org/docs/api/com/badlogic/gdx/graphics/g3d/loaders/obj/ObjLoader.html I've used that with obj files exported from Blender before. It's a fairly simple file format for representing the geometry of an object so you could easily write your own importer / adapt another. On Oct 3, 1:51 am, bob b...@coolgroups.com wrote: What is the easiest way to load 3d models in Android? I'm looking for something compatible with a GL10 object. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] big arrays don't cry - just an alibi
So, I had a great idea. Why don't I stick my 3d model in as an array? Here's the result: https://sites.google.com/site/coolfonne/Spaceship.java Now, I get this error: The code of constructor Spaceship() is exceeding the 65535 bytes limit Is there any easy way around this? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Getting ActivityResult on click of a Button
Hi I have started a activity B from a Activity A by calling startActivityForResult(A,B) The activity B is collecting objects in every 1 min and adding into a List. I have a DONE button on my activity A. I want to get result whenever DONE button clicked. Please let me know the best way. thanks Chenna -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re : SDcard permission
Hi members, I having problem in setting read-write permission for my SDcard in android emulator.If i set read-write persmission and restart my emulator it reset to default read-only permission.Similarly i m not able to install market in my emulator.can anyone help me out of this? thanks regards, Vivek -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] InflateException: Error inflating class issue
Hi Everyone, I have an app which I'm testing out on Android 2.0 (emulator) that's currently throwing me an error - of which I've found the cause. The error is: android.view.InflateException: Binary XML file line #7: Error inflating class unknown This error is being thrown when my activity tries to inflate a layout file with background images in it. If I remove the background images from the elements within that layout file, I don't get the error anymore and my layout file get's loaded into view - only without the artwork ofcourse. I've googled around and have found other instances of this error being caused by the size of the images used being too large. My background images aren't large at all, kb sizes are as follows for the largest background image in that layout file: hdpi: 102kb mdpi: 66.2kb ldpi: 66.2kb I have three other images in the layout file that don't exceed 14kb in size. I've tried removing the largest image in the layout file to see if the others which are a lot less in size would still cause this error to be thrown and unfortunately it does. Worth mentioning that I don't have this problem on Android 2.0.1 and above, and all my images are pngs. Any suggestions would be very much appreciated. Thanks! - Tonez -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re : SDcard permission
On Mon, Oct 3, 2011 at 7:42 AM, vivek elangovan elangovan.vi...@gmail.com wrote: I having problem in setting read-write permission for my SDcard in android emulator.If i set read-write persmission and restart my emulator it reset to default read-only permission. You don't set the read-write permission for the SD card in the emulator. That is managed by the OS. Your app needs to hold the WRITE_EXTERNAL_STORAGE permission. Similarly i m not able to install market in my emulator.can anyone help me out of this? The Android Market is not available for the emulator. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android 3.1 Programming Books: http://commonsware.com/books -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Getting ActivityResult on click of a Button
On Mon, Oct 3, 2011 at 7:41 AM, Chenna chenn...@gmail.com wrote: I have started a activity B from a Activity A by calling startActivityForResult(A,B) The activity B is collecting objects in every 1 min and adding into a List. I have a DONE button on my activity A. I want to get result whenever DONE button clicked. Since Activity B is on the screen, the user cannot click a button in Activity A. If the button were in Activity B, you could call setResult() and finish() to return control to Activity A with a result value. The point behind startActivityForResult() is for you to display an activity, the user to make a choice, and for that choice to be returned to the initial activity. It is not designed for collecting objects every 1 min and adding into a List. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android 3.1 Programming Books: http://commonsware.com/books -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re : SDcard permission
Use appmanager or astor file manager u will find it from market Thanx On 3 Oct 2011 17:13, vivek elangovan elangovan.vi...@gmail.com wrote: Hi members, I having problem in setting read-write permission for my SDcard in android emulator.If i set read-write persmission and restart my emulator it reset to default read-only permission.Similarly i m not able to install market in my emulator.can anyone help me out of this? thanks regards, Vivek -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] android upgrading to 3.0?
Then you can't now unless other carriers did that and someone ripped what's needed for your device. Search xda-developers forum Regards, Marcin Orlowski *Tray Agenda http://bit.ly/trayagenda* - keep you daily schedule handy... *Date In Tray* http://bit.ly/dateintraypro - current date at glance... WebnetMobile on *Facebook http://webnetmobile.com/fb/* and *Twitterhttp://webnetmobile.com/twitter/ * -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Default ringtone in preferences
I have this in my preferences.xml RingtonePreference android:key=ringtone_uri android:title=@string/preferences_select_ringtone android:showDefault=true android:srinlent=true android:summary=@string/ preferences_select_ringtone_summary / And every time when I first start fresh install of an app, the default value in silent :(, When I tap on the ringtone preference the dialog is opened with silent selected as default. I want by default Default ringtone to be selected. How can I do this -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] big arrays don't cry - just an alibi
Keep this as a large static array? Kris On Mon, Oct 3, 2011 at 7:37 AM, bob b...@coolgroups.com wrote: So, I had a great idea. Why don't I stick my 3d model in as an array? Here's the result: https://sites.google.com/site/coolfonne/Spaceship.java Now, I get this error: The code of constructor Spaceship() is exceeding the 65535 bytes limit Is there any easy way around this? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Sometimes Receiver Not Receiving Any Broadcast Message
Hi, I have create a receiver which receive on mount/unmount state change I have register it in XML by android.intent.action.MEDIA_MOUNTED and android.intent.action.MEDIA_EJECT But sometime it don't receive any broadcast message How to fix this issue?? Thanks Rajesh -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Getting ActivityResult on click of a Button
Thanks for your clarification. I will explain you little more details. I have started a launched MainActivity and started a SubActivity for Result. In subactivity i am scanning barcode of items from barcode app and adding items in collection. I have to return the scanned items after clicking done button in subactivity. I am creating a Message object and returning message.sendToTarget() is it the right way I am doing? thanks Chenna On Mon, Oct 3, 2011 at 5:59 PM, Mark Murphy mmur...@commonsware.com wrote: On Mon, Oct 3, 2011 at 7:41 AM, Chenna chenn...@gmail.com wrote: I have started a activity B from a Activity A by calling startActivityForResult(A,B) The activity B is collecting objects in every 1 min and adding into a List. I have a DONE button on my activity A. I want to get result whenever DONE button clicked. Since Activity B is on the screen, the user cannot click a button in Activity A. If the button were in Activity B, you could call setResult() and finish() to return control to Activity A with a result value. The point behind startActivityForResult() is for you to display an activity, the user to make a choice, and for that choice to be returned to the initial activity. It is not designed for collecting objects every 1 min and adding into a List. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android 3.1 Programming Books: http://commonsware.com/books -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- *Thanks* *Chenna* -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: GLSurfaceView's onPause and onResume called in Activity's onStop and onStart to handle partially transparent child-activities. Is this OK?
Buehler, anyone, Buehler..? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Layout
Why do you need a back button on your layout? The current CCC states that device implementations MUST make these functions available to the user at all times, regardless of application state. These functions SHOULD be implemented via dedicated buttons. A physical back button is standard, having a button on your layout is redundant at best. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: big arrays don't cry - just an alibi
OK, I don't know the source of that error off the top of my head, but a hunch would suggest you should consider whether you need that level of precision in your co-ordinates! On Oct 3, 12:37 pm, bob b...@coolgroups.com wrote: So, I had a great idea. Why don't I stick my 3d model in as an array? Here's the result: https://sites.google.com/site/coolfonne/Spaceship.java Now, I get this error: The code of constructor Spaceship() is exceeding the 65535 bytes limit Is there any easy way around this? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Getting ActivityResult on click of a Button
On Mon, Oct 3, 2011 at 9:27 AM, Chenna Venkatasubbaiah chenn...@gmail.com wrote: I have started a launched MainActivity and started a SubActivity for Result. In subactivity i am scanning barcode of items from barcode app and adding items in collection. I have to return the scanned items after clicking done button in subactivity. OK. I am creating a Message object and returning message.sendToTarget() is it the right way I am doing? Not for startActivityForResult(). Quoting the Activity documentation: When an activity [started by startActivityForResult()] exits, it can call setResult(int) to return data back to its parent. It must always supply a result code, which can be the standard results RESULT_CANCELED, RESULT_OK, or any custom values starting at RESULT_FIRST_USER. In addition, it can optionally return back an Intent containing any additional data it wants. All of this information appears back on the parent's Activity.onActivityResult(), along with the integer identifier it originally supplied. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android 3.1 Programming Books: http://commonsware.com/books -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: big arrays don't cry - just an alibi
If you go down to float you get half the size, ~16kb vs ~8kb? Kris On Mon, Oct 3, 2011 at 9:44 AM, Oli oli.wri...@gmail.com wrote: OK, I don't know the source of that error off the top of my head, but a hunch would suggest you should consider whether you need that level of precision in your co-ordinates! On Oct 3, 12:37 pm, bob b...@coolgroups.com wrote: So, I had a great idea. Why don't I stick my 3d model in as an array? Here's the result: https://sites.google.com/site/coolfonne/Spaceship.java Now, I get this error: The code of constructor Spaceship() is exceeding the 65535 bytes limit Is there any easy way around this? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] how to implement sync mobile data base and online mysql server
hi I am developing android app. How to implement sync between mobile database and online mysql server. please give me some example code for sync. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Layout
I hope nobody minds if I jump in on this topic. I wanted to ask whether implementations should interpret the back button as an OK or as a Cancel when a form has data. Regards, John Goche On Mon, Oct 3, 2011 at 3:39 PM, Chrystian Vieyra chrys.vie...@gmail.comwrote: Why do you need a back button on your layout? The current CCC states that device implementations MUST make these functions available to the user at all times, regardless of application state. These functions SHOULD be implemented via dedicated buttons. A physical back button is standard, having a button on your layout is redundant at best. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Layout
It depends on the actual use case. For example: preference activities typically don't use a dedicated Ok or Save button, to pressing Back applies the changes. Edit a data item type activities typically have an Ok or Save (but not Back) button that saves the data and closes the activity. Pressing Back in these doesn't save the changes. -- Kostya 03.10.2011 17:59, John Goche ?: I hope nobody minds if I jump in on this topic. I wanted to ask whether implementations should interpret the back button as an OK or as a Cancel when a form has data. Regards, John Goche On Mon, Oct 3, 2011 at 3:39 PM, Chrystian Vieyra chrys.vie...@gmail.com mailto:chrys.vie...@gmail.com wrote: Why do you need a back button on your layout? The current CCC states that device implementations MUST make these functions available to the user at all times, regardless of application state. These functions SHOULD be implemented via dedicated buttons. A physical back button is standard, having a button on your layout is redundant at best. -- 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 mailto:android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com mailto:android-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Kostya Vasilyev -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Inapp billing question
You don't need to press that save button, uploading the new apk is sufficient. Even if you press the save button, nothing changes because the old version is already live on the market (the message in the developer's console is a bit irritating because it reads these APKs will be live, but of course only one apk can be live at a time). Cheers Emanuel On Oct 2, 9:36 pm, androidmediadeveloper kamathaj...@gmail.com wrote: So, there is a way to upload a new version of the app (previous free app already exists in market with same package name) without publishing it ? The market warns Clicking Save will make the app live on market Thanks Ajith -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: LVL and InApp Billing
Sorry, yea, ours will be a managed item available via inapp billing. Interesting, so without LVL, its not possible to get data points on how many devices have the app installed ? I'm assuming the android market automatically allows for apps (paid or not) to be installed on all the user's devices, correct ? (as long as the min sdk version, etc match). So, if you have 5 android 2.3 devices you are the primary account on, any paid app you purchase can be installed on all those 5 devices ? Thanks ! On Oct 1, 5:17 pm, John Coryat cor...@gmail.com wrote: You didn't say if you are using managed or unmanaged items. If you're using managed, then perhaps LVL might be useful. If you're using unmanaged, then you have a server back end to distinguish between real and pirate charges. -John Coryat -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Inapp billing question
but of course only one apk can be live at a time Actually, you can have multiple live apk's for a single package name if the target OS versions are different. For example, you can have one apk with a target of 3-7 and another with 8-12+. -John Coryat -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] how can I start working on mind map
On Mon, Oct 3, 2011 at 1:21 AM, bhumi kania bska...@gmail.com wrote: Currently I don't have any idea how can I opt the graphics for this kind of map? Start here: http://developer.android.com/guide/topics/ui/custom-components.html should I use open gl or it can be done with simple graphics class also? Probably don't need GL for bubbles and text. or is there any library that is providing such kind of memory map view. I doubt it. That's kind of specific. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Inapp billing question
And actually, to test in-app Billing, you don't need to Activate a package, just upload. Recent changes to Market require that during testing, there is an uploaded (but not activated) .apk with the same version code as you're testing with, or else the server doesn't respond. The in-app products need to be in published state. -- Kostya Vasilyev 03.10.2011 18:35 пользователь John Coryat cor...@gmail.com написал: but of course only one apk can be live at a time Actually, you can have multiple live apk's for a single package name if the target OS versions are different. For example, you can have one apk with a target of 3-7 and another with 8-12+. -John Coryat -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] changing image on rotation in tablet
Hi Everyone, I am having 2 images i want to use that images in my layout background but one image in portrait mode and one in landscape mode. please tell me how to change image from moving landscape to portrait mode. like 1.png in portraut mode and 2.png in landscape mode. thanks -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] 9Slice and repeating image
Hello, I would like to have the top middle part of a nine-Slice image repeat and the rest to remain fixed. Is this possible? Thanks, John Goche -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] changing image on rotation in tablet
Hi, I think you will need to create two XML files for your layout, each one containing different references to your image. See the following page:http://developer.android.com/guide/practices/screens_support.html Name one myPage-port.xml and the other myPage-land.xml. Regards, John Goche On Mon, Oct 3, 2011 at 5:11 PM, Amit Mangal forum.amit.man...@gmail.comwrote: Hi Everyone, I am having 2 images i want to use that images in my layout background but one image in portrait mode and one in landscape mode. please tell me how to change image from moving landscape to portrait mode. like 1.png in portrait mode and 2.png in landscape mode. thanks -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: App crash report - InputChannel - could not read input channel file descriptors from parcel.
On Mon, Oct 3, 2011 at 4:38 AM, Kostya Vasilyev kmans...@gmail.com wrote: It seems very unusual and wrong to list a device from a major manufacturer that sold over 10 million units as, effectively, unknown, and doesn't help at all with analyzing the crash reports. The Market's bug reporting is a nice idea but very poorly executed, as you have seen, with how it (fails to) report device information and the way it divides user comments from the callstacks. I recommend everyone implement their own bug reporting solution, if you can get away with it (i.e., already have internet permission). I am also starting to suspect that Market sometimes corrupts applications while installing, or at the very least, there is a race condition with respect to manifest registered broadcast receivers. There is a bunch of these in my Market console: java.lang.RuntimeException: Unable to instantiate receiver class name here: java.lang.**ClassNotFoundException: class name here in loader dalvik.system.PathClassLoader[**/data/app/apk name -1 or -2.apk] Anyone seeing similar reports? Yup. I don't have receivers, but I see this from time to time with my Activity classes, which are obviously clearly defined. I also think there is some corruption going on with the update process, as that is usually when I see this stuff. And when users have weird issues I can't reproduce (strange things like not being able to connect to the internet when other apps work) an uninstall - reinstall fixes the problem most of the time. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] GLSurfaceView's onPause and onResume called in Activity's onStop and onStart to handle partially transparent child-activities. Is this OK?
I'm not sure why you're asking this question. It seems like a fairly simple thing to set up. Why not just try it and see? My guess is that it won't work because your activity hasn't been given a Surface yet, and GLSurfaceView depends on having a surface to draw on, obviously. But again, I think you can probably set up a proof of concept in far less than the six or so days that you've been waiting for an answer from the list. On 9/28/2011 1:25 AM, Streets Of Boston wrote: The documentation of GLSurfaceView states that its onPause and onResume should be called when its Activity is paused (onPause) and resumed (onResume). Can it be called in onStop and onStart instead to be able to handle partially transparent child-activities. Say: Activity /GLA /has a GLSurfaceView. It starts another child-activity, with Theme.Dialog, that is partially transparent: Activity /DialogA/. When /DialogA /becomes visible, the /GLA/'s//onPause is called. If /GLA /then calls glSurfaceView.onPause(), the contents of /GLA /that is still partially visible around /DialogA /may become invalid (it may turn transparent/black). If /GLA /calls glSurfaceView.onPause() in its *onStop* method instead, you're at least sure that the child-activity is not partially transparent and covers the entire screen s that the glSurfaceView is entirely hidden and glSurfaceView.onPause() can be called safely without any visual side effects. My question is: /Is it safe to call glSurfaceView.onPause() in an activity's onStop method (and glSurfaceView.onResume() in its onStart method)?/ /If not, what bugs/side-effects can I expect? / /If not, how can I handle partially transparent child-activities the correct way?/ / / Thanks! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Camera Orientation Issue
Hi I want to keep my camera in middle and place a top button bar and bottom button bar in my activity. I want to fix the activity in portrait mode. I need a support from 2.1 onwards. But each version is behaving differently. The method setDisplayOrientation() helps to display camera view normally instead of tilded view. I am forced to use Camera in landscape mode. I added in my manifest orientation as landscape. In this scenario everything works fine. If i change t portrait to fix my activity in always portrait the camera i get camera in center properly but all my top toolbar and bottom toolbar displayed in landscape. I want to use camera in landscape and place buttons in portrait. is there a way i can acheive this? -- *Thanks* *Chenna* -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: InflateException: Error inflating class issue
I believe I've found what the issue is. After taking a closer look at LogCat I noticed there was a FileNotFound exception further down the stack, which makes no sense because the files are there - so I decided to move all my mdpi files into a folder named simply 'drawable' - and that sorted out the error, app seems to be working fine now. I presume the ldpi/mdpi/hdpi named drawable folders weren't used in in Android os versions prior to and including 2.0? Anyway hope this helps someone. Cheers. - T On Oct 3, 12:46 pm, Tonez apires...@gmail.com wrote: Hi Everyone, I have an app which I'm testing out on Android 2.0 (emulator) that's currently throwing me an error - of which I've found the cause. The error is: android.view.InflateException: Binary XML file line #7: Error inflating class unknown This error is being thrown when my activity tries to inflate a layout file with background images in it. If I remove the background images from the elements within that layout file, I don't get the error anymore and my layout file get's loaded into view - only without the artwork ofcourse. I've googled around and have found other instances of this error being caused by the size of the images used being too large. My background images aren't large at all, kb sizes are as follows for the largest background image in that layout file: hdpi: 102kb mdpi: 66.2kb ldpi: 66.2kb I have three other images in the layout file that don't exceed 14kb in size. I've tried removing the largest image in the layout file to see if the others which are a lot less in size would still cause this error to be thrown and unfortunately it does. Worth mentioning that I don't have this problem on Android 2.0.1 and above, and all my images are pngs. Any suggestions would be very much appreciated. Thanks! - Tonez -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] White (error) textures on Android 2.2, but working normal textures on Android 1.5 to 2.1... ¿why?
i have an app that draws a square on the screen with a texture, and the user can rotate the square touching the screen. It works fine with android 1.5 to 2.1. But when i test the App on a Motorola Droid with android 2.2.2 something is failing because the square is loaded with a white texture. What is wrong? This is the code of my class square: public class Square { /** The buffer holding the vertices */ private FloatBuffer vertexBuffer; /** The buffer holding the texture coordinates */ private FloatBuffer textureBuffer; /** Our texture pointer */ private int[] textures = new int[3]; /** The initial vertex definition */ private float vertices[] = { -1.0f, -1.0f, 0.0f, //Bottom Left 1.0f, -1.0f, 0.0f, //Bottom Right -1.0f, 1.0f, 0.0f, //Top Left 1.0f, 1.0f, 0.0f //Top Right }; /** The initial texture coordinates (u, v) */ private float texture[] = { //Mapping coordinates for the vertices 0.0f, 0.0f, 0.0f, 1.0f, 1.0f, 0.0f, 1.0f, 1.0f }; /** * The Square constructor. * * Initiate the buffers. */ public Square() { // ByteBuffer byteBuf = ByteBuffer.allocateDirect(vertices.length * 4); byteBuf.order(ByteOrder.nativeOrder()); vertexBuffer = byteBuf.asFloatBuffer(); vertexBuffer.put(vertices); vertexBuffer.position(0); // byteBuf = ByteBuffer.allocateDirect(texture.length * 4); byteBuf.order(ByteOrder.nativeOrder()); textureBuffer = byteBuf.asFloatBuffer(); textureBuffer.put(texture); textureBuffer.position(0); } /** * The object own drawing function. * Called from the renderer to redraw this instance * with possible changes in values. * * @param gl - The GL Context */ public void draw(GL10 gl) { //Set the face rotation //gl.glFrontFace(GL10.GL_CW); gl.glFrontFace(GL10.GL_CCW); //Bind our only previously generated texture in this case gl.glBindTexture(GL10.GL_TEXTURE_2D, textures[0]); //Point to our vertex buffer gl.glVertexPointer(3, GL10.GL_FLOAT, 0, vertexBuffer); gl.glTexCoordPointer(2, GL10.GL_FLOAT, 0, textureBuffer); //Enable vertex buffer gl.glEnableClientState(GL10.GL_VERTEX_ARRAY); gl.glEnableClientState(GL10.GL_TEXTURE_COORD_ARRAY); //Set The Color To Blue //gl.glColor4f(0.5f, 0.5f, 1.0f, 1.0f); //Draw the vertices as triangle strip gl.glDrawArrays(GL10.GL_TRIANGLE_STRIP, 0, vertices.length / 3); //Disable the client state before leaving gl.glDisableClientState(GL10.GL_VERTEX_ARRAY); gl.glDisableClientState(GL10.GL_TEXTURE_COORD_ARRAY); /// //Bind the texture according to the set texture filter //gl.glBindTexture(GL10.GL_TEXTURE_2D, textures[filter]); } /** * Load the textures * * @param gl - The GL Context * @param context - The Activity context */ public void loadGLTexture(GL10 gl, Context context) { //Generate one texture pointer... gl.glGenTextures(1, textures, 0); //...and bind it to our array gl.glBindTexture(GL10.GL_TEXTURE_2D, textures[0]); //Create Nearest Filtered Texture gl.glTexParameterf(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_MIN_FILTER, GL10.GL_NEAREST); gl.glTexParameterf(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_MAG_FILTER, GL10.GL_LINEAR); //Different possible texture parameters, e.g. GL10.GL_CLAMP_TO_EDGE gl.glTexParameterf(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_WRAP_S, GL10.GL_REPEAT); gl.glTexParameterf(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_WRAP_T, GL10.GL_REPEAT); //Get the texture from the Android resource directory InputStream is = context.getResources().openRawResource(R.drawable.radiocd2); Bitmap bitmap = null;
Re: [android-developers] White (error) textures on Android 2.2, but working normal textures on Android 1.5 to 2.1... ¿why?
In my experience, the classic cause of white textures on some hardware but not other is a non-power-of-two texture. Your code doesn't seem to enforce POT texture dimensions, are your assets POT? On Mon, Oct 3, 2011 at 5:43 PM, saex elpablos...@gmail.com wrote: i have an app that draws a square on the screen with a texture, and the user can rotate the square touching the screen. It works fine with android 1.5 to 2.1. But when i test the App on a Motorola Droid with android 2.2.2 something is failing because the square is loaded with a white texture. What is wrong? This is the code of my class square: public class Square { /** The buffer holding the vertices */ private FloatBuffer vertexBuffer; /** The buffer holding the texture coordinates */ private FloatBuffer textureBuffer; /** Our texture pointer */ private int[] textures = new int[3]; /** The initial vertex definition */ private float vertices[] = { -1.0f, -1.0f, 0.0f, //Bottom Left 1.0f, -1.0f, 0.0f, //Bottom Right -1.0f, 1.0f, 0.0f, //Top Left 1.0f, 1.0f, 0.0f //Top Right }; /** The initial texture coordinates (u, v) */ private float texture[] = { //Mapping coordinates for the vertices 0.0f, 0.0f, 0.0f, 1.0f, 1.0f, 0.0f, 1.0f, 1.0f }; /** * The Square constructor. * * Initiate the buffers. */ public Square() { // ByteBuffer byteBuf = ByteBuffer.allocateDirect(vertices.length * 4); byteBuf.order(ByteOrder.nativeOrder()); vertexBuffer = byteBuf.asFloatBuffer(); vertexBuffer.put(vertices); vertexBuffer.position(0); // byteBuf = ByteBuffer.allocateDirect(texture.length * 4); byteBuf.order(ByteOrder.nativeOrder()); textureBuffer = byteBuf.asFloatBuffer(); textureBuffer.put(texture); textureBuffer.position(0); } /** * The object own drawing function. * Called from the renderer to redraw this instance * with possible changes in values. * * @param gl - The GL Context */ public void draw(GL10 gl) { //Set the face rotation //gl.glFrontFace(GL10.GL_CW); gl.glFrontFace(GL10.GL_CCW); //Bind our only previously generated texture in this case gl.glBindTexture(GL10.GL_TEXTURE_2D, textures[0]); //Point to our vertex buffer gl.glVertexPointer(3, GL10.GL_FLOAT, 0, vertexBuffer); gl.glTexCoordPointer(2, GL10.GL_FLOAT, 0, textureBuffer); //Enable vertex buffer gl.glEnableClientState(GL10.GL_VERTEX_ARRAY); gl.glEnableClientState(GL10.GL_TEXTURE_COORD_ARRAY); //Set The Color To Blue //gl.glColor4f(0.5f, 0.5f, 1.0f, 1.0f); //Draw the vertices as triangle strip gl.glDrawArrays(GL10.GL_TRIANGLE_STRIP, 0, vertices.length / 3); //Disable the client state before leaving gl.glDisableClientState(GL10.GL_VERTEX_ARRAY); gl.glDisableClientState(GL10.GL_TEXTURE_COORD_ARRAY); /// //Bind the texture according to the set texture filter //gl.glBindTexture(GL10.GL_TEXTURE_2D, textures[filter]); } /** * Load the textures * * @param gl - The GL Context * @param context - The Activity context */ public void loadGLTexture(GL10 gl, Context context) { //Generate one texture pointer... gl.glGenTextures(1, textures, 0); //...and bind it to our array gl.glBindTexture(GL10.GL_TEXTURE_2D, textures[0]); //Create Nearest Filtered Texture gl.glTexParameterf(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_MIN_FILTER, GL10.GL_NEAREST); gl.glTexParameterf(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_MAG_FILTER, GL10.GL_LINEAR); //Different possible texture parameters, e.g. GL10.GL_CLAMP_TO_EDGE gl.glTexParameterf(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_WRAP_S, GL10.GL_REPEAT); gl.glTexParameterf(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_WRAP_T, GL10.GL_REPEAT); //Get the texture from the
Re: [android-developers] Re: SQLite Open failed
That is interesting, but why does it only happen in a seemingly random fashion? Say, one out of every 1 app launches ? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: White (error) textures on Android 2.2, but working normal textures on Android 1.5 to 2.1... ¿why?
please can you explain it a little more? i'm new in open GL. What you mean with non power of two? what is POT? On 3 oct, 17:56, Latimerius l4t1m3r...@googlemail.com wrote: In my experience, the classic cause of white textures on some hardware but not other is a non-power-of-two texture. Your code doesn't seem to enforce POT texture dimensions, are your assets POT? On Mon, Oct 3, 2011 at 5:43 PM, saex elpablos...@gmail.com wrote: i have an app that draws a square on the screen with a texture, and the user can rotate the square touching the screen. It works fine with android 1.5 to 2.1. But when i test the App on a Motorola Droid with android 2.2.2 something is failing because the square is loaded with a white texture. What is wrong? This is the code of my class square: public class Square { /** The buffer holding the vertices */ private FloatBuffer vertexBuffer; /** The buffer holding the texture coordinates */ private FloatBuffer textureBuffer; /** Our texture pointer */ private int[] textures = new int[3]; /** The initial vertex definition */ private float vertices[] = { -1.0f, -1.0f, 0.0f, //Bottom Left 1.0f, -1.0f, 0.0f, //Bottom Right -1.0f, 1.0f, 0.0f, //Top Left 1.0f, 1.0f, 0.0f //Top Right }; /** The initial texture coordinates (u, v) */ private float texture[] = { //Mapping coordinates for the vertices 0.0f, 0.0f, 0.0f, 1.0f, 1.0f, 0.0f, 1.0f, 1.0f }; /** * The Square constructor. * * Initiate the buffers. */ public Square() { // ByteBuffer byteBuf = ByteBuffer.allocateDirect(vertices.length * 4); byteBuf.order(ByteOrder.nativeOrder()); vertexBuffer = byteBuf.asFloatBuffer(); vertexBuffer.put(vertices); vertexBuffer.position(0); // byteBuf = ByteBuffer.allocateDirect(texture.length * 4); byteBuf.order(ByteOrder.nativeOrder()); textureBuffer = byteBuf.asFloatBuffer(); textureBuffer.put(texture); textureBuffer.position(0); } /** * The object own drawing function. * Called from the renderer to redraw this instance * with possible changes in values. * * @param gl - The GL Context */ public void draw(GL10 gl) { //Set the face rotation //gl.glFrontFace(GL10.GL_CW); gl.glFrontFace(GL10.GL_CCW); //Bind our only previously generated texture in this case gl.glBindTexture(GL10.GL_TEXTURE_2D, textures[0]); //Point to our vertex buffer gl.glVertexPointer(3, GL10.GL_FLOAT, 0, vertexBuffer); gl.glTexCoordPointer(2, GL10.GL_FLOAT, 0, textureBuffer); //Enable vertex buffer gl.glEnableClientState(GL10.GL_VERTEX_ARRAY); gl.glEnableClientState(GL10.GL_TEXTURE_COORD_ARRAY); //Set The Color To Blue //gl.glColor4f(0.5f, 0.5f, 1.0f, 1.0f); //Draw the vertices as triangle strip gl.glDrawArrays(GL10.GL_TRIANGLE_STRIP, 0, vertices.length / 3); //Disable the client state before leaving gl.glDisableClientState(GL10.GL_VERTEX_ARRAY); gl.glDisableClientState(GL10.GL_TEXTURE_COORD_ARRAY); /// //Bind the texture according to the set texture filter //gl.glBindTexture(GL10.GL_TEXTURE_2D, textures[filter]); } /** * Load the textures * * @param gl - The GL Context * @param context - The Activity context */ public void loadGLTexture(GL10 gl, Context context) { //Generate one texture pointer... gl.glGenTextures(1, textures, 0); //...and bind it to our array gl.glBindTexture(GL10.GL_TEXTURE_2D, textures[0]); //Create Nearest Filtered Texture gl.glTexParameterf(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_MIN_FILTER, GL10.GL_NEAREST); gl.glTexParameterf(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_MAG_FILTER, GL10.GL_LINEAR); //Different possible
[android-developers] Re: Android 2.2: WebView shouldOverrideUrlLoading() and custom file download from a phpBB forum
Hi So, the solution was to extract the filename from setDownloadListener() and to manage the download with an AsyncTask using an HttpUrlConnection. 8 - - - - - - - [from the AsyncTask doInBackground() method] ... // Store call parameters URL url = new URL(params.source_url); String target_file_path = params.destination_file_path; // Open the URL HttpURLConnection uconn = (HttpURLConnection)url.openConnection(); uconn.setConnectTimeout(2); uconn.setReadTimeout(1); uconn.setDoInput(true); uconn.connect(); // used later to update a 0-100% progress bar int lenghtOfFile = uconn.getContentLength(); // downlod the file BufferedInputStream input = new BufferedInputStream(url.openStream(), 8192); OutputStream os = new FileOutputStream(target_file_path); BufferedOutputStream output = new BufferedOutputStream(os, 8192); ... 8 - - - - - - - best :) -- Mathieu On Sep 30, 2:31 pm, bdk mathieu.b...@gmail.com wrote: Ok, I'm possibly a step closer to the solution: (thanks to this post:http://groups.google.com/group/android-developers/browse_thread/threa... ) mWebView.setDownloadListener(new DownloadListener() { public void onDownloadStart(String url, String userAgent, String contentDisposition, String mimetype, long contentLength) { Log.i(OF, onDownloadStart(): + url = + url ); Log.i(OF, userAgent = + userAgent ); Log.i(OF, contentDisposition = + contentDisposition ); Log.i(OF, mimetype = + mimetype ); Log.i(OF, contentLength (KB) = + (contentLength / 1024.0) ); } }); from this one I can retrieve an easier to parse contentDisposition (no cryptic symbols/encodings) now the question is: how do I move on to starting a custom download? I'll show a progress-bar and the file will be downloaded to apredefined folder. Is there any other higher level function available or shall I base the download code on HTTP Get? thanks -- Mathieu On Sep 30, 1:21 pm,bdkmathieu.b...@gmail.com wrote: Hi I'm in the following situation: I'm using a WebView in an application to allow the download of files stored in a phpBB forum. I need to directly handle the downloads, saving the files to the application folders with their original names. I'm bound to Android 2.2 Froyo, so no DownloadManager (if it even helps:http://www.vogella.de/blog/2011/06/14/android-downloadmanager-example/ ). So, the problem is that the download links for the files are like this: http://mywebsite.com/download/file.php?id=123 These links get caught by shouldOverrideUrlLoading(), but I can't handle the download in a custom way since there's no actual file path and name on the server. I tried to use an HttpURLConnection and checked the returned headers. I located the file name in the Content-disposition header value, which is something like: attachment; filename*=UTF-8''the%20file%20name%20on%20the%20server.aaa Seems like phpBB generates this HTML response header here: https://github.com/phpbb/phpbb3/blob/develop/phpBB/download/file.php#... which refers to: https://github.com/phpbb/phpbb3/blob/develop/phpBB/includes/functions... more specificallyhttps://github.com/phpbb/phpbb3/blob/develop/phpBB/includes/functions... So, WebView alone does not seem able to handle this kind of Content- disposition HTTP response header. It must be noted that these phpBB file.php?id=123 links do work in the BrowserActivity that comes with each Android OS, and the correct file name pops up in the save as... dialog. ATM I'm digging in BrowserActivity.java present in Android's sourcecode repository... I saw that I might be good to go by using the InputStream returned by an HttpURLConnection, as in e.g.: http://getablogger.blogspot.com/2008/01/android-download-image-from-s... http://www.helloandroid.com/tutorials/how-download-fileimage-url-your... In the case that this is the only solution a question remains: how do I retrieve the original filename? Parsing the Content-disposition header value? :S any hint is appreciated! thanks -- Mathieu -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Android and QT
Check out android-lighthouse http://code.google.com/p/android-lighthouse/ On Oct 3, 1:33 am, Dmitriy Nikolaev ndimon...@gmail.com wrote: Hello! I have only question. Is any official support for qt in Android-based devices? If so, where can be find emulator for the Android device and other helpful information for getting started? Thank you beforehand for answers. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: App crash report - InputChannel - could not read input channel file descriptors from parcel.
Ok, thanks for sharing. But... package installation is presumably handled by the core OS, and not the Market itself (or so we are told). Pretty amazing. 03.10.2011 19:23, TreKing пишет: Yup. I don't have receivers, but I see this from time to time with my Activity classes, which are obviously clearly defined. I also think there is some corruption going on with the update process, as that is usually when I see this stuff. And when users have weird issues I can't reproduce (strange things like not being able to connect to the internet when other apps work) an uninstall - reinstall fixes the problem most of the time. -- Kostya Vasilyev -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: White (error) textures on Android 2.2, but working normal textures on Android 1.5 to 2.1... ¿why?
Oh, power of two is the resolution... ok, my image es 180x140, then i supose that it is power of two On 3 oct, 17:56, Latimerius l4t1m3r...@googlemail.com wrote: In my experience, the classic cause of white textures on some hardware but not other is a non-power-of-two texture. Your code doesn't seem to enforce POT texture dimensions, are your assets POT? On Mon, Oct 3, 2011 at 5:43 PM, saex elpablos...@gmail.com wrote: i have an app that draws a square on the screen with a texture, and the user can rotate the square touching the screen. It works fine with android 1.5 to 2.1. But when i test the App on a Motorola Droid with android 2.2.2 something is failing because the square is loaded with a white texture. What is wrong? This is the code of my class square: public class Square { /** The buffer holding the vertices */ private FloatBuffer vertexBuffer; /** The buffer holding the texture coordinates */ private FloatBuffer textureBuffer; /** Our texture pointer */ private int[] textures = new int[3]; /** The initial vertex definition */ private float vertices[] = { -1.0f, -1.0f, 0.0f, //Bottom Left 1.0f, -1.0f, 0.0f, //Bottom Right -1.0f, 1.0f, 0.0f, //Top Left 1.0f, 1.0f, 0.0f //Top Right }; /** The initial texture coordinates (u, v) */ private float texture[] = { //Mapping coordinates for the vertices 0.0f, 0.0f, 0.0f, 1.0f, 1.0f, 0.0f, 1.0f, 1.0f }; /** * The Square constructor. * * Initiate the buffers. */ public Square() { // ByteBuffer byteBuf = ByteBuffer.allocateDirect(vertices.length * 4); byteBuf.order(ByteOrder.nativeOrder()); vertexBuffer = byteBuf.asFloatBuffer(); vertexBuffer.put(vertices); vertexBuffer.position(0); // byteBuf = ByteBuffer.allocateDirect(texture.length * 4); byteBuf.order(ByteOrder.nativeOrder()); textureBuffer = byteBuf.asFloatBuffer(); textureBuffer.put(texture); textureBuffer.position(0); } /** * The object own drawing function. * Called from the renderer to redraw this instance * with possible changes in values. * * @param gl - The GL Context */ public void draw(GL10 gl) { //Set the face rotation //gl.glFrontFace(GL10.GL_CW); gl.glFrontFace(GL10.GL_CCW); //Bind our only previously generated texture in this case gl.glBindTexture(GL10.GL_TEXTURE_2D, textures[0]); //Point to our vertex buffer gl.glVertexPointer(3, GL10.GL_FLOAT, 0, vertexBuffer); gl.glTexCoordPointer(2, GL10.GL_FLOAT, 0, textureBuffer); //Enable vertex buffer gl.glEnableClientState(GL10.GL_VERTEX_ARRAY); gl.glEnableClientState(GL10.GL_TEXTURE_COORD_ARRAY); //Set The Color To Blue //gl.glColor4f(0.5f, 0.5f, 1.0f, 1.0f); //Draw the vertices as triangle strip gl.glDrawArrays(GL10.GL_TRIANGLE_STRIP, 0, vertices.length / 3); //Disable the client state before leaving gl.glDisableClientState(GL10.GL_VERTEX_ARRAY); gl.glDisableClientState(GL10.GL_TEXTURE_COORD_ARRAY); /// //Bind the texture according to the set texture filter //gl.glBindTexture(GL10.GL_TEXTURE_2D, textures[filter]); } /** * Load the textures * * @param gl - The GL Context * @param context - The Activity context */ public void loadGLTexture(GL10 gl, Context context) { //Generate one texture pointer... gl.glGenTextures(1, textures, 0); //...and bind it to our array gl.glBindTexture(GL10.GL_TEXTURE_2D, textures[0]); //Create Nearest Filtered Texture gl.glTexParameterf(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_MIN_FILTER, GL10.GL_NEAREST); gl.glTexParameterf(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_MAG_FILTER, GL10.GL_LINEAR); //Different possible texture
Re: [android-developers] Re: White (error) textures on Android 2.2, but working normal textures on Android 1.5 to 2.1... ?why?
On Mon, Oct 03, 2011 at 09:03:06AM -0700, saex wrote: What you mean with non power of two? It means that your texture's dimensions are not a power of two, which, based on what I've read, is a REQUIREMENT, not a suggestion. what is POT? Look at it in the context of the reply What three words were used in the previous reply and in this reply that POT is an OBVIOUS acronym for? Later, --jim -- THE SCORE: ME: 2 CANCER: 0 73 DE N5IAL (/4)MiSTie #49997 Running FreeBSD 7.0 spooky1...@gmail.comICBM/Hurr.: 30.44406N 86.59909W No, I'm not going to explain it. If you can't figure it out, you didn't want to know anyway... --Larry Wall Android Apps Listing at http://www.jstrack.org/barcodes.html -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: White (error) textures on Android 2.2, but working normal textures on Android 1.5 to 2.1... ?why?
it is power of two, 180x140 On 3 oct, 18:13, Jim Graham spooky1...@gmail.com wrote: On Mon, Oct 03, 2011 at 09:03:06AM -0700, saex wrote: What you mean with non power of two? It means that your texture's dimensions are not a power of two, which, based on what I've read, is a REQUIREMENT, not a suggestion. what is POT? Look at it in the context of the reply What three words were used in the previous reply and in this reply that POT is an OBVIOUS acronym for? Later, --jim -- THE SCORE: ME: 2 CANCER: 0 73 DE N5IAL (/4) MiSTie #49997 Running FreeBSD 7.0 spooky1...@gmail.com ICBM/Hurr.: 30.44406N 86.59909W No, I'm not going to explain it. If you can't figure it out, you didn't want to know anyway... --Larry Wall Android Apps Listing athttp://www.jstrack.org/barcodes.html -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: White (error) textures on Android 2.2, but working normal textures on Android 1.5 to 2.1... ¿why?
On Mon, Oct 3, 2011 at 6:10 PM, saex elpablos...@gmail.com wrote: Oh, power of two is the resolution... ok, my image es 180x140, then i supose that it is power of two Um, if it's 180x140 then no, it's actually *not* POT. Try making it 256x256 (and adjust your texture coordinates accordingly). -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Augmented Reality - Tutorial
thanks..seems like easy to understand with the steps by steps mentioned there.. On Oct 3, 7:19 pm, Robin Talwar r.o.b.i.n.abhis...@gmail.com wrote: use qualcomm sdk On Mon, Oct 3, 2011 at 4:46 PM, EdwardComb dzn.aie...@gmail.com wrote: Hey Folks, I am currently interested to create an Augmented Reality application for Android. I have no problem to create normal Android application and I am familiar with IDE, SDK and etc. But I just have no idea where to start for this Augmented Reality (AR) stuff. My intention is actually to make the drawing in the paper come alive in 3D when using the Android camera. But most of the tutorial in the web describing about the GPS and etc. I really need your help to point me any references I can use to create the application mentioned above. Thank's.. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email toandroid-develop...@googlegroups.com To unsubscribe from this group, send email toandroid-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Regards Abhishek Talwar 9953395712 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Layout
Thanks for all your update. Even I don't mind to remove Back button but I want to know what is the best of keeping top bar with at least settings button. Thanks On Mon, Oct 3, 2011 at 7:43 PM, Kostya Vasilyev kmans...@gmail.com wrote: It depends on the actual use case. For example: preference activities typically don't use a dedicated Ok or Save button, to pressing Back applies the changes. Edit a data item type activities typically have an Ok or Save (but not Back) button that saves the data and closes the activity. Pressing Back in these doesn't save the changes. -- Kostya 03.10.2011 17:59, John Goche пишет: I hope nobody minds if I jump in on this topic. I wanted to ask whether implementations should interpret the back button as an OK or as a Cancel when a form has data. Regards, John Goche On Mon, Oct 3, 2011 at 3:39 PM, Chrystian Vieyra chrys.vie...@gmail.comwrote: Why do you need a back button on your layout? The current CCC states that device implementations MUST make these functions available to the user at all times, regardless of application state. These functions SHOULD be implemented via dedicated buttons. A physical back button is standard, having a button on your layout is redundant at best. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Kostya Vasilyev -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] GLSurfaceView's onPause and onResume called in Activity's onStop and onStart to handle partially transparent child-activities. Is this OK?
We did a proof on concept (we actually have implemented it) before asking this question. You can actually remove the calls to GLSurfaceView.onPause and GLSurfaceView.onResume entirely and most of the time it will work. Leaving these calls out will fail only after *excessive *rotations/configuration-changes on *some *phones and tablets. Since it failed on some phones we own ourselves, we were able to notice the problem of leaving out these calls entirely. Then we put the GLSurfaceView.onPause/onResume in the onStop/onStart of the Activity and it seems to have fixed the issue. We haven't been able to reproduce the problem on the phones we own. I'm asking this question, because we do something that is not recommended but seems to work anyway, and we're wondering if we risk the chance to run into problems in some scenarios that we haven't thought about or on some (types of) phones/devices that we don't own. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: White (error) textures on Android 2.2, but working normal textures on Android 1.5 to 2.1... ¿why?
On Mon, Oct 3, 2011 at 6:03 PM, saex elpablos...@gmail.com wrote: please can you explain it a little more? i'm new in open GL. Okay, as a first quick test to determine if texture dimensions are indeed the problem, why don't you just start up your Gimp (or Photoshop or whatever you use), make a new image 256x256, fill it with any solid colour that is not white and try to use this instead of your original art? If this texture is rendered in the colour you filled it with then you've likely got an NPOT problem. Then you can make your original art POT and figure out how to fix texture coords. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Activity gets (re)created when device goes to sleep?
On Mon, Oct 3, 2011 at 12:35 AM, metin ögtem android.develope...@gmail.comwrote: it could be continue onResume()..You can logging it.. Sorry, I'm not quite sure what you mean by that. What else do you think I should be logging that could explain the behaviour? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Activity gets (re)created when device goes to sleep?
Is your activity locked to a particular orientation? 03.10.2011 20:34, Latimerius ?: On Mon, Oct 3, 2011 at 12:35 AM, metin ögtem android.develope...@gmail.com mailto:android.develope...@gmail.com wrote: it could be continue onResume()..You can logging it.. Sorry, I'm not quite sure what you mean by that. What else do you think I should be logging that could explain the behaviour? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Kostya Vasilyev -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Activity gets (re)created when device goes to sleep?
On Mon, Oct 3, 2011 at 6:37 PM, Kostya Vasilyev kmans...@gmail.com wrote: Is your activity locked to a particular orientation? The actual activity in my program where I first noticed this is locked to landscape. However, the logs I quoted in my previous message are from a (almost) stock SkeletonActivity sample which I don't believe is locked. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: big arrays don't cry - just an alibi
I changed it to float. Same Error. I changed it to static. Slightly different error: The code for the static initializer is exceeding the 65535 bytes limit On Oct 3, 8:48 am, Kristopher Micinski krismicin...@gmail.com wrote: If you go down to float you get half the size, ~16kb vs ~8kb? Kris On Mon, Oct 3, 2011 at 9:44 AM, Oli oli.wri...@gmail.com wrote: OK, I don't know the source of that error off the top of my head, but a hunch would suggest you should consider whether you need that level of precision in your co-ordinates! On Oct 3, 12:37 pm, bob b...@coolgroups.com wrote: So, I had a great idea. Why don't I stick my 3d model in as an array? Here's the result: https://sites.google.com/site/coolfonne/Spaceship.java Now, I get this error: The code of constructor Spaceship() is exceeding the 65535 bytes limit Is there any easy way around this? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: White (error) textures on Android 2.2, but working normal textures on Android 1.5 to 2.1... ?why?
On Mon, Oct 3, 2011 at 9:45 PM, saex elpablos...@gmail.com wrote: it is power of two, 180x140 I don't know who taught you maths but 180 and 140 are most definitely not a power of two. I think you mixed it up with multiple of two. Thanks -- -- Raghav Sood CEO/Founder/Owner/Dictator/Tyrant at Appaholics (Basically all titles required to have complete control) http://www.raghavsood.com/ https://market.android.com/developer?pub=Appaholics http://www.appaholics.in/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Activity gets (re)created when device goes to sleep?
Make sure you didn't accidentally leave an orientation lock in the manifest, android:screenOrientation=landscape. You would also see this sequence if your activity runs in landscape mode just because of how you're holding the device, and the device's lock screen uses portrait mode (or vice versa, I would assume). Try the test again, but hold the device in portrait mode, you should only see onPause / onResume when you lock and unlock. -- Kostya 03.10.2011 20:43, Latimerius ?: On Mon, Oct 3, 2011 at 6:37 PM, Kostya Vasilyev kmans...@gmail.com mailto:kmans...@gmail.com wrote: Is your activity locked to a particular orientation? The actual activity in my program where I first noticed this is locked to landscape. However, the logs I quoted in my previous message are from a (almost) stock SkeletonActivity sample which I don't believe is locked. -- Kostya Vasilyev -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: big arrays don't cry - just an alibi
Why not allocate the array dynamically and read it from an asset packaged within the .apk? You'll most likely need it in a dynamically allocated array anyway (such as an NIO buffer), keeping another copy in memory as a Java constant / variable just seems like a waste. -- Kostya 03.10.2011 20:57, bob пишет: I changed it to float. Same Error. I changed it to static. Slightly different error: The code for the static initializer is exceeding the 65535 bytes limit On Oct 3, 8:48 am, Kristopher Micinskikrismicin...@gmail.com wrote: If you go down to float you get half the size, ~16kb vs ~8kb? Kris On Mon, Oct 3, 2011 at 9:44 AM, Olioli.wri...@gmail.com wrote: OK, I don't know the source of that error off the top of my head, but a hunch would suggest you should consider whether you need that level of precision in your co-ordinates! On Oct 3, 12:37 pm, bobb...@coolgroups.com wrote: So, I had a great idea. Why don't I stick my 3d model in as an array? Here's the result: https://sites.google.com/site/coolfonne/Spaceship.java Now, I get this error: The code of constructor Spaceship() is exceeding the 65535 bytes limit Is there any easy way around this? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Kostya Vasilyev -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Is anyone able to play HLS on Vizio Tablet running 2.3.2
can anyone help me with this issue? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] runOnUIThread method in doInBackground of Async Task...
Hi! im using an Async-Task and currently im using runOnUiThread in the doInBackground method to refresh activities UI, this seems to be working but on rotation it loses the data and im usng the getLastNonConfigurationInstance and the onRetainNonConfigurationInstance methods, here's the parent class method that calls the async task: /** * do asynctask for background work */ public void doAsyncTask(){ //get task back in case of rotation task= (QuadrosMobileActivityTask)getLastNonConfigurationInstance(); if(task==null){ task= new QuadrosMobileActivityTask(this); task.execute(); //add to the set of tasks QuadrosMobileApplicationContext appliContext= (QuadrosMobileApplicationContext)getApplicationContext(); appliContext.getAsyncTasks().add(task); }else{ task.attach(this); } } Here's the async task as normal class(non inner class) main methods; @Override protected void onPreExecute() { Logger.write(QuadrosMobileActivityTask , AsyncTask pre execution + Current Activity: +activity.getClass().getName(), Logger.INFO); if(QuadrosMobileActivity.themeId!=R.style.CustomThemeNoHeader){ activity.findViewById(R.id.progressView).setVisibility(ProgressBar.VISIBLE); } QuadrosMobileActivity.progressBarstate=ProgressBar.VISIBLE; } @Override protected String doInBackground(Void... params) { Logger.write(QuadrosMobileActivityTask , initialized, Logger.INFO); return activity.*updateResultsInUi()*; } @Override protected void onPostExecute(String result) { Logger.write(QuadrosMobileActivityTask , AsyncTask post execution +Current Activity: +activity.getClass().getName(), Logger.INFO); if(activity!=null) Toast.makeText(activity, result, Toast.LENGTH_LONG).show(); //remove this task from collection QuadrosMobileApplicationContext appliContext= QuadrosMobileApplicationContext.getInstance(); appliContext.getAsyncTasks().remove(this); //check if there's more tasks in the collection if(appliContext.getAsyncTasks().isEmpty()){ if(QuadrosMobileActivity.themeId!=R.style.CustomThemeNoHeader){ activity.findViewById(R.id.progressView).setVisibility(ProgressBar.GONE); } QuadrosMobileActivity.progressBarstate=ProgressBar.GONE; } } And the sub activities *updateResultsInUi() *method: runOnUiThread( new Runnable() { @Override public void run() { ((TextView)findViewById(R.id.nome_value)).setText(quadro.getNome()); //((TextView)findViewById(R.id.nif_value)).setText(quadro.getDadosPessoais().getNumeroContribuinte()); ((TextView)findViewById(R.id.datanasc_value)).setText(DateTimeZoneUtils.getInstance().sqlLiteDateTimeFormat(quadro.getDadosPessoais().getDataNascimento())); ((TextView)findViewById(R.id.provincia_value)).setText(quadro.getResidencia().getProvincia()); ((TextView)findViewById(R.id.municipio_value)).setText(quadro.getResidencia().getMunicipio()); ((TextView)findViewById(R.id.comuna_value)).setText(quadro.getResidencia().getComuna()); ((TextView)findViewById(R.id.bairro_value)).setText(quadro.getResidencia().getBairro()); ((TextView)findViewById(R.id.rua_value)).setText(quadro.getResidencia().getRua()); } } ); Can i use the runOnUIThread method inside the doInBackground method of AsyncTask?? regards, -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Activity gets (re)created when device goes to sleep?
On Mon, Oct 3, 2011 at 7:04 PM, Kostya Vasilyev kmans...@gmail.com wrote: Make sure you didn't accidentally leave an orientation lock in the manifest, android:screenOrientation=landscape. Well I have this in my manifest quite intentionally ;-) - it's a game, it depends on landscape and doesn't make any sense in portrait. I take it screenOrientation is somehow wrong now? I'll re-read the docs ... You would also see this sequence if your activity runs in landscape mode just because of how you're holding the device, and the device's lock screen uses portrait mode (or vice versa, I would assume). Try the test again, but hold the device in portrait mode, you should only see onPause / onResume when you lock and unlock. Cool, you're right - my SkeletonActivity-based test (which is not locked to any orientation) does exactly what you say (onResume() is still called *before* unlocking, when the activity is not visible but that's a minor concern for me now). I wonder though if it's a bug - I mean, going through onCreate(), onResume() and onPause() seems quite a lot of wasted effort for an activity that's hidden behind a blank screen ... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Windows USB Driver
We have a project for a Client to push an APK from a Windows platform. Basically we have an APYK we need to get pushed to a phone quickly and completely stupid proof. a. No Google Market (phone may not have data-plan or be configured) b. No Website URL (sketchy wifi and/or too cumbersome for them to go browser and enter URL) c. No Bluetooth file push (pairing devices is awkward and file transfer not always allowed) d. So that leaves USB At first we thought we could create Windows program listening on USB. Once a file system (Android SDCard) is connected, simply push APK to phone. The problem is, not all Android phones have a File Browser! So even when file is pushed it cannot be located or lauched to perform install of APK!? PRE-QUESTION - is there a way to launch a file saved on SD card WITHOUT a file browser? e. Grrr. That leaves USB w/ USB Debugging and ADB installed The only true way to communicate and perform tasks on phone via USB is using ADB. Ok fine. So we setup application thread to check adb devices and when new device comes around we install APK. Great. But this only works when the USB drivers are configured on Windows -- now this leads to USB driver hell. (ok I know Linux doesnt require manufacturer drivers -- but Client not on Linux. By the way, SIDE-QUESTION: WHY DOES LINUX REQUIRE NO DRIVER FOR ADB -- YET WINDOWS REQUIRES SPECIFIC PER MANUFACTURER?) MY MAIN QUESTION = Could a generic Windows USB driver be created for most every Android phone that would allow ADB functions? Any guidance thoughts would be great. My boss believes this is achievable. NOTE: I experimented with an LG phone. I modified the Google Generic USB Driver v4. It successfully recognized and installed the Google driver for the LG phone. However device did not appear on ADB and I was just fooling myself thinking it could work -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Activity gets (re)created when device goes to sleep?
No, don't take out screenOrientation if you need it, it is not deprecated, and having it in the manifest is better than forcing it dynamically from code. As for the activity being recreated, that's not considered a bug, but a side effect of the top (your) activity's orientation being different from the lock screen's. -- Kostya 03.10.2011 21:26, Latimerius ?: On Mon, Oct 3, 2011 at 7:04 PM, Kostya Vasilyev kmans...@gmail.com mailto:kmans...@gmail.com wrote: Make sure you didn't accidentally leave an orientation lock in the manifest, android:screenOrientation=landscape. Well I have this in my manifest quite intentionally ;-) - it's a game, it depends on landscape and doesn't make any sense in portrait. I take it screenOrientation is somehow wrong now? I'll re-read the docs ... You would also see this sequence if your activity runs in landscape mode just because of how you're holding the device, and the device's lock screen uses portrait mode (or vice versa, I would assume). Try the test again, but hold the device in portrait mode, you should only see onPause / onResume when you lock and unlock. Cool, you're right - my SkeletonActivity-based test (which is not locked to any orientation) does exactly what you say (onResume() is still called *before* unlocking, when the activity is not visible but that's a minor concern for me now). I wonder though if it's a bug - I mean, going through onCreate(), onResume() and onPause() seems quite a lot of wasted effort for an activity that's hidden behind a blank screen ... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Kostya Vasilyev -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: BluetoothAdapter.ACTION_CONNECTION_STATE_CHANGED unresolved errors
bump -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: BluetoothAdapter.ACTION_CONNECTION_STATE_CHANGED unresolved errors
What API level are you building for. The first problem might be due to it being introduced at api level 10. Kris On Mon, Oct 3, 2011 at 1:38 PM, robosmith rfrantz@gmail.com wrote: bump -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Windows USB Driver
On Mon, Oct 3, 2011 at 1:29 PM, dmacke dma...@retaildoneright.com wrote: We have a project for a Client to push an APK from a Windows platform. Basically we have an APYK we need to get pushed to a phone quickly and completely stupid proof. APYK? PRE-QUESTION - is there a way to launch a file saved on SD card WITHOUT a file browser? Well, *something* on the phone will have to kick off the APK install process. That doesn't have to be a file browser. However, there is no end-user application that will do this as part of ordinary Android builds, and there's no guarantee there will be one on any given device. But this only works when the USB drivers are configured on Windows -- now this leads to USB driver hell. Which is why you really want to use b) IMHO. Yes, getting WiFi hooked up may be annoying, but they need that anyway in many cases, and it's probably no more difficult than getting adb drivers to work. Also, if they have a data plan, and the APK is available on the Internet, you don't even need to fuss with the WiFi. The URL can be handled via a URL shortener (e.g., goo.gl, or roll your own for mobile-friendly URLs). By the way, SIDE-QUESTION: WHY DOES LINUX REQUIRE NO DRIVER FOR ADB -- YET WINDOWS REQUIRES SPECIFIC PER MANUFACTURER?) That's a fine question for Microsoft. I doubt they are monitoring this list. :-) Could a generic Windows USB driver be created for most every Android phone that would allow ADB functions? Possibly, but that has nothing really to do with this list, which is for writing apps with the SDK. Perhaps try the [adt-dev] Google Group, where there are discussions of the developer tools, including adb. My boss believes this is achievable. Bosses are often like that, particularly if their hair is pointy. :-) -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android 3.1 Programming Books: http://commonsware.com/books -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] preventing keyboard pop up on device when screen pushed
Hello, When I launch one of my screens with an EditText on a device a keyboard pops up pushing all elements on the screen out of the way. This is not the behavior I wanted since the user must may go to the screen to read the stuff the keyboard pushes out of the way rather than to fill in the EditText widget. Does anyone know of a way to prevent the keyboard from popping up when I push my activity? Thanks, John Goche -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Windows USB Driver
That's also a fine question for device manufacturers and Google. The manufacturer of one of the phones I have made the effort to publish their drivers, including the one for ADB, on Microsoft's Windows Update. Plugging the phone automatically found and installed those. Another manufacturer (or two) makes the drivers available only as parts of their bloated phone management software packages that want to take over my life (or at least my computer). Yet another does not have the tablet management bloatware, but there seem to be no drivers on their site. Personally, I often resort to .inf file hacking. I suppose this _could_ be a part of the device certification process - the manufacturer would be required to provide a public page to download the drivers, or better yet, to do the Windows Update Center thing, but the only thing we have right now is this: http://developer.android.com/sdk/oem-usb.html So I agree with Mark, going the WiFi route with the browser is probably your best option. You could set up a special WiFi-based environment just for this, with its own DNS / web server, so the devices would connect to SSID installtheprogram and go to http://installtheprogram; or something along those lines for convenience. -- Kostya 03.10.2011 21:38, Mark Murphy пишет: By the way, SIDE-QUESTION: WHY DOES LINUX REQUIRE NO DRIVER FOR ADB -- YET WINDOWS REQUIRES SPECIFIC PER MANUFACTURER?) That's a fine question for Microsoft. I doubt they are monitoring this list.:-) -- Kostya Vasilyev -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: 9Slice and repeating image
Yes -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: preventing keyboard pop up on device when screen pushed
In your manifest declare the windowSoftInputMode and configChanges http://developer.android.com/resources/articles/on-screen-inputs.html activity android:name=.MainActivity android:label=@string/app_name android:windowSoftInputMode=stateHidden|adjustResize android:configChanges=keyboardHidden -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Windows USB Driver
On Oct 3, 1:38 pm, Mark Murphy mmur...@commonsware.com wrote: On Mon, Oct 3, 2011 at 1:29 PM, dmacke dma...@retaildoneright.com wrote: We have a project for a Client to push an APK from a Windows platform. Basically we have an APYK we need to get pushed to a phone quickly and completely stupid proof. APYK? Ok I admit it -- I am sloppy typist. You get what I mean -- you didnt have to call me out. Geez. This critique is coming from book author!? you guys are like chronic violators of errors in typing and abuse of the english language. PRE-QUESTION - is there a way to launch a file saved on SD card WITHOUT a file browser? Well, *something* on the phone will have to kick off the APK install process. That doesn't have to be a file browser. However, there is no end-user application that will do this as part of ordinary Android builds, and there's no guarantee there will be one on any given device. But this only works when the USB drivers are configured on Windows -- now this leads to USB driver hell. Which is why you really want to use b) IMHO. Yes, getting WiFi hooked up may be annoying, but they need that anyway in many cases, and it's probably no more difficult than getting adb drivers to work. Also, if they have a data plan, and the APK is available on the Internet, you don't even need to fuss with the WiFi. The URL can be handled via a URL shortener (e.g., goo.gl, or roll your own for mobile-friendly URLs). Totally agree. We loved the wifi idea. We have short URL - easy to remember and totally small footprint to download. The Client dont like it. They dont have wifi and we dont have control of their environment. we are trying to market package that runs on Windows platform and interfaces with Android phone. But as you say the pain of Windows USB drivers may make someone think that maybe wifi aint so bad. One day hopefully will be there. I agree with you -- but I am assigned to get some sort of generic USB process working. By the way, SIDE-QUESTION: WHY DOES LINUX REQUIRE NO DRIVER FOR ADB -- YET WINDOWS REQUIRES SPECIFIC PER MANUFACTURER?) That's a fine question for Microsoft. I doubt they are monitoring this list. :-) Could a generic Windows USB driver be created for most every Android phone that would allow ADB functions? Possibly, but that has nothing really to do with this list, which is for writing apps with the SDK. Perhaps try the [adt-dev] Google Group, where there are discussions of the developer tools, including adb. D'oh!. will re-post there. Thank you. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Fwd: Compuetr Vision Applications on Android
If you spelled it 'compuetr', then that would explain why you were not able to answer your own question with a Google search. Simply googling computer vision tutorial comes up with a LOT of tutorials. The Robotics Society one should be pretty good. As for computer vision on Android, take a look at the code for 'zxing'. On Oct 2, 8:41 am, Rahul Ramesh msg4ra...@gmail.com wrote: Hi, Hope you are doing fine. I'm a beginner in the area of Andorid Development. I've developed some very simple apps in the recent weeks. I would like to try my luck on a project which utilizes Computer Vision techniques. I'm looking for nice tutorials or articles related to the topic. So I'd really appeciate if anyone could point me to some helpful resources on the web, related to computer vision in Android apps. Regards, Rahul, Student. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en