[android-developers] Re: Missing ACTION_UP

2010-11-05 Thread viktor
Did you add clickable="true" to your View? On 4 Лис, 23:17, Bret Foreman wrote: > These views are inside an ExpandableListView, which is known to have a > number of bugs around text selection. This is just another in a list > of issues with that widget. I need to pass the event up the stack > bec

[android-developers] Re: Hourglass

2010-11-01 Thread viktor
I think it is not possible, because all views is referenced to Activity context, if it is critical for you, you can do this with ActivityGroup. On 1 Лис, 08:08, ΠΑΣΧΑΛΗΣ ΠΛΙΑΧΑΣ wrote: > How can i display an hourglass while i try to load a new activity; > Thanks for help -- You received this me

[android-developers] Re: Memory leak using ListActivity in Android?

2010-10-15 Thread viktor
Hi Kebab, I propose you do not use this.getApplicationContext(), it will better if you use current Activity context, because application context live very long. It will destroyed when you uninstall your app. On 14 Жов, 18:58, Kebab wrote: > I have an application that uses a Service and some list

[android-developers] Re: fiel download, java.net.URL, streams

2010-10-15 Thread viktor
Did you allow INTERNET permission? I don't know why do you did this: http.connect(); if you already connected: url.openConnection(); Please, test your connection for available bytes, maybe your stream is empty, if looking on that: URL url = new URL("http:// www.google.at/"); On 14 Жов, 15:09, r

[android-developers] Re: Using BroadcastReceiver in JUnit tests

2010-10-15 Thread viktor
Any proposition how to test async calls? On 14 Жов, 15:23, viktor wrote: > Hi everyone, > > Is it possible to receive notification from activities in a test case? > > I want to test async precesses with broadcast messages. If process > done I  send broadcast and catch it i

[android-developers] Re: OutOfMemoryError

2010-10-14 Thread viktor
How do you implement your image switching? Maybe problem in this implementation when unused images stay in memory. -- 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 u

[android-developers] Re: How can i set text in EditText

2010-10-14 Thread viktor
You can use Error notification, EditText.setError("..."). I guess it works with EditText. -- 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 grou

[android-developers] Using BroadcastReceiver in JUnit tests

2010-10-14 Thread viktor
Hi everyone, Is it possible to receive notification from activities in a test case? I want to test async precesses with broadcast messages. If process done I send broadcast and catch it in a test case, but anything doesn't happen. I declared receiver in manifest. This is my example: MainApp I

[android-developers] Re: WebView content fit display screen!!!

2010-10-05 Thread viktor
Any ideas? On 5 Жов, 12:51, viktor wrote: > Hi, > > I tried > WebView.getSettings().setLayoutAlgorithm(LayoutAlgorithm.SINGLE_COLUMN); > but view crashed in 1.6 OS. > > I calculate scale(webview.capturePicture()) but I cannot set it after > page loaded. > >

[android-developers] WebView content fit display screen!!!

2010-10-05 Thread viktor
Hi, I tried WebView.getSettings().setLayoutAlgorithm(LayoutAlgorithm.SINGLE_COLUMN); but view crashed in 1.6 OS. I calculate scale(webview.capturePicture()) but I cannot set it after page loaded. Is it any working solution for fitting webview content to display (1.6 OS)? -- You received this m

[android-developers] Re: PDF Libraries for android

2010-09-30 Thread viktor
0 Вер, 18:21, DanH wrote: > Certainly you can install a 3rd-party viewer as a separate app.  I > don't know why you wouldn't be able to install something as a part of > another app. > > On Sep 30, 9:44 am, viktor wrote: > > > > > Hi, > > > Is it

[android-developers] Re: how to save the state of checked item in ListView having Checkbox

2010-09-30 Thread viktor
Do you use adapter with domain objects? You can set the state(CheckBox) what you want into object. While you make your views in a adapter set Tag for every checkboxes with the item position. Add listener for checkboxes, when checkbox is checked or unchecked set this state to the odject. On 30

