Re: [android-developers] Simulate UI Actions on device
On 11/06/2011 20:25, Mark Murphy wrote: On Fri, Jun 10, 2011 at 9:12 AM, Gorav Singaltechi...@gmail.com wrote: Actually, I want to have mobile application running in background. And, I have a java application running on desktop, which will send commands through socket. And, the device application will perform the required UI action. e.g. touch/click on coordinates x, y I want to perform UI action on screen regardless whatever on screen. Is it possible without SDK? Are you trying to make a remote drawing application or just a remote control of a 'form'-like application? In the latter case it's probably a better idea to send application commands rather than input events. In other words send 'do operation' rather than 'click on do operation button'. Pepijn -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Web service using ksoap
hi, i am trying to access to server. but i'm getting an error in the HttpTransportSE. i have added the jar for ksoap also. Below i will mention the whole code. import org.ksoap2.SoapEnvelope; import org.ksoap2.serialization.SoapObject; import org.ksoap2.serialization.SoapSerializationEnvelope; import org.ksoap2.transport.HttpTransportSE; import android.app.Activity; import android.os.Bundle; import android.widget.TextView; public class web extends Activity { private static final String METHOD_NAME = AuthenticateUser; private static final String NAMESPACE = http://exalt.com/webservices/AuthenticateUser;; private static final String URL = http://202.88.239.14:81/yoddleservice/yoddlewebservice.asmx?op=AuthenticateUser;; TextView tv; /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); tv=(TextView)findViewById(R.id.text); call(); } private void call() { try { SoapObject request = new SoapObject(NAMESPACE, METHOD_NAME); request.addProperty(username, password); SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11); envelope.dotNet=true; envelope.setOutputSoapObject(request); HttpTransportSE androidHttpTransport = new HttpTransportSE(URL); androidHttpTransport.call(SOAP_ACTION, envelope); Object result = (Object)envelope.getResponse(); tv.setText(result.toString()); } catch (Exception e) { tv.setText(e.getMessage()); } } Any suggestions? Thanks in advance -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Activity and Method
Good afternoon. I have work with Google maps. I want to boot card (when the user presses the call menu)determined by its location. As well I have a database with addresses and there is a button to see the map. I want to be when you click on this button, the user gets it to the address that he chose in the database. I wrote 2 different ways. How do I choose the right method for downloading activity, if the user has come out of the menu one method and another if the user has come from the database? -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Reading PayWave (ISO14443-B format) track information using Android 2.3.3 NFC API
Hi Michael, I have a doubt.You mean to say that if the EMV card supports ISO 14443 standard then we can be able to read the payment details of the credit cards using APDU commands? Thanks, Shekhar On Apr 25, 5:09 pm, Michael Roland mi.rol...@gmail.com wrote: Hallo 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, byte[] b1 = myTag.getHiLayerResponse(); //b1 is not null, but length == 0 [...] result = myTag.transceive(b1); It will certainly not help if you send the bytes retrieved from getHiLayerResponse() back to the card. Especially if you say they are zero length anyways. These payment cards implement theEMVstandards. Application-to- application communication is done on the level of APDUs. Therefore, it should not matter if this card is ISO 14443 Type A or Type B. What matters is that IsoDep (= ISO 14443-4) is supported. Through the IsoDep interface you directly transmit APDU commands. Have a look at the ISO/IEC 7816-4 standard on how APDU command-response pairs are formatted. Regarding theEMVprotocol the specifications are available from EMVCo's website:http://www.emvco.com/ br, Michael -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Emulator .ini files
The scaling in the dialog works for me. I don't know how I overlooked that... I guess it's my proclivity for opening files in a text editor and mucking about with them :) I do so prefer that to windows and dialogs. -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] SipManager
Hello, The developer guide says that SIP runs over wireless, but, is it possible to use other interface, for instance eth0? Thanks, -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Your Opinion between android native app or HTML-5 Web App.
http://www.google.com/events/io/2011/sessions/html5-versus-android-apps-or-web-for-mobile-development.html On Jun 12, 11:20 pm, Ishwar Chawla chawla.ish...@gmail.com wrote: I just want your opinion which option is better I am about to start a project looking at ease of coding and UI which according to you is better native app or HTML-5 Web App. -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Android - SQLLite
Hi Sivaprakash, The best way to store that data is to encrypt it. No matter where you store the data the root user can get to it. Your only solution is to encrypt it. Manuel R. Ciosici On Jun 13, 8:38 am, Sivaprakash sivaprakashshanmu...@gmail.com wrote: It is like this, - I am creating database in default way hence it will be created in my application private storage and other applications will not get access to it. Still I the user login as root user he would right? Anyways to prevent this? - What is the best mechanism to store secret data like bank accounts in my phone memory? On Sun, Jun 12, 2011 at 9:44 PM, Kumar Bibek coomar@gmail.com wrote: Encrypt and Store. Use remote wipe, it would of course need a lot of work. *Thanks and Regards, Kumar Bibek* * http://techdroid.kbeanie.com http://www.kbeanie.com* On Sun, Jun 12, 2011 at 9:42 PM, Sivaprakash sivaprakashshanmu...@gmail.com wrote: Alright, but any way what is the best mechanism to protect my data? Even if I loose my mobile someone should not gain access to my data. On Sun, Jun 12, 2011 at 5:52 PM, Mark Murphy mmur...@commonsware.comwrote: On Sun, Jun 12, 2011 at 1:37 AM, Sivaprakash sivaprakashshanmu...@gmail.com wrote: Thanks !! What should I do if I want to protect my data in more secure way meaning even if someone steels my memory card they should not gain access to my data or immediately it should be erased ? Don't put the data on the memory card in the first place. -- Mark Murphy (a Commons Guy) http://commonsware.com|http://github.com/commonsguy http://commonsware.com/blog|http://twitter.com/commonsguy Android Training in NYC:http://marakana.com/training/android/ -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en -- - Prakash. -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en -- - Prakash. -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How to add APP icon to desktop automatically
Hi folks, I find that when switch on the mobile, some icon of the application (for example. Mms , Phone, Contacts) has been added on desktop by default, so my question is if I write a new application, how can I add the icon to desktop like that (I do development on source code ,so need to install xxx.apk, just make it and release it with system image) thanks for any help -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: opening a url in browser with post data from an activity
WebView webView = ; ListNameValuePair parameters = new ArrayListNameValuePair(); parameters.add(new BasicNameValuePair(parameter1, someValue)); parameters.add(new BasicNameValuePair(id, 12345)); parameters.add(new BasicNameValuePair(encodingTest, \;)); UrlEncodedFormEntity entity = new UrlEncodedFormEntity(parameters); webView.postUrl(http://some.host.com/path;, EntityUtils.toByteArray(entity)); If you need a specific encoding on your posted data you supply that in the alternative ctor of UrlEncodedFormEntity. On 13 Juni, 13:41, Shashidhar shashi.zep...@gmail.com wrote: Hi, I need to open a browser with a URL when I click on a button in my activity. The URL has some parameters which I need to send it using HTTP POST method. I am able to get it working with the GET request where we append the parameters to the end of the URL. But, I need the POST method way. Any Ideas on how to send the URL data using POST method to open it in browser. Thanks, Shashidhar -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Your Opinion between android native app or HTML-5 Web App.
Many Thanks for your replies! I need to develop a video chat application I thought of using websockets feature of HTML-5. I dont have good command over HTML-5 but I am very in native Java.For developing Video chat like application is it sane to switch to HTML-5 or to use Opentok API for android.Just enlighten me a little bit about this. Thanks! On Jun 14, 12:04 pm, Doug beafd...@gmail.com wrote: http://www.google.com/events/io/2011/sessions/html5-versus-android-ap... On Jun 12, 11:20 pm, Ishwar Chawla chawla.ish...@gmail.com wrote: I just want your opinion which option is better I am about to start a project looking at ease of coding and UI which according to you is better native app or HTML-5 Web App. -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: SSL Socket Connection fails after network cut
Thanx Kostya for you suggestion. I will try to have a look at this session caching : I think the issue could come from this. I'm not using HTTP : I use socket. But I was using apache because it simplifies a bit the code for certificate validation. @IndicatorVeritatis : the read method on a socket input stream is supposed to be blocking : the method should not return untill there is data available. -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Services and Alarm Manager
If you force close the alarm clock it will not wake you up. Just because it isn't running doesn't mean it has been force closed. To force close an app use the settings - applications - manage applications activity. -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How to customize the list view...list view resource id is invalid???
Thanks vijay. for helping me out. it worked Thanks Atik On Jun 13, 4:01 pm, νιנαソkum@r iamvijayaku...@gmail.com wrote: ListView lv= (ListView) findViewById(R.id.listview); lv.setAdapter(new ArrayAdapterString(this, R.id.listview, COUNTRIES)); android.R.layout.simple_list_item_1 remove* R.id.listiew* add this one* android.R.layout.simple_list_item_1* On Mon, Jun 13, 2011 at 4:24 PM, Atik atik0...@gmail.com wrote: HI All, i m developing a list view and on top, it will have a auto complete textview, when user clicks on a certain item from the list, i want to display it in that auto complete text field. but i m getting some error..pls advice me..my codes are right now i m unable to load the view..so i have just written the code for the click on list item.. Thanks **package com.example; import android.app.Activity; import android.os.Bundle; import android.view.View; import android.widget.AdapterView; import android.widget.ArrayAdapter; import android.widget.ListView; import android.widget.TextView; import android.widget.Toast; import android.widget.AdapterView.OnItemClickListener; public class HelloListView extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); ListView lv= (ListView) findViewById(R.id.listview); lv.setAdapter(new ArrayAdapterString(this, R.id.listview, COUNTRIES)); lv.setOnItemClickListener(new OnItemClickListener() { public void onItemClick(AdapterView? parent, View view, int position, long id) { // When clicked, show a toast with the TextView text Toast.makeText(getApplicationContext(), ((TextView) view).getText(), Toast.LENGTH_SHORT).show(); } }); } static final String[] COUNTRIES = new String[] { Afghanistan, Albania, Algeria, American Samoa}; } ***xml file ?xml version=1.0 encoding=utf-8? RelativeLayout android:id=@+id/main1 xmlns:android=http://schemas.android.com/apk/res/android; android:padding=4dip android:layout_width=fill_parent android:layout_height=fill_parent AutoCompleteTextView android:id=@+id/searchText android:layout_width=fill_parent android:layout_height=wrap_content android:singleLine=true android:textSize=16sp android:autoText=false android:capitalize=none android:layout_alignParentLeft=true android:scrollHorizontally=true /AutoCompleteTextView Button android:id=@+id/searchButton android:layout_width=wrap_content android:layout_height=wrap_content android:text= android:layout_alignParentRight=true /Button ListView android:id=@+id/listview android:layout_width=fill_parent android:layout_height=fill_parent android:padding=10dp android:textSize=16sp /ListView /RelativeLayout -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en -- Nobody can go back and start a new beginning, but anyone can start today and make a new ending - Thanks, Regards, νιנαソαkum@r M BloG:http://iamvijayakumar.blogspot.com/ Mob.No:09048382536(Kerala) Mob.No:09751076707(TN) -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Google removed 10 mallware apps - I'm affected. Please help
Hello Guys and Google, I'm the developer of the most popular flashlight application on the Android Market - Tiny Flashlight + LED (over 6.5 million downloads, top 50 in the overall applications ranking). Today I found that Google have deleted my developer account without any notice and removed Tiny Flashlight from the market. I saw the news that Google removed 10 malware apps from the Android Market ( http://phandroid.com/2011/06/14/google-removes-10-new-malware-apps-from-the-android-market/ ) and decided to write you. Seems like I've been affected by this and I hope this will be resolved soon, because I have invested a lot in Tiny Flashlight. For the one year since Tiny Flashlight has been released, I've managed to create one of the best android applications on the market. Although a flashlight application seems easy to create, it's actually quite hard on android, because the different hardware vendors have different camera drivers and this requires a lot of workarounds just to start the camera led / flash. This takes a lot of time and investment. In the last 4 months alone I had to buy over 20 different android devices, spend huge amounts of time finding a way to start the led on these devices and making the whole process trouble-free for the user. I've also gone a step further. Tiny Flashlight is one of the few applications, which supports all android versions on the market - 1.5, 1.6, 2.1, 2.2, 2.3, 3.0, and 3.1. It's the only flashlight application, which still works on Motorola Quench / i1 / Backflip (all Android 1.5). Tiny Flashlight has become my primary source of income and the investment I've made is huge. Every single line of code has been written by me (except the Admob, Millennial Media, and Flurry SDKs, but I think they are respectable companies and would never allow any malware in their distributed SDKs). I just can not afford to make the tiniest mistake with Tiny Flashlight, because it's one of the top applications on the market and I have over 4 million active users and I've invested my life into this. I’m angry that Google never contacted me. They just deleted the whole account. I hope that they will fix it soon, before I lose my users and ranking position. http://www.appbrain.com/app/tiny-flashlight-led/com.devuni.flashlight -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Fwd: gstreamer got SIGSEGV when run on android
-- Forwarded message -- From: Xu Peter xzpe...@gmail.com Date: Tue, Jun 14, 2011 at 5:05 PM Subject: gstreamer got SIGSEGV when run on android To: Discussion of the development of and with GStreamer gstreamer-de...@lists.freedesktop.org Hi, all, With the help of gstreamer wiki, I have successfully ported gstreamer to android gingerbread. (by fixing some gst-plugin-base version checks both in gst-editing-services and gst-plugins-good, and change SO_MAX to 512 in bionic/linker/linker.c) However, I failed to run a gst-launch script and got SIGSEGV. Firstly, I tried gst-inspect to see if gstreamer works. It seems ok (but with some warnings): =START=== xzpeter@xzpeter-HP-Compaq-8100-Elite-SFF-PC:~$ adb shell gst-inspect (gst-inspect-0.10:437): GStreamer-WARNING **: External plugin loader failed. This most likely means that the plugin loader helper binary was not found or could not be run. ** (gst-inspect-0.10:437): WARNING **: could not find config file '/system/gst-openmax.conf'.. using defaults! cdxaparse: cdxaparse: (S)VCD parser cdxaparse: vcdparse: (S)VCD stream parser replaygain: rganalysis: ReplayGain analysis replaygain: rglimiter: ReplayGain limiter replaygain: rgvolume: ReplayGain volume .. (skip many modules here) adder: adder: Adder staticelements: bin: Generic bin staticelements: pipeline: Pipeline object Total count: 131 plugins, 494 features ===END= Then, I tried to run a demo script on it. The script is retrieved from gstreamer examples (with some small modifications by me) and works well on PC, whose main work is to generate a test video stream-encode-send via udp packages. The server script is shown below(named server.sh): START # change this to send the RTP data and RTCP to another host # this is the host addr in android emulator DEST=10.0.2.2 # tuning parameters to make the sender send the streams out of sync. Can be used # ot test the client RTCP synchronisation. #VOFFSET=9 VOFFSET=0 AOFFSET=0 # H264 encode from the source VELEM=videotestsrc #VELEM=peterfilter #VCAPS=video/x-raw-yuv,width=352,height=288,framerate=15/1 VCAPS=video/x-raw-yuv,framerate=5/1 #VSOURCE=$VELEM ! queue ! videorate ! ffmpegcolorspace ! $VCAPS VSOURCE=$VELEM ! ffmpegcolorspace ! $VCAPS VENC=x264enc tune=zerolatency byte-stream=true bitrate=300 ! rtph264pay VRTPSINK=udpsink port=5000 host=$DEST ts-offset=$VOFFSET name=vrtpsink VRTCPSINK=udpsink port=5001 host=$DEST sync=false async=false name=vrtcpsink VRTCPSRC=udpsrc port=5005 name=vrtpsrc # PCMA encode from the source #AELEM=autoaudiosrc AELEM=audiotestsrc is-live=1 ASOURCE=$AELEM ! queue ! audioresample ! audioconvert AENC=alawenc ! rtppcmapay ARTPSINK=udpsink port=5002 host=$DEST ts-offset=$AOFFSET name=artpsink ARTCPSINK=udpsink port=5003 host=$DEST sync=false async=false name=artcpsink ARTCPSRC=udpsrc port=5007 name=artpsrc PLUGIN_PATH=/home/xzpeter/intel/gstreamer/gst-template/gst-plugin gst-launch -v --gst-plugin-path=$PLUGIN_PATH gstrtpbin name=rtpbin \ $VSOURCE ! $VENC ! rtpbin.send_rtp_sink_0 \ rtpbin.send_rtp_src_0 ! $VRTPSINK \ rtpbin.send_rtcp_src_0 ! $VRTCPSINK \ $VRTCPSRC ! rtpbin.recv_rtcp_sink_0 \ $ASOURCE ! $AENC ! rtpbin.send_rtp_sink_1 \ rtpbin.send_rtp_src_1 ! $ARTPSINK \ rtpbin.send_rtcp_src_1 ! $ARTCPSINK \ $ARTCPSRC ! rtpbin.recv_rtcp_sink_1 ==END== I stored the server.sh to /data/server.sh on android emulator by adb push and ran it. However, this time gstreamer got SIGSEGV: START xzpeter@xzpeter-HP-Compaq-8100-Elite-SFF-PC:~$ adb shell sh /data/server.sh (gst-launch-0.10:430): GStreamer-WARNING **: External plugin loader failed. This most likely means that the plugin loader helper binary was not found or could not be run. ** (gst-launch-0.10:430): WARNING **: could not find config file '/system/gst-openmax.conf'.. using defaults! Caught SIGSEGV accessing address 0xdc Spinning. Please run 'gdb gst-launch 430' to continue debugging, Ctrl-C to quit, or Ctrl-\ to dump core. END I want to figure out what is the problem here. but how should I do the debugging? (I know android SDK provide some way on debugging, and ndk-gdb too. Nevertheless, these two ways seems not suitable for gstreamer debugging?) Or, can anyone give me any suggestion on resolving this? Peter -- 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, visit this group at
[android-developers] apps inventer example
http://iamvijayakumar.blogspot.com/2011/06/app-inventor-create-your-own-android.html -- Nobody can go back and start a new beginning, but anyone can start today and make a new ending - Thanks, Regards, νιנαソαkum@r M BloG:http://iamvijayakumar.blogspot.com/ Mob.No:09048382536(Kerala) Mob.No:09751076707(TN) -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Google App engine and android
Hi everyone, Can any one has finish an application which store informations in google app engine via an android application, or any one have suggestions about this subject,, Peace, Gaara -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Google removed 10 mallware apps - I'm affected. Please help
I'm assuming your using some sort of code hacks to get the LED to work on some devices? Maybe some expose some potential security leaks to malware? Maybe your doing something that Google don't approve of? Some applications on the market aren't actually malware but use security loops to do what they want to do, last I read Google were removing these, maybe your app falls under that category? On Tue, Jun 14, 2011 at 9:57 AM, n.a devuni...@gmail.com wrote: Hello Guys and Google, I'm the developer of the most popular flashlight application on the Android Market - Tiny Flashlight + LED (over 6.5 million downloads, top 50 in the overall applications ranking). Today I found that Google have deleted my developer account without any notice and removed Tiny Flashlight from the market. I saw the news that Google removed 10 malware apps from the Android Market ( http://phandroid.com/2011/06/14/google-removes-10-new-malware-apps-from-the-android-market/ ) and decided to write you. Seems like I've been affected by this and I hope this will be resolved soon, because I have invested a lot in Tiny Flashlight. For the one year since Tiny Flashlight has been released, I've managed to create one of the best android applications on the market. Although a flashlight application seems easy to create, it's actually quite hard on android, because the different hardware vendors have different camera drivers and this requires a lot of workarounds just to start the camera led / flash. This takes a lot of time and investment. In the last 4 months alone I had to buy over 20 different android devices, spend huge amounts of time finding a way to start the led on these devices and making the whole process trouble-free for the user. I've also gone a step further. Tiny Flashlight is one of the few applications, which supports all android versions on the market - 1.5, 1.6, 2.1, 2.2, 2.3, 3.0, and 3.1. It's the only flashlight application, which still works on Motorola Quench / i1 / Backflip (all Android 1.5). Tiny Flashlight has become my primary source of income and the investment I've made is huge. Every single line of code has been written by me (except the Admob, Millennial Media, and Flurry SDKs, but I think they are respectable companies and would never allow any malware in their distributed SDKs). I just can not afford to make the tiniest mistake with Tiny Flashlight, because it's one of the top applications on the market and I have over 4 million active users and I've invested my life into this. I’m angry that Google never contacted me. They just deleted the whole account. I hope that they will fix it soon, before I lose my users and ranking position. http://www.appbrain.com/app/tiny-flashlight-led/com.devuni.flashlight -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] NFC Foreground Dispatch System
Hi, i'm a relatively new to the android development so there could be some dummy question. Sry for that. My problem is that i have an android application with 3 different activities; first activity is more like a container, one activity is responsible for some browsing and the third one has more application logic. What i want to do is, to enable some simple NFC functionality. Currently if the application is created the tag is read i got the information about it and i can display it. The problem is, if i want to activate foreground dispatch for this application the onNewIntent() method is not invoked. What i got in DDMS : 06-14 11:36:56.125: INFO/NfcService(209): Dispatching to override intent PendingIntent{40591da0: android.os.BinderProxy@405604d8} 06-14 11:36:56.132: INFO/ActivityManager(109): Starting: Intent { act=android.nfc.action.NDEF_DISCOVERED dat=http://www.ttag.be/m/ 04598EBA342380 flg=0x3000 cmp=de.fhg.fokus.fame.mwr2.android/ de.fhg.fokus.fame.android.nfc.NfcManagerImpl (has extras) } from pid -1 The application is still in foreground and everything looks fine, but i thought that there is some problem with the right allocation of the PendingIntent Filter. Is there any specification with the foreground dispatch system? Perhaps if the 2ndActivity is in foreground and the 3rdActivity is called from the 2ndActivity both are used at the same time and there could be some difficulty with the declaration of my PendingIntent. My first intention is that it has something to do with the registered PendingIntent. Anybody some suggestions? Or what especially PendingIntents do? kd, Ferit Topcu -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Google removed 10 mallware apps - I'm affected. Please help
Yes, I'm using hacks on some devices to start the led. The hacks include: 1. Using private APIs for some old motorola devices 2. On some old samsung devices I have a native library, which sends ioctl calls directly to the camera driver. Everything is being executed in the application's process. I'm not doing anything crazy like hacking the dalvik vm or trying to break out of the security sandbox. The app doesn't require rooting. If they contacted me and told me what's the problem I would have fixed it immediately. I don't understand why they have to delete one of their most popular apps without trying to resolve the issue with the developer before that. On Jun 14, 12:39 pm, Donal Rafferty draf...@gmail.com wrote: I'm assuming your using some sort of code hacks to get the LED to work on some devices? Maybe some expose some potential security leaks to malware? Maybe your doing something that Google don't approve of? Some applications on the market aren't actually malware but use security loops to do what they want to do, last I read Google were removing these, maybe your app falls under that category? On Tue, Jun 14, 2011 at 9:57 AM, n.a devuni...@gmail.com wrote: Hello Guys and Google, I'm the developer of the most popular flashlight application on the Android Market - Tiny Flashlight + LED (over 6.5 million downloads, top 50 in the overall applications ranking). Today I found that Google have deleted my developer account without any notice and removed Tiny Flashlight from the market. I saw the news that Google removed 10 malware apps from the Android Market ( http://phandroid.com/2011/06/14/google-removes-10-new-malware-apps-fr... ) and decided to write you. Seems like I've been affected by this and I hope this will be resolved soon, because I have invested a lot in Tiny Flashlight. For the one year since Tiny Flashlight has been released, I've managed to create one of the best android applications on the market. Although a flashlight application seems easy to create, it's actually quite hard on android, because the different hardware vendors have different camera drivers and this requires a lot of workarounds just to start the camera led / flash. This takes a lot of time and investment. In the last 4 months alone I had to buy over 20 different android devices, spend huge amounts of time finding a way to start the led on these devices and making the whole process trouble-free for the user. I've also gone a step further. Tiny Flashlight is one of the few applications, which supports all android versions on the market - 1.5, 1.6, 2.1, 2.2, 2.3, 3.0, and 3.1. It's the only flashlight application, which still works on Motorola Quench / i1 / Backflip (all Android 1.5). Tiny Flashlight has become my primary source of income and the investment I've made is huge. Every single line of code has been written by me (except the Admob, Millennial Media, and Flurry SDKs, but I think they are respectable companies and would never allow any malware in their distributed SDKs). I just can not afford to make the tiniest mistake with Tiny Flashlight, because it's one of the top applications on the market and I have over 4 million active users and I've invested my life into this. I’m angry that Google never contacted me. They just deleted the whole account. I hope that they will fix it soon, before I lose my users and ranking position. http://www.appbrain.com/app/tiny-flashlight-led/com.devuni.flashlight -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Cannot handle exception in a thread
I am spinning a thread to go online and get data. But if phone is in a network hole (no signal) it throws an exception. In the exception I try to call Toast or finish() the activity but both those cause a crash. Here's the error and my code: error is: 06-14 11:32:01.691: ERROR/AndroidRuntime(7389): java.lang.RuntimeException: Can't create handler inside thread that has not called Looper.prepare() here is the code, note the catch clause at the end which is where my problem lies: * private Thread checkUpdate = new Thread() { public void run() { try { URL updateURL = new URL(http://search.twitter.com/ search.json?q=+string_from_speaker); URLConnection conn = updateURL.openConnection(); ... } catch (Exception e) { // none of these exception handlers work becaue they are in wrong thread!! WTF? // NOPE tv1.setText( having trouble getting online); // TODO // NOPE Toast.makeText(IconicAgain.this, having trouble getting online + e, Toast.LENGTH_LONG).show(); } } }; Can I at least stop this thread somehow? Or close the activity somehow? -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Google App engine and android
Its easy and works well - just post (or get) http data and have some python or java in the app engine that picks up the data. On Jun 14, 10:37 am, gaara amellal.kamili...@gmail.com wrote: Hi everyone, Can any one has finish an application which store informations in google app engine via an android application, or any one have suggestions about this subject,, Peace, Gaara -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Google removed 10 mallware apps - I'm affected. Please help
Sorry that you only found out now about google's ways of doing things. That is true to everything Google and that's the best advice I can give you : Never ever rely on one of their ecosystems to be your only source of income. Actually you can broaden this : Never ever rely on anyone ecosystem to be your only source of income. But it is especially true for Google : You see, they seem like a huge company making billions of dollars in benefice each year so you'd think they would have a huge staff helping their users, communicating before taking decisions, warning people of services disruption, not pushing piles and piles of bugs into the Android Market each and everytime they upgrade it since there is a good 10 000 developers using it. But the truth is : For every project Google launches the team that works on it is only of 2-6 people. Only engineers, no designers, no graphists, no supervisors, no usability engineer. And with such small teams for applications that have tenth of thousands users you can easily see how they have no time to treat things case by case. So what happened to you is something like this : An engineer found out that one malware used permissions XX and a specific access to i/o via NDK. So since he has no time for these foolisheries he just pulled all the apps that have these specifics in their code. - That's 10 apps and there is one with 6,5 millions downloads and a five star rating and no complaints - Yeah I don't care we don't have time for this, pull the plug !! For what it's worth, with a delay of two weeks I was able to have a contact with the Android Market team once on this mail address : android-market-support AT google.com I really feel your pain and I hope you get it sorted out. But be sure to start several other apps for iphone as I did and find other revenues that do not depends on someone else framework. Good luck. Yahel On 14 juin, 10:57, n.a devuni...@gmail.com wrote: Hello Guys and Google, I'm the developer of the most popular flashlight application on the Android Market - Tiny Flashlight + LED (over 6.5 million downloads, top 50 in the overall applications ranking). Today I found that Google have deleted my developer account without any notice and removed Tiny Flashlight from the market. I saw the news that Google removed 10 malware apps from the Android Market (http://phandroid.com/2011/06/14/google-removes-10-new-malware-apps-fr... ) and decided to write you. Seems like I've been affected by this and I hope this will be resolved soon, because I have invested a lot in Tiny Flashlight. For the one year since Tiny Flashlight has been released, I've managed to create one of the best android applications on the market. Although a flashlight application seems easy to create, it's actually quite hard on android, because the different hardware vendors have different camera drivers and this requires a lot of workarounds just to start the camera led / flash. This takes a lot of time and investment. In the last 4 months alone I had to buy over 20 different android devices, spend huge amounts of time finding a way to start the led on these devices and making the whole process trouble-free for the user. I've also gone a step further. Tiny Flashlight is one of the few applications, which supports all android versions on the market - 1.5, 1.6, 2.1, 2.2, 2.3, 3.0, and 3.1. It's the only flashlight application, which still works on Motorola Quench / i1 / Backflip (all Android 1.5). Tiny Flashlight has become my primary source of income and the investment I've made is huge. Every single line of code has been written by me (except the Admob, Millennial Media, and Flurry SDKs, but I think they are respectable companies and would never allow any malware in their distributed SDKs). I just can not afford to make the tiniest mistake with Tiny Flashlight, because it's one of the top applications on the market and I have over 4 million active users and I've invested my life into this. I’m angry that Google never contacted me. They just deleted the whole account. I hope that they will fix it soon, before I lose my users and ranking position. http://www.appbrain.com/app/tiny-flashlight-led/com.devuni.flashlight -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Google App engine and android
On Tue, Jun 14, 2011 at 7:42 PM, Droid rod...@gmail.com wrote: Its easy and works well - just post (or get) http data and have some python or java in the app engine that picks up the data. Only downside is that it shuts down your instance after a few minutes of inactivity. The first access after that needs to start up the instance again and this can be slow. So it might not be the best choice if access to your app is infrequent. Of course, you can pay $0.30/day to have an 'always-on' instance and then it's quite snappy. Another thing to consider is that the datastore can be quite slow, so if your app is data intensive, you might need to look into memcache to optimize things a bit. -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Diagram of Android internals
Love your internals diagram http://www.makelinux.net/android/internals/ I am trying to make it bigger and clearer - the idea is great. Thanks. On Jun 13, 4:05 pm, Constantine conan...@gmail.com wrote: Hi Android developers, I am designing detailed diagram of Android internals. You can find it here:http://www.makelinux.net/android/internals/ What do you think about it? Have you any ideas how to improve it? Thank you in advance. -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Camera capture area selection
Hi, When i take a photo i want to define the campture area like Google Googles app do pushing # button... any idea about how to do this? I wan to mantain a 1:1 ratio to take square photos.. Regards. -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Google App engine and android
Thanks for replay, What i want to do is the store data from a form in an android application in my google app engine datastore ,i tried to use Restlet to create web services and Objectify for the persistance but it seems that there is no connection between the two applications. Peace, Gaara 2011/6/14 Nikolay Elenkov nikolay.elen...@gmail.com On Tue, Jun 14, 2011 at 7:42 PM, Droid rod...@gmail.com wrote: Its easy and works well - just post (or get) http data and have some python or java in the app engine that picks up the data. Only downside is that it shuts down your instance after a few minutes of inactivity. The first access after that needs to start up the instance again and this can be slow. So it might not be the best choice if access to your app is infrequent. Of course, you can pay $0.30/day to have an 'always-on' instance and then it's quite snappy. Another thing to consider is that the datastore can be quite slow, so if your app is data intensive, you might need to look into memcache to optimize things a bit. -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Diagram of Android internals
ps If you make the picture about 1400 pixels square I would put it in an App as a lovely zoomable pic and into the Android market. Probably just a freeby, but it would be popular I am sure. Get back to me with a bigger pic pls. On Jun 13, 4:05 pm, Constantine conan...@gmail.com wrote: Hi Android developers, I am designing detailed diagram of Android internals. You can find it here:http://www.makelinux.net/android/internals/ What do you think about it? Have you any ideas how to improve it? Thank you in advance. -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Regarding Google Maps
Hi All, In my app am using map view for displaying some locations based on longitude and latitude values but before that tried to implement basic map example but am able to get only grid lines but not displaying any map.So,please help me out in this query. My api key and other uses-permissions and uses-library are properly given. Thanx in Advance. Regards, Yogi -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Services and Alarm Manager
On Tue, Jun 14, 2011 at 1:17 AM, Simon Platten simonaplat...@googlemail.com wrote: Ok, so how do you schedule an alarm in the same way the alarm clock does? So that once scheduled the application can be killed, but the alarm remains ? You can't. The alarm clock itself can have its alarms removed, AFAIK. On ny phone I regularly kill all processes using task manager, yet my alarn continues to wake me up everyday. First, you are not killing all processes, otherwise the phone would crash. This may be news to you, but computer operating systems use processes to actually run. Second, most likely, the alarm clock process was not running at the time you killed all processes. The act of task-killing (task killers) or force-stopping (Settings app) is associated with a process. A side effect of task-killing and force-stopping a process is that all scheduled alarms are removed that were associated with the application that was running in that process. As I wrote before: The alarm clock app's code is only running around the time the user is setting an alarm or when an alarm is occurring. Hence, unless you actually task-kill/force-stop THE ALARM CLOCK'S PROCESS, the alarm clock's ALARMS WILL REMAIN UNAFFECTED by any other task-killage/force-stoppage that goes on around it. A well-written application using AlarmManager will behave much like the alarm clock app: the app is only active while delivering actual value to the user. For example, IntentService is frequently used with AlarmManager to make sure the service goes away ASAP once its value is delivered. Task killers have one difference compared to the Settings app -- they tend to *really* focus on processes, whereas the Settings app focuses more on components (i.e., Running Services). A process does not immediately exit once all activities are finished and services are stopped -- Android hangs onto the process until it needs the RAM, in case for some reason that same application needs to run again. Hence, a task killer is more likely to attack processes that are actually well-behaved, and there's not much you can really do about it. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in NYC: http://marakana.com/training/android/ -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Regarding Google Maps
Hi,, in mapview you hae to give proper *api key* On Tue, Jun 14, 2011 at 4:34 PM, yogendra G yogi2...@gmail.com wrote: Hi All, In my app am using map view for displaying some locations based on longitude and latitude values but before that tried to implement basic map example but am able to get only grid lines but not displaying any map.So,please help me out in this query. My api key and other uses-permissions and uses-library are properly given. Thanx in Advance. Regards, Yogi -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en -- Nobody can go back and start a new beginning, but anyone can start today and make a new ending - Thanks, Regards, νιנαソαkum@r M BloG:http://iamvijayakumar.blogspot.com/ Mob.No:09048382536(Kerala) Mob.No:09751076707(TN) -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] NFC Foreground Dispatch System
You need to enableForegroundDispatch() on every activity that is supposed to be watching for NFC tag events. From what I've read, if Activity A enables dispatch and Activity B is in the foreground, the dispatch doesn't happen. Also, to get onNewIntent() to work, make sure your Intent inside the PendingIntent has FLAG_ACTIVITY_CLEAR_TOP|FLAG_ACTIVITY_SINGLE_TOP as its flags. Here is a sample application demonstrating this: https://github.com/commonsguy/cw-advandroid/tree/master/NFC/URLTagger On Tue, Jun 14, 2011 at 5:52 AM, Ferit T fokus.fe...@googlemail.com wrote: Hi, i'm a relatively new to the android development so there could be some dummy question. Sry for that. My problem is that i have an android application with 3 different activities; first activity is more like a container, one activity is responsible for some browsing and the third one has more application logic. What i want to do is, to enable some simple NFC functionality. Currently if the application is created the tag is read i got the information about it and i can display it. The problem is, if i want to activate foreground dispatch for this application the onNewIntent() method is not invoked. What i got in DDMS : 06-14 11:36:56.125: INFO/NfcService(209): Dispatching to override intent PendingIntent{40591da0: android.os.BinderProxy@405604d8} 06-14 11:36:56.132: INFO/ActivityManager(109): Starting: Intent { act=android.nfc.action.NDEF_DISCOVERED dat=http://www.ttag.be/m/ 04598EBA342380 flg=0x3000 cmp=de.fhg.fokus.fame.mwr2.android/ de.fhg.fokus.fame.android.nfc.NfcManagerImpl (has extras) } from pid -1 The application is still in foreground and everything looks fine, but i thought that there is some problem with the right allocation of the PendingIntent Filter. Is there any specification with the foreground dispatch system? Perhaps if the 2ndActivity is in foreground and the 3rdActivity is called from the 2ndActivity both are used at the same time and there could be some difficulty with the declaration of my PendingIntent. My first intention is that it has something to do with the registered PendingIntent. Anybody some suggestions? Or what especially PendingIntents do? kd, Ferit Topcu -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in NYC: http://marakana.com/training/android/ -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Google App engine and android
On Tue, Jun 14, 2011 at 7:58 PM, kamilia amellal amellal.kamili...@gmail.com wrote: Thanks for replay, What i want to do is the store data from a form in an android application in my google app engine datastore ,i tried to use Restlet to create web services and Objectify for the persistance but it seems that there is no connection between the two applications. Start with something simple and get it working first. Write a simple servlet that gets data for http parameters and persists using JDO. Once that is working, you can move to Objectify, etc. Consider how complex your application is first though: you might not need it at all. There is nothing special on the Android side either: just post your data to the appengine URL. You can test with curl and similar tools to identify if the problems is in the Android app or the app engine one. -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Cannot handle exception in a thread
Use runOnUiThread() around your code in the catch block, to have that stuff be done on the main application thread. On Tue, Jun 14, 2011 at 6:40 AM, Droid rod...@gmail.com wrote: I am spinning a thread to go online and get data. But if phone is in a network hole (no signal) it throws an exception. In the exception I try to call Toast or finish() the activity but both those cause a crash. Here's the error and my code: error is: 06-14 11:32:01.691: ERROR/AndroidRuntime(7389): java.lang.RuntimeException: Can't create handler inside thread that has not called Looper.prepare() here is the code, note the catch clause at the end which is where my problem lies: * private Thread checkUpdate = new Thread() { public void run() { try { URL updateURL = new URL(http://search.twitter.com/ search.json?q=+string_from_speaker); URLConnection conn = updateURL.openConnection(); ... } catch (Exception e) { // none of these exception handlers work becaue they are in wrong thread!! WTF? // NOPE tv1.setText( having trouble getting online); // TODO // NOPE Toast.makeText(IconicAgain.this, having trouble getting online + e, Toast.LENGTH_LONG).show(); } } }; Can I at least stop this thread somehow? Or close the activity somehow? -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in NYC: http://marakana.com/training/android/ -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: NFC Foreground Dispatch System
And how is it with external classes which are not implementing the class Activity. the application on which i'm working on is a bit more complex and all nfc-related stuff is realized in an extra class NfcManager. If i'm understanding it right: - first i have to detect which activity (activities) really is (are) on top - then activate foregroundDispatch on every onNewIntent()... thanks ... On 14 Jun., 13:09, Mark Murphy mmur...@commonsware.com wrote: You need to enableForegroundDispatch() on every activity that is supposed to be watching for NFC tag events. From what I've read, if Activity A enables dispatch and Activity B is in the foreground, the dispatch doesn't happen. Also, to get onNewIntent() to work, make sure your Intent inside the PendingIntent has FLAG_ACTIVITY_CLEAR_TOP|FLAG_ACTIVITY_SINGLE_TOP as its flags. Here is a sample application demonstrating this: https://github.com/commonsguy/cw-advandroid/tree/master/NFC/URLTagger On Tue, Jun 14, 2011 at 5:52 AM, Ferit T fokus.fe...@googlemail.com wrote: Hi, i'm a relatively new to the android development so there could be some dummy question. Sry for that. My problem is that i have an android application with 3 different activities; first activity is more like a container, one activity is responsible for some browsing and the third one has more application logic. What i want to do is, to enable some simple NFC functionality. Currently if the application is created the tag is read i got the information about it and i can display it. The problem is, if i want to activate foreground dispatch for this application the onNewIntent() method is not invoked. What i got in DDMS : 06-14 11:36:56.125: INFO/NfcService(209): Dispatching to override intent PendingIntent{40591da0: android.os.BinderProxy@405604d8} 06-14 11:36:56.132: INFO/ActivityManager(109): Starting: Intent { act=android.nfc.action.NDEF_DISCOVERED dat=http://www.ttag.be/m/ 04598EBA342380 flg=0x3000 cmp=de.fhg.fokus.fame.mwr2.android/ de.fhg.fokus.fame.android.nfc.NfcManagerImpl (has extras) } from pid -1 The application is still in foreground and everything looks fine, but i thought that there is some problem with the right allocation of the PendingIntent Filter. Is there any specification with the foreground dispatch system? Perhaps if the 2ndActivity is in foreground and the 3rdActivity is called from the 2ndActivity both are used at the same time and there could be some difficulty with the declaration of my PendingIntent. My first intention is that it has something to do with the registered PendingIntent. Anybody some suggestions? Or what especially PendingIntents do? kd, Ferit Topcu -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy Android Training in NYC:http://marakana.com/training/android/ -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Camera bitmap too small
Hi all! I'm using the built-in camera app and in every phone I test it, I receive a bitmap really small (for example, samsung galaxy mini: 256x192, htc wildfire: 324x244). How can I get the picture in the real size? I searched in Google but nothing seems to be clear, some people says it is a bug. Any idea? Thanks a lot! -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] value of timer
Hi, I have create a new timer: Timer t=new Timer(); than i lunch my timer: t.schedule(new TimerTask() { public void run() { } },1000); how can i have the value of my timer t, so i can do tests?? (if t== 20seconde faire un tel truc) Thanks -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Google API key working with emulator but it doesn't work with device?
Hello Everyone I am working on one map application, used mapview with google api key it works fine with emulator but not not working while deployed it on device. i stuck there, expecting early response. thanks in advance -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: NFC Foreground Dispatch System
On Tue, Jun 14, 2011 at 7:27 AM, Ferit T fokus.fe...@googlemail.com wrote: And how is it with external classes which are not implementing the class Activity. They are obviously being passed something that responds to enableForegroundDispatch(). - first i have to detect which activity (activities) really is (are) on top - then activate foregroundDispatch on every onNewIntent()... Possibly, but I doubt it. AFAIK, every activity that needs to respond to NFC tags will need to enableForegroundDispatch() in, say, onResume(), and disable in, say, onPause(). Or whatever pair of points on the timeline make sense for your app. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in NYC: http://marakana.com/training/android/ -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] value of timer
On Tue, Jun 14, 2011 at 7:32 AM, souissi haythem haythe...@gmail.com wrote: Hi, I have create a new timer: Timer t=new Timer(); than i lunch my timer: t.schedule(new TimerTask() { public void run() { } },1000); how can i have the value of my timer t You can't. There are no methods for that on Timer or TimerTask. General Java programming questions are probably better directed at StackOverflow (with the 'java' and 'android' tags). -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in NYC: http://marakana.com/training/android/ -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Using jbcrypt in app
Its the same on an actual device and on the emulators. On Jun 13, 11:08 pm, Streets Of Boston flyingdutc...@gmail.com wrote: Is the slowness on an actual device or on the emulator. Anyways...it seems that you need to calculate the hash on a background thread as not to hang your app and risk an ANR force-close. -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: When will android automatically launch a process when force closed?
Hi Treking, But that's not the behaviour I see. I do see that the process is getting auto-started when killed. On Jun 14, 1:33 am, TreKing treking...@gmail.com wrote: On Mon, Jun 13, 2011 at 8:44 AM, gunanar...@gmail.com gunanar...@gmail.comwrote: Can you please let me know under what conditions will android automatically start the process after force close, and if there is a way to instruct the system to not do this for my app? I believe that if an activity is forced to close (crashes), then the system goes to the previous activity in the stack. This is a requirement for my app, to be not auto-restarted when the user kills the app. If the user kills the app (i.e., they go to the app management screen and Force Stop it) then it should not be auto-restarted. --- -- TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] when to use aidl?
Hi, I m working on music application which requires widget also on the home screen.the details of the current playing track is displayed at the statusbar notification with icon.so notification would be updated from both player view as well as widget app. for the above scenario should i use aidl or can just extend service and get it work? -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: NFC Foreground Dispatch System
So now, i got same problem as before: 06-14 14:16:21.894: INFO/NfcService(7235): Dispatching to override intent PendingIntent{405801c8: android.os.BinderProxy@40543860} Nothing else occurs. No entry into the onNewIntent()-method. Currently the two main activities both are realizing ForegroundDispatch... On 14 Jun., 13:53, Mark Murphy mmur...@commonsware.com wrote: On Tue, Jun 14, 2011 at 7:27 AM, Ferit T fokus.fe...@googlemail.com wrote: And how is it with external classes which are not implementing the class Activity. They are obviously being passed something that responds to enableForegroundDispatch(). - first i have to detect which activity (activities) really is (are) on top - then activate foregroundDispatch on every onNewIntent()... Possibly, but I doubt it. AFAIK, every activity that needs to respond to NFC tags will need to enableForegroundDispatch() in, say, onResume(), and disable in, say, onPause(). Or whatever pair of points on the timeline make sense for your app. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy Android Training in NYC:http://marakana.com/training/android/ -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: NFC Foreground Dispatch System
On Tue, Jun 14, 2011 at 8:19 AM, Ferit T fokus.fe...@googlemail.com wrote: So now, i got same problem as before: 06-14 14:16:21.894: INFO/NfcService(7235): Dispatching to override intent PendingIntent{405801c8: android.os.BinderProxy@40543860} Nothing else occurs. No entry into the onNewIntent()-method. Currently the two main activities both are realizing ForegroundDispatch... Well, you've now exhausted my limited experience with NFC. Hopefully someone else will pick up the thread to continue assisting you. Sorry! -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in NYC: http://marakana.com/training/android/ -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Google removed 10 mallware apps - I'm affected. Please help
Apple, at least, gives you 5 days to fix your issues and doesn't suspend the whole account. This is a bad situation to be in. I've sent an e-mail to android- market-support AT google.com but if they answer me after 2 weeks all will be lost. I'll lose my ranking position and will never be able to come back. A whole year of investment deleted in a single click. On Jun 14, 1:44 pm, Yahel kaye...@gmail.com wrote: Sorry that you only found out now about google's ways of doing things. That is true to everything Google and that's the best advice I can give you : Never ever rely on one of their ecosystems to be your only source of income. Actually you can broaden this : Never ever rely on anyone ecosystem to be your only source of income. But it is especially true for Google : You see, they seem like a huge company making billions of dollars in benefice each year so you'd think they would have a huge staff helping their users, communicating before taking decisions, warning people of services disruption, not pushing piles and piles of bugs into the Android Market each and everytime they upgrade it since there is a good 10 000 developers using it. But the truth is : For every project Google launches the team that works on it is only of 2-6 people. Only engineers, no designers, no graphists, no supervisors, no usability engineer. And with such small teams for applications that have tenth of thousands users you can easily see how they have no time to treat things case by case. So what happened to you is something like this : An engineer found out that one malware used permissions XX and a specific access to i/o via NDK. So since he has no time for these foolisheries he just pulled all the apps that have these specifics in their code. - That's 10 apps and there is one with 6,5 millions downloads and a five star rating and no complaints - Yeah I don't care we don't have time for this, pull the plug !! For what it's worth, with a delay of two weeks I was able to have a contact with the Android Market team once on this mail address : android-market-support AT google.com I really feel your pain and I hope you get it sorted out. But be sure to start several other apps for iphone as I did and find other revenues that do not depends on someone else framework. Good luck. Yahel On 14 juin, 10:57, n.a devuni...@gmail.com wrote: Hello Guys and Google, I'm the developer of the most popular flashlight application on the Android Market - Tiny Flashlight + LED (over 6.5 million downloads, top 50 in the overall applications ranking). Today I found that Google have deleted my developer account without any notice and removed Tiny Flashlight from the market. I saw the news that Google removed 10 malware apps from the Android Market (http://phandroid.com/2011/06/14/google-removes-10-new-malware-apps-fr... ) and decided to write you. Seems like I've been affected by this and I hope this will be resolved soon, because I have invested a lot in Tiny Flashlight. For the one year since Tiny Flashlight has been released, I've managed to create one of the best android applications on the market. Although a flashlight application seems easy to create, it's actually quite hard on android, because the different hardware vendors have different camera drivers and this requires a lot of workarounds just to start the camera led / flash. This takes a lot of time and investment. In the last 4 months alone I had to buy over 20 different android devices, spend huge amounts of time finding a way to start the led on these devices and making the whole process trouble-free for the user. I've also gone a step further. Tiny Flashlight is one of the few applications, which supports all android versions on the market - 1.5, 1.6, 2.1, 2.2, 2.3, 3.0, and 3.1. It's the only flashlight application, which still works on Motorola Quench / i1 / Backflip (all Android 1.5). Tiny Flashlight has become my primary source of income and the investment I've made is huge. Every single line of code has been written by me (except the Admob, Millennial Media, and Flurry SDKs, but I think they are respectable companies and would never allow any malware in their distributed SDKs). I just can not afford to make the tiniest mistake with Tiny Flashlight, because it's one of the top applications on the market and I have over 4 million active users and I've invested my life into this. I’m angry that Google never contacted me. They just deleted the whole account. I hope that they will fix it soon, before I lose my users and ranking position. http://www.appbrain.com/app/tiny-flashlight-led/com.devuni.flashlight -- 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] Is it possible to automatically open a browser when an NFC tag is scanned?
Hi there, Maybe this is more like a request than a question. Is it possible for the Tags application to automatically open a browser when the data inside the NFC tag is an URI type data? We are thinking to create a tag where our application will be automatically downloaded when user uses his/her phone to read this tag. Thank you very much for the assistance. Kind regards, Joshua. -- @jpartogi -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Is it possible to automatically open a browser when an NFC tag is scanned?
On Tue, Jun 14, 2011 at 8:32 AM, Joshua Partogi joshua.part...@gmail.com wrote: Maybe this is more like a request than a question. Is it possible for the Tags application to automatically open a browser when the data inside the NFC tag is an URI type data? The standard Tags application, when it detects an NFC tag with an NDEF record containing a URI, presently displays a New tag collected activity. Tapping on the tag will then open the browser on the URL. We are thinking to create a tag where our application will be automatically downloaded when user uses his/her phone to read this tag. If the URL is a market:// URL, once the user taps the entry in the New tag collected activity, that should open up the Market app. It is possible that the Market app has an Intent filter that will get control first, avoiding the Tags application -- I haven't tried that yet. If the URL is a URL to someplace else (e.g., your APK on your own Web site), then once the user taps the entry in the New tag collected activity, it should behave just as if the user had clicked on a link on a Web page in their device pointing to the same URL. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in NYC: http://marakana.com/training/android/ -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: value of timer
i don't understand, how can i do this? On Jun 14, 1:55 pm, Mark Murphy mmur...@commonsware.com wrote: On Tue, Jun 14, 2011 at 7:32 AM, souissi haythem haythe...@gmail.com wrote: Hi, I have create a new timer: Timer t=new Timer(); than i lunch my timer: t.schedule(new TimerTask() { public void run() { } },1000); how can i have the value of my timer t You can't. There are no methods for that on Timer or TimerTask. General Java programming questions are probably better directed at StackOverflow (with the 'java' and 'android' tags). -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy Android Training in NYC:http://marakana.com/training/android/ -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Google removed 10 mallware apps - I'm affected. Please help
I'm sorry to be that guy, but you really should start thinking that they really just deleted everything about your account, not just hid it somewhere and are able to put it back up for you. That's the thing about general intervention and not case by case intervention : Fire and forget. I really do hope for you that this time the Android Market Team has been a little more profesionnal and kept backup but I really wouldn't count on it if I were you. Come back to tell us what happenned if they ever get back to you. Good luck mate. Yahel On 14 juin, 14:29, n.a devuni...@gmail.com wrote: Apple, at least, gives you 5 days to fix your issues and doesn't suspend the whole account. This is a bad situation to be in. I've sent an e-mail to android- market-support AT google.com but if they answer me after 2 weeks all will be lost. I'll lose my ranking position and will never be able to come back. A whole year of investment deleted in a single click. On Jun 14, 1:44 pm, Yahel kaye...@gmail.com wrote: Sorry that you only found out now about google's ways of doing things. That is true to everything Google and that's the best advice I can give you : Never ever rely on one of their ecosystems to be your only source of income. Actually you can broaden this : Never ever rely on anyone ecosystem to be your only source of income. But it is especially true for Google : You see, they seem like a huge company making billions of dollars in benefice each year so you'd think they would have a huge staff helping their users, communicating before taking decisions, warning people of services disruption, not pushing piles and piles of bugs into the Android Market each and everytime they upgrade it since there is a good 10 000 developers using it. But the truth is : For every project Google launches the team that works on it is only of 2-6 people. Only engineers, no designers, no graphists, no supervisors, no usability engineer. And with such small teams for applications that have tenth of thousands users you can easily see how they have no time to treat things case by case. So what happened to you is something like this : An engineer found out that one malware used permissions XX and a specific access to i/o via NDK. So since he has no time for these foolisheries he just pulled all the apps that have these specifics in their code. - That's 10 apps and there is one with 6,5 millions downloads and a five star rating and no complaints - Yeah I don't care we don't have time for this, pull the plug !! For what it's worth, with a delay of two weeks I was able to have a contact with the Android Market team once on this mail address : android-market-support AT google.com I really feel your pain and I hope you get it sorted out. But be sure to start several other apps for iphone as I did and find other revenues that do not depends on someone else framework. Good luck. Yahel On 14 juin, 10:57, n.a devuni...@gmail.com wrote: Hello Guys and Google, I'm the developer of the most popular flashlight application on the Android Market - Tiny Flashlight + LED (over 6.5 million downloads, top 50 in the overall applications ranking). Today I found that Google have deleted my developer account without any notice and removed Tiny Flashlight from the market. I saw the news that Google removed 10 malware apps from the Android Market (http://phandroid.com/2011/06/14/google-removes-10-new-malware-apps-fr... ) and decided to write you. Seems like I've been affected by this and I hope this will be resolved soon, because I have invested a lot in Tiny Flashlight. For the one year since Tiny Flashlight has been released, I've managed to create one of the best android applications on the market. Although a flashlight application seems easy to create, it's actually quite hard on android, because the different hardware vendors have different camera drivers and this requires a lot of workarounds just to start the camera led / flash. This takes a lot of time and investment. In the last 4 months alone I had to buy over 20 different android devices, spend huge amounts of time finding a way to start the led on these devices and making the whole process trouble-free for the user. I've also gone a step further. Tiny Flashlight is one of the few applications, which supports all android versions on the market - 1.5, 1.6, 2.1, 2.2, 2.3, 3.0, and 3.1. It's the only flashlight application, which still works on Motorola Quench / i1 / Backflip (all Android 1.5). Tiny Flashlight has become my primary source of income and the investment I've made is huge. Every single line of code has been written by me (except the Admob, Millennial Media, and Flurry SDKs, but I think they are respectable companies and would never allow any malware in their distributed SDKs). I just can not afford to make
[android-developers] Re: Is it possible to automatically open a browser when an NFC tag is scanned?
Hi, I could not able to understand your request.What difficulty you are facing in implementing it? When you get the Tag data check for the data type and launch browser app.This is what I opine. Could you elaborate your question? Regards, Shekhar On Jun 14, 5:32 pm, Joshua Partogi joshua.part...@gmail.com wrote: Hi there, Maybe this is more like a request than a question. Is it possible for the Tags application to automatically open a browser when the data inside the NFC tag is an URI type data? We are thinking to create a tag where our application will be automatically downloaded when user uses his/her phone to read this tag. Thank you very much for the assistance. Kind regards, Joshua. -- @jpartogi -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: NFC Foreground Dispatch System
Thanks. Perhaps it has something to do with my PendingIntent, again. All nfc-logic, reading a tag etc. is realized in an external class. After that every Activity is only invoking the method of this external class. The enableForegroundDispatch() invoke is realized in this class and the activity methods onResume(), onPause(), onNewIntent() are calling the external methods. Perhaps if i'm using a PendingIntent: mPendingIntent = PendingIntent.getActivity(con.getApplicationContext(), 0, new Intent(con.getApplicationContext(), getClass()).addFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP), 0) is it important which class is used? I mean the Context / Activity is given to the external class and in the Intent there is the Information about the context and the external class. Perhaps the dispatching system has a problem with this procedure where an Intent refers to non-acitivity class and the onNewIntent()-method is a activity class. At the current this the point where a inconsistency is possible for me. kd, ft 2011/6/14, Mark Murphy mmur...@commonsware.com: On Tue, Jun 14, 2011 at 8:19 AM, Ferit T fokus.fe...@googlemail.com wrote: So now, i got same problem as before: 06-14 14:16:21.894: INFO/NfcService(7235): Dispatching to override intent PendingIntent{405801c8: android.os.BinderProxy@40543860} Nothing else occurs. No entry into the onNewIntent()-method. Currently the two main activities both are realizing ForegroundDispatch... Well, you've now exhausted my limited experience with NFC. Hopefully someone else will pick up the thread to continue assisting you. Sorry! -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in NYC: http://marakana.com/training/android/ -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Is it possible to automatically open a browser when an NFC tag is scanned?
Hi Mark, Thank you very much for the explanation. We actually want the default NFC application to automatically download our app without them having to tap the entry in the New tag collected. Maybe this is too much to ask, but we just want to make it easy for our user. Maybe this is more like a feature request. Kind regards, Joshua. On Jun 14, 10:40 pm, Mark Murphy mmur...@commonsware.com wrote: On Tue, Jun 14, 2011 at 8:32 AM, Joshua Partogi joshua.part...@gmail.com wrote: Maybe this is more like a request than a question. Is it possible for the Tags application to automatically open a browser when the data inside the NFC tag is an URI type data? The standard Tags application, when it detects an NFC tag with an NDEF record containing a URI, presently displays a New tag collected activity. Tapping on the tag will then open the browser on the URL. We are thinking to create a tag where our application will be automatically downloaded when user uses his/her phone to read this tag. If the URL is a market:// URL, once the user taps the entry in the New tag collected activity, that should open up the Market app. It is possible that the Market app has an Intent filter that will get control first, avoiding the Tags application -- I haven't tried that yet. If the URL is a URL to someplace else (e.g., your APK on your own Web site), then once the user taps the entry in the New tag collected activity, it should behave just as if the user had clicked on a link on a Web page in their device pointing to the same URL. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy Android Training in NYC:http://marakana.com/training/android/ -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: NFC Foreground Dispatch System
On Tue, Jun 14, 2011 at 9:05 AM, Ferit Topcu fokus.fe...@googlemail.com wrote: Perhaps if i'm using a PendingIntent: mPendingIntent = PendingIntent.getActivity(con.getApplicationContext(), 0, new Intent(con.getApplicationContext(), getClass()).addFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP), 0) is it important which class is used? getClass() needs to return an Activity. You do not need getApplicationContext() here, in either location. And if you want onNewIntent() to be invoked, I think you need both FLAG_ACTIVITY_CLEAR_TOP and FLAG_ACTIVITY_SINGLE_TOP, by my read of the docs. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in NYC: http://marakana.com/training/android/ -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Option to unlock the boot loader for Sony Ericsson Android Gingerbread phones now available.
Hi We have seen in some forums that customers unlocking the boot loader on their phones have experienced problems when they accept a FOTA (Firmware upgrade Over The Air) update. The issue has been reproduced and we are working on a solution. For customers that have unlocked the boot loader - do not accept the Firmware upgrade OTA. Regards Carl Johansson Sony Ericsson Developer World On Apr 28, 12:47 pm, Carl carl.johans...@sonyericsson.com wrote: Hi Thanks for your feedback here on Google groups and the Developer blog. At the moment there is no turning back after unlocking thebootloader which is clearly stated in the instructions. However, we are looking into alternatives such as sharing information on how to build your own custom ROM with root access. Best Carl Johansson -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] capture image programmatic
Dear Group members I need a protype project of how capture image programmatic and show it in pc program Hamdy Ghamem Best Regards -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Is it possible to automatically open a browser when an NFC tag is scanned?
On Tue, Jun 14, 2011 at 9:07 AM, Joshua Partogi joshua.part...@gmail.com wrote: Thank you very much for the explanation. We actually want the default NFC application to automatically download our app without them having to tap the entry in the New tag collected. Maybe this is too much to ask, but we just want to make it easy for our user. Maybe this is more like a feature request. The Tags application is more or less the last line of NDEF processing. If there is a more specific Intent filter available, Android will use it. Hence, it is more an issue of all of the Android Web browsers adding NDEF support -- not just the AOSP one, but Firefox Mobile, Opera Mobile, Dolphin HD, Steel, etc. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in NYC: http://marakana.com/training/android/ -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Camera bitmap too small
Instead of getting the raw (but very small) bitmap data, get the Uri of the (full-sized) bitmap instead. The Uri is part of the result of an ACTION_PICK intent, if i'm not mistaken. Then, given the Uri, read the full bitmap data yourself. -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Using jbcrypt in app
Then you're stuck with what you have. Re-hashing can be expensive indeed... -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Loading a Class from an APK file with dependency on other Jars
Hi, I am trying to load a class from apk file and create an instance of that class, but the problem is when the class is depending on other JARS then the loading of class is failing. I was loading the class using DexClassLoader as show below. DexClassLoader dxLoader = new DexClassLoader(dataSourcePath, /sdcard/ tmp, null, getClass().getClassLoader()); handler = dxLoader.loadClass(className); Is there any other way to Load a class from APK which has dependency on Other Jars. Regards, Mahender -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Loading a Class from an APK file with dependency on other Jars
You have to make sure that the class resolves properly. - Don't change the class and load the JAR as well - Change the class (if that's possible) to remove dependencies on that jar, and recompile. -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] when to use aidl?
On 14 June 2011 14:18, Hitendrasinh Gohil hitendra.virtuei...@gmail.comwrote: Hi, I m working on music application which requires widget also on the home screen.the details of the current playing track is displayed at the statusbar notification with icon.so notification would be updated from both player view as well as widget app. for the above scenario should i use aidl or can just extend service and get it work? Just send Intent from your i.e.player code to widgets to make it refresh when needed. You do not need any AIDL for that. Regards, Marcin Orlowski *Tray Agenda http://bit.ly/trayagenda* - keep you daily schedule handy... *Date In Tray* http://bit.ly/dateintraypro - current date at glance... WebnetMobile on *Facebook http://webnetmobile.com/fb/* and *Twitterhttp://webnetmobile.com/twitter/ * -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Activity and Method
Help me, please On 14 июн, 10:33, Andrei entre...@gmail.com wrote: Good afternoon. I have work with Google maps. I want to boot card (when the user presses the call menu)determined by its location. As well I have a database with addresses and there is a button to see the map. I want to be when you click on this button, the user gets it to the address that he chose in the database. I wrote 2 different ways. How do I choose the right method for downloading activity, if the user has come out of the menu one method and another if the user has come from the database? -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: When will android automatically launch a process when force closed?
On Tue, Jun 14, 2011 at 7:00 AM, gunanar...@gmail.com gunanar...@gmail.comwrote: Hi Treking, But that's not the behaviour I see. I do see that the process is getting auto-started when killed. What process are we talking about? - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Device Serial #
I'd like to know too. Maybe this is a hidden property? I've seen code that looks like this to get it: String serial = null; try { Class? c = Class.forName(android.os.SystemProperties); Method get = c.getMethod(get, String.class); serial = (String) get.invoke(c, ro.serialno); } catch (Exception ignored) { } -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Google App engine and android
i tried with the most simple example but still have no link between what i code in eclipse , i tested it locally but no response what could be the problem Peace,, Gaara 2011/6/14 Nikolay Elenkov nikolay.elen...@gmail.com On Tue, Jun 14, 2011 at 7:58 PM, kamilia amellal amellal.kamili...@gmail.com wrote: Thanks for replay, What i want to do is the store data from a form in an android application in my google app engine datastore ,i tried to use Restlet to create web services and Objectify for the persistance but it seems that there is no connection between the two applications. Start with something simple and get it working first. Write a simple servlet that gets data for http parameters and persists using JDO. Once that is working, you can move to Objectify, etc. Consider how complex your application is first though: you might not need it at all. There is nothing special on the Android side either: just post your data to the appengine URL. You can test with curl and similar tools to identify if the problems is in the Android app or the app engine one. -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Working with Activities
Ok it is one of the options i am thinking on.. Thanks! On 13 jun, 21:17, TreKing treking...@gmail.com wrote: On Mon, Jun 13, 2011 at 3:19 AM, Felix Garcia Lainez fgarcialai...@gmail.com wrote: Any ideas or suggestions on how to do it? Some kind of static data holder should work just fine. In addition, if this data does not need to be updated too frequently, you can save it to your cache directory for retrieval if and when your application gets killed. --- -- TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Simulator very slow
Try usin a SD card with 8mb in simulator. It slow cuz you are using a big SD card to emulate it. 2011/6/14 Felix Garcia Lainez fgarcialai...@gmail.com Hi, The case is that my simulator is terrible slow, not only starting, else for instance doing actions as simple as scrolling a listview, or click on a tab. I am working with Eclipse + ADT plugin on a Mac Book Pro very new. I think it is performance problem of the simulator, but may be could be improved this performance modifying some parameters i don't know... Any idea? Thanks! -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en -- Oscar Marques osca...@gmail.com http://www.dunkelheit.com.br @f117usbr https://twitter.com/#%21/f117usbr +55 21 9293-9343 Participe do I Hack'n Rio http://hacknrio.org/ -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Simulator very slow
Hi, The case is that my simulator is terrible slow, not only starting, else for instance doing actions as simple as scrolling a listview, or click on a tab. I am working with Eclipse + ADT plugin on a Mac Book Pro very new. I think it is performance problem of the simulator, but may be could be improved this performance modifying some parameters i don't know... Any idea? Thanks! -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: When will android automatically launch a process when force closed?
Is this a Service as opposed to an activity? Or is there a BroadcastReceiver? A plain Activity needs an Intent to start so if you are positive you have an Activity then you should print out the Intent in the onCreate and see if you find something. On Tue, Jun 14, 2011 at 8:00 AM, gunanar...@gmail.com gunanar...@gmail.comwrote: Hi Treking, But that's not the behaviour I see. I do see that the process is getting auto-started when killed. On Jun 14, 1:33 am, TreKing treking...@gmail.com wrote: On Mon, Jun 13, 2011 at 8:44 AM, gunanar...@gmail.com gunanar...@gmail.comwrote: Can you please let me know under what conditions will android automatically start the process after force close, and if there is a way to instruct the system to not do this for my app? I believe that if an activity is forced to close (crashes), then the system goes to the previous activity in the stack. This is a requirement for my app, to be not auto-restarted when the user kills the app. If the user kills the app (i.e., they go to the app management screen and Force Stop it) then it should not be auto-restarted. --- -- TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Android: app incompatible with Huawei?
I have two apps listed on the marketplace. One of them is a free demo application, and the second is a second key application that unlocks the full version of the first application. I received a report from a user that the demo installs on their Huawei, but the market lists they application as incompatible. I haven't received any other reports of this, and can't find anything useful on Google. The two manifest xmls are below, the demo app first and the key app second. Could this be caused by the check license permission? ?xml version=1.0 encoding=utf-8? manifest xmlns:android=http://schemas.android.com/apk/res/android; package=... android:versionCode=3 android:versionName=1.1 application ... /application uses-sdk android:minSdkVersion=7 / uses-permission android:name=android.permission.WRITE_EXTERNAL_STORAGE / /manifest ?xml version=1.0 encoding=utf-8? manifest xmlns:android=http://schemas.android.com/apk/res/android; package=... android:versionCode=1 android:versionName=1.0 uses-sdk android:minSdkVersion=7/ uses-permission android:name=com.android.vending.CHECK_LICENSE / application ... /application /manifest -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Cannot handle exception in a thread
And when you return from the run method the thread will stop/die by itself. Ideally your main Activity which started this thread off will be the one notifying the user and if needed calling finish... On Tue, Jun 14, 2011 at 7:10 AM, Mark Murphy mmur...@commonsware.comwrote: Use runOnUiThread() around your code in the catch block, to have that stuff be done on the main application thread. On Tue, Jun 14, 2011 at 6:40 AM, Droid rod...@gmail.com wrote: I am spinning a thread to go online and get data. But if phone is in a network hole (no signal) it throws an exception. In the exception I try to call Toast or finish() the activity but both those cause a crash. Here's the error and my code: error is: 06-14 11:32:01.691: ERROR/AndroidRuntime(7389): java.lang.RuntimeException: Can't create handler inside thread that has not called Looper.prepare() here is the code, note the catch clause at the end which is where my problem lies: * private Thread checkUpdate = new Thread() { public void run() { try { URL updateURL = new URL(http://search.twitter.com/ search.json?q=+string_from_speaker); URLConnection conn = updateURL.openConnection(); ... } catch (Exception e) { // none of these exception handlers work becaue they are in wrong thread!! WTF? // NOPE tv1.setText( having trouble getting online); // TODO // NOPE Toast.makeText(IconicAgain.this, having trouble getting online + e, Toast.LENGTH_LONG).show(); } } }; Can I at least stop this thread somehow? Or close the activity somehow? -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in NYC: http://marakana.com/training/android/ -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] [SOLVED] Custom Widget Will Not Fill Parent View
I managed to fill the toolbar_item within the toolbar by adding another LinearLayout inside of the toolbar.xml: ?xml version=1.0 encoding=utf-8? RelativeLayout xmlns:android=http://schemas.android.com/apk/res/android; android:layout_width=match_parent android:layout_height=@dimen/toolbar_height android:layout_centerVertical=true android:orientation=horizontal android:background=@color/separator LinearLayout android:id=@+id/toolbar android:layout_width=match_parent android:layout_height=match_parent / /RelativeLayout So I essentially add the toolbar items within the LinearLayout, and it enables me to match the height and width of the parent. Even though this works, I'm still boggled as to why this way works, and not my original way. The only problem now is that I get a little padding around the items. Any ideas as to why this way works? -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Using .so
Hi All, If I have a linux .so library, how do I call the functions in my Eclipse Android project? Is it the same as external JAR libraries? I have tried that way and it is not working. Is there any other method? Thanks In Advance, Perumal -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: value of timer
ok, can i get the time of the system directly. I have tried getTime(), so i got the error: The method getTime() is undefined for the type SMSReceiver. please did some one know what's rong hir??? On Jun 14, 2:43 pm, souissi haythem haythe...@gmail.com wrote: i don't understand, how can i do this? On Jun 14, 1:55 pm, Mark Murphy mmur...@commonsware.com wrote: On Tue, Jun 14, 2011 at 7:32 AM, souissi haythem haythe...@gmail.com wrote: Hi, I have create a new timer: Timer t=new Timer(); than i lunch my timer: t.schedule(new TimerTask() { public void run() { } },1000); how can i have the value of my timer t You can't. There are no methods for that on Timer or TimerTask. General Java programming questions are probably better directed at StackOverflow (with the 'java' and 'android' tags). -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy Android Training in NYC:http://marakana.com/training/android/ -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Google removed 10 mallware apps - I'm affected. Please help
I really doubt it has anything to do with this malaware report, judging on appbrain page your app/account was removed because you violated Market Content Policies (http://www.android.com/us/developer-content-policy.html): Product descriptions should not be misleading or loaded with keywords in an attempt to manipulate ranking or relevancy in the store’s search results. There were similar take downs ( http://www.google.com/support/forum/p/Android+Market/thread?tid=41d299ff7e1fffc1hl=en ) -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Simulator very slow
Doing this simulator loads faster but it is still very slow doing easy actions like scrolling a list.. On 14 jun, 16:23, Oscar Marques osca...@gmail.com wrote: Try usin a SD card with 8mb in simulator. It slow cuz you are using a big SD card to emulate it. 2011/6/14 Felix Garcia Lainez fgarcialai...@gmail.com Hi, The case is that my simulator is terrible slow, not only starting, else for instance doing actions as simple as scrolling a listview, or click on a tab. I am working with Eclipse + ADT plugin on a Mac Book Pro very new. I think it is performance problem of the simulator, but may be could be improved this performance modifying some parameters i don't know... Any idea? Thanks! -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en -- Oscar Marques osca...@gmail.comhttp://www.dunkelheit.com.br @f117usbr https://twitter.com/#%21/f117usbr +55 21 9293-9343 Participe do I Hack'n Rio http://hacknrio.org/ -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: NFC Secure Element
Ok thanks for advices Michael, I will try to modify the mifare area of the Nexus in order to reproduce my badge. Best regards Marcus On Jun 11, 11:33 am, Michael Roland mi.rol...@gmail.com wrote: Hallo Marcus, At time, I'm able to put my devices into emulation mode. I'm getting ATR and UID throuth my OMNIKEY CardMan 5321 : - ATR: 3B 8A 80 01 00 31 C1 73 C8 40 00 00 90 00 90 Correct, this is the ATR generated for the SmartMX. - The ID of the emulated card is constant even if i start a new power cycle . Correct, the UID of the SmartMX is static (by default). My question is how can I found my UID on the NXP chip ? What do you mean by find? - Do you want to read the UID value from Android? This can be done through some hidden/internalNFCAPIs. Can you give me more information about the 0x key? I don't understant how to use it ... This is the authentication key to the MIFARE Classic area of the SmartMX. You can use this key to read write data to the 4K MIFARE area on the SmartMX. You would use this key with your reader's MIFARE access methods (either reader specific or compliant to the PC/SC standard for access to contactless memory cards). With your Omnikey reader it will be quite difficult to use the MIFARE area as it automatically activates the SmartMX up to its highest protocol level (APDU-based access to the JavaCard). So the MIFARE protocol will not work on this activation level. (As far as I remember you might be able to disable the automatic protocol activation with some registry tweaks.) br, Michael -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Simulator very slow
3.0 working ( 8 mib not support) (9 mib is minimum) with minimum working good but 3.1 is so much delay On Tue, Jun 14, 2011 at 9:21 PM, Felix Garcia Lainez fgarcialai...@gmail.com wrote: Doing this simulator loads faster but it is still very slow doing easy actions like scrolling a list.. On 14 jun, 16:23, Oscar Marques osca...@gmail.com wrote: Try usin a SD card with 8mb in simulator. It slow cuz you are using a big SD card to emulate it. 2011/6/14 Felix Garcia Lainez fgarcialai...@gmail.com Hi, The case is that my simulator is terrible slow, not only starting, else for instance doing actions as simple as scrolling a listview, or click on a tab. I am working with Eclipse + ADT plugin on a Mac Book Pro very new. I think it is performance problem of the simulator, but may be could be improved this performance modifying some parameters i don't know... Any idea? Thanks! -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en -- Oscar Marques osca...@gmail.comhttp://www.dunkelheit.com.br @f117usbr https://twitter.com/#%21/f117usbr +55 21 9293-9343 Participe do I Hack'n Rio http://hacknrio.org/ -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Using .so
Learn how to use the NDK here: http://developer.android.com/sdk/ndk/index.html -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] problems with fopen in native code
Hi All, I am experiencing a strange problem of using fopen in native code. I have a few files in /mnt/sdcard/Download and all of them have -rw privileges. However, when I call my native function which in turns uses fopen to open them, I got null returns for some files, but valid returns for others. Why is that? Any insights? Thanks. Cheers, Frank -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: problems with fopen in native code
Frank, There's a android-ndk group that you may want to 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] problems with fopen in native code
On Wed, Jun 15, 2011 at 1:42 AM, Frank frank.android@gmail.com wrote: Hi All, I am experiencing a strange problem of using fopen in native code. I have a few files in /mnt/sdcard/Download and all of them have -rw privileges. However, when I call my native function which in turns uses fopen to open them, I got null returns for some files, but valid returns for others. Why is that? Any insights? Thanks. The SD card uses FAT, so permissions shouldn't really matter. Check errno in your native code to see the actual error. What is the difference between the files that are OK and the ones that are not? -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Will an application's SQLite database be cleared when an application is uninstalled?
I am making a game and I want to be able to save the user's progress so even if they uninstall and reinstall they will be at the same point in the game. Thanks! -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Display.getRotation() incompatible with accelerometer data
I exchanged emails with producer of this tablet and service person acknowledged that's a bug in its firmware. They are not planning any fixes/updates. Based on that I claimed my money back in store where I originally bought this device. On Thu, Jun 9, 2011 at 10:45 AM, Marcin Mikosik marcin.miko...@gmail.comwrote: Yes, it has android market preinstalled. It also has google maps, youtube, gmail apps preinstalled. The package box it was sold in has android logo on every side. Concerning GPS I misread Android 2.2 Compatibility Definition. It says ... each compatible device *should* provide GPS receiver Which means that it is recommended not required to have GPS. I accidentally skimmed through Android 2.2 Compatibility Definition today and found out that each compatible device should provide GPS receiver - this device does not have one. I installed https://market.android.com/details?id=com.chartcross.gpstestfeature=search_result that works correctly on my Nexus-One but fails on go-clever s73 tab with force-close, message from logcat says: Caused by: java.lang.IllegalArgumentException: provider=gps E/AndroidRuntime( 2657): at android.os.Parcel.readException(Parcel.java:1251) .. I guess we are reaching conclusion that this device is not android compatible device which brings a few important questions: - How an ordinary user can make sure that a device she/he is going to buy is actually 'android compatible device'? Is it some kind of android logo on package box or some specific textual declaration from manufacturer? So far I thought that presence of android market is enough as one of its prerequisites is to pass CCD compatibility tests. - As this device contains android market but fails to implement android API it will inevitably cause many of its users to rate low many applications that won't work correctly on such devices. How is google protecting developers/users from such situations? thanks marcin On Wed, Jun 8, 2011 at 9:36 AM, Dianne Hackborn hack...@android.comwrote: Are you sure this is an actual Android compatible device? Does it have Market on it (and thus compatible per the CDD)? If not, there is no telling what kinds of incompatibilities there are. On Tue, Jun 7, 2011 at 10:44 PM, Marcin Mikosik marcin.miko...@gmail.com wrote: * GoClever tab s73 * http://www.goclever.com/en/tablet/360-GOCLEVER-TAB-S73-.html Model number: MID_Serails Android version 2.2 Kernel version: 2.6.32.9 MID Serials #1518 Wed Apr 6 16:09:52 CST 2011 Build Number: MID Serilas 2.2 FRF91 20110402.171535 On Wed, Jun 8, 2011 at 5:10 AM, Dianne Hackborn hack...@android.comwrote: Which device is this? On Tue, Jun 7, 2011 at 1:32 AM, Marcin Mikosik marcin.miko...@gmail.com wrote: Hi, I'm experimenting with newly bought android tablet and found out that android API it provides does not comply with android API documentation/specification. Specifically Display.getRotation() and Accelerometer readings returns values that contradicts each other. For example: running application that has android:screenOrientation=landscape and quering Display.getRotation() returns Surface.ROTATION_0 which means this tablet is landscape-default device as described in http://android-developers.blogspot.com/2010/09/one-screen-turn-deserves-another.html Still, when running the same application and holding device in landscape orientation in front of me, I get accelerometer reading that says something around: X=10, Y=0 which is clearly wrong because accelerometer coordinate system should be aligned with device default orientation (landscape in this case). According to blogpost mentioned above - when I keep device in its default-orientation (which is landscape in this case) I should get accelerometer reading X=0, Y=10. Can anybody suggest what's wrong here? Either my device is broken or its software has a bug or I misunderstood the API semantics (?) thanks Marcin -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- 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, visit this group at
[android-developers] Re: Will an application's SQLite database be cleared when an application is uninstalled?
Yes, you have to plan for this if you want to persist across installations. -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Will an application's SQLite database be cleared when an application is uninstalled?
On Wed, Jun 15, 2011 at 1:43 AM, Greg Siano gregmsi...@gmail.com wrote: I am making a game and I want to be able to save the user's progress so even if they uninstall and reinstall they will be at the same point in the game. Look at Android's data backup (post 2.2 only) or create a similar service for your app if that doesn't fit your needs. http://developer.android.com/guide/topics/data/backup.html -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: problems with fopen in native code
Thanks, Chris. I will definitely do that. On Jun 14, 9:49 am, Chris crehb...@gmail.com wrote: Frank, There's a android-ndk group that you may want to 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Accelerometer problem. Compass not rotating.
Hi all, According to the book I am learning from the following code should create a sad looking, but working, compass. All I have managed to get is the sad lookout of it. The compass draws correctly but doesn't rotate. I am testing it on a real device with a accelerometer. The rest of the files in the project have nothing to do with the rotation. Everything happens in this class. Could anyone point me to my mistake? Any help would be appreciated. package com.raghavsood.compass; import android.content.Context; import android.graphics.*; import android.view.*; import android.util.AttributeSet; import android.content.res.Resources; public class CompassView extends View { private Paint markerPaint; private Paint textPaint; private Paint circlePaint; private String northString; private String eastString; private String southString; private String westString; private int textHeight; private float bearing; public void setBearing(float _bearing) { bearing = _bearing; } public float getBearing() { return bearing; } public CompassView(Context context) { super(context); initCompassView(); } public CompassView(Context context, AttributeSet attrs) { super(context, attrs); initCompassView(); } public CompassView(Context context, AttributeSet ats, int defaultStyle) { super(context, ats, defaultStyle); initCompassView(); } protected void initCompassView() { setFocusable(true); Resources r = this.getResources(); circlePaint = new Paint(Paint.ANTI_ALIAS_FLAG); circlePaint.setColor(r.getColor(R.color.background_color)); circlePaint.setStrokeWidth(1); circlePaint.setStyle(Paint.Style.FILL_AND_STROKE); northString = r.getString(R.string.cardinal_north); eastString = r.getString(R.string.cardinal_east); southString = r.getString(R.string.cardinal_south); westString = r.getString(R.string.cardinal_west); textPaint = new Paint(Paint.ANTI_ALIAS_FLAG); textPaint.setColor(r.getColor(R.color.text_color)); textHeight = (int)textPaint.measureText(yY); markerPaint = new Paint(Paint.ANTI_ALIAS_FLAG); markerPaint.setColor(r.getColor(R.color.marker_color)); } @Override protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { // The compass is a circle that fills as much space as possible. // Set the measured dimensions by figuring out the shortest boundary, // height or width. int measuredWidth = measure(widthMeasureSpec); int measuredHeight = measure(heightMeasureSpec); int d = Math.min(measuredWidth, measuredHeight); setMeasuredDimension(d, d); } private int measure(int measureSpec) { int result = 0; // Decode the measurement specifications. int specMode = MeasureSpec.getMode(measureSpec); int specSize = MeasureSpec.getSize(measureSpec); if (specMode == MeasureSpec.UNSPECIFIED) { // Return a default size of 200 if no bounds are specified. result = 200; } else { // As you want to fill the available space // always return the full available bounds. result = specSize; } return result; } @Override protected void onDraw(Canvas canvas) { int px = getMeasuredWidth() / 2; int py = getMeasuredHeight() /2 ; int radius = Math.min(px, py); // Draw the background canvas.drawCircle(px, py, radius, circlePaint); // Rotate our perspective so that the ‘top’ is // facing the current bearing. canvas.save(); canvas.rotate(-bearing, px, py); int textWidth = (int)textPaint.measureText(W); int cardinalX = px-textWidth/2; int cardinalY = py-radius+textHeight; // Draw the marker every 15 degrees and text every 45. for (int i = 0; i 24; i++) { // Draw a marker. canvas.drawLine(px, py-radius, px, py-radius+10, markerPaint); canvas.save(); canvas.translate(0, textHeight); // Draw the cardinal points if (i % 6 == 0) { String dirString = ; switch (i) { case(0) : { dirString = northString; int arrowY = 2*textHeight; canvas.drawLine(px, arrowY, px-5, 3*textHeight, markerPaint); canvas.drawLine(px, arrowY, px+5, 3*textHeight, markerPaint); break; } case(6) : dirString = eastString; break; case(12) : dirString = southString; break; case(18) : dirString = westString; break; } canvas.drawText(dirString, cardinalX, cardinalY, textPaint); } else if (i % 3 == 0) { // Draw the text every alternate 45deg String angle = String.valueOf(i*15); float angleTextWidth = textPaint.measureText(angle); int angleTextX =
[android-developers] SQLite problem
I have written a class 'clsDB', please see source below. I'm testing it in the emulator and the first time around it runs fine without error, then on the second run eclipse jumps into the Class File Editor for SQLiteCursor.class. The application continues to run without exception or error, but eclipse suggests everything isn't quite right. I have try / catch clauses everywhere I interact with the database and none seem to capture the fault. Looking at the Debug window, I can see an IllegalStateException thrown by SQLiteCursor.finalize() line:603, then NativeStart.run() line: not available [native method]. This class encapsulates all my database activity. /** * File: * clsDB.java * * Notes: * Contains the class clsDB. This class manages the database SQLite interface * * Methods: *clsDB- Constructor *getImgResource- Returns a Image resource from database *getImgResources- Returns an array containing all image resource id's *insertResourceId- Insert resource identifier into database *onCreate- Called when database is created *onUpdate- Called when database is updated *** * History: * 12/06/2011 SP, Created class */ package uk.co.cantley.avasig; import android.content.ContentValues; import android.content.Context; import android.database.Cursor; import android.database.sqlite.SQLiteDatabase; import android.database.sqlite.SQLiteOpenHelper; import android.util.Log; public class clsDB extends SQLiteOpenHelper { private static final String TAG = clsDB; private static final intDB_VERSION = 1; private static final String DB_NAME = avasig; private static final String TBL_IMG = tblImgs; // Image fields private static final String IMG_ID = imgID; private static final String IMG_RESID = resID; /** * Constructor * @param context, the application context */ public clsDB(Context context) { super( context, DB_NAME, null, DB_VERSION ); } /** * Method: * getImgResource * * Parameters: * intResId, the image resource identifier * * Returns: * The record identifier */ public int getImgResource( int intResId ) { try{ SQLiteDatabase db = getWritableDatabase(); Cursor cursor = db.rawQuery( SELECT + * + FROM + TBL_IMG + WHERE + IMG_RESID + =' + intResId + ', new String[] {} ); if ( cursor != null ) { if ( cursor.moveToFirst() == true ) { int intColIdx = cursor.getColumnIndex( IMG_RESID ); return cursor.getInt( intColIdx ); } } } catch( Exception ex ) { Log.e(TAG, ex.getMessage() ); } return -1; } /** * Method: *getImgResources * * Parameters: * none * * Returns: * An array of image resource identifiers */ public int[] getImgResources() { try{ SQLiteDatabase db = getWritableDatabase(); Cursor cursor = db.rawQuery( SELECT + * + FROM + TBL_IMG, new String[] {} ); if ( cursor != null ) { int intCount = cursor.getCount(); if ( intCount 0 ) { int[] aryResIds = new int[intCount]; if( cursor.moveToFirst() == true ) { int intColIdx = cursor.getColumnIndex( IMG_RESID ); int i = 0; do{ aryResIds[i++] = cursor.getInt( intColIdx ); } while( cursor.moveToNext() == true ); } return aryResIds; } } } catch( Exception ex ) { Log.e(TAG, ex.getMessage() ); } return null; } /** * Method: * insertResourceId * * Parameters: * intResId, the image resource identifier * * Returns: * The record identifier */ public long insertResourceId( int intResId ) { try{ int intTmp = getImgResource( intResId ); if ( intTmp 0 ) { // This record already exists, abort! return intResId; } SQLiteDatabase db = getWritableDatabase(); ContentValues cv = new ContentValues(); cv.put(IMG_RESID, intResId); return db.insertOrThrow(TBL_IMG, IMG_RESID, cv); } catch( Exception ex ) { Log.e(TAG, ex.getMessage() ); } return -1; } /** * Method: * onCreate * * Parameters: * db, the database * * Returns: * none */ @Override
[android-developers] Re: problems with fopen in native code
Thanks, Chris. I've done that. On Jun 14, 9:49 am, Chris crehb...@gmail.com wrote: Frank, There's a android-ndk group that you may want to 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Reading from CERT.RSA from META-INF directory
Is it possible to read files in the META-INF directory such as the CERT.RSA file? I have tried the following: AssetFileDescriptor afd = am.openNonAssetFd(META-INF/CERT.RSA); but I get the exception: java.io.FileNotFoundException: This file can not be opened as a file descriptor; it is probably compressed If that file is really compressed, is there a way to still open it for read access? Thanks, Nate -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Using jbcrypt in app
Yeah, this unfortunately seems to be the case. I'm still curious as to why its so much slower running in the Davlik VM as compared to a standard Java VM, however. Is it simply less available memory causing the issue? On Jun 14, 9:19 am, Streets Of Boston flyingdutc...@gmail.com wrote: Then you're stuck with what you have. Re-hashing can be expensive indeed... -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Facebook Like SDK For Gmail and OpenId
Hi All, I wish to get users information from the Email. ie user should login to gmail via my application in android and onces he sign up I should be able to get the Users First Name, Last Name etc same as we can do using Android SDK where onces user approves my application we can update status, upload photo etc. Thanks, nilAndroid -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Using jbcrypt in app
What is the standard Java VM - your desktop computer? If so, you really can't compare processor performance clock for clock. You might want to try using the crypto stuff built into Android. -- Kostya 2011/6/14 Simon simon.wilkin...@gmail.com Yeah, this unfortunately seems to be the case. I'm still curious as to why its so much slower running in the Davlik VM as compared to a standard Java VM, however. Is it simply less available memory causing the issue? On Jun 14, 9:19 am, Streets Of Boston flyingdutc...@gmail.com wrote: Then you're stuck with what you have. Re-hashing can be expensive indeed... -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] SQLite problem
When you see Eclipse stuck like this, just press Resume a few times, to let the application crash (or recover) completely. Then check the logcat for a message and a stack trace. In this particular case, the code in getImgResource leaves the cursor open, so there is a warning when it's finalized. This is the pattern I use: cursor = ... query if (cursor != null) { get column indices ... while (cursor.moveToNext()) { ... get data using the column indices . } cursor.close(); } This works because a cursor's initial position is -1 (before the first record). -- Kostya 2011/6/14 Simon Platten simonaplat...@googlemail.com I have written a class 'clsDB', please see source below. I'm testing it in the emulator and the first time around it runs fine without error, then on the second run eclipse jumps into the Class File Editor for SQLiteCursor.class. The application continues to run without exception or error, but eclipse suggests everything isn't quite right. I have try / catch clauses everywhere I interact with the database and none seem to capture the fault. Looking at the Debug window, I can see an IllegalStateException thrown by SQLiteCursor.finalize() line:603, then NativeStart.run() line: not available [native method]. This class encapsulates all my database activity. /** * File: * clsDB.java * * Notes: * Contains the class clsDB. This class manages the database SQLite interface * * Methods: *clsDB- Constructor *getImgResource- Returns a Image resource from database *getImgResources- Returns an array containing all image resource id's *insertResourceId- Insert resource identifier into database *onCreate- Called when database is created *onUpdate- Called when database is updated *** * History: * 12/06/2011 SP, Created class */ package uk.co.cantley.avasig; import android.content.ContentValues; import android.content.Context; import android.database.Cursor; import android.database.sqlite.SQLiteDatabase; import android.database.sqlite.SQLiteOpenHelper; import android.util.Log; public class clsDB extends SQLiteOpenHelper { private static final String TAG = clsDB; private static final intDB_VERSION = 1; private static final String DB_NAME = avasig; private static final String TBL_IMG = tblImgs; // Image fields private static final String IMG_ID = imgID; private static final String IMG_RESID = resID; /** * Constructor * @param context, the application context */ public clsDB(Context context) { super( context, DB_NAME, null, DB_VERSION ); } /** * Method: * getImgResource * * Parameters: * intResId, the image resource identifier * * Returns: * The record identifier */ public int getImgResource( int intResId ) { try{ SQLiteDatabase db = getWritableDatabase(); Cursor cursor = db.rawQuery( SELECT + * + FROM + TBL_IMG + WHERE + IMG_RESID + =' + intResId + ', new String[] {} ); if ( cursor != null ) { if ( cursor.moveToFirst() == true ) { int intColIdx = cursor.getColumnIndex( IMG_RESID ); return cursor.getInt( intColIdx ); } } } catch( Exception ex ) { Log.e(TAG, ex.getMessage() ); } return -1; } /** * Method: *getImgResources * * Parameters: * none * * Returns: * An array of image resource identifiers */ public int[] getImgResources() { try{ SQLiteDatabase db = getWritableDatabase(); Cursor cursor = db.rawQuery( SELECT + * + FROM + TBL_IMG, new String[] {} ); if ( cursor != null ) { int intCount = cursor.getCount(); if ( intCount 0 ) { int[] aryResIds = new int[intCount]; if( cursor.moveToFirst() == true ) { int intColIdx = cursor.getColumnIndex( IMG_RESID ); int i = 0; do{ aryResIds[i++] = cursor.getInt( intColIdx ); } while( cursor.moveToNext() == true ); } return aryResIds; } } } catch( Exception ex ) { Log.e(TAG, ex.getMessage() ); } return null; } /** * Method: *
Re: [android-developers] SQLite problem
Thank you, adding cursor.close(); fixed the problem. On Tue, Jun 14, 2011 at 8:06 PM, Kostya Vasilyev kmans...@gmail.com wrote: When you see Eclipse stuck like this, just press Resume a few times, to let the application crash (or recover) completely. Then check the logcat for a message and a stack trace. In this particular case, the code in getImgResource leaves the cursor open, so there is a warning when it's finalized. This is the pattern I use: cursor = ... query if (cursor != null) { get column indices ... while (cursor.moveToNext()) { ... get data using the column indices . } cursor.close(); } This works because a cursor's initial position is -1 (before the first record). -- Kostya 2011/6/14 Simon Platten simonaplat...@googlemail.com I have written a class 'clsDB', please see source below. I'm testing it in the emulator and the first time around it runs fine without error, then on the second run eclipse jumps into the Class File Editor for SQLiteCursor.class. The application continues to run without exception or error, but eclipse suggests everything isn't quite right. I have try / catch clauses everywhere I interact with the database and none seem to capture the fault. Looking at the Debug window, I can see an IllegalStateException thrown by SQLiteCursor.finalize() line:603, then NativeStart.run() line: not available [native method]. This class encapsulates all my database activity. /** * File: * clsDB.java * * Notes: * Contains the class clsDB. This class manages the database SQLite interface * * Methods: *clsDB- Constructor *getImgResource- Returns a Image resource from database *getImgResources- Returns an array containing all image resource id's *insertResourceId- Insert resource identifier into database *onCreate- Called when database is created *onUpdate- Called when database is updated *** * History: * 12/06/2011 SP, Created class */ package uk.co.cantley.avasig; import android.content.ContentValues; import android.content.Context; import android.database.Cursor; import android.database.sqlite.SQLiteDatabase; import android.database.sqlite.SQLiteOpenHelper; import android.util.Log; public class clsDB extends SQLiteOpenHelper { private static final String TAG = clsDB; private static final intDB_VERSION = 1; private static final String DB_NAME = avasig; private static final String TBL_IMG = tblImgs; // Image fields private static final String IMG_ID = imgID; private static final String IMG_RESID = resID; /** * Constructor * @param context, the application context */ public clsDB(Context context) { super( context, DB_NAME, null, DB_VERSION ); } /** * Method: * getImgResource * * Parameters: * intResId, the image resource identifier * * Returns: * The record identifier */ public int getImgResource( int intResId ) { try{ SQLiteDatabase db = getWritableDatabase(); Cursor cursor = db.rawQuery( SELECT + * + FROM + TBL_IMG + WHERE + IMG_RESID + =' + intResId + ', new String[] {} ); if ( cursor != null ) { if ( cursor.moveToFirst() == true ) { int intColIdx = cursor.getColumnIndex( IMG_RESID ); return cursor.getInt( intColIdx ); } } } catch( Exception ex ) { Log.e(TAG, ex.getMessage() ); } return -1; } /** * Method: *getImgResources * * Parameters: * none * * Returns: * An array of image resource identifiers */ public int[] getImgResources() { try{ SQLiteDatabase db = getWritableDatabase(); Cursor cursor = db.rawQuery( SELECT + * + FROM + TBL_IMG, new String[] {} ); if ( cursor != null ) { int intCount = cursor.getCount(); if ( intCount 0 ) { int[] aryResIds = new int[intCount]; if( cursor.moveToFirst() == true ) { int intColIdx = cursor.getColumnIndex( IMG_RESID ); int i = 0; do{ aryResIds[i++] = cursor.getInt( intColIdx ); } while( cursor.moveToNext() == true ); } return aryResIds; } }
[android-developers] Cancelling and Alarm
When I update an alarm I call the alarm manager cancel method before setting it up...However this doesn't always cancel the old alarm and sometimes I seem to get more than one alarm scheduled at different rates. In my activity I let the user change the alarm time interval, this is then applied to the alarm manager, but if I set one alarm running at 1000 ms, then cancel it and set again to be 6ms, the previous alarm still fires, I am using the application context to create the PendingIntent: PendingIntent sender = PendingIntent.getBroadcast(context, 12345, intent, PendingIntent.FLAG_UPDATE_CURRENT); I believe from examples I have seen that the 2nd and 4th parameters aren't actually used. -- Regards, Sy -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Cancelling and Alarm
The parameters are definitely used. The second one uniquely identifies the pending intent. The fourth one controls what happens when there is / is not an existing pending intent just like the one being created. Canceling the old pending intent before setting a new alarm is not necessary, the docs are quite clear about this. -- Kostya 2011/6/14 Simon Platten simonaplat...@googlemail.com When I update an alarm I call the alarm manager cancel method before setting it up...However this doesn't always cancel the old alarm and sometimes I seem to get more than one alarm scheduled at different rates. In my activity I let the user change the alarm time interval, this is then applied to the alarm manager, but if I set one alarm running at 1000 ms, then cancel it and set again to be 6ms, the previous alarm still fires, I am using the application context to create the PendingIntent: PendingIntent sender = PendingIntent.getBroadcast(context, 12345, intent, PendingIntent.FLAG_UPDATE_CURRENT); I believe from examples I have seen that the 2nd and 4th parameters aren't actually used. -- Regards, Sy -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en