[android-developers] Re: Newbie question: What is this in the code?

2011-05-16 Thread Hari Edo
On May 15, 6:33 am, tyliong tyli...@gmail.com wrote: I am a newbie developer and have done iphone coding. I just don't understand how some code works as it is not explained in my book. An Android book probably doesn't teach you programming, or programming in the Java language. Read up on the

[android-developers] Re: How to reverse camera view?

2011-05-13 Thread Hari Edo
I'm not sure what the value of such a preview would be-- I thought you wanted it mirror-flipped, but you're swapping left and right halves of the image. You may want to read through this thread. The challenge is to keep your processing code lean and efficient enough, since a phone is not going

[android-developers] Re: How can we get the mobile position (e.g. by gps) all the time?

2011-04-27 Thread Hari Edo
Theoretically, a perfect accelerometer would give you your relative velocity change, and if you knew the initial velocity, you could get your relative position change. In practice, you don't have a perfect accelerometer-- they have sample rate limits that are pretty coarse for kinetic analysis,

[android-developers] Re: HttpURLConnection responsecode 414-url too long issue

2011-04-08 Thread Hari Edo
As another poster was hinting, this is a job for HTTP POST, not HTTP GET. GET puts all arguments into the URL. POST puts a short URL, and then adds all of the arguments to the hidden handshaking conversation that follows the network connection. The good news is that many CGI programs don't

[android-developers] Re: Honeycomb Sourcecode

2011-04-08 Thread Hari Edo
On Apr 7, 3:06 pm, JAlexoid (Aleksandr Panzin) jalex...@gmail.com wrote: Why would you need Honeycomb source? I think the issue is not need vs want. Yet. It's doing the right thing. If a network router uses some open-licensed code, but doesn't provide the sources, they are rightly brought

[android-developers] Re: Parshing error

2011-04-07 Thread Hari Edo
On Apr 7, 2:55 am, rishabh agrawal android.rish...@gmail.com wrote: plz reply rishabh agrawal, your question made no sense because it had no details that we could use to understand the problem. This is not the first time that your questions on this forum were helpless. Could you please read

[android-developers] Re: Chinese soft keyboard and unknown character set

2011-04-06 Thread Hari Edo
The characters are made to be the same width as all other Chinese characters, so that text will align as expected. Even if I knew NOTHING about Unicode, or UTF-8 encoding, I might decide to type all of the digits on the Chinese soft keyboard, then cut and paste them into my Java code, making a

[android-developers] Re: Chinese soft keyboard and unknown character set

2011-04-06 Thread Hari Edo
characters, or the good old ones, just drawn with a wider, Chinese font? 06.04.2011 21:59 пользователь Hari Edo hari@gmail.com написал: The characters are made to be the same width as all other Chinese characters, so that text will align as expected. Even if I knew NOTHING about

[android-developers] Re: Activity lifecycle

2011-04-05 Thread Hari Edo
On Apr 4, 10:29 am, Gino ginolee...@gmail.com wrote: In my tests, it looks like onSavedInstanceState() does not get called when switching from portrait to landscape mode, or vice versa. There is no 'onSavedInstanceState' method in Activity. Is that a typo in your question, or a typo in your

[android-developers] Re: openGL texture render size

2011-04-02 Thread Hari Edo
On Apr 1, 11:16 pm, a a harvey.a...@gmail.com wrote: But i can't understand the following algorithm function nextHighestPowerOfTwo(x) {     --x;     for (var i = 1; i 32; i = 1) {         x = x | x i;     }     return x + 1; } On the first loop, take the value and smear its bits once

[android-developers] Re: Emulator not rotating screen?

2011-03-29 Thread Hari Edo
On Mar 29, 7:25 am, Mark Murphy mmur...@commonsware.com wrote: This is a known problem with the 2.3 emulator. *sigh* Seems like a pretty obvious thing to test before releasing, wouldn't you think? -- You received this message because you are subscribed to the Google Groups Android

[android-developers] Re: On Click method not working for buttons gotten by inflating the layout!

2011-03-28 Thread Hari Edo
You're inflating a whole layout, then attaching a listener to it, then throwing the whole layout away. There's nothing here showing that the layout you've inflated is actually shown or attached to the current activity. If it's not on the screen, it's not going to react to clicks. Normally, you

[android-developers] Re: Stack overflow error in TextView with text = ジョルテ

