[android-developers] Re: Heap size - why so small?

2011-04-22 Thread Zsolt Vasvari
You know what they say -- it's not the heap size, but how you use it. On Apr 23, 4:30 am, Fabio Yasusi Yamamoto wrote: > Hi > > I'm trying to understand why the heap size of a single application is > so small. > > I mean, there are phones with limited RAM, and the heap size is about > 16mb. Small

[android-developers] Re: Android shared preferences assignments not persisting between emulator sessions

2011-04-22 Thread Zsolt Vasvari
No idea about the MODE_PRIVATE stuff, but I use PreferenceManager.getDefaultSharedPreferences() and it works fiine. Why do you need to control the file name? On Apr 23, 12:15 pm, roschler wrote: > I am using the following code to save data to my Android application's > shared preferences: > >    

[android-developers] Re: java

2011-04-22 Thread hoss7
php and c++ and c# On Apr 22, 7:13 pm, Mark Murphy wrote: > Possibly. What languages and environments have you worked in before? > > On Fri, Apr 22, 2011 at 11:09 AM, hoss7 wrote: > > hi > > i want start develop android app > > can i develop android app if i dont know java? > > -- > Mark Murphy

Re: [android-developers] Heap size - why so small?

2011-04-22 Thread Dianne Hackborn
16 or more applications are regularly kept in the background; 48 MB is a good limit for the vast majority of applications which allows good use of available memory for the stuff regularly going on and to facility quick switching between applications. Also, before getting so cranky, please read the

[android-developers] Android shared preferences assignments not persisting between emulator sessions

2011-04-22 Thread roschler
I am using the following code to save data to my Android application's shared preferences: private SharedPreferences getOurSharedPreferences() { return getSharedPreferences(SHARED_PREFS_FILENAME, MODE_PRIVATE); } SharedPreferences sharedPrefs = getOurSharedPreferences(); S

[android-developers] Re: Click event on Edit-Text's Right Drawable.

2011-04-22 Thread Zsolt Vasvari
I messed around this for a long time in my app and finally I decided that the simplest way was to have a compound control that comprised of an EditText and a ImageView. It works great. On Apr 23, 9:33 am, Sunil Lakhiyani wrote: > Hello Developers, > > I have one Edit Text with right drawable.

[android-developers] Re: Is there a min SDK level for "android.hardware.telephony" feature?

2011-04-22 Thread Zsolt Vasvari
> However, I notice this does not work (returns false) for some devices that > definitely do have telephony (e.g. HTC Legend and Motorola Milestone). In > both cases, they are running SDK 7, so I wonder whether this particular > feature is an SDK 8+ thing? I'd say these devices simply have a firmw

[android-developers] Re: AlarmManager woes

2011-04-22 Thread Zsolt Vasvari
I am glad we are on an agreement here. I created a bug report for this: http://code.google.com/p/android/issues/detail?id=16314 On Apr 22, 7:27 pm, Mark Murphy wrote: > And moments after I pressed [Send], I notice Ms. Hackborn indicating > on another thread that Force Stop from the Settings ap

[android-developers] Re: peculiar or undocumented behavior of ExifInterface?

2011-04-22 Thread mukgup
HI Higonnet, I also found the same problem with EXIFInterface. All EXIF values are erased on call of saveAttributes(); Can you please tell me how I can change JPEG comment. If your observation is correct then this is a really useful feature atleast when EXIFInterface saveAttributes method is n

Re: [android-developers] Re: Is there a min SDK level for "android.hardware.telephony" feature?

2011-04-22 Thread Mark Carter
>From what I have seen so far, TelephonyManager is never null (even for devices without telephony), so that check is no good. Maybe (for SDK level 7 and where the telephony feature value is missing) check TelephonyManager.getSimState() for TelephonyManager.SIM_STATE_READY instead? This is not p

[android-developers] apps-for-android.googlecode.com/svn

2011-04-22 Thread J Handal
Hi All, http://apps-for-android.googlecode.com/svn is not building. file default.properties are not found, I tried all the tricks checkout,import,clean,build,import jars,libraries,build path,etc. Other repositories built fine like http://myandroidwidgets.googlecode.com/svn --

[android-developers] Re: if i want to add overlay item to appear in map & also the gps point

2011-04-22 Thread Spiral123
what error are you getting and where? On Apr 22, 6:35 pm, ingy abbas wrote: > package ntryn.n; > > import com.google.android.maps.MapActivity; > import com.google.android.maps.MapView; > import com.google.android.maps.MapController; > import com.google.android.maps.GeoPoint; > > import android.co

