Android :: Get Preview Size / Bad Result On Froyo Emulator

Aug 18, 2010

I was trying to use some of the new camera methods included in Froyo, i.e. setPreviewCallbackWithBuffer() & addCallbackBuffer(). In the documentation it's said you need first to create a buffer of appropriated size and use the addCallbackBuffer() method. The buffer size must be width * height * bits_per_pixel or otherwise you'll never receive a preview frame. To know the image size, you can ask to the camera about it's configuration. When I'm trying to configured the camera I use Camera.getParameters().getPreviewSize() the emulator says the size is 320*240, but with that size it didn't work on emulator. I used the old setPreviewCallback() and, in the onPreviewFrame(), I asked the size again. That time the size was 480*320. Then I hard- coded that values in the first code and everything worked. Now I'm afraid not only the emulator would have that behavior. Unfortunately I don't have any real device with Froyo and I can't try it. So, anyone have tried that methods in real devices? btw, are they really increasing the poor performance and frame rate?

Android :: Get Preview Size / Bad result on Froyo emulator


Android :: Skin Size 800x600px - How To Setup An Emulator With This Size

May 7, 2009

Hi,

I would like to see how my app works on a 800x600 android netbook. how can i setup an emulator with this size?

thanks chris

View 4 Replies View Related

Android :: How Can I Change Default Size (width + Height) Of XML Layout Preview?

Oct 5, 2010

Every time that I want to do a Layout, I'm getting a black layout preview then I can drop stuff on it, that's ok, but how can I change the size of that blank surface (xml). The question came because I set a folder layout-large and then when I add a new layout.xml to that folder it came with the same size, as a layout-normal.

View 1 Replies View Related

Android :: How Change The Size - Width - Height - Of The XML Layout Preview Panels In ADT Plugin For Eclipse

May 12, 2009

I'd also like a way to change the default, if possible.

View 1 Replies View Related

Android :: Sweeter Home Preview 2 Crashing In Froyo 2.2

Jun 8, 2010

I've been playing around with the new releases of Froyo 2.2. It appears that sweeter home is not compatible with the new 2.2. Man! This sucks! i have emailed the dev the bug reports. I am hoping that a new release will be coming very soon. Hopefully we can get some kind of the eta on the new release. And just when sweeterhome was virtually bug free!

View 2 Replies View Related

Android :: Size Of .apk File For Emulator

Nov 10, 2009

Is there a limit to the size of the .apk file when using it on the emulator. When I run the default app created while creating a project, the .apk file size is about 5K and it runs ok. When I try to run a real app which uses other application libraries so that the total size is about 325K, I get the following error: Failed to upload Benchmark.apk on device 'emulator-5554' java.io.IOException: Unable to upload file: timeout Launch canceled! I had increased the heap size of emulator to 64 MB and RAM size to 192 MB.

View 2 Replies View Related

Android :: Screen Size Of Emulator

Sep 9, 2009

How can i get the screen size of my emulator? i used

CODE:...............

But it gives me different values each time. How to find the exact value?

View 2 Replies View Related

Android :: SDK Emulator AVD For Tablet Size

Sep 20, 2010

I was wondering how to create an emulator environment for a tablet sized device,i know there are quite a few devices being released soon, but how do start sizing up my layout?

View 1 Replies View Related

Android :: Emulator TCP Packet Size

Jun 6, 2010

Has anyone tried to do a tcp client server app using the emulator using the pc as a server and the phone as the client?I've got a bit of an issue where its only sending one packet, ie 1491 bytes of data regardless of how much there actually is to send, from the client(Phone) to the server(PC).

View 2 Replies View Related

Android :: Any Way To Set Emulator Internal Storage Size?

Oct 15, 2010

Is there a way to set the emulator's internal storage size? It is currently set to a fairly low value. Also, while searching for the answer to this question (which I didn't find), I ran across several threads which seemed to indicate that many phones have a very limited amount of internal storage. If I have an application which is 30 Mb (due to graphics and audio resources), is this going to be too large for most people to use. Should I be looking to install my application on the SD card instead (can this only be done on version 2.2 systems?).

View 3 Replies View Related

Android :: Emulator Window Small Size

Sep 4, 2009

I added -scale 0.2 to the Default emulator option under eclipse and launched the emulator.After that I got a really small window. I then removed the -scale 0.2 but the emulator window remains small.I can start the emulator from command line and i get the normal size, but not with eclipse.Any help would be appreciated.

View 4 Replies View Related

Android :: Reducing Size Of Emulator / Coming Up With SDK

Aug 22, 2010

I want to reduced the size of Android Emulator i.e. come up with your SDK?As Emulator size is greater than my laptops screen size, unable to see whole content on simulator.

View 3 Replies View Related

Android :: File Size Limit On Sdcard In Emulator

Jun 18, 2010

When I try to push a 40MB file onto the sdcard adb hangs and the emulator freezes. Is there a file limitation that I am not aware of? I couldn't find anything on this. When I try the same with a smaller file it works without problems. I have configured the sdcard of the emulator device to have a size of 512MB and when I check with adb shell df I see that there is enough space.