2011-03-28 Thread Hari Edo
I've used katakana and hiragana extensively in textviews, no problem. This is a pretty suspicious error report-- is it JUST that string? Is it only when the textview is in a listview? What's the full stack trace? Are you sure your own function is not in the recursion, like if you change the

[android-developers] Re: custom dialog frame - how to get a pointy triangle edge

2011-03-27 Thread Hari Edo
If you mean like the SMS app, you can do that with a .9.png image file, also called a Nine Patch. http://developer.android.com/guide/topics/graphics/2d-graphics.html#nine-patch On Mar 27, 10:34 pm, Nick Longinow nicklongi...@gmail.com wrote: Like a balloon-style dialog, with one side of the

[android-developers] Re: Augmented Reality and Spherical 360º Views

2011-03-26 Thread Hari Edo
On Mar 26, 10:01 pm, miguel miguelp...@gmail.com wrote: - Any tip for the sensor noise removal? Low pass filter, threeshold? both? any value for that filters? I tried EVERYTHING but the smooth problem may not be just here (so sad) - Any useful tip to make the overlay views move smooth?

[android-developers] Re: collision detection

2011-03-25 Thread Hari Edo
On Mar 25, 8:36 pm, bob b...@coolgroups.com wrote: Does android have any libraries to help with collision detection? Not going to give us much to go on, right? What do you mean? Phone-hits-pavement, finger-thumps-phone, finger-taps-widget, circle-intersects-with-circle,

[android-developers] Re: How to Obfuscate Android project source in eclipse

2011-03-23 Thread Hari Edo
The Android SDK setup for Eclipse does integrate with the ProGuard tool, which includes obfuscation. I don't think obfuscation is much of a protection, to be honest. Focus on making a damned good app that honest people will be happy to pay for. You'll never achieve 100% control over something

[android-developers] Re: how to change behavior of default application in android

2011-03-23 Thread Hari Edo
I think you're confused about how Android picks apps (activities) to handle various commands (intents) that the user invokes. Roughly: * the phone radio kit receives a call * Android asks, hey, which app is able to answer calls? + If one app says it can, that app is assumed the default.

[android-developers] Re: security of the framework

2011-03-23 Thread Hari Edo
On Mar 23, 5:50 am, madushanka chamilhewag...@gmail.com wrote: Hi, I am handling the security module of a framework that will designed to develop real time applications for as my final year project. I am new to android and i need help on this. At the moment i need to know how to encrypt an

[android-developers] Re: SIGSEGV on free()

2011-03-23 Thread Hari Edo
This has nothing to do with Android, per se. Calling free(x) when x is NULL is not harmful. Calling free(x) when x came from malloc() is not harmful. Calling free(x) twice with the same value of x will surely SIGSEGV. Calling free(x) with a bad value will likely SIGSEGV. Note case 3: if you

[android-developers] Re: SIGSEGV on free()

2011-03-23 Thread Hari Edo
On Mar 23, 11:41 pm, Dewr wind8...@gmail.com wrote: thank you guys. I really appreciate your advice. I have debugged by putting this 1 line code right after free(strBuf); (though there is no repeating free(strBuf)...) strBuf = NULL; If that's all that you changed, and it fixed the

[android-developers] Re: How to make webview answers onmousedown immediataly when touched?

2011-03-18 Thread Hari Edo
On Mar 17, 10:05 pm, lol zsefv...@gmail.com wrote: webview always answers onmousedown (js) after your finger leave up from the screen, so onmousedown is just like onclick. So how can webview listen to onTouch event so that it can answer the onmousedown event immediataly when you've touched

[android-developers] Re: Any idea for Augmented Reality??

2011-03-13 Thread Hari Edo
On Mar 13, 3:59 pm, Abhishek Talwar r.o.b.i.n.abhis...@gmail.com wrote: can anyone guide me to the path of augmented reality some nice tutorials, books ,special tips, platforms/sdk video links which can do the magic,.. Here you go: http://tinyurl.com/663pdl2 -- You received this message

[android-developers] Re: TranslateAnimation and scaleAnimation run at a time.

2011-03-10 Thread Hari Edo
On Mar 10, 5:21 am, leela morampudile...@gmail.com wrote: i am able to run Scale adn Translate animations one after another is it possible to run both at a time.. Read the documentation for AnimationSet. -- You received this message because you are subscribed to the Google Groups Android

