[android-developers] Re: App talking to native ARM binary via sockets

2012-06-07 Thread Mika
This might help you http://stackoverflow.com/questions/7516018/android-localserversocket -Mika On Jun 7, 4:45 am, galapogos gois...@gmail.com wrote: Thanks. Seems like 127.0.0.1 works. I also tried 0.0.0.0 and that worked too. I would also like to use unix domain sockets, since I really

[android-developers] Performance of different IPC methods

2012-05-15 Thread Mika
Hi all, In my app the process number 1 generates around 1KB of data every couple of seconds and passes this to process number 2. To my understanding there are three ways to pass data between processes: publishing IPC interface using Binder, using Messeger or using Broadcasts. I would like to get

[android-developers] Re: About sensors

2012-05-03 Thread Mika
/ -Mika -- 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...@googlegroups.com For more options

[android-developers] Re: admin de memoria en android

2012-05-03 Thread Mika
Check this answers from this stackoverflow question. It might give you some insights http://stackoverflow.com/questions/2298208/how-to-discover-memory-usage-of-my-application-in-android -Mika On May 3, 9:20 am, milady nmor...@hotmail.com wrote: quisiera saber como funciona la administracion de

[android-developers] IPC peformace suggestions

2012-01-20 Thread Mika
Hi all, In my app the process number 1 generates around 1KB of data every couple of seconds and passes this to process number 2. To my understanding there are three ways to pass data between processes: publishing IPC interface using Binder, using Messeger or using Broadcasts. I would like to get

[android-developers] Re: GUI problems! Very Crazy!

2011-12-13 Thread Mika
utilizamos dp e sp. varia de acordo com o componente On 13 dez, 07:27, Ali Chousein ali.chous...@gmail.com wrote: Maybe my question sounds very basic and simple, but did you define the size of your components in dip? - Ali Chousein

[android-developers] Re: GUI problems! Very Crazy!

2011-12-13 Thread Mika
use sd and sp. varies according to the component On 13 dez, 07:27, Ali Chousein ali.chous...@gmail.com wrote: Maybe my question sounds very basic and simple, but did you define the size of your components in dip? - Ali Chousein

[android-developers] GUI problems! Very Crazy!

2011-12-12 Thread Mika
folks, I and my team are developing an application and we are finding the following problem: during testing the application on the smartphone, the visual components such as buttons, text boxes, dialog boxes, are rising to a higher resolution than the one defined for it, making it impossible to

[android-developers] Re: HttpsURLConnection's getResponseCode() returns -1

2011-05-11 Thread Mika
this line System.setProperty(http.keepAlive, false); to your code. Maybe it'll help. -Mika On May 11, 3:36 am, John Gaby jg...@gabysoft.com wrote: I am trying to use HttpsURLConnection to connect to a secure site, and it is failing and getResponseCode() is returning -1.  The following is the code

[android-developers] Re: Why can't I set the device Microphone mute

2011-05-11 Thread Mika
Maybe the other application just puts the microphone on again? -Mika On May 11, 10:47 am, Ian Kao@TW ian@gmail.com wrote: Now I am trying to build a apk which can control the device's hardware. When I try to mute microphone with the AudioManager.muteMicrophone

[android-developers] Re: Can we run adb commands through android applications?

2011-05-06 Thread Mika
Process process = Runtime.getRuntime().exec(logcat); InputStream is = process.getInputStream(); On May 6, 8:50 am, manoj manojkumar.m...@gmail.com wrote: Hi All, can we write an android application which runs adb commands like adb logcat? I mean, in an activity, I want to execute the adb

[android-developers] In-App and contents server

2011-05-02 Thread Mika Nako
Hi everyone, I am examining In-App and the contents server. I want to know payment information on In-App from the contents server. How should I do? I think whether something can be done by using the order number. Thanks for reading and your possible help, Mika -- You received this message

[android-developers] In-App and contents server

2011-05-02 Thread Mika Nako
Hi everyone, I am examining In-App and the contents server. I want to know payment information on In-App from the contents server. How should I do? I think whether something can be done by using the order number. Thanks for reading and your possible help, Mika -- You received this message

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

2011-03-03 Thread Mika
. But if GiffGaffAPN can do it, maybe there's some hack that I'm not aware of. :) -Mika -- 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