[android-developers] PDF Libraries for android

2010-09-30 Thread viktor
Hi, Is it possible to use third-party libraries for display pdf? I mean to use custom pdf view, in which I can pass pdf url and view it in new Activity. I want include libs into project and use their as resources. It will be great to do that. -- You received this message because you are subsc

[android-developers] Re: Display pdf file using webview

2010-09-29 Thread viktor
Yes, the same problem with PDF, for displaying is need additional soft, in iPhone it is more flexible. I don't understand why powerful Google doesn't implement it yet!!! On 17 Вер, 09:48, Kumar Bibek wrote: > Does desktop browsers support displaying PDFs without additional > plugins??? No. So, y

[android-developers] Re: GeoCoding fails after SDK upgrade to 8

2010-09-25 Thread viktor
For me only on an emulator api8, but on the device(Nexus one Android 2.2) works! On 25 Вер, 00:57, Bret Foreman wrote: > Oh, and both the phone and emulator are Android 2.2. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this

[android-developers] Re: ListView with rows that contain a button

2010-09-24 Thread viktor
Hi John, it is possible, in my example, I use ListView and all list items contain "button" (LinearLayout with selector), it works fine, I can push on item or on "button". And I set click listener for all buttons. I hope my information will be helpful. -- You received this message because you are

[android-developers] Re: How to get the height & width of emulator in android

2010-09-16 Thread viktor
try using dip or dp insted px. many devices have different density, height will be in emulator and device >list_height = list_height*65/100; list_height *= getResources().getDisplayMetrics().density; //you always have dinamic height on different devices -- You received this message because you

[android-developers] Re: Child activity lifetime in background

2010-09-15 Thread viktor
> If you haven't used an app this long, it's reasonable to expect it to be > killed and started from scratch next time you open it. Why is this "a > problem"? My app based on maps and blogs, many of users said that isn't convenient when they hide an app, and restating it to startup activity. They

[android-developers] Child activity lifetime in background

2010-09-14 Thread viktor
Hi, I have next problem, I have got parent activity and few sub- activities, if app goes to the background by pressed HOME button for long time, all children will be killed, and my app restart from parent activity. For example: A1 - parent, A2,A3,A4 - sub-activities. A1-->A2-- >A3(top), from A3 I

[android-developers] Re: Gallery popup menu

2010-09-09 Thread viktor
Thanks TreKing, I did this menu, it is really looks nice. On 8 Вер, 18:33, TreKing wrote: > On Wed, Sep 8, 2010 at 4:15 AM, viktor wrote: > > Any ideas how to do that menu > > Did you even look at th

[android-developers] Re: How to display route on Google map in Android

2010-09-08 Thread viktor
Geocoder geoCoder = new Geocoder(context); List addressList = geoCoder.getFromLocationName(address, 1); where address contain street or city, or zip For displaying rout you can use standard Android Map, only call it with specific Intent -- You received this message because you are subscribed

[android-developers] Re: How to display route on Google map in Android

2010-09-08 Thread viktor
Use geonames. On 8 Вер, 16:26, "cool.manish" wrote: > One more query is, Is there API to find out Lat Long for a zipcode or > city name supported in android. > > On Sep 8, 6:19 pm, "cool.manish" wrote: > > > > > Hi All, > > > How to display route on Google map in Android in between two lat long

[android-developers] Re: Killing all the activities that was started by my application.

2010-09-08 Thread viktor
Yahel is right, it is very dangerous. But you can try doing it with broadcast, and listen it in activities which you want to close. If you did, look at device CPU status. Maybe your devise is down!!! Or another way is saving your own activity stack, and consequentially finish. -- You received

[android-developers] Fast destroy multiple WebView's