[android-developers] Re: android TOAST?

2011-03-09 Thread Hari Edo
On Mar 9, 5:38 pm, kiros88 ghui...@gmail.com wrote: rather then the basic Ringer Volume display so i couldnt find any code that was using those words does anyone have an idea what it is like is it a toast cuz if it is does anyone know how to put a seekbar and textview on a single toast You

[android-developers] Re: Read CSV from web

2011-03-07 Thread Hari Edo
This looks like a school homework assignment. Have you even taken the first step of dividing this task into two parts? What's the first thing you want to do? What have you considered, to get that first step accomplished? On Mar 3, 6:13 pm, Muhammad Anas anas@gmail.com wrote: I am new to

[android-developers] Re: Can you use include / with @layout-land?

2011-03-06 Thread Hari Edo
On Mar 6, 5:00 pm, Romain Guy romain...@android.com wrote: If the layout you want to include is *exactly* the same for all configurations, just put it in res/layout. I once tried to have small rotation-independent clusters of views included from layout/, while the activity xml was in

[android-developers] Re: TextView gravity off on Galaxy Tab?

2011-03-05 Thread Hari Edo
Try setting the text value after setting the typeface? It may incorrectly cache the measurement using the view's Paint's font, and not revise that measurement when the typeface is changed. On Mar 5, 10:38 am, Nikolay Elenkov nikolay.elen...@gmail.com wrote: On Sat, Mar 5, 2011 at 1:10 PM,

[android-developers] Re: how to check my sign is correct not

2011-03-05 Thread Hari Edo
On Mar 5, 7:47 am, rishabh agrawal android.rish...@gmail.com wrote: how to check my sign is correct or not,becouse i have no android phone where i can test.i sign my apps using eclipse so how i will chek ..plz help Why would you start publishing without even having one device? The

[android-developers] Re: Help Getting the Context

2011-03-04 Thread Hari Edo
One alternative is to look for, or create, a public singleton. A public singleton is a class that (1) ever only has one instance, and (2) that instance can be located from anywhere by means of a static method. One candidate for singleton status is Application -- it is a Context, and you expect

[android-developers] Re: Help Getting the Context

2011-03-04 Thread Hari Edo
On Mar 4, 9:54 am, Jake Colman col...@ppllc.com wrote: So your suggestion is that I extend the Application class using the singleton pattern?  And my extension saves 'this' (the context) as a static member of my singleton?  So now I have to see how to extend the application class. Yes,

[android-developers] Re: Help Getting the Context

2011-03-04 Thread Hari Edo
On Mar 4, 10:40 am, Hari Edo hari@gmail.com wrote: Yes, indeed.  Extend android.app.Application. ... Android constructs your class instead of the default.  It gets its own onCreate()/onDestroy() lifecycle that spans all activities. Clarification: Application has no onDestroy() and you

[android-developers] Re: how to stop music which is play background in my apps

2011-03-02 Thread Hari Edo
On Mar 2, 12:41 pm, rishabh agrawal android.rish...@gmail.com wrote: i have develope apps in which i play background music.but when i go to the home through back tab then the song is also playing.how it is stop.. my code are         MediaPlayer mp=MediaPlayer.create(this, R.raw.ri);        

[android-developers] Re: Two activities in one window

2011-03-02 Thread Hari Edo
On Mar 2, 7:20 am, Mika mika.ristim...@gmail.com wrote: So what I would like to do is to have one view open where the user can see the new values and in the same window have also the system settings activity where the user should input the values. And if they have no hardware keyboard, they

[android-developers] Re: Market package name on Xoom?

2011-02-28 Thread Hari Edo
Greg, reading fail. There's a difference between she's only the one who... and she's the only one who... Without Dianne's team, Android wouldn't be. Shane, the advice (from Google team or anyone else) is trying to coach you into a sustainable design. You can write whatever compiles, but the

[android-developers] Re: reflection

2011-02-28 Thread Hari Edo
Reflection is the act of asking the JVM (Dalvik VM) and the current ClassLoader object instance for information about the classes it can reach in memory or along the Java CLASSPATH. It has nothing to do with inter-process communication. If it is not in the current process, or reachable by the

[android-developers] Re: How to handle?

