[android-developers] Re: Programmatically disable app optmization for my app

2016-07-27 Thread cj
Hi Fiona, Did you receive any feedback regarding this situation? I'm working on an instant messaging app and have the same issues (delayed or dropped notifications). Regards, CJ On Friday, April 29, 2016 at 12:39:36 PM UTC+2, Fiona wrote: > > Hi, > I'm developing a comm

[android-developers] Unzip code not working any more

2016-02-10 Thread CJ
Hi, what is wrong with this code? It seems to be broken in the newer version of Android. --- public static final void unzip(File zip, File extractTo) throws IOException { ZipFile archive = new ZipFile(zip); Enumeration e = archive.entries(); while (e.hasMoreElements()

[android-developers] I need advice from the Android developers community regarding a web link I am using within my App

2012-09-19 Thread Chris CJ
Hey Guys I have pointed a part of my app at a publicly available webpage, however "the owner" of the web page has contacted me and asked me to cease pointing people to his web page. My question is.is this considered to be illegal? I believe it is commonly called 'web scraping', where you

[android-developers] Re: Get notification status from other apps

2012-09-03 Thread CJ
I see. Then is it possible to: 1. List out installed app that uses Notification? 2. List out app that are active running? -- 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.c

[android-developers] Get notification status from other apps

2012-08-30 Thread CJ
Hi, I just did some Googling but did not find any answer. In Android SDK, is there a possibility to detect what notification is active in the notification bar? Eg. My app is call "MyApp" and when a 3rd party "NotMyApp-A", "NotMyApp-B" fires 2 notification is there ways to detect them in my app?

Re: [android-developers] Re: Back button show old removed dialog

2012-08-08 Thread CJ
:) I read it was reported 3 years ago and still happens sometime. -- 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

Re: [android-developers] Re: Back button show old removed dialog

2012-08-07 Thread CJ
Hi Treking, Really nothing unusual. I just launch it normally pressing home button to load the already loaded app or click the app icon etc. I confirmed this behavior by adding a Toast message in onCreate() and it get called every time and of course if I press the back button, I can see it goin

Re: [android-developers] Re: Back button show old removed dialog

2012-08-07 Thread CJ
Yes, not normal at all and adding android:launchMode="singleTop" didn't help. I read about the prob/solution here: http://stackoverflow.com/questions/4341600/how-to-prevent-multiple-instances-of-an-activity-when-it-is-launched-with-differ I don't why this happen to this app and not my other a

Re: [android-developers] Re: Back button show old removed dialog

2012-08-07 Thread CJ
August 2012 00:32:37 UTC+8, TreKing wrote: > > On Tue, Aug 7, 2012 at 8:28 AM, CJ wrote: > >> As for why I can launch multiple instant of the same app I still have no >> answer > > > That's how Android works. If your app is started by different means (

Re: [android-developers] Re: Back button show old removed dialog

2012-08-07 Thread CJ
Ok, I solved the dialog issue by return selectionDialog; instead of break; > > As for why I can launch multiple instant of the same app I still have no answer but have to use the "!isTaskRoot()" fixes. -- You received this message because you are subscribed to the Google Groups "Android Develope

[android-developers] Re: Back button show old removed dialog

2012-08-07 Thread CJ
Another strange thing, why do I have extra AndroidManifest.xml in /bin -- 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] Re: Back button show old removed dialog

2012-08-07 Thread CJ
Another strange thing, why do I have extra AndroidManifest.xml in bin/res -- 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 ema

[android-developers] Re: Back button show old removed dialog

2012-08-07 Thread CJ
Remove dialog is usual stuff: MainActivity.this.removeDialog(SELECTION_DIALOG_ID); -- 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, se

[android-developers] Re: Back button show old removed dialog

2012-08-07 Thread CJ
"I am able to launch multiple instant of my app" - I mean.. -- 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-devel

Re: [android-developers] Back button show old removed dialog