2010-09-08 Thread viktor
Hi, My problem: I have many WebView's these display images. Each WebView is item in Gallery view. 10-15 images are loading simultaneously. Internet is very low, for loading all visible items is need 5-10 sec. If close Activity and restart it few times, device CPU is hangs long time. I try WebV

[android-developers] Re: Gallery popup menu

2010-09-08 Thread viktor
I captured phone screen, look at left, you can see what I mean. "Share" menu pressed and sub menu is appear. http://xmages.net/storage/10/1/0/9/8/upload/c509163f.png Nexus One Android 2.2, Standard Gallery application. Any ideas how to do that menu -- You received this message because you are

[android-developers] Re: Gallery popup menu

2010-09-07 Thread viktor
, 14:41, Mark Murphy wrote: > On Tue, Sep 7, 2010 at 7:37 AM, viktor wrote: > > In common Android Gallery you can see nice popup menu, Gallery--- > >>menu(More) or menu (Share). > > > Enyone know how to implement such kind of menu? > > I assume you are referring to th

[android-developers] Gallery popup menu

2010-09-07 Thread viktor
Hi, In common Android Gallery you can see nice popup menu, Gallery--- >menu(More) or menu (Share). Enyone know how to implement such kind of menu? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to androi

[android-developers] Re: PhotoViewer

2010-09-07 Thread viktor
Where are you want to put GridView, you want add images to grid or display grid in Activity? Look here: http://developer.android.com/resources/tutorials/views/hello-gridview.html On 7 Вер, 09:52, Dhrumil Shah wrote: > I am new in Android. > Can you help me how to put GridView ? > > ~Dhrumil > >

[android-developers] Re: java.lang.NullPointerException when trying to edit strings.xml

2010-09-07 Thread viktor
try using eclipse 3.5 it is more stable and faster than 3.6, some times 3.6 is freezes for 3-6 sec. -- 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

[android-developers] Re: Activity inside a view

2010-09-04 Thread viktor
You can use one activity and few views, and manage only their visibility, except if you have to use different view containers (MapView, ListView, ...). On 3 Вер, 23:04, Kumar Bibek wrote: > Yeah, you can use the LocalActivityManager, but for his situation, I > guess the best way would be to fol

[android-developers] Re: Calling Tomcat server API's from Android app

2010-09-04 Thread viktor
What about Spring MVC, you can create your own servlet and from that call what you need throw http. This is very flexible issue and you dont need parse Beans on your mobile, -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this g

[android-developers] Re: Android bitmap allocation weirdness

2010-08-27 Thread Viktor
sometimes that's necessary for some of the applications I'm writing. BR Viktor On Aug 27, 4:19 pm, Tom Gibara wrote: > Viktor, This question comes up in various guises. I think your problem is > explained by some old posts I made on this thread. > > http://groups.goo

[android-developers] Re: Android bitmap allocation weirdness

2010-08-27 Thread Viktor
> > > > The first array is 20 MB.  The second is also 20 MB.  What's the > > problem? > > > On Aug 24, 4:28 pm, Viktor wrote: > > > > I'm having some trouble understanding why this code > > > > public class BitmapAllocTest ex

[android-developers] Android bitmap allocation weirdness

2010-08-24 Thread Viktor
I'm having some trouble understanding why this code public class BitmapAllocTest extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); byte[] b = new byte[20 *

[android-developers] Re: Application state when Home pressed

2010-08-15 Thread viktor
Thanks every one. I thing the post should be closed. I got enough information from "TreKing". Let's wait Android 3.0, I`m very happy that OS 2.2 run java tasks with JIT compiler. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To pos

[android-developers] Re: Application state when Home pressed

2010-08-14 Thread viktor
Application doest crashes (http requests always getting data, it is not good), I don't want always call it when activity is Resuming On 15 Сер, 00:07, Frank Weiss wrote: > My current understanding of the problem is, there's an "update method" > that needs to be called when any of the activities c

[android-developers] Re: Application state when Home pressed