2011-02-16 Thread Hari Edo
You don't respond to the HOME key, it is handled by the OS and only by the OS. Add android:clearTaskOnLaunch to your top-level activity tag in the manifest, and the OS does what you describe. http://developer.android.com/guide/topics/manifest/activity-element.html On Feb 16, 7:00 am, Abhilash

[android-developers] Re: Avoiding getIdentifier calls.

2011-02-16 Thread Hari Edo
I think the advice is to caution you not to do this for all of your UI elements everywhere, just as you don't use Java Reflection for all method calls. Looking a few things up by name in response to an activity start-up or a user interaction should not be a big deal. On Feb 16, 7:30 am, Samuh

[android-developers] Re: Avoiding getIdentifier calls.

2011-02-16 Thread Hari Edo
On Feb 16, 7:30 am, Samuh samuh.va...@gmail.com wrote: Questions: What are other alternatives that we can try? How should such resources be bundled so that they can be addressed in code efficiently? If you do find yourself making many calls, especially from the same name multiple times,

[android-developers] Re: SQLite multithreads

2011-02-15 Thread Hari Edo
Fifteen seconds of the proper use of web search tools gives this: FAQ: Is SQLite threadsafe? http://www.sqlite.org/faq.html#q6 Android Documentation - SQLiteDatabase - setLockingEnabled()

[android-developers] Re: How to delete...?

2011-02-14 Thread Hari Edo
On Feb 14, 9:15 am, Abhilash baddam abhilash.androiddevelo...@gmail.com wrote: I tried like but showing error.. Why is it so hard for people to explain WHAT error they get? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this

[android-developers] Re: Getting rid of the blink after a TranslateAnimation

2011-02-11 Thread Hari Edo
Note that the usual matrix-manipulating animations don't change the hit-testing for a view, so you have to actually move the real view if you plan on animating a view that is touchable. My app, Qwiz - Hiragana, uses a LOT of drag and drop of views, and touchable views that move around on their

[android-developers] retrieve current shadow effect attributes from a textview

2011-02-10 Thread Hari Edo
I can set shadow layer attributes in XML for a textview. Separate attributes control the Dx, Dy, radius and color. I can also set shadow layer attributes in code. One method will allow me to set all four of those parameters. However, I don't see any getters for these parameters. I'd prefer to

[android-developers] Re: Redrawing a view when the transparent activity closes

2011-02-10 Thread Hari Edo
Are you saying that your MainActivity.onResume() nor your MainActivity.onActivityResult() is not being called? I would think both should be happening here, and the translucent visual effect is irrelevant. See the activity lifecycle documentation. On Feb 9, 6:02 am, vivin joy

[android-developers] Re: Android Market anomaly in limiting distribution

2011-02-09 Thread Hari Edo
Try signing out of the Market console, shutting down your web browser instance completely, and forcing a refresh of the page. This sounds similar to a complaint where Free apps were reported with 'invalid price' in many countries; a clean browser session fixed the problems. On Feb 9, 12:01 pm,

[android-developers] Re: Completely disable Soft Keyboard from EditText

2011-02-06 Thread Hari Edo
I think he said he had a special soft keyboard that was to be used for this field. Sounds like he doesn't want to go through the whole hassle of creating an entire soft keyboard, nor creating all the caret- position and backspace-handling code necessary to reinvent EditView. I don't know the

[android-developers] Re: Where to report app update problems?

2011-02-06 Thread Hari Edo
I ran into this on an update of my free app tonight as well. I completely quit the whole Chrome browser process (which has been running for a month), and restarted it. The price problem went away as if by magic. I did notice another problem, where non-latin characters were causing the Recent

[android-developers] Re: Application Shutdown

2011-02-05 Thread Hari Edo
Save data when the user's no longer interacting with it. And even when they are. As you point out, there are no guaranteed callbacks. The system assumes that if you're idle, you can be killed. On Feb 5, 8:57 pm, AndroidDevTime androiddevd...@gmail.com wrote: I would like to handle application

[android-developers] Re: Disable landscape orientation in Android Browser?

2011-02-04 Thread Hari Edo
Web sites should be even more aware that differences in browsers exist, and to allow the end user to dictate the state of the browser, not you. For some examples, phone clamped in landscape on a car's dashboard; user who prefers landscape because the text can be bigger and more readable; users

[android-developers] Re: In app billing...