2012-08-07 Thread CJ
Hi Treking, Absolutely. I am facing some weird issue. Firstly, I am able to launch instant of my app I put a Toast inside onCreate() and it get called if I launch the app twice. I don't know why this happen and I tried on emulator different version and real phone. After some gooling, someone m

[android-developers] Back button show old removed dialog

2012-08-07 Thread CJ
Hi, My app display a dialog and base on user input I remove the dialog and redisplay it to refresh some new values. This works ok but I realise if user press back button it will reopen the previously opened dialog with old value. How can I totally remove the dialog? Thanks. -- You received th

Re: [android-developers] Question on service and broadcastreceiver

2012-08-07 Thread CJ
Cool! On Tuesday, 7 August 2012 14:59:36 UTC+8, Bharath Smitha wrote: > > > > On Tue, Aug 7, 2012 at 12:26 PM, CJ wrote: > >> Hi, >> >> If an app has a background service and broadcastreceiver, when the app is >> uninstalled or upgraded will t

[android-developers] Question on service and broadcastreceiver

2012-08-06 Thread CJ
Hi, If an app has a background service and broadcastreceiver, when the app is uninstalled or upgraded will the service/broadcastreceiver be removed accordingly? If yes, then it is good. If not, do we need to manage them during app version upgrade? Thanks. -- You received this message because

Re: [android-developers] Is setting invalid APN the only way to disable mobile network connection?

2012-08-01 Thread CJ
Thanks everyone, I managed to do it without change APN setting and I have tested it from Android 1.5/1.6/2.1/2.2/2.3/4.0/4/1 and is all good. Cheers. On Wednesday, 1 August 2012 14:57:28 UTC+8, Dan wrote: > > > > On Tuesday, July 31, 2012 11:59:45 AM UTC-7, Kristopher Micinski wrote: >> >> This g

Re: [android-developers] Is setting invalid APN the only way to disable mobile network connection?

2012-07-31 Thread CJ
below 2.3.3, but do you really expect your app will really be > used for that long, then? > > kris > > On Tue, Jul 31, 2012 at 12:38 PM, CJ wrote: > > The permission needed is > android:name="android.permission.CHANGE_NETWORK_STATE"/> > > Android 2.3 an

Re: [android-developers] Is setting invalid APN the only way to disable mobile network connection?

2012-07-31 Thread CJ
ations on the device. One >>>> application >>>> shouldn't be able to interfere with another application's network >>>> connectivity without the user being involved. >>>> >>>> -- Nick >>>> >>>> >>>>

Re: [android-developers] Is setting invalid APN the only way to disable mobile network connection?

2012-07-31 Thread CJ
ata? > > > On Tue, Jul 31, 2012 at 8:03 AM, CJ wrote: > >> Hi, >> >> I have been googling for a while able the best or right way to >> disable/enable mobile network. >> >> I tried the following code which is all over Stackoverflow and i

[android-developers] Is setting invalid APN the only way to disable mobile network connection?

2012-07-31 Thread CJ
Hi, I have been googling for a while able the best or right way to disable/enable mobile network. I tried the following code which is all over Stackoverflow and is working fine for gingerbread and higher: private void setMobileDataEnabled(Context context, boolean enabled) throws Exception { fi

Re: [android-developers] LinearLayout button mistery

2012-07-18 Thread CJ
p) for the buttons, which appears to not > be sufficient on the second screen ("Can/cel"). > > The messed up vertical alignment might be a side effect of that. > > Consider using wrap_content or at least increasing the fixed widths. > > -- K > > 2012/7/18 CJ &g

[android-developers] LinearLayout button mistery

2012-07-18 Thread CJ
Hi, I have this layout I have been using across the code. The display is good on my phone, tablet, emulators but I have 1 user that show me an alignment problem. The strange thing was, the other dialog button has no alignment issues and the code are the same except text. How it look for everyone

[android-developers] Recording system calls

2012-05-20 Thread CJ
Hi, Could someone tell me what is the best way to record system calls in an android emulator? -- 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 thi