2010-08-14 Thread viktor
---Activity2--Activity3. I think that Activity1 never will be killed. If we have low memory, another application process will be killed but not active application. On 14 Сер, 23:47, viktor wrote: > At the First that is rule from customers. (It is need improve why this > issue doesn't imp

[android-developers] Re: Application state when Home pressed

2010-08-14 Thread viktor
n new activity or previous appear, I thing Application will be crashed. Is it possible to do that by getting current device activity state? (fore example PropertyActivity(cashed) ; MapActivity(cashed) ; MyActivity(active)) On 14 Сер, 23:23, TreKing wrote: > On Sat, Aug 14, 2010 at 3:04 PM, vikto

[android-developers] Re: Application state when Home pressed

2010-08-14 Thread viktor
OK, my third try to tell you what is my issue mean. For example: Activity0 -- it is a super class, Activity1, ...2, ... 3, ...4 my children classes from Activity0. Activity1 extends Activity0 Activity1, ...2, ...3, ...4 can start another examples of Activity0, My activity stack can be like thi

[android-developers] Re: Application state when Home pressed

2010-08-13 Thread viktor
On 12 Сер, 20:26, Frank Weiss wrote: > There are two levels of foreground/background, onPause/onResume and > onStart/onStop. Please read the Activity documentation. Then explain > what you issue is. OK, I write more clear my issue. I have parent activity, other activities extends that. I want

[android-developers] Re: Application state when Home pressed

2010-08-12 Thread viktor
Anyone can help me? On 11 Сер, 19:34, viktor wrote: > Hi, > > Is android have application state, like background or front? > > I have a situation when need to update same data if app is coming to > front. > > onRestart or onStart is not good idea, because this method

[android-developers] Re: Autocomplete with suggestions in Custom Dialog

2010-08-11 Thread viktor
This code: ArrayAdapter adapter = new ArrayAdapter(this, R.layout.list_item, COUNTRIES); Be carefully, if you use autocomplete in Dialog, you should passing Context as 1st arg of constructor, ArrayAdapter(Context, R.layout.list_item, COUNTRIES)() Please read Java Code Style, How did you compile y

[android-developers] Re: Making HorizontalScrollView scroll programatically

2010-08-11 Thread viktor
Why do you not use Gallery, it has all your requirements. On 11 Сер, 14:47, Amit wrote: > Hi All, > > I have a horizontal scroll view containing multiple Bitmaps of > variable length. My question is how can i make a particular bitmap > selected which in not visible on the current screen and let t

[android-developers] Application state when Home pressed

2010-08-11 Thread viktor
Hi, Is android have application state, like background or front? I have a situation when need to update same data if app is coming to front. onRestart or onStart is not good idea, because this method fire when we come from another activity. -- You received this message because you are subscrib

[android-developers] Re: ListView/Scrollview inside Gallery ?

2010-08-02 Thread viktor
Gallery intercept scroll listener for ListView, you can register OnTouchListener for ListView and compare horizontal values after that scoll gallery by x. On 2 Сер, 07:35, CMF wrote: > Anyone knows? > > On Jul 30, 12:09 pm, CMF wrote: > > > > > Hi, > > > just a question about a listview/scrollvi

[android-developers] Emulator, forcing portrait mode

2010-07-29 Thread Viktor Linder
be rotated 90 degrees. Is this a bug in the emulator or am I wrong in my interpretation of android:screenOrientation? Best regards, Viktor Linder -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send emai

[android-developers] MapsActivity has leaked window

2010-07-27 Thread viktor
Hi, I want to show route with build-in(OS) MapActivity, I put package and class name to Intent, and after show Activity. When I pressed back button when map is starting (Nexus One), I have exception: 07-26 11:00:46.043: ERROR/WindowManager(637): Activity com.google.android.maps.MapsActivity has

[android-developers] Intermediaries for publishing on Android Market

2010-07-26 Thread Viktor Linder
Hi! I live in Sweden, and so cannot publish paid apps on the Android Market. Is there any company in a "publishing enabled" country which you can publish apps through (for ex. a percentage fee)? All answers appreciated! Best regards, Viktor Linder -- You received this message becau

[android-developers] Re: Android Library Project

2010-07-08 Thread Viktor Bresan
well. Unfortunately, I have no time to explore this issue further. Kind regards, Viktor. -- 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 t

[android-developers] Posting events to View

2010-07-07 Thread Viktor Linder
place and handle events. Yet, there is a function post() in View where I can post a Runnable object that will execute in the UI thread without involvement of Handler. Can I not call this function from threads other than the UI thread?? I'm confused! Best regards, Viktor Linder -- You rec

[android-developers] Re: READ_PHONE_STATE and WRITE_EXTERNAL_STORAGE automatically required?

2010-06-22 Thread Viktor Linder
;android-4". Is there a difference in behaviour between downloading from the Market and the browser? Best regards, Viktor Linder On 22 Juni, 05:49, Dianne Hackborn wrote: > As usual, when new features are added or changes made, targeting the > platform version (or better) where that

[android-developers] READ_PHONE_STATE and WRITE_EXTERNAL_STORAGE automatically required?

2010-06-21 Thread Viktor Linder
#x27;t write to the sd card nor use the phone function). Anyone in this group have experience dealing with this issue? All answers appreciated! Best regards, Viktor Linder -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to

[android-developers] Re: How to get selected items in a ListView (multi selection check boxes)? - URGENT PLZ

2010-05-16 Thread Viktor Bresan
with SparseBooleanArray.keyAt(int index) Viktor. On May 11, 12:34 am, dillipk wrote: > Hello, >  How do I get the selected items in a ListView which contains a multi > selelected check boxes.? The following code doesn't work correctly... > getContacts() is being called

[android-developers] Data readable by two apps

2010-05-07 Thread Viktor Linder
would need to load a savegame created by the free version. All answers appreciated! Best regards, Viktor Linder -- 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@googlegro

[android-developers] Re: Android OpenGL Game - App Architecture and Threading Logic

2010-04-10 Thread Viktor Linder
during its loop) this would be achieved. Best regards, Viktor Linder On 9 Apr, 18:03, Robert Green wrote: > It's pretty easy to do this: > > I use a World to write to and read from for the two "sides."  Makes > networking nice too.  My World has a simple lock.  Only one