2011-02-04 Thread Hari Edo
On Feb 4, 2:31 pm, Kostya Vasilyev kmans...@gmail.com wrote: No, that says that the purchase can't be refunded. Is it somehow made clear to the user that the purchase can be refunded by contacting the developer? -- Kostya I would gather that only those developers who WANT TO OFFER THE

[android-developers] Re: Force Close Question

2011-02-01 Thread Hari Edo
Something else is causing your Force Close. Read the exception report in LogCat and dig into the actual cause. Read up on the Activity lifecycle, in particular the bubble that reads Other applications need memory: http://developer.android.com/reference/android/app/Activity.html The Android OS

[android-developers] Re: google analytics and active installs on market way off

2011-01-30 Thread Hari Edo
Congrats on having such a popular app. Sounds like your child has grown up and left home, moved off to other markets without asking your permission. Some people would say it's stealing, piracy, and must be stopped at all costs. Some people would say that the more people see it, the more people

[android-developers] Re: How to convert a image into Base64 string?

2011-01-28 Thread Hari Edo
This kind of question seems more like a school homework assignment, but in case the question is practical, here goes. What Base64 is: http://en.wikipedia.org/wiki/Base64 This article gives plenty of examples and details that someone can write their own fully-tested implementation in an hour.

[android-developers] Re: How to convert a image into Base64 string?

2011-01-28 Thread Hari Edo
Perhaps the actual question is how to get a byte[] for a given Bitmap or vice versa. This is, indeed, Android-specific and not as obvious as the Base64 part of your question. However, again, with a couple minutes of Google use, I found this snippet: // have Bitmap bitmap from somewhere

[android-developers] Re: Android Developer Position for a NY Based Internet Company

2011-01-27 Thread Hari Edo
I've never heard of a software *development* position that's stuffed into a mid-shift or night-shift slot. Either you're really advertising for operations technicians to be on call for those hours, or you are expecting a groundbreaking work environment where collaboration is excercised primarily

[android-developers] Re: Absolute path for an asset file

2011-01-27 Thread Hari Edo
An APK file, like a Java JAR file, is really just a ZIP archive file with special manifest data included with the other data files. Your assets/ directory on your development machine may contain individual files. They get zipped up into the APK along with all the .class, .png and .xml files.

[android-developers] Re: Suggested Android Phone for Unity Game Development Testing?

2011-01-27 Thread Hari Edo
They list compatible phones. Buy one of those. This is the most important paragraph I found in your forum link: The problem is, publishing to Android won't really be solid for another year. Consumers get locked into 2 year contracts, in the same way I got locked in, and the most common

[android-developers] Re: Tablet support up to 2.2

2011-01-26 Thread Hari Edo
I think the tablets in general will be more likely to flip orientation and good apps should handle that gracefully. But I think they should also have a lock orientation control at the OS or hardware level, as it's common but annoying to have the view flipping as you lay down in bed reading on an

[android-developers] Re: One frame buffer per activity or one frame buffer per the whole system

2011-01-26 Thread Hari Edo
I'm not sure that this is the right forum for platform-developers; it's more geared to app-developers. However, I will point out that there's an important entity between the framebuffer level and the activity level, and that is the Window. Activities come and go, Dialogs come and go, and their

[android-developers] Re: Edittext max characters - not set max