[android-developers] Two activities in one window

2011-03-02 Thread Mika
doesn't have to switch between activities?? Or any other ideas how the user could modify the secure settings easily? -Mika -- 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

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

2011-03-02 Thread Mika
. that they should input. So what I would like to do is to have one view open where the user can see the new values and in the same window have also the system settings activity where the user should input the values. -Mika On Mar 2, 1:53 pm, Marcin Orlowski webnet.andr...@gmail.com wrote: switch between

[android-developers] Re: How does PackageManager detect what architecture APK targets?

2010-08-12 Thread Mika
Ok so I managed to get it to install. What does CPU_ABI define when compiling the android source? Well I suppose the correct question is, what kind of implications does it have when the CPU_ABI used to say: CPU_ABI := armeabi and I changed it to: CPU_ABI := armv7-a And it started working

[android-developers] How does PackageManager detect what architecture APK targets?

2010-08-11 Thread Mika
Hello everyone, I'm currently trying to specifically target ARMv7 custom hardware and I'm facing issues when trying to install the APK. When I try doing adb install app.apk Logcat informs me that : W/PackageManager( 1062): Native ABI mismatch from package file And does not install the APK.

[android-developers] Re: How to access shared preference outside of Activity

2010-07-09 Thread Mika
getSharedPreferences is defined in Context. Service is a Context also. On Jul 9, 9:08 am, Jeruliu jeru@gmail.com wrote: Dear all, I need to access the shared preference in a background service instead of activity on phone boot up. But getSharedPreferences function is define in the

[android-developers] Re: about library projects

2010-07-09 Thread Mika
Second one might be a bit more involved, but hopefully there is an easy fix. I have my projects into a subversion repository, but the app project builder (Android pre-compiler) seems to copy all the source from the library project, including the .svn folders, to the app/bin project. As a

[android-developers] AlarmManager problems in Milestone

2010-06-11 Thread Mika
(); } catch (IOException e) { Log.e(AppService, Exception appending to log file, e); } } } -Mika -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group

[android-developers] HashMap, ArrayList and fastest way to iterate Collections on Android (+other ways to make it run like a wild horse)

2010-01-17 Thread Mika
Simple question, what is the fastest way to iterate through collections on Android? I generally use collection.iterator(); and the iterator.next() to iterate through the whole collection. Is it any faster to drop that and iterate with old (and I use the term old loosely...) : for( int i=0;

[android-developers] Re: HashMap, ArrayList and fastest way to iterate Collections on Android (+other ways to make it run like a wild horse)

2010-01-17 Thread Mika
Thanks for the answers. I'll have to give those two a try. :) -- 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] Trying to get rid of my last few Long calculations in my game and completely turn it into FP format. System.currentTimeMillis() giving me a headache.

2009-12-29 Thread Mika
Like the topic of the thread says. In my game I would like to turn all the calculations into FP format. I can eliminate pretty much everything else but I still need to do the the following calculation in long format. Code: long t = this.lastUpdateTime - System.currentTimeMillis(); The value I

[android-developers] Re: Trying to get rid of my last few Long calculations in my game and completely turn it into FP format. System.currentTimeMillis() giving me a headache.

2009-12-29 Thread Mika
OH sorry guys, my bad, I wasn't specific enough. I'm TRYING To shift myself into fixed point(FP) world and trying to get rid of the long calculations :) So.. does the topic make more sense now? Sorry for being such a numnum and not realising that FP = fixed point AND floating point. D'oh. But

[android-developers] Re: Any examples of displaying an information box when clicked on a map marker ?

2009-11-16 Thread Mika
(View.VISIBLE); view.invalidate(); } That's the basic idea. You might have to force the layout before drawing or set some limits to the view width and height, because getWidth() and getHeight() return 0 before the first layout. But I think you should get the basic idea how to do this... -Mika On Nov 16

[android-developers] Re: OpenGL ES works fine on Emulator but on HTC Hero 1.5 it does not render vertices

2009-11-15 Thread Mika
wondering if your problem is there?  Consider trying GLSurfaceView and let me know the results.  Otherwise, you may want to debug your init to make sure that it's correctly initializing a GL context and surface on the device. On Nov 9, 6:35 am, Mika mts...@googlemail.com wrote: Hi Robert