Re: [android-developers] How can I Destroy activity

2012-05-15 Thread Shah Faizal CJ
over ride on back pressed method. inside call the finish() method. On 5/15/12, Narendra Singh Rathore wrote: > Even, when you are giving case R.id.bBack, it simply means, you are > clicking back button. > > so you don't have to call setOnClickListener on the button further. > > NSR. > > -- > You

Re: [android-developers] Re: setting context menu for a button

2012-05-09 Thread Shah Faizal CJ
button.setonclicklistener(new onclicklister() { onclick() { openContextMenu(this); } }) On 5/9/12, Jason Teagle wrote: >>I tried as the same in the example defined here . but didn't get the >>menu displayed . >> >>did not work - i am not getting the conext menu at all after clicking >>button .

Re: [android-developers] how to get info from a clicked textView?

2012-05-08 Thread Shah Faizal CJ
set on click listener to the text that enough On 5/8/12, Andreas Bratfisch wrote: > Simply implement a ArrayList with all your TextViews included, > ArrayLists does have fast access through Iterators, this is the way > as GridViews are working with. In your TableView add the TextViews > with the

[android-developers] Google Maps Mapview Memory Leak

2011-06-02 Thread CJ
http://code.google.com/p/android/issues/detail?id=2181 Does someone know any solution for the Googe Maps Mapview Memory Leak? -- 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] Several Overlays on Mapview