2011-01-26 Thread Hari Edo
I think Andre was looking for a design limit, not how to set one. The control can handle many pages of text, even with spanning styled markup. The EULA which I saw on one Android tablet was shown in a simple text view, and it was about fifty pages of text on the tablet. (The EditText control

[android-developers] Re: performance when passing background data to ui thread

2011-01-26 Thread Hari Edo
If you're sure that all users of the data are within the same process (the same app), then using Java synchronized is the best way to go. However, you will need to be very careful to understand your semaphore dependencies, or deadlock will occur. Not responding is almost as bad as Data corrupted

[android-developers] Re: ENHANCEMENT: Allow java public static finals to be referenced from XML

2011-01-26 Thread Hari Edo
It would create a dependancy loop: * the app code requires R.java to be generated * the R.java generation requires the XML to be scanned * the XML @java would require the app code to be scanned Maybe you intend the XML to be scanned twice, with two different sets of rules as to what is

[android-developers] Re: Application does not use all screen in Android tablet (with android 2.2)

2011-01-26 Thread Hari Edo
The tarot deck answers nothing, so I'm reading the tea leaves now. If that doesn't work, I will throw some chicken bones across the campfire. What app? Is this your app? What are you doing to develop the activity? Are you making layouts in XML? Did you try a sample application? What tablet

[android-developers] Re: Built-in resource unexpectedly not found

2011-01-26 Thread Hari Edo
On Jan 26, 2:53 pm, Mark Murphy mmur...@commonsware.com wrote: I would recommend that developers depend as little as possible on explicitly using firmware-defined resources. If you need them, copy their values into your project. Or, at least have a value that you use as a fallback in case a

[android-developers] Re: Hide each view after LayoutAnimation

2011-01-26 Thread Hari Edo
Are you setting fill-after to true on this animation? On Jan 26, 4:58 pm, chrismanster chrismans...@gmail.com wrote: I have a GridView with several n Views in the Layout.  When one is clicked I want to reverse the LayoutAnimation to give the affect that everything is being removed.  Once the

[android-developers] Re: android: a redundant UI syntax ?

2011-01-26 Thread Hari Edo
This is pretty common with XML systems with a lot of tags, especially if they're meant to be expanded or mashed up. If you create your own View types, you can extend the XML DTD to include your namespace. Third-party libraries can add all of their features with their own namespace. It's the

[android-developers] Re: Android Emulator-capture live images

2011-01-24 Thread Hari Edo
Read the documentation for the 'adb' tool. Live pictures from your phone or from your emulator. No video. On Jan 24, 9:51 am, jayavenkat jaia...@gmail.com wrote: Hi All,          whether its possible to capture live picture from Android emulator 2.2 version,If so can anyone share your ideas

[android-developers] Re: how to get home screen click event

2011-01-24 Thread Hari Edo
As far as I know, the Home button can't be overridden or hooked by your application. The button invokes an Intent, and the system looks up what activity (or activities) are coded to respond to that Intent. All your app will know is that it is asked to save instance state, pause operation, and

[android-developers] Re: Pretty sure Google Analytics for Android not working

2011-01-22 Thread Hari Edo
My GoogleAnalytics app is working fine, but it's not on the market yet so it's only getting about 150 events / day as I debug features at home. Are you calling .dispatch() occasionally? Queued up pageviews and events don't get sent to the server until (1) there's network, and (2) you call

[android-developers] Re: Shared preference from non activity class

2011-01-22 Thread Hari Edo
On Jan 22, 7:50 pm, TreKing treking...@gmail.com wrote: I have no idea what a bean class is. It's one of those J2EE things that they shove at you in diploma-mill university IT classes. Basically, an object with a hashmap of properties, so that it's trivial to make GUI front-ends that can

[android-developers] Re: How to detect Face and Smile Face matching in Android?

2011-01-21 Thread Hari Edo
On Jan 21, 1:12 am, Ankit Nigam ankitniga...@gmail.com wrote: 1. Pick a photo and detects faces and show rectangle, and detect smile of each face and show smile percentage of each. 2. Pick a photo from photo library and show faces. if you click faces, it search all photo library and show

[android-developers] Re: Detecting Search button

2011-01-21 Thread Hari Edo
On Jan 21, 3:06 am, Zsolt Vasvari zvasv...@gmail.com wrote: Is there a way to know whether a phone has a Search button or not?  I believe Search is optional and not all phones have it.  I would like to hide my UI elements for invoking search if I could determine the presence of the hard

[android-developers] Re: how to get the current shown text from a textview embeded in scrollview

2011-01-21 Thread Hari Edo
I think he wants to know what range of characters are exposed, when the text is longer than the visible area. The TextView and ScrollView don't really communicate or coordinate this very well. Since ScrollView works on a pixel basis, and TextView is all about characters and lines, you likely

[android-developers] Re: another problem with Galaxy Tab and fullscreen

2011-01-21 Thread Hari Edo
Are you doing all your setFlags() before inflating the intent? I'm not sure but I think that's a requirement. On Jan 21, 9:29 am, guich guiha...@gmail.com wrote: Hi, Pardon me, i forgot that i set the fullscreen at runtime, just before showing the application's ui:       if (fullscreen)

[android-developers] Re: another problem with Galaxy Tab and fullscreen

2011-01-21 Thread Hari Edo
* I meant inflating your content view, not your intent. On Jan 21, 9:29 am, guich guiha...@gmail.com wrote: Hi, Pardon me, i forgot that i set the fullscreen at runtime, just before showing the application's ui:       if (fullscreen)

[android-developers] Re: How to Launch Home Screen Programmatically in Android

2011-01-21 Thread Hari Edo
Not that it's a particularly standard example, but the e-book reader NOOKcolor replaces the see all your apps launcher with the see all your Barnes Noble purchased e-books Home instead. So the Home key doesn't show all your apps, and neither would the ACTION_MAIN/CATEGORY_HOME intent. I

[android-developers] Re: How to Launch Home Screen Programmatically in Android

2011-01-21 Thread Hari Edo
On Fri, Jan 21, 2011 at 12:06 PM, Hari Edo hari@gmail.com wrote: Not that it's a particularly standard example, but the e-book reader NOOKcolor... On Jan 21, 3:35 pm, Dianne Hackborn hack...@android.com wrote: (1) NOOK is not a compatible device. Dianne, I generally value your

[android-developers] Re: How to Launch Home Screen Programmatically in Android

2011-01-21 Thread Hari Edo
On Jan 21, 7:52 pm, Dianne Hackborn hack...@android.com wrote: Further, if you are planning on publishing an app to Market, I would *very* *strongly* urge you to *not* do development against a device that does not itself ship with Market.  You have no idea what kinds of things may be

[android-developers] Re: getHitRect() returns hit to a different image item in a Customize List

2011-01-20 Thread Hari Edo
It's not clear what effect you're doing, but you will probably need the inverse of the drawing transformation to determine the hits. That is, if the drawing transformation is dividing by Z for depth and perspective, the hit testing function should be multiplying by Z to put the touch coordinates

[android-developers] Re: Does Any one Building Android source code in Mac

2011-01-20 Thread Hari Edo
A large number of app developers are using Eclipse (or other tools) on Mac OS X to produce Android packages successfully. The performance of a machine running Eclipse on Mac OS X will be about the same as a similar configuration on Linux. There is no reason to expect a major shift between these

[android-developers] Re: Guidewire Developer in MA 6+ months contract

2011-01-20 Thread Hari Edo
On Jan 20, 11:10 am, arun panigrahi arunp.xpertt...@gmail.com wrote: - *Position: Guidewire Developer* - The candidate is required to have a minimum of *2 years experience with - Guidewire's UI (Screen configurations) Rules and Integration* development - utilizing *Guidewire Claim Center 5.0 or

[android-developers] Re: Underclocking to simulate other phones

2011-01-20 Thread Hari Edo
I think people rely on the software emulator instead. If you know how to dive into the firmware at that level, you would know whether you would impact the reliability and consistent behavior of the device. I wouldn't trust the results, myself. On Jan 19, 8:29 pm, brian purgert

[android-developers] Re: change color of Button

2011-01-19 Thread Hari Edo
None of the existing ColorFilter classes have any spatial arguments. If you can implement a new ColorFilter extension that did take an X/Y formula or maybe a gravity-like constant, that could work. However, I expect all of the ColorFilter examples use native code for speed purposes. Instead,

[android-developers] Re: Isolated database tests

2011-01-19 Thread Hari Edo
The database is just one file in your app's data directory. You need to specify the name of the database when you use it, and that becomes the filename that defines the database file. Just make a backup copy of the original file, or make a brand new database file for your tests. You should be

[android-developers] Re: Android productivity with multi core processor

2011-01-18 Thread Hari Edo
While I don't know how dalvik really will hand this, but I expect that if you make a new Thread or AsyncTask as required, it's done. Now, it's up to you to architect your app to do this in a way that makes sense. It does not make sense to fire off ten or twenty different AsyncTasks just to show

[android-developers] Re: The curious case of the impossible ArrayIndexOutOfBoundsException

2011-01-18 Thread Hari Edo
(1) I agree that more core exceptions like AIOOBE should give better diagnostics, at the (rare) expense of the StringBuilder work to do it. (2) If multiple people are seeing it on the same line number, then it's likely a real problem. Now to figure out how to reproduce it. (3) Any

[android-developers] Re: Android Keyboard Hide event.

2011-01-18 Thread Hari Edo
Watch for any content change of the four EditTexts, with addTextChangedListener(). Don't update your fields if the current value in the field seems invalid (empty, non-numeric, etc.). Note the user can hit the Next action on most soft keyboards or tap each field to move from EditText to

[android-developers] apps with optional GoogleAnalyticsTracker, via reflection

2011-01-18 Thread Hari Edo
Almost everything on this group is a question, and not a discussion, so I thought I'd do something a little different. Here I share a little code that I put together yesterday. I have a general-purpose extension of the Android Application class, where I put together useful capabilities that

[android-developers] Re: No uses-feature name=vibration/; Do all android systems support vibration?

2011-01-18 Thread Hari Edo
As an example, the Barnes and Noble NOOKcolor device has no vibrator. Any apps that were expecting to offer that feature run without incident (and without vibrating, obviously). This device also has a number of other deficiencies as it was not intended to be used as a generic Android tablet,

[android-developers] Re: How to have a Service, un-killed by any task killer

2011-01-17 Thread Hari Edo
Please remember that your code is a guest on someone else's phone. Your code should act accordingly. Don't make features that depend on just one way of ending the code. Dead battery, force quit, kill process, all of these things are normal and your code should expect that. On Jan 17, 2:04 am,

[android-developers] Re: Count of activities in App's stack

2011-01-17 Thread Hari Edo
If you make a new class MyActivity extending Activity, then you make all of your activites extend MyActivity instead, then you can implement whatever instance tracking you'd like to do. But Java (and thus Dalvik) have no way to reflect and iterate all object instances of a class, extended class,

[android-developers] Re: How to have your app overlayed on top of any other app?

2011-01-16 Thread Hari Edo
Another program called SoftKeys does this by way of a running Service. It offers access to the usually-mandated hardware keys like MENU, BACK, HOME, SEARCH, even for those few oddball devices like NOOKcolor that do not include those keys. An IME keyboard is also a form of this kind of UI

[android-developers] Re: AnimationSet - Scaling and moving at the same time

2011-01-16 Thread Hari Edo
It seems like whenever a scale is done as a part of an animset, the starting or ending scale is computed incorrectly, as the reciprocal of the ending scale. I think they're calculating the anti-transform for each element, and doing it badly, messing up compound animations. Thanks for posting

[android-developers] Re: SDCard, file exists for one application but not for the other?

2011-01-14 Thread Hari Edo
I am guessing that the /mnt in your example is where you're mounting the SD card image on your computer. Your Android device doesn't typically have a /mnt directory. You may find your card is mounted at the root, e.g., the path /sdcard/file.xml may exist. The *proper* way to figure this out is

[android-developers] Re: Fwd: Howto: Lock down android using our custom start up application.

2011-01-14 Thread Hari Edo
Is this some sort of kiosk application, where the user doesn't own the hardware? The basic idea is to replace the stock Launcher with your own app, responding to all Home intents. I just finished breaking down this kind of dumb software barrier on my e-book reader, so I could use the device for

[android-developers] Re: Accessing Disk memroy from Application

2011-01-14 Thread Hari Edo
On Jan 14, 1:32 am, Saj TK saj.dr...@gmail.com wrote: Well, what i really wanted to do is delete the Media file from the memory location and write some encrypted data to the same location. I have to make sure that i m writing to the same location, not anywhere else in the card. To do this

[android-developers] Re: Don't show images in SD Card in Android Gallery

2011-01-14 Thread Hari Edo
Have you tried writing them with unusual filename extensions and other obfuscation? Your program may know it's a .png file but many media applications would likely ignore a file if it's got a .notpng extension. If you can delete them after first run, so much the better, but not necessary. On

[android-developers] Re: searching in HUGE SQLite database

2011-01-14 Thread Hari Edo
A very many platforms, applications and filesystems have trouble with files that exceed 2GB. Even if Android's dalvik/Java-like libraries are okay with it, the sqlite implementation may not be. Even if sqlite can deal with huge files, the SD card filesystem is surely FAT32, which will limit you

[android-developers] Re: Can't figure out this compile error

2011-01-14 Thread Hari Edo
public class Sync extends IntentService { ---       Integer counter;          public void Sync() {                  super(Sync); --- counter = 0;          } ... } -- You received this message because you are subscribed to the Google Groups Android Developers group. To post

[android-developers] Re: Detect direction of shake movement in SensorListener

2011-01-14 Thread Hari Edo
What is your code giving you that's unsatisfactory? Depending on your definition of shake, you could probably tell the difference between side to side vs up and down but you will likely get very inconsistent results if you try to distinguish leftward vs rightward. Your hand often anticipates a

  1   2   >