[android-developers] Re: OpenGL ES works fine on Emulator but on HTC Hero 1.5 it does not render vertices

2009-11-15 Thread Mika
, 1:27 pm, Mika mts...@googlemail.com wrote: With the GLSurfaceView, where am I supposed to implement onTouchListener? In myOpenGLapp, I use an onTouchEvent listener on the containing activity instead. Works for me. String -- You received this message because you are subscribed

[android-developers] Re: OpenGL ES works fine on Emulator but on HTC Hero 1.5 it does not render vertices

2009-11-09 Thread Mika
vs on the emulator at one point as well.  Could you post more of your GL initialization code?  My problem was something dumb like I was calling orthox using actual screen dimensions when I needed to either use fixed point there or use orthof. On Nov 8, 3:34 pm, Mika mts...@googlemail.com wrote

[android-developers] OpenGL ES works fine on Emulator but on HTC Hero 1.5 it does not render vertices

2009-11-08 Thread Mika
Hello everyone. Running into REALLY interesting problems with OpenGL ES. Basically when I start my program in 1.5 or 1.6 emulator, it works just fine but on HTC Hero 1.5 it does not. The problem is that the vertices are not being rendered but the gl.glClear() command is working just fine. I

[android-developers] Re: The mysterious disappearing progress bar...

2009-11-04 Thread Mika
I had a similar problem and it was just because the default progressbar had changed in Donut and it was all white. So I had a white progressbar in a white background. Not sure if that's your problem though. -Mika On Nov 4, 5:02 pm, dadical keyes...@gmail.com wrote: Anyone have a clue?  I'm

[android-developers] Re: Memory leak or feature

2009-10-22 Thread Mika
to be killed. Okey, this I didn't know. I though that when the OS decides to kill processes in order to reclaim memory it does it so that the larger processes are killed first. My mistake, should read the docs more carefully. (4) My meminfo results were slightly different than what Mika reported

[android-developers] Re: Memory leak or feature

2009-10-21 Thread Mika
wrong. -Mika On Oct 21, 1:10 am, Dianne Hackborn hack...@android.com wrote: I am pretty sure the standard music app doesn't leak, so I wonder if you are somehow measuring things incorrectly. On Fri, Oct 16, 2009 at 2:11 AM, Mika mika.ristim...@tkk.fi wrote: Hi Dianne, This is what I

[android-developers] Re: Memory leak or feature

2009-10-20 Thread Mika
So has anybody been able to test the sample app and found the leak. To me this seems a quite serious bug or I might have misunderstood some fundamental Android concept. But I doubt that it is desired behavior to leave Activities (or at least not its views) in memory when they are not used. -Mika

[android-developers] Basic game structuring with two threads?

2009-10-20 Thread Mika
Hello people. I've gone through several Android examples, tutorials and generally just played around with the system. Now I'm in a need of help concerning a making of a game for Android, more specifically structuring the design. I'm going to use OpenGL to render everything. Generally when I have

[android-developers] Re: Memory leak or feature

2009-10-16 Thread Mika
processes are GCed from DDMS. I also tested with 1.1 SDK and Emulator and there everything works as presumed and no activities stay in memory after they are closed. -Mika On Oct 15, 7:56 pm, Dianne Hackborn hack...@android.com wrote: If you press back and let the system finish the activity, all

[android-developers] Memory leak or feature

2009-10-15 Thread Mika
numPagers:0 inactivePageKB:0 activePageKB:0 And I remembered to force the garbage collector to system_process and to the app process. Any ideas what is happening here?? -Mika --~--~-~--~~~---~--~~ You received this message because

[android-developers] Re: How to caculator the time?

2009-10-12 Thread Mika Halttunen
the SystemClock-class, SystemClock.uptimeMillis() in particular. -- Mika --~--~-~--~~~---~--~~ 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

[android-developers] Re: outgoing sms

