Android :: How To Compare Two Simple Images?
Jul 21, 2009
I'll get straight to the point. Please note that I haven't code anything in this project just yet. This is only an idea. In human language, my goal is to: 1. Take a picture of a blank white A4 paper. 2. Verify (by code) that the picture is "White". (this's why I include 'simple' in the topic) I mean, the program should be able to tell if the user just took the picture of "white" paper and not any other colors. For the code... I can guess that the actual process should be: 1. Use Camera API to take a picture. // this step should be easy 2. Convert it to Bitmap. // this step should also be easy 3. Verify that it is "White". //*** now I need some help here. How can I do step 3? I look up the docs and found this is the Bitmap class: getPixels (int[] pixels, int offset, int stride, int x, int y, int width, int height) I can use this and compare the data pixel-by-pixel but it seems expensive. Could anyone recommend me a more proper way(if there is) to do this please?
View 4 Replies
Dec 16, 2009
I try to write an simple animation by using a handler.However whatever I try it does not function asynch which causes only the last image in the sequence being displayed.
CODE:...........
However it seems that all painting is done after the handler is completely done, meaning that the second image is shown and not the first.
I also tried the message handler implementation from the Snake sample but also here not with the expected result.
Can anyone give me an idea to show an image for a short definable period and switch back to the original image?
View 2 Replies
View Related
Nov 2, 2009
I'm basically using the same method of loading bitmaps in OpenGL that the SpriteMethodTest example uses and have been unable to get rid of an annoying outline that appears around all of my images.
For example, If I were to load an image of a white circle on a white background, I would expect to see nothing. Instead, I would see my circle because its edge would be gray. In SpriteMethodTest, I replaced the background image with white and was able to see that the edges of the android images flying around also don't seem to be rendered correctly.
Does anyone know how to load images in OpenGL without having a thin outline appear around the images?
View 4 Replies
View Related
Apr 6, 2010
I'm working to convert some background images to nine patch so they scale better on different phones.
The problem is that if I have the following resource structure: drawable-hdpi/background.png drawable-hdpi/button.png drawable-mdpi/background.png drawable-mdpi/button.png drawable-ldpi/background.png drawable-ldpi/button.png and then I drop a new drawable-hdpi/background.9.png file into the mix, it breaks button.png during the pre-compile. The error is "No resource found that matches the given name (at 'background' with value '@drawable/button').Simply removing that one nine patch file fixes the build. Should I be able to have some nine patch images and some normal ones, or to have nine patch only in hdpi but not mdpi or ldpi? This is Eclipse 3.5.1 with the latest ADT.
View 3 Replies
View Related
Sep 26, 2010
So, I'm currently a BlackBerry (9700, for the record) user, seriously considering switching to an android device. I'm sure everyone here can account for the various ways an android phone is superior to a BlackBerry, and I'm pretty familiar with them. What's been holding me back though, are the minor productivity tweaks a BlackBerry provides that seemingly don't have a match on android devices. Am I wrong on these? Have others made the jump and found no difference? Specifically: Dedicated hotkeys of sorts -- I'm a pretty heavy business user, so I make ridiculously extensive use of my calendar/scheduler. No matter what I'm doing at the moment, I'm able to jump to my calendar with a single button press and see my entire week's worth of appointments. If I need to add something, I can schedule an appointment in under 5 seconds all the way through. To be honest, that's probably the only hotkey I use, but the ability to do this in an instant no matter what's in my way is rather important for me -- are there any equivalents on android phones? Through my research I've noticed a lack of hardware hotkeys. Is there any software solution that could at least compare?.....
View 16 Replies
View Related
Sep 5, 2010
In my app on cupcake platform ,in the EGLDisplaySurface.cpp ,my plan is adding a method to compare the data is different or not between front buffer and back buffer.but I can't understand the framebuffer is.I'm poor in C++.
View 3 Replies
View Related
Aug 24, 2010
I would like to compare two song files (one may be subset of other file) and see, if they are match each other. Is there any predefined method available in Android? How to proceed on this?
View 5 Replies
View Related
Feb 2, 2009
I am thinking of developing a small application and I am trying to decide between various Mobile applications platforms - Android, iPhone and RIMM. I was wondering if any of you have any thoughts on any of these mobile platforms, there advantages/disadvantages etc. Also - how would you compare between the various app stores these mobile platforms have.
View 2 Replies
View Related
Feb 23, 2010
I am starting to regret my purchase of the Samsung Moment, I dont know if its with the Lacking OS of 1.5 as I see 2.0 on the website the interface is different with the phonebook, the way the screen looks. I still have yet to figure out how really this phone is the "same" or compares to the IPhone ... in simple ways of application use, I still see my friends on their I Phones talking to millions of people with in a 5 mile range to a 100 mile range on all these social applications.With also that in talk of Applications why is it when i try to get a NEW! or POPULAR! application I have the wrong OS I am starting to think I should of held out for the Nexus unlocked cause I think that is the only one you can get that does everything. I was really hoping for a socialized phone not a traveling phone. I will say it is handy ,when you go into the store to compare prices or when you go on a long trip finding restaurants,gas stations and such but the I phone helps everyone connect and thats what I really would like to see a SOCIAL app for ALL android USERS together!
View 12 Replies
View Related
Feb 27, 2010
I'm trying to compare two datetimes but I can't get it to work. Code...
View 1 Replies
View Related
Aug 18, 2010
I am using the above code for displaying bitmap.and i also move that bitmap.Now my qusetion is how i am compare bitmap with another bitmap. Please give me some suggestions.
View 2 Replies
View Related
Nov 12, 2010
Im new to programming, so bear with me. After following a couple of tutorials i made an SMS application, i want to do an specific task when a specific text is received, i do this by comparing the text received to a value(code) that i already declared. The problem is that this condition never ocurrs.When I send the message it always displays the inv variable (Invalid). I tried to change the "code" variable to an integer, and then parse the string so I could compare it; in this scenario it did work, but whenever I received a string message the application crashes. I think it should be a simple thing, but since i don't fully understand java i can't figure it out.
View 2 Replies
View Related
May 15, 2010
I have two SQLite tables, that I would love to join them on a name column. This column contains accented characters, so I am wondering how can I compare them for join. I would like the accents dropped for the comparison to work.
View 2 Replies
View Related
Oct 16, 2010
I was trying Barcode Scanner and Shop Savy from the market. Thought it would be a pretty cool resource to price match items when shopping whether they are on the web or locally.I have tried and tried and tried to work the Barcode scanner on the phone with no luck. Tried scanning up close.. a few inches away.. I sit there and sit there and sit there while it supposedly scans but never comes up with anything.Tried Google shop too which btw doesn't show on my app list after its installed so i have to pull it up on market to access it. Weird... But that is mainly for cd's, dvd's, books, etc. Things with some type of art or cover.
View 5 Replies
View Related
Aug 16, 2010
iIm looking for an app that i can scan a barcode and associate prices to it from local stores. i know of compare everywhere, shop savvy, and others but these apps don't know the prices at the local acme or giant eagle. if i could scan a barcode and then assign a price to it from a few local stores including target or walmart that would be great. I've found an iphone app but there's no such version for android (that i've found) called wychlist.
View 1 Replies
View Related
Feb 24, 2009
Below is a simple bench between Navive C and Dalvik Java, which is collected from Android SDK 1.1. Code...
View 3 Replies
View Related
Jul 18, 2010
Just curious how many have this issue.If you are unsure select the link below and find out pls.
View 30 Replies
View Related
Jun 26, 2010
So im getting my evo replaced since the mic just gave out only gets a reading if u blow into the mic hole otherwise no one can hear me and idk how to fix it dont know if its software or hardware. no water damage or dropping treat this thing like its my baby. I have no other problems with it and ill prob be getting the 003 version when i receive it sat or monday. I just wanna know who likes there screen on 003 and if u had both which do you prefer? I mean if i dont like the screen on the 003 im def taking it back later on when they change screens back when they get there suppy if they do.
View 2 Replies
View Related
May 26, 2010
Does anyone know how the Evo's antenna will compare with the Hero?I just moved to sprint to get the Evo, but had to switch early. My wife and I were given Heroes to hold us over for two weeks until the Evo launch.I'm noticing that i'm having reception issues in areas where my iphone, and Incredible got decent to great coverage.Is this an issue with the Hero alone or a sign of Sprints smaller footprint then AT&T and Verizon?
View 4 Replies
View Related
Aug 6, 2010
I am wondering how the two will compare and compete and which one will ultimately be the better phone.
View 49 Replies
View Related
May 17, 2010
Any users who have run both, compare the two? Would love to hear your opinions. Only thing holding me back from BB v1.0 is the lack of App2SD which I currently use in CM 5.0.6.2
View 19 Replies
View Related
May 5, 2010
I'm a Chinese incredible fan,and bought one from ebay and get it in last 2 days. after 2 days using ,it perfect and comfortable. Ofcourse there are some CDMA2000 network running by CHINATELCOM. incredible is a wonderful cellphone,and thanks the news from androidforums let me know that the TP2 battery could be used in incredible. So i brought a tp2 battery and the brand name is MOMAX(the famous battery manufacturer from CHINA,hongkong sar),and the battery capacity is 1500mah,(by the way,MOMAX usual get it's real capacity and never fakes),so it was became famous and still a good chance for the no-OEM battery as reason of the same quality and lower price.(the 1500mah battery for TP2 just only 11 USD) yes i got the MOMAX tp2 battery,and it can be used in incredible,but there are something unperfect is the tp2 battery is a little thick than OEM and the and the backcover can't close totally as same as the OEM one. you can see the picture about the oem battery and MOMAX TP2 attached and the difference when closed the back cover. espically the picture named "useoem1" and "usetp22". although the tp2 battery can't close the backcover totally,but it was already "closed" and can be used for incredible. i viewed the batteryboss.org it seems that the seidio's capacity only get 85% of its marked. and 1750 X 85% only 1487.5 so i think that use tp2 battery would be economic ,the same price to buy one seidio would to buy 4 MOMAX for tp2.
View 2 Replies
View Related
Aug 9, 2010
So my Hero got stolen, and I'm considering the Evo (I'm on a waiting list right now). What concerns me, though, is that Ogg Vorbis isn't listed as a supported music file type for the Evo, unlike the Hero. Does the Evo really not do Ogg? That would be a deal killer for me, since all my music is in that format. Also, for those of you who've had the Hero, how is the sound quality of the Evo in comparison, and does it seem to put out the same amount of power? (The Hero drove my big Sennheiser 580 headphones just great all by itself- I would hate to have to get an amp.)P.S. I did some searching, and could not find these subjects covered.
View 5 Replies
View Related
Nov 5, 2013
I started this thread becouse I want to find any app within I can compare phones.
APK with options to compare the 1st to the 2nd phone.
Do You know any app with these options?
View 4 Replies
View Related
Jun 22, 2010
Shock, horror, iOS4 has brought something unpleasant, wait for it, that unholy word that has never been associated with the iPhone. Yes, the iPhone has LAG. Gizmodo, the Gadget Guide My brother in law has already been complaining that his 3gs is way too slow. My heart bleeds.
View 48 Replies
View Related
Jul 1, 2012
about software to compare 2 *.smali files??
View 4 Replies
View Related
Jun 23, 2010
1.myJpegFile = new File("images/jpegImage.jpg");
2.output = new BufferedOutputStream(new FileOutputStream(myJpegFile));
3.encoder = JPEGCodec.createJPEGEncoder(output);
4.encoder.encode(myJpegImage); Please could you give me the equivalent code for line no. 3 and 4 in Android?
View 1 Replies
View Related
Oct 16, 2009
I'm a long time WinMo user and I switched to Android recently. Bought Galaxy some two months ago. I like it. However, I've never owned an iPhone, in fact, I never even used an iPhone. So I am curious as to how the Galaxy compares with Apple's product. If someone has had extended experience with both, I'd appreciate your comments.
View 15 Replies
View Related
Oct 5, 2010
I'm coming from At&t and 3g. I get my Phone tomorrow. I was wondering just how does web browsing compare on cdma compared to 3g?
View 11 Replies
View Related
Aug 18, 2010
So after getting frustrated with the lag on my new blackberry torch, I've decided that I might get the captivate. The one thing holding me back is the messaging features (e-mail/texting). How do they compare to the blackberry? Also, does the captivate suffer from the same legginess issues with simple menu functions/app changes?
View 13 Replies
View Related