2011-03-19 Thread CJ
Hi guys, I am pretty new to Android and have a problem. I am working on a navigation app and found a source I am working with for getting a route by start and end location (here: http://code.google.com/p/j2memaprouteprovider/w/list). Now I am trying to add several overlays like circles or even s

[android-developers] Several Overlays on Mapview

2011-03-19 Thread CJ
Hi guys, I am pretty new to Android and have a problem. I am working on a navigation app and found a source I am working with for getting a route by start and end location (here: http://code.google.com/p/j2memaprouteprovider/w/list). Now I am trying to add several overlays like circles or even s

[android-developers] Re: Google Maps API - Getting GPS data ??

2010-12-17 Thread CJ
t time I checked it was > open sourced under GPL, and it uses vector, i.e. structured data that > you can access to run your algorithms on. If you are allowed to do > this, and assuming proper attribution, I suppose, you could fork off > Maemo Mapper and implement your project that way. &g

[android-developers] Re: Google Maps API - Getting GPS data ??

2010-12-17 Thread CJ
> > Personally I'd store it in a JSON array because the information is > sequential in nature so a SQL database may be overkill. > > So.search the web for GPS and Breadcrumbing, look into the Android > Location class and learn how to use JSON. > > Does that help? &g

[android-developers] Google Maps API - Getting GPS data ??

2010-12-15 Thread CJ
ery single point to a fixed other Location. Can anybody help me or give me an advice? Thank you very much! I would really appreciate it! Bye CJ -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send ema

[android-developers] Google Maps API - Route Points - GPS-Data

2010-12-15 Thread CJ
rom every single point to a fixed other Location. Can anybody help me or give me an advice? Thank you very much! I would really appreciate it! Bye CJ -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send ema

[android-developers] how mdm is possible in android

2010-11-08 Thread CJ
i cannot find any info on mdm. can anybody give a hint? how does airwatch do it? thx -- 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, se

[android-developers] Re: adb push hosts file into /system/etc/ - No space left on device error

2010-05-03 Thread CJ Bilkins
It seems my post from yesterday never showed up so I'm going to give it another shot. I'm also having this problem, I can find no way to edit the hosts file on an android virtual device. According to the docs adb remount is supposed to put /system into read-write mode -- which it may be doing --

[android-developers] Re: adb push hosts file into /system/etc/ - No space left on device error

2010-05-03 Thread CJ Bilkins
"Probably the reason why it's not working is that the /system partition is mounted read-only for obvious (security) reasons." This may be true, but according to the adb command [ http://android-dls.com/wiki/index.php?title=ADB ] You should be able to get around this by remounting. Relevant: "ad

[android-developers] Re: Failed to fetch URL https://dl-ssl.google.com/android/repository/repository.xml

2009-11-02 Thread cj
Ran into the same exact problem w/Ubuntu 9.10 on x86_64. Here's what I did to fix/work-around it. I changed the *cfg file as you had done, downloaded the android-sdk- rev3_linux.tgz, extracted it, changed the path in my .bashrc, went into it's tools directory and ran 'android update sdk' instead

[android-developers] how to remove an application?

2009-06-10 Thread CJ
suppose i have re-compiled the whole operation system and installed A hardware (not g1), where am i supposed to be looking at if i want to monitor/remove/block/disable all the applications on the device? any system level api? any advice will be appreciated. thx --~--~-~--~~---

[android-developers] Re: it seems nobody here answer questions regarding mms

2009-02-24 Thread CJ
I believe I did mention the problem I met even though I didn't make it very clear. If I have to be more specific, here it is a query liks this Cursor c = this.getContentResolver().query(Uri.parse("content:// mms/"),null,null,null,null); returns the following columns // These constants are used

[android-developers] Re: it seems nobody here answer questions regarding mms

2009-02-23 Thread CJ
st them to remain silence. On Feb 23, 9:13 pm, Dianne Hackborn wrote: > You don't need a Google employee, you should have the full source available > to look at. > > On Mon, Feb 23, 2009 at 5:51 PM, CJ wrote: > > > there are so many mms related questions unanswerd on this f

[android-developers] it seems nobody here answer questions regarding mms

2009-02-23 Thread CJ
there are so many mms related questions unanswerd on this forum. it looks to me that even a common mms query won't work. the most ridiculous thing is the sender/receiver address won't show up in such a query. i don't feel that is the way it is supposed to be. can any google employee give us a brea

[android-developers] Re: a receiver for outgoing sms and email?

2009-02-16 Thread CJ
i need this functionality three. anybody? On Feb 6, 9:42 pm, Oscar A wrote: > Hi > I would also like to know if that is possible have tried a number of > solutions without success. Have managed to Receive incoming sms but > outgoing is still a difficulty for me. > > Would be grate if there where

[android-developers] Re: how to pass object as a parameter when starting a service

2009-02-03 Thread CJ
any hints? On Feb 3, 10:53 am, CJ wrote: > Here I have a broadcastreceiver where i need to start a service. but, > the service need an object from this broadcastreceiver in order to > function. so, far, i have not found a solution. > Can anybody help m

[android-developers] how to pass object as a parameter when starting a service

2009-02-03 Thread CJ
Here I have a broadcastreceiver where i need to start a service. but, the service need an object from this broadcastreceiver in order to function. so, far, i have not found a solution. Can anybody help me out? thx --~--~-~--~~~---~--~~ You received this message beca

[android-developers] my application is trying to replace "Android System"

2009-01-27 Thread CJ
after i got my application ready, i put it on my web server, then i got a big problem. i played around and finally find out couple facts between using edge (not 3g) and wifi to download my file 1. the size different. if i use wifi, the downloaded file is 59k which is correct, the one from edge is

[android-developers] problem with binding to a service from a BroadcastReceiver

2009-01-20 Thread CJ
BroadcastReceiver, it always come back with an exception (security not allowed, smth like that). can anybody help? btw, because this is a loal service, i did not define any permission in the manifest.xml. should i? many thanks CJ --~--~-~--~~~---~--~~ You received this message

[android-developers] Re: application removal notification

2009-01-15 Thread CJ
anybody can help? On Jan 15, 2:12 pm, CJ wrote: > my application is a client running on the android. i need to know some > infomation about the installation or theremovalof my application. > to be more specific, the server needs to be informed upon the > applicationremoval. >

[android-developers] application removal notification

2009-01-15 Thread CJ
my application is a client running on the android. i need to know some infomation about the installation or the removal of my application. to be more specific, the server needs to be informed upon the application removal. is it possible? thanks in advance --~--~-~--~~~-

[android-developers] how can BroadcastReceiver do managedquery?

2009-01-06 Thread CJ
it seems to do a query, i have to have an activity. but, what i have for now is a BroadcastReceiver. how should i redesign my application? because i did not intend to start any activity in my BroadcastReceiver. thanks --~--~-~--~~~---~--~~ You received this message

[android-developers] how to switch gmail account attached to the gphone?

2009-01-05 Thread CJ
what i understand is there must be an gmail account attached to a gphone. my question is how to switch it to another gmail account and how to do so programmatically. thx --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[android-developers] Re: Intercept Call

2008-11-06 Thread CJ
i don't think that is going to happen. On Nov 6, 8:57 am, "BrunoZP.com" <[EMAIL PROTECTED]> wrote: > Hi, > > How can I intercept a user call, change it number and dial again ? > Any example code ?? > > For example: The user dial 32546048 and press send, my application get > this number, cancel th

[android-developers] Re: Notifications from file system

2008-11-06 Thread CJ
anybody has an example? On Sep 17, 5:02 pm, hackbod <[EMAIL PROTECTED]> wrote: > TheFileObserverclass allows you to monitor filesystem changes: > > http://code.google.com/android/reference/android/os/FileObserver.html > > It does need to be better documented, but it works. :) > > On Sep 17, 2:56

[android-developers] sdk activity life cycle picture inaccurate?

2008-11-06 Thread CJ
according to the picture, for an regular activity, if onstop is called and ondestory is not called, there are only two ways to go: oncreate or onrestart. which means, if oncreate is called, the PROCESS is killed. here is my application: the activity starts a thread that runs in th background. the

[android-developers] why would android call oncreate when flipping the keyboard

2008-10-31 Thread CJ
i just realized that whenever i flip the keyboard, the function oncreate is called, which means it is like closing my the application and start a brand new one? is it weird to you guys? and how to disable this feature? thanks --~--~-~--~~~---~--~~ You received this

[android-developers] install application from sdcard, how?!

2008-10-31 Thread CJ
so, now, i have my apk i copied from my desktop sitting on the sdcard. i just cannot find a way to install it on the g1. i am sure there going to be plenty customers asking this question. the problem is, i don't know the answer for them. for me, i can use adb, or simply load it on my server and do

[android-developers] Re: call a soap web service from an android application

2008-10-17 Thread CJ
go get this http://www.tuxpan.com/android-soap/android-ksoap2-build.zip On Oct 17, 11:25 am, opengl es <[EMAIL PROTECTED]> wrote: > Hi, > > I can't find AndroidHttpTransport... > (I'm using android-sdk-windows-1.0_r1) > > Franck > > On Oct 17, 6:26 am, "shailesh prakash" <[EMAIL PROTECTED]> wrote:

[android-developers] Re: help needed on webservice (ksoap2)

2008-10-17 Thread CJ
                            { >                                                         Log.e("Service > Response Error: ", xppe.getMessage()); >                                                 } >                                         } >                          

[android-developers] help needed on webservice (ksoap2)

2008-10-17 Thread CJ
Hi, guys finally i gave up on trying it by myself. i am dying for help. plz thanks CJ my situation is pretty simple. i have a webservice set up using php under apache. i have ksoap2-android-full-2.1.2.jar imported in eclipse. on android client, i havein the manifest file http

[android-developers] Quartile scorings

2008-09-26 Thread CJ
Hi, guys I did not realize until now that I can get a better reply than "you lost" after submitting my application. Can anybody tell me how? coz apparently I missed such a chance in May. I know this group might not be the best place to ask this question. But, I cannot find a better one.

[android-developers] is this still true?

2008-03-28 Thread CJ
Hi, guys I saw this statement in the forum which was posted in Jan08 *quote: The current SDK doesn't have complete support for orientations, and definitely not orientation switching while running. * First of all, is it still true? Also, can anybody give a reference? Than