[android-developers] ListView with radio buttons defined in XML?

2010-03-21 Thread Viktor Bresan
. Is this possible using XML? I know that I could add ButtonGroup and RadioButtons myself but I would prefer to keep it as simple as possible. Many thanks, Viktor. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to t

[android-developers] Re: Crash in glDrawElements() using VBOs just after glBufferData()

2010-02-26 Thread Viktor Linder
fer create_floatbuffer(int size) { ByteBuffer bb = ByteBuffer.allocateDirect(size*4); bb.order(ByteOrder.nativeOrder()); FloatBuffer fb = bb.asFloatBuffer(); return fb; } ... } On 26 Feb, 00:49, Robert Green wrote: > Viktor,

[android-developers] Re: Crash in glDrawElements() using VBOs just after glBufferData()

2010-02-25 Thread Viktor Linder
k without destroying any memory. So it is not a gc issue. Also, while the buffer might get filled with "junk" it will still be valid floats of some sort, since the array is only written to from java. Best regards, Viktor Linder On 25 Feb, 20:08, Robert Green wrote: > Actually, let me

[android-developers] Re: glDeleteBuffers crashes

2010-02-23 Thread Viktor Linder
hread/thread/87827933dc7346c6 Best regards, Viktor Linder On 22 Feb, 22:20, Clankrieger wrote: > Hi, > > I tried to use VBO on 1.6 Android SDK and get a crash whenever I try > to give the VBO id free usingglDeleteBuffers. The issue has already > been filed here: > > http:/