2009-10-01 Thread Mika
Yeah sure.. but I understood that the question was about notifications when the sms is not sent form within your own app. For example when the user uses the default messaging app to send an sms. -Mika On Oct 1, 9:13 am, kapnk...@gmail.com wrote:  private void sendSMS(Stringhttp

[android-developers] Re: MapView Overlays

2009-10-01 Thread Mika
What you could try is to use just one instance of your Overlay subclass that includes all the 60 icons that you want to show on the map. -Mika On Oct 1, 4:08 pm, Ne0 liamjamesalf...@googlemail.com wrote: Not had any response, but my solution is to add a bit of intelligence to my activity

[android-developers] Re: java.lang.OutOfMemoryError after orientation changed

2009-10-01 Thread Mika
From the stack trace it seems that your trying to allocate 160 MB of memory. And for one app the max heap size in Android is 16 Mb (if i remember correctly). That's why the outofmemoryerror. Don't know why are you allocating that much memory though?? -Mika On Oct 1, 3:43 pm, Stefan ebay-dah

[android-developers] Re: outgoing sms

2009-09-30 Thread Mika
Could you be a bit more specific?? I know you can register a broadcast receiver for incoming sms messages but to my knowledge there isn't a broadcast for outgoing sms messages. -Mika On Sep 30, 8:33 am, kapnk...@gmail.com wrote: yes you can add brodcast receiver to listen n show sms sent

[android-developers] Re: System crash problems

2009-08-27 Thread Mika
Hi Dianne, thanks for the answer. Although the problem happens several times a day, I haven't still been able to find the reason for it nor the code to reproduce it. I'll file a bug report if I do find a way to constantly reproduce the bug. -Mika On Aug 26, 7:53 pm, Dianne Hackborn hack

[android-developers] System crash problems

2009-08-26 Thread Mika
be the reason for the crash?? -Mika --~--~-~--~~~---~--~~ 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

[android-developers] System crash problems

2009-08-21 Thread Mika
be the reason for the crash?? -Mika --~--~-~--~~~---~--~~ 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

[android-developers] Re: getView from CustomizedAdapter called several times

2009-07-15 Thread Mika
Hi, I'm having the same problem. Did you find any solutions?? -Mika On Jun 24, 7:39 pm, jabu jabu.j...@gmail.com wrote: Hi Everyone, I am implementing my ownadapterthat inherits from BaseAdapter (this is something very classic). Then when I start the activity that owns the listView binded

[android-developers] Re: Is possible get notified when the user send an SMS or make a call

2009-06-11 Thread Mika
By browsing this mailing list and android source code. You can also use PackageManager to get the available content providers. If there's some other ways I'd like to know also. -Mika On Jun 10, 7:31 pm, Monkiki monk...@gmail.com wrote: Great, I will try it. Where can I find more info about

[android-developers] Re: Is possible get notified when the user send an SMS or make a call

2009-06-10 Thread Mika
and idle. -Mika On Jun 10, 1:42 pm, Monkiki monk...@gmail.com wrote: I've been searching the application permissions and I see no way to make an app to enable getting notified when the user send an SMS or make a phone call. How can I accomplish this task? Thanks in advance

[android-developers] GMail content provider

2009-06-09 Thread Mika
in the BroadcastReceiver is never called. Gmail.java can be found e.g. here http://www.google.co.in/codesearch/p?hl=en#uX1GffpyOZk/core/java/android/provider/Gmail.javaq=gmail.java I searched the mailing list and found several similar questions but no answers. So any other ideas?? -Mika

[android-developers] How to know when map has zoomed?

2009-05-29 Thread Mika
Hi all, I was wondering is there any way of knowing when the zoom animation in map view has ended?? After each zoom I need to calculate how far my overlays are from each other, but I haven't figured out yet how to know when the map has been zoomed. Is there any way to do that?? -Mika

[android-developers] Re: HttpUrlConnection problem

2009-04-24 Thread Mika
that implements the onClickListener interface. But I have no idea why it is working now correctly. -Mika On Apr 23, 9:39 pm, Streets Of Boston flyingdutc...@gmail.com wrote: I had a similar issue and i gave up. Instead i used the DefaultHttpClient class together with HttpPut/ HttpGet/HttpResponse

[android-developers] HttpUrlConnection problem

2009-04-23 Thread Mika
/bc5454ffc71f77dc/837c09f4f1f750b2?lnk=gstq=getResponseCode#837c09f4f1f750b2 but no solution were found. -Mika --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email