View 6 Replies View Related

Android :: 1x1 Size Nine-patch Image Not Showing Up On Emulator Device

Oct 29, 2010

I'd like to use a 1x1 size Nine-patch image from Android drawable resources. When I'm trying to display it with <ImageView> in my layout xml file, this one is never showing up on the Android emulator device. Here's the xml code below. Code...

View 1 Replies View Related

Android :: Emulator Resolution - Change Activity (Screen) Controls Size?

Dec 22, 2009

Accoding to emulator Resolution how to change the activity(Screen) controls size according to screen Resolution in android ? i have screen design like below. it is working in HVGA(320x480) resolution progressbar is coming bottom of screen but if i run in other resolution emulator VM (WQVGA432 - 240x432) i am getting the progressbar middle of the screen. i am not able to fix the in permenent(fixed) position. i am using below code in manifest file but no output

android:normalScreens="true"
android:largeScreens="true"
android:anyDensity="true" />

i am not getting the solution so please give some idea for resolve the issue.

View 3 Replies View Related

Android :: Flash On Froyo Emulator

May 21, 2010

I might have missed something, but how do we get flash working on the new 2.2 emulator? The sites I've tried don't work (eg BBC), and when trying to go to flash install site, i get rerouted to a market url for com.adobe.flashplayer (which obviously won't work on an emulator). So is flash being delivered as a market app? And if so how do we get it on an emulator.

View 7 Replies View Related

Android :: Camera In Froyo Emulator Crashes

Jun 28, 2010

We are exploring the default applications in Froyo and we found out that the Camera app always crashes seconds after it loads.

Is this related to the no camera/video input limitation of the application? If not, what seems to be the problem? We already added all the additional properties to the AVD. We also disabled the auto-rotate screen option.

View 2 Replies View Related

Android :: Open Mic Failed On Froyo Emulator

May 21, 2010

I got new SDK today, and test my program on emulator. However, I can't open Mic on 2.2 emulator, it's work on earlier emulator, my code list below.new Audio Record(Audio Source.MIC, 16000, AudioFormat.CHANNEL_CONFIGURATION_MONO,Format.ENCODING_PCM_16BIT, iMinSize); And I got log below. ERROR/Audio Record(878): Could not get audio input for record source 1 ERROR/Audio Record-JNI(878): Error creating Audio Record instance: initialization check failed. ERROR/Audio Record-Java(878): [ android.media.AudioRecord ] Error code -20 when initializing native Audio Record object.

View 3 Replies View Related

Samsung Galaxy S :: RAM Size After FROYO Update

Nov 29, 2010

Recently i have updated my galaxy S to Froyo, but after update the RAM size shown as 304 MB only, something fishy..http://www.androidforums.com/images/smilies/confused.gif

View 1 Replies View Related

Android :: Emulator's Camera Built-in App Buggy In Froyo / 2.2

Jun 1, 2010

The Emulator's camera worked fine for taking pictures in 2.1 Eclair. What did not work was recording videos, obviously.

Now running an app which worked merely flawless on 2.1 Emulator causes the camera app to crash. I fire up an intent to launch it:

CODE:...................

This starts the camera app but after a few seconds it crashes.

The output is:

CODE:.................

Actually I just wanted to see if the bug which made you receive a small image from the camera even though EXTRA_OUTPUT was specified has been fixed in FroYo. Unfortunately, I don't even get to test it.

View 2 Replies View Related

Android :: How To Upgrade Android Emulator To Android2.2 Froyo?

Aug 22, 2010

As of now I am using Eclairs but wanna upgrade the same to froyo. Please let me know which Adt to use and how to do the same.

View 3 Replies View Related

Android : Can I Get Result From A Sub Activity?

Aug 5, 2010

When user presses a button from a webview, I open a scrollview activity with some buttons and edittext fields.

Once the user enters the fields and presses the 'create' button, from scrollview activity, I want the results from the called activity to be accessible. How can I do thi?

View 1 Replies View Related

Android :: How Do I Make My Image View Fixed Size Regardless Of Size Of Bitmap

Sep 23, 2010

So I'm loading images from a web service, but the size of the images are sometimes smaller or bigger than other images and the visualization looks silly when I put them in a ListView in android. I'd like to fix the size of my ImageView so that it only shows a portion of the image if it's larger than a preset amount. I've tried everything I can think of setting the setMaxWidth/setMaxHeight, setting the scale type to centerCrop, using ClipableDrawable wrapping my BitmapDrawable, setting using Drawable.setBounds(). I've tried setting in the XML and programmatically, but neither worked. I'm very surprised setting max width/height didn't do anything. Below is the XML I'm using ImageView definition in my layout file

View 1 Replies View Related

Android :: About Size Of Resource Assets Files & Final Apk Size

Oct 2, 2009

I am currently developing a dictionary application with voice database. I would like to know about the current Android limitation on the file size. I am using a self-provided sqlite database ( > 50mb ) . I tested that once the built .apk size exceeds ~30mb the app will not be installed onto the simulator (INSTALL_FAILED_ INSUFFICIENT _STORAGE). Could anyone confirm me that if up until now there is no way to embed such large size files in a single apk ( Aimed to sell at Google Market without requiring user to download datafile afterwards). Also, is there a limitation of 1,048,576 bytes for a single file in the assets folder ?

View 3 Replies View Related

Android :: Size Of Image Is Larger Than Or Smaller Than Specified Display Size

Jan 22, 2009

if size of image is larger than or smaller than specified display size (on screen), then it is automatically, compressed and stretched resp by android run time or require to handle by explicitly.

View 2 Replies View Related

Android :: Check Cache Size For Bitmaps / Fix Maximum Size Of It?

Jun 30, 2010

I manage a cache of bitmap. Do you have an advise to fix the maximum size of it?

View 2 Replies View Related

Android :: Intent And URI Conversion Result

Feb 14, 2009

We can convert from Intent to URI and from URI to Intent. From Intent to URI string Intent intent1 = new Intent ();
String uriString = intent1.toURI ();
From URI string to Intent Uri uri = Uri.parse (uriString);
Intent intent2 = new Intent ();
intent2.setData (uri)

After conversion, intent1 and inten2 should be same. for example:
Intent intent1 = new Intent ();
intent1.addCategory (Intent.CATEGORY_HOME);
intent1.addCategory (Intent.CATEGORY_LAUNCHER);
Log.v ("", "Intent1 = " + intent1);
if (intent1.hasCategory (Intent.CATEGORY_HOME))
Log.v ("Intent1", "#1 hasCategory TRUE");
else Log.v ("Intent1", "#1 hasCategory FALSE");
String str = intent1.toURI ();
Uri uri = Uri.parse (str);
Intent intent2 = new Intent ();
intent2.setData (uri);
Log.v ("", "Intent2 = " + intent2);
if (intent2.hasCategory (Intent.CATEGORY_HOME))
Log.v ("Intent2", "#2 hasCategory TRUE");
else Log.v ("Intent2", "#2 hasCategory FALSE");
result Intent1 = { categories=android.intent.category.HOME,android.intent.category.LAUNCHER} } #1 hasCategory TRUE