[android-developers] Click event on Edit-Text's Right Drawable.

2011-04-22 Thread Sunil Lakhiyani
Hello Developers, I have one Edit Text with right drawable. The xml code is and CustomEditTextActivity.java public class CustomEditTextActivity extends EditText { private Drawable rightSideDrawable; private Rect rectangleBounds; public CustomEditTextActivity(Context context, AttributeSet

[android-developers] http://apps-for-android.googlecode.com/svn default.properties not found

2011-04-22 Thread J Handal
Hi All, http://apps-for-android.googlecode.com/svn is not building. file default.properties are not found, I tried all the tricks checkout,import,clean,build,import jars,libraries,build path,etc. Also diffrs. eclipse versions. Other repositories built fine like http://myandroid

Re: [android-developers] HDPI-device using mdpi resources

2011-04-22 Thread Kostya Vasilyev
Perhaps your application is running in HVGA compatibility mode? Make sure you have either minSdkVersion set to 4 or above, or a supports-screens tag in the manifest. 23.04.2011 2:28 пользователь "Tom" написал: > Hi all... > > I'm developing an app and frequently testing on a device, rather than

Re: [android-developers] Removing .jar file from project.

2011-04-22 Thread Bob Kerns
If removing and reimporting the project works, and refreshing and rebuilding did not -- you're working around an Eclipse bug, not your lack of knowledge. Deleting and re-importing the project is your third-biggest Eclipse hammer. The higher ones are: * Creating a new Eclipse workspace and import

[android-developers] Re: Android Dashboard - GirdView or LinearLayout

2011-04-22 Thread Albert
I wasnt implementing the standard dashboard since I had an x numbers of "items" plus I wanted to add a button below the dashboard that would take the whole width - couldnt use a GridView since I wanted that button to scroll with the dashboard. I used a LinearLayout as the row with 2 containers lef

Re: [android-developers] Keystore

2011-04-22 Thread Mark Murphy
On Thu, Apr 21, 2011 at 7:49 PM, Joshua Needham wrote: > Alright so I cannot remember the keystore password. My question is > what can I do about this and if I implement licensing will I still > need to sign the app? Can I refund all exiting purchases and create a > new application? > > Why this i

[android-developers] Re: Timezone Question

2011-04-22 Thread Bob Kerns
Ah, I love time questions. Everyone thinks time is a simple concept... Let's look at this more closely. There are two distinct things here, being referred to as "the time". There's the time. And there's how the time is displayed. The timezone determines the conversion between them. I don't kno

Re: [android-developers] How do you add sound to web application?

2011-04-22 Thread Mark Murphy
PhoneGap's Google Group is here: http://groups.google.com/group/phonegap On Thu, Apr 21, 2011 at 10:27 PM, krispy1001 wrote: > Hi Everyone! > > I have just started developing Android apps. I have all the support > software running and I have uploaded my fist app to my Android phone. > > I am dev

Re: [android-developers] Menus for tabs do not show in action bar

2011-04-22 Thread Mark Murphy
On Thu, Apr 21, 2011 at 4:40 PM, Steve wrote: > Is this possibly a problem with my code?  Or an Android bug or an > undocumented incompatibility? > > Any ideas? For Honeycomb, I'd get rid of the TabActivity, convert your existing tabs into fragments, and use the tabs mode of the action bar itself

[android-developers] Re: Code coverage report: "no metadata found in any of the data files"

2011-04-22 Thread Jason
for anyone else: http://blog.appmakr.com/android-code-coverage/ On Apr 13, 5:44 pm, Jason Polites wrote: > Hi folks, > > I'm trying to generate code coverage reports from the junit tests on my > project, but I keep running into this message: > > "nothing to do: no metadata found in any of the da

Re: [android-developers] TabActivity not the main activity

2011-04-22 Thread Mark Murphy
Use adb logcat, DDMS, or the DDMS perspective in Eclipse to examine LogCat and look at the stack trace associated with your error. On Fri, Apr 22, 2011 at 5:19 AM, Axel B wrote: > Hello everyone, > I hope someone will be able to help me with this issue. > I'm developing a program that starts with

[android-developers] if i want to add overlay item to appear in map & also the gps point

2011-04-22 Thread ingy abbas
package ntryn.n; import com.google.android.maps.MapActivity; import com.google.android.maps.MapView; import com.google.android.maps.MapController; import com.google.android.maps.GeoPoint; import android.content.Context; import android.location.Location; import android.location.LocationListener

Re: [android-developers] Re: Scan for wifi networks when connected to 3G

2011-04-22 Thread Kostya Vasilyev
Well, you could disable all the "known" (configured) WiFi networks using WifiManager. It's not really user friendly, though. 23.04.2011 2:30 пользователь "seema" написал: > Hi, > > I even tried the wifi locks also. This is what I did > > wifiLock = wifiService.createWifiLock(WifiManager.WIFI_MOD

Re: [android-developers] who invoke PhoneApp.

2011-04-22 Thread Dianne Hackborn
This is not related to the SDK, so not relevant to this group. The phone is a core system process, and as such started early in system boot. On Thu, Apr 21, 2011 at 7:27 PM, EastWind wrote: > I'm a newbie. > I can see the below message about PhoneApp at boot up. > >

Re: [android-developers] No Activity found to handle Intent

2011-04-22 Thread Mark Murphy
http://developer.android.com/reference/android/content/Intent.html#ACTION_PICK "Input: getData() is URI containing a directory of data (vnd.android.cursor.dir/*) from which to pick an item." You do not specify a Uri in the input, and your does not specify a element to filter upon the Uri or its

[android-developers] How to refresh a "Form"

2011-04-22 Thread Giorgio Torres
Hi, i'm new in android development and I've just completed the tutorial at developer.android.com. I'm a J2ME programmer, and I think i have some habits from it. First of all, it was hard to familiarize with android's UI building way, and i have some vicious inherited from J2ME's programming way. I

[android-developers] WebView : Prevent autocorrect on textarea

2011-04-22 Thread xtranophilist
I am developing an Android Application which uses WebView. I don't want Android's autocorrect feature on a textarea field but can't seem to prevent it. For now, I am using this input text method: but not exactly what I want as multiple line input isn't possible with input element! How do I disable

[android-developers] Heap size - why so small?

2011-04-22 Thread Fabio Yasusi Yamamoto
Hi I'm trying to understand why the heap size of a single application is so small. I mean, there are phones with limited RAM, and the heap size is about 16mb. Small but not so bad. The new devices and even the motorola XOOM with 1GB RAM, is limited to 48mb of heap space. What the hell were t

[android-developers] Re: seeking with av_seek_frame or url_seek

2011-04-22 Thread omfarka
emymrin, do you know any idea about calculating iNewPosition? How can we get that value? On Apr 22, 10:26 pm, emymrin wrote: > I guess new position must be expressed in stream time units: > > // iNewPosition is in seconds > int64_t timeStamp = iNewPosition * > pFormatCtx->streams[iStreamIndex]->

[android-developers] Re: seeking with av_seek_frame or url_seek

2011-04-22 Thread omfarka
hello emymrin how can we calculate inewposition value, do you have any suggestion? On Apr 22, 10:26 pm, emymrin wrote: > I guess new position must be expressed in stream time units: > > // iNewPosition is in seconds > int64_t timeStamp = iNewPosition * > pFormatCtx->streams[iStreamIndex]->time_

Re: [android-developers] Supported Widget-Sizes

2011-04-22 Thread Mark Murphy
The Android developer site is not necessarily accurate on that point. On Fri, Apr 22, 2011 at 5:30 AM, lx_android wrote: > Hi Android Developers > > I have written on the Android Dev-Site > http://developer.android.com/guide/practices/ui_guidelines/widget_design.html > that android only support's

[android-developers] about my last message

2011-04-22 Thread Axel B
Sorry about my last message, problem solved ! It was something really stupid, I apologize. -- 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 gro

[android-developers] Keystore

2011-04-22 Thread Joshua Needham
Alright so I cannot remember the keystore password. My question is what can I do about this and if I implement licensing will I still need to sign the app? Can I refund all exiting purchases and create a new application? Why this is even an issue if I create a new keystore for the same application

Re: [android-developers] How to differentiate applications with same UID?

2011-04-22 Thread Mark Murphy
On Fri, Apr 22, 2011 at 12:38 AM, Anup wrote: > We know that applications developed by the same developer have the > same UID. Absolutely not, unless you are using android:sharedUserId, which you probably should not be using. > Can we add some random ID of our own to this UID to bring > uniquene

[android-developers] Android Eclipse Plugin support for links in workspace via Import files?

2011-04-22 Thread Gabe Martin
Greetings, I'm attempting to add some custom fonts into my \assets \fonts directory. These custom fonts are used by a number of different projects and therefore are stored outside of my project root. Ideally I was hoping the following would work in eclipse: 1. Create the \assets\fonts directory.

[android-developers] Updating GridView child

2011-04-22 Thread TBA
Hi I'm trying to update a view which belongs to a child of a GridView. The GridView is constructed using a custom adapter extending BaseAdapter which retrieves the items from an array, and the view created is stored in the object from the array, allowing me to access and update the view from a

[android-developers] receiving Data message on a specific port

2011-04-22 Thread Amine KHANCHAR
hi ,i am trying to send a data message using sendDataMessage("5556",null,,message.getBytes(),null,null) but it seem to be not working on the receiver side i declared a broadcast receiver in the Manifest : so in

[android-developers] Re: Scan for wifi networks when connected to 3G

2011-04-22 Thread seema
Hi, I even tried the wifi locks also. This is what I did wifiLock = wifiService.createWifiLock(WifiManager.WIFI_MODE_SCAN_ONLY, "MyLock"); if(!wifiLock.isHeld()){ wifiLock.acquire(); } if(wifiService.isWifiEnabled() == false){ wifiService.setWifiE

[android-developers] Camera Preview problem

2011-04-22 Thread mutans22
Hello there, While developing a camera application i am getting the following logs in logcat. Can some please throw some light on why the problem is occurring? 04-22 19:33:50.474: ERROR/v4l2_utils(1690): Error = Invalid argument from qbuf 04-22 19:33:50.474: ERROR/CameraHardwareSec(1690): E

[android-developers] Re: Scan for wifi networks when connected to 3G

2011-04-22 Thread seema
Hi, I just came across the WiFi locks. It says that I can create a lock with scan_only mode and it will prevent me from automatic connection. But it did not work for me. This is what I did wifiLock = wifiService.createWifiLock(WifiManager.WIFI_MODE_SCAN_ONLY, "MyLock"); if(!wifiLock.i

[android-developers] How to point a marker on google map according to our choice.

2011-04-22 Thread jyotibhu...@gmail.com
I have develop a simple GPS android application,I am able to view the Google map but I want to point a marker on the map according to our choice and I would like to get latitude and longitude. -- You received this message because you are subscribed to the Google Groups "Android Developers" group

[android-developers] Reading PayWave (ISO14443-B format) track information using Android 2.3.3 NFC API

2011-04-22 Thread lal
I'm trying to Read Track data for Payment cards (PayWave, PayPass). As per my understanding they follow ISO 14443 B. With new NFC API, 1. i can connect with IsoDep format without any exception thrown 2. call getHiLayerResponse() - returns nothing :(. Now what? Later i tried to call transcei

[android-developers] Problem in playing MP3 over RTSP streaming on Android Phones

2011-04-22 Thread Amruta
Hello All, I am trying to play MP3 files over RTSP . Streaming is done using FFMpeg. When i try to play this stream in any other player like VLC, it gets played well. But streaming does not work on Android phones (I have tried this on Samsung Europa, LG Optimus One, Samsung Galaxy, Google Nexus On

[android-developers] Custom Layout and big view in smaller layout

2011-04-22 Thread Mathieu Calba
Hi everyone, In an app that I work on, I need to have view (an image most of the time, but sometimes it's some text), which sometimes is in an expended state and sometimes in a unexpended size, depends on some events. The change of state is done with an animation. For exemple in the middle of the

[android-developers] Re: Updating GridView child

2011-04-22 Thread TBA
Managed to solve the problem, it was related to getView being called multiple times for the first item (in fact, for all items, but the first item was having an earlier View object than the last getView call, meaning the reference to the View in the object array was pointing to a view android w

Re: [android-developers] Re: Built-in camera problem deleting files

2011-04-22 Thread Liang Wang
1. You can let camera return bitmap data, then you handle the data by yourself. There is no file saved this way. 2. If you let camera save the image to file in a specified directory(through provider), making a empty file named .nomedia in that directory can prevent mediascanner from scanning it. T

Re: [android-developers] Re: ColdFusion and Android development

2011-04-22 Thread erik tsomik
Well I am programming in coldfusion So i thought that I can use coldfusion to program the android. Also ColdFuion is Java based On Thu, Apr 21, 2011 at 12:50 AM, lbendlin wrote: > please explain what made you think that the two have anything to do with > each other. > > -- am i > You received th

[android-developers] How do you add sound to web application?

2011-04-22 Thread krispy1001
Hi Everyone! I have just started developing Android apps. I have all the support software running and I have uploaded my fist app to my Android phone. I am developing using eclipse and the phoneGap plug-in to allow me to compile and run the web app as a native application. My problem is that I ca

[android-developers] Integrating Android clients (Native Java and AIR) with Java and .NET backends

2011-04-22 Thread mcoderkat
Developers creating Android applications that connect to Java or .NET services can face significant integration challenges given the fragmentation of the Android OS. We have remoting and messaging APIs that will help ease your integration effort and would like to invite you to visit our blog and vi

[android-developers] Apk to detect external USB keyboard

2011-04-22 Thread youying
Hello I'm looking a way to detect an external USB keyboard by apk. Here is the hint I found. http://goo.gl/cYT3f ,using (getResources().getConfiguration().keyboard I tried this, but no matter the external USB keyboard existing or not, I always got "Configuration.KEYBOARD_QWERTY" Is this way s

[android-developers] Re: EditText.SetError() Not working properly in Sony Ericsson Xperia

2011-04-22 Thread Eric Ang: Sony Ericsson Developer Support
Which Xperia Device are you guys referring to? Also can you check the Build number? More details will be nice Also, I haven't seen any issues with Edittext.Seterror() internally here at SonyEricsson Regards, Eric @ SE Developer World On Apr 20, 6:23 pm, Zsolt Vasvari wrote: > We heard you the f

[android-developers] Menus for tabs do not show in action bar

2011-04-22 Thread Steve
Am porting to honeycomb. For one of my activities, a menu is not showing up in the Action Bar. I have a TabActivity. Two tabs. A ListActivity in each. When the TabActivity is visible, the action bar shows the normal icon & title, but there is no menu or menu choices. On honeycomb, onCreateOpti

[android-developers] TabActivity not the main activity

2011-04-22 Thread Axel B
Hello everyone, I hope someone will be able to help me with this issue. I'm developing a program that starts with a first Activity, which is my "welcome screen". I would like to call an activity from here (using a "start" button on this screen), that would be a TabActivity. But I keep having probl

[android-developers] who invoke PhoneApp.

2011-04-22 Thread EastWind
I'm a newbie. I can see the below message about PhoneApp at boot up. V/PhoneApp( 120): onCreate()... But I don't know who invoked PhoneApp. Could you please explain the procdure how PhonApp to be invoked. -- You received

[android-developers] Re: How to call web services in Android emulator

2011-04-22 Thread Jxn
On 19 Apr, 07:48, Sasikumar Murugesan wrote: > Im new to android so ilke to know about webservice and also i like connect > my android emulator with PHP server via webservices. so i need to help from > you step by step. You might want to look for kSOAP. Yours Andes -- You received this message

[android-developers] How to differentiate applications with same UID?

2011-04-22 Thread Anup
We know that applications developed by the same developer have the same UID. Can we add some random ID of our own to this UID to bring uniqueness to each application? If so, how can this be done? Does anyone have any suggestions on how to go about this issue? -- You received this message because

[android-developers] Re: Making new keyboard

2011-04-22 Thread Igor
Hi, thank you for pointing , I am already using this :). What I want is how they made that for example on letter Q you have number 1 shown above. Is it image mad eofr each character or is it settings in code? Thanks On Apr 21, 9:44 pm, TreKing wrote: > On Tue, Apr 19, 2011 at 7:50 AM, Igor w

[android-developers] HDPI-device using mdpi resources

2011-04-22 Thread Tom
Hi all... I'm developing an app and frequently testing on a device, rather than emulator. It's so very quick to build and launch, I love it. Now that the layout is becoming more mature in the app, I've found components appearing differently than I expected. This wasn't so obvious first since I wa

[android-developers] replace transparent color bitmap with alpha

2011-04-22 Thread BusyByte
I have been creating a 2d game with surface view. My tileset images have a transparent color and not alpha. However I do have sprites that all have alpha transparency. My tilesets are under directories so they are in the assets so they are not described by xml. I would like to convert my tileset im

[android-developers] Scan for wifi networks when connected to 3G

2011-04-22 Thread seema
Hi, I am developing an app where I would like to know the available Wi-Fi networks when connected to 3G. When I enable Wi-Fi, it automatically connects to a wifi network and disconnects from 3G. I want wifi to be enabled, but not connected to any wifi networks instead remain in 3G. -- You

[android-developers] Codecs on Android

2011-04-22 Thread Impy
I'll start here...and I'm already cringing from the laughter and sneering I know I'll receive. I don't know a lot about how codecs work except that they are language coded drivers for media, usually audio and video. I'm interested in protocol H.323 because I'm working on a video solution for Deaf p

[android-developers] No Activity found to handle Intent

2011-04-22 Thread Gerry Reno
android-sdk_r10-linux_x86 Using implicit intent I cannot get the activity found. AndroidManifest.xml: In Main Activity: try { Intent intent = new Intent("android.intent.action.PICK"); st

[android-developers] Supported Widget-Sizes

2011-04-22 Thread lx_android
Hi Android Developers I have written on the Android Dev-Site http://developer.android.com/guide/practices/ui_guidelines/widget_design.html that android only support's three widget-sizes (4x1;3x3;2x2) in landscape and also in portraitmode. But i know that i can also create widgets with the size 1x1

[android-developers] Re: Display list of saved tables to be opened

2011-04-22 Thread ZitZ
Well, clearly it relates to android because I'm trying to display a list of those tables in the UI to the user, so the user could select which one he/she wants to load. I don't think that will be in the SQL documentation for some reason. It is clearly an overlapping issue, but something I suspect

Re: [android-developers] Re: Android Dashboard - GirdView or LinearLayout

2011-04-22 Thread Mark Murphy
On Fri, Apr 22, 2011 at 6:18 PM, Robert Louden wrote: > Mark, that was one of the examples that I used when researching on how to > create a dashboard; very useful. They use a LinearLayout to organize the > dashboard. Well, actually, I was referring to (*cough*) my answer on that question, linkin

Re: [android-developers] Re: Android Dashboard - GirdView or LinearLayout

2011-04-22 Thread Robert Louden
Mark, that was one of the examples that I used when researching on how to create a dashboard; very useful. They use a LinearLayout to organize the dashboard. On Fri, Apr 22, 2011 at 5:28 PM, Mark Murphy wrote: > Also, see: > > http://stackoverflow.com/questions/4981430/dashboard-layout-pattern >

[android-developers] Re: Timezone Question

2011-04-22 Thread Streets Of Boston
I agree with the other posters. The TimeZone is set by the phone's date & time settings. The user either specifically sets the phone's date, time and timezone or (s)he lets it being set automatically (using network provided values). If the phone's date & time settings are mis-configured, there

Re: [android-developers] Re: Android Dashboard - GirdView or LinearLayout

2011-04-22 Thread Mark Murphy
Also, see: http://stackoverflow.com/questions/4981430/dashboard-layout-pattern On Fri, Apr 22, 2011 at 5:26 PM, Robert Louden wrote: > Ah, the dynamic part makes sense for a GridView. I've seen a ScrollView also > be used with a LinearLayout template, so I guess it really is preference at > that

Re: [android-developers] Re: Android Dashboard - GirdView or LinearLayout

2011-04-22 Thread Robert Louden
Ah, the dynamic part makes sense for a GridView. I've seen a ScrollView also be used with a LinearLayout template, so I guess it really is preference at that point. I must say that I never thought of using a ListView for the dashboard. I'm not even sure how. Do you use two views in each list row?

[android-developers] Re: Two listviews scrolling in lockstep

2011-04-22 Thread lbendlin
I think I found the answer http://stackoverflow.com/questions/3014089/scroll-to-a-position-in-a-listview Listview scrolling is (of course!) not standard. grrr -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, s

Re: [android-developers] Two listviews scrolling in lockstep

2011-04-22 Thread lbendlin
I actually tried getScrollY() but it doesn't seems to register anything - always shows 0. firstVisibleItem shows correctly, and I could use that but it's not granular enough. left_speeds.setOnScrollListener(new OnScrollListener(){ @Override public void onScroll(AbsLis

[android-developers] Re: Android Dashboard - GirdView or LinearLayout

2011-04-22 Thread Albert
My guess is that you would want to use a LinearLayout if the dashboard will be static (you know before hand where everything goes) and prefer a GridView if you have a dynamic dashboard - maybe you will even want it to scroll (like places in Google Maps) Now I have actually used a ListView in my ap

Re: [android-developers] Two listviews scrolling in lockstep

2011-04-22 Thread Kostya Vasilyev
Any reason you can't use a single ListView with appropriate item layouts, split in two halves? Other than that, the scroll position is accessible via the base class, View. It has getScrollX() and getScrollY() methods. You could also override the following in both ListViews (subclassing them

[android-developers] Timezone Question

2011-04-22 Thread String
I don't believe that there is one. The platform only knows about one current time zone, and that's whatever the user has configured in Settings > Date & time. I've never seen a way to access the automatic zone if the user has overridden it. Your only other option would be to use a web service to

[android-developers] Two listviews scrolling in lockstep

2011-04-22 Thread lbendlin
I have two narrow, equally sized listviews side by side. I chose that design specifically because it's not a lot of information and I can show most of the contents in one screen full (together both lists have 22 items) As it is now, each list is scrolling independently. It's ok-ish but I would

[android-developers] Re: seeking with av_seek_frame or url_seek

2011-04-22 Thread Ece OZMEN
I think this is what you told ?? but when programm starts, first timestamp =0 , keyframes[i]=1 (keyframe value is right), avseekframe returns 0 , avcodec_decode_video2 returns 7854, framefinished=216.. THey don't make any sense :S (index is 275) for(i=0;iduration) / framecount)*keyFrames[i]/1000;

Re: [android-developers] Removing .jar file from project.

2011-04-22 Thread TreKing
On Fri, Apr 22, 2011 at 1:58 PM, Tobiah wrote: > I'm still left feeling as though there is a more direct way of doing this, > or that Eclipse is strongly lacking in this respect. > In my relatively limited time with Eclipse, I've learned that it does things seemingly of its own accord, regardles

Re: [android-developers] Timezone Question

2011-04-22 Thread TreKing
On Fri, Apr 22, 2011 at 2:47 PM, Jake Colman wrote: > What API should I be using to get the timezone of the current location as > opposed to the timezone that he has forced the phone to use? > http://groups.google.com/group/android-developers/browse_thread/thread/8fa8dd46bb316a7c Seems like it

[android-developers] Re: facebook integration

2011-04-22 Thread Magemello
Try easy facebook android sdkit's more simple to use! more detail and support on www.easyfacebookandroidsdk.com On Apr 17, 1:27 pm, DanH wrote: > There's no real need for Android support for Facebook, since the > interface is so > simple:http://developers.facebook.com/docs/guides/mobile/#and

Re: [android-developers] Re: New to Android Need Help

2011-04-22 Thread TreKing
On Fri, Apr 22, 2011 at 2:42 PM, edprog wrote: > Now just one question do you recommend to create the Thread in the main > Activity or do it in a separate class? > Actually, neither. Don't use raw Threads unless you really have to. I don't think you really have to here. See this article: http:/

[android-developers] Re: seeking with av_seek_frame or url_seek

2011-04-22 Thread Ece OZMEN
How can I get the iNewPosition variable?? -- 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...@

Re: [android-developers] Background service interaction - Activity paused

2011-04-22 Thread Federico Paolinelli
Thanks a lot. I was really curious about what happens behind, and I was afraid that trying to update a view while it wasn't displayed would have broken something. However, I choose the solution of unregistering the callback when my activity is paused, and to ask the new status back to the service

[android-developers] Re: Batch Creation in Monkeyrunner

2011-04-22 Thread Diego Torres Milano
You can create any kind of script you want in monkeyrunner as it is a python compiler. On Apr 21, 7:53 am, Gaytri wrote: > Hello All, > > I want to create a batch(sequence of multiple scripts) in > monkeyrunner. I have used this concept in other automation tools like > QTP. Can anyone please sugg

[android-developers] Re: Running Instrumentation Test on multiple emulator on desktop.

2011-04-22 Thread Diego Torres Milano
Use spawn="true" in your ant script to run as background commands. On Apr 21, 4:46 am, Isha Dalwadi wrote: > Hi, > > I have two emulators running on my machine. now with adb am instrument > command i can run the instrumentation test on single emulator at a > time. So, two run the instrumentation

[android-developers] Timezone Question

2011-04-22 Thread Jake Colman
My app needs to know the timezone in which is executing. To do this, I have the following code: import java.util.TimeZone; TimeZone tz = TimeZone.getDefault(); One of my users says he has configured his phone to not switch timezones even though he may have flown across the country. He says the

[android-developers] Re: New to Android Need Help

2011-04-22 Thread edprog
I think eventually i will need help hehe, as of now I will try to do it see if I can figure it out. Now just one question do you recommend to create the Thread in the main Activity or do it in a separate class? On Apr 22, 11:32 am, TreKing wrote: > On Fri, Apr 22, 2011 at 2:10 AM, edprog wrote:

[android-developers] Re: seeking with av_seek_frame or url_seek

2011-04-22 Thread emymrin
I guess new position must be expressed in stream time units: // iNewPosition is in seconds int64_t timeStamp = iNewPosition * pFormatCtx->streams[iStreamIndex]- >time_base.den; av_seek_frame(pFormatCtx, iStreamIndex, timeStamp, AVSEEK_FLAG_ANY); -- You received this message because you are subsc

Re: [android-developers] how to center aligned multiline text

2011-04-22 Thread Kostya Vasilyev
Manish, As far as I can tell, when TextView breaks text into multiple lines, it always takes as much width from the parent view as it can. One possible workaround is to include explicit linesbreaks, "\n", into the string. -- Kostya 22.04.2011 22:53, Manish Garg пишет: Hi All, In my appli

Re: [android-developers] Removing .jar file from project.

2011-04-22 Thread Tobiah
On 04/22/2011 10:09 AM, TreKing wrote: On Fri, Apr 22, 2011 at 11:56 AM, Tobiah mailto:t...@tobiah.org>> wrote: Thanks. I am new enough to Eclipse to not know this, but it did not change anything. In the Problems windows I still have: Error generating final archive: Failed to

[android-developers] how to center aligned multiline text

2011-04-22 Thread Manish Garg
Hi All, In my application, I am displaying some text in textview on tabs. I have customized tabs view. because of the text length it is wrapping in two line which is fine with me. But this text is getting aligned with the left and no more in center of the tab view. http://schemas.android.com/ap

[android-developers] Re: Web based Emulator

2011-04-22 Thread Diego Torres Milano
Strictly speaking you can launch an emulator from a remote machine using some remote display protocol. For example, you can 'ssh -CX user@server emulator' and if X11 forwarding is supported and your network connection has low latency there's no noticeable difference from a local emulator. I use it

Re: [android-developers] Re: NPE in java.util.Calendar

2011-04-22 Thread Mark Murphy
On Fri, Apr 22, 2011 at 1:52 PM, Jake Colman wrote: > > Thanks Mark and Andrew.  The Date variable should never, ever be NULL in > the first place so that didn't occur to me.  I assumed I was using the > API somehow incorrectly. Perhaps your app is being used on a planet with multiple suns, keepi

[android-developers] Re: How to export the project as a JAR file.

2011-04-22 Thread Rohit
The other problem I have is that I have multiple jar files that I import into my project and all of them have resources (e.g. strings.xml). Eclipse / Android tools complains about duplicate strings.xml files while building the apk - Is there a way to overcome this? Rohit On Apr 21, 4:46 pm, Mark

[android-developers] Android Dashboard - GirdView or LinearLayout

2011-04-22 Thread Robert
Following the dashboard interface from the Google I/O 2010 conference, I see that they use a LinearLayout to make the dashboard. Other examples also use this style. I was wondering why wouldn't you use a GridView instead, seeing that it's mostly organized for

Re: [android-developers] Re: new sdk and backwards compatibility

2011-04-22 Thread Yves Liu
Thanks, that is exactly what I am looking for. On Fri, Apr 22, 2011 at 12:01 AM, Zsolt Vasvari wrote: > > http://android-developers.blogspot.com/2010/07/how-to-have-your-cupcake-and-eat-it-too.html > > On Apr 22, 2:39 pm, "yves...@gmail.com" wrote: > > I have an app which uses mediametadataretr

[android-developers] Re: How to export the project as a JAR file.

2011-04-22 Thread Rohit
I already use a prefix for the resource, like com.example.R.raw.somefile to access the resource that I really want, but at runtime it looks like it is pulling some other file instead of the one that I want. I will try reflection.. Rohit On Apr 21, 4:46 pm, Mark Murphy wrote: > Add a prefix. A

[android-developers] Re: NPE in java.util.Calendar

2011-04-22 Thread Jake Colman
Thanks Mark and Andrew. The Date variable should never, ever be NULL in the first place so that didn't occur to me. I assumed I was using the API somehow incorrectly. Thanks for the help. > "ae" == andrew esh writes: ae> Test "Date SunsetTime = c.getSunset(); " to see if it is returni

Re: [android-developers] Removing .jar file from project.

2011-04-22 Thread TreKing
On Fri, Apr 22, 2011 at 11:56 AM, Tobiah wrote: > Thanks. I am new enough to Eclipse to not know this, > but it did not change anything. In the Problems windows I still have: > > Error generating final archive: > Failed to add /home/toby/android/exposmart/lib/biggu_scanner-1.1.0.jar > First hi

  1   2   >