[android-developers] Re: Crash in glDrawElements() using VBOs just after glBufferData()

2010-02-16 Thread Viktor Linder
d? If its possible to use a single buffer that would reduce the needed calls to glBindBuffer() and allowed interleaved data which would improve cache locality. Curious; did using GL_FIXED give a large performance gain? Thanks for your help. /Viktor On 16 Feb, 21:25, Robert Green wrote: > Yo

[android-developers] Crash in glDrawElements() using VBOs just after glBufferData()

2010-02-16 Thread Viktor Linder
ible example, I thought I would ask this group if anyone else have experienced the same trouble when using a VBO right after call to glBufferData()? All answers appreciated! /Viktor PS. This is the crash dump: 02-16 20:23:00.979: INFO/DEBUG(14143): *** *** *** *** *** *** *** *** *** *** *** *** *

[android-developers] Creating 5:6:5 PNGs?

2010-01-26 Thread Viktor Linder
Does anyone know of a tool (preferably free/open source) for converting 24-bit PNGs to 16-bit? I have searched around a bit and it seems like PNG perhaps does not support 16-bit modes. If so, how do you package your textures to minimize load-time processing? All answers appreciated! -- You rece

[android-developers] Shape with open border

2009-10-19 Thread Viktor Bresan
/android"; android:layout_width="fill_parent" android:layout_height="fill_parent" > Many thanks, Viktor. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups &q

[android-developers] Re: Function inlining

2009-10-07 Thread Viktor Linder
Ok. On a related note, has anyone used a preprocessor of some sort and managed to integrate it with Eclipse? Best regards, Viktor Linder On 7 Okt, 18:32, Romain Guy wrote: > There's no inlining at the moment. > > > > On Wed, Oct 7, 2009 at 6:31 AM, Viktor Linder wr

[android-developers] Function inlining

2009-10-07 Thread Viktor Linder
se are left to the VM? Does the Dalvik VM do inlining of functions at all, or did it just decide to not inline this specific instance? Curious to hear a response from someone more familiar with the Dalvik VM than me. Best regards, Viktor Linder --~--~-~--~~~---~--~---

[android-developers] Re: Publishing my app

2009-02-15 Thread Viktor Behlau
2009/2/14 Nox > Hello, > I`ve developed an application,but I don`t know how to upload it into > the Android Market!!! > If I click to upload there always appers this error message: > > > The apk is not properly signed. > > But how can I sign it??? > > With kind regards > > Nox --~--~-~--

[android-developers] PACKAGE_ADDED

2008-08-29 Thread viktor
Let's continue this discussion: http://groups.google.com/group/android-developers/browse_thread/thread/697e7e7cc6dd3d1f/fdcf520cce83cf0b The PACKAGE_ADDED broadcast is not received by the installed (added) package anymore (SDK 0.9). This was the only way to let an application to execute a piece

[android-developers] DateUtils - Alternatives?

2008-08-25 Thread viktor
The class android.util.DateUtils is gone. What can we use instead? The method getRelativeTimeSpanString was useful to format relative time nicely, like the call log does. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Grou

[android-developers] Re: New SDK available - 0.9 SDK beta

2008-08-19 Thread viktor
TECTED]> wrote: > viktor wrote: > > Which of the following is correct? > > 1. The phone does not have Bluetooth hardware. > > 2. The phone has disabled Bluetooth hardware that can be enabled with > > a future SDK update. > > 3. The phone has Bluetooth hardware and sup

[android-developers] Re: New SDK available - 0.9 SDK beta

2008-08-19 Thread viktor
Dear Google representatives, Since Bluetooth seems to be hottest topic for the SDK 0.9, please clarify the level of Bluetooth support in the first Android phone that is coming this fall. Which of the following is correct? 1. The phone does not have Bluetooth hardware. 2. The phone has disabled B

<    1   2