Intent2 {data=#Intent;
category=android.intent.category.HOME;
category=android.intent.category.LAUNCHER;
end } #2 hasCategory FALSE

In this sample code, Intent2 is a conversion result from Intent1. If you run this sample code, Intent1 result and Intent2 result are different. Because Intent1 and Intent2 have a same Intent.CATEGORY_HOEM, the result should be Intent1 and Intent2 is TRUE (intent.hasCategory). I think this is bug. And the hint is Intent1 and Intent2 's toString result is different.
Intent1 = {categories=android.intent.category.HOME,android.intent.category.LAUNCHER}
Intent2 = { data=#Intent;category=android.intent.category.HOME
category= android.intent.category.LAUNCHER;end }

I don't know how to convert Intent to URI(String) and convert URI (String) to Intent. I want to save Intent to DB and read Intent from DB.

View 3 Replies View Related

Android :: Geocoder Not Returning Result

May 8, 2009

My application that uses geocoding was working fine till last week and now all of a sudden am not getting proper data from the same.

I used getLocality() , which was returning CITY name previously. But now it is returning NULL.

Is something changed? or Has someone faced the same issue?

My application is on SDK 1.0

View 12 Replies View Related

Android :: Way To Return Result Of AsyncTask

Jan 21, 2010

According to my research, which includes reputable sources (Mark Murphy et al), the most preferred way of polling a remote source and presenting said data to the user is by creating a service and using AsyncTask within that service to do the polling. I have done that.But, when I read the docs there seem to be several "Threading Rules" that conflict with this way of doing things: "The task instance must be created on the UI thread." and "execute(Params...) must be invoked on the UI thread." As stated, I have created the task instance on the Service thread (not the UI thread). Am I missing something? Also, when the AsyncTask finished, I sent out a Broadcast on onPostExecute, which is then picked up by the Activity, telling it to retrieve the final value again from the service (since I couldn't obviously update the UI from the service). I couldn't figure out any other way to return the result of the AsyncTask. Is this the correct practice?

View 8 Replies View Related

Android :: Opencore Test Result

Mar 22, 2010

Here is what I got while running a test case of open core . *************** # pvplayer_ engine _test -test 1 1 SDK Labeled: PVDEV_ CORE_RELEASE_6.506.4.1 built on 20090312 Test Program for pvPlayer engine class. Input file name 'test.mp4' Test case range 1 to 1 Compressed output Video(No) Audio(No)Log level 8; Log node 0 Log Text 0 Log Mem 0 Starting Test 1: Open-Play-Stop-Reset Results for Test Case 1: Successes 1, Failures 1 Total Execution time for file test.mp4 is : 2.712000 seconds# *************** I want to ask why it shows 1 success and 1 failure . there should be only 1 pass or 1 fail only . Do each test case have multiple sub-tests within them ? which class in source code finally decide whether it is pass or faiL?

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved