[android-developers] Re: How to get current Activity?
On Tuesday, August 9, 2011 1:20:11 AM UTC-4, Sourav Howlader wrote: Context context = pass_some_context; ActivityManager activityManager = (ActivityManager) context.getSystemService(Activity.ACTIVITY_SERVICE); String packageName = activityManager.getRunningTasks(1).get(0).topActivity.getPackageName(); String className = activityManager.getRunningTasks(1).get(0).topActivity.getClassName(); This is (or at least was) not reliably accurate. -- 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: how to disable complete action using dialog, so my home application will be the only home application that avalable to the user
Hi Richard, Thank you very much. Keren On Tue, Aug 9, 2011 at 3:44 AM, rich friedel rich.frie...@gmail.com wrote: You cannot do this, as stated, using the current Android SDK. You might want to try https://groups.google.com/forum/#!forum/android-internals or another group where they deal with customizing the core. -- 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 -- http://www.upontek.com/ *Keren Pastov* *Android development team* *phone: 0544695383* *skype name: keren_ppastov* -- 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 Library and Resources
Pass your drawable ids from the calling Activity in the app to the function in the library. On Jul 7, 3:56 pm, Guillaume guillaume.dele...@gmail.com wrote: On Jul 6, 5:36 pm, David Olsson zooklu...@gmail.com wrote: Clean, refresh more times and test by creating a new copy of the workspace. I have run into this problem several times, TheKing's solution works most of the time but the latest time this happened to me I had to create a new project and then it worked like a charm. I already have done all of that. But I found out that it's an incompatibility problem between the resources. Using the library from another application works. Hard coding library's xml values resolve the problem. But I don't have any idea of why it's incompatible. Thanks for your help. Guillaume Regards, David On Wed, Jul 6, 2011 at 4:47 PM, Guillaume guillaume.dele...@gmail.com wrote: Thanks but I wouldn't have post here if it had worked. Other idea ? Why are the R.java merged into the same file ? On Jul 5, 7:23 pm, TreKing treking...@gmail.com wrote: On Tue, Jul 5, 2011 at 7:55 AM, Guillaume guillaume.dele...@gmail.comwrote: Please offer any ideas you might have to help! Clean, refresh, and rebuild both projects ... several times. --- -- 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
Re: [android-developers] Re: Intents
No. That is telling you about the new Intent. If you want to remember it, you will need to remember it yourself. On Mon, Aug 8, 2011 at 8:43 PM, kypriakos demet...@ece.neu.edu wrote: Exactly! I am getting nulls when accessing the extras that I set from the launching intent: @Override protected void onNewIntent(Intent intent){ // super.onNewIntent(intent); setIntent(intent); Log.v(NotifServImpl,# = +intent.getExtras().getString(from)); Bundle extras = intent.getExtras(); ... I was under the impression that setting the intent in this method would guarantee that i am working with the newest intent. Is this the right approach? On Aug 8, 2:56 pm, Mark Murphy mmur...@commonsware.com wrote: On Mon, Aug 8, 2011 at 2:27 PM, kypriakos demet...@ece.neu.edu wrote: Never mind - most likely missing the Override allows for anything ;) Bingo. @Override has no effect at runtime, but it's a compile-time sanity check. Rather useful, particularly for classes with lots of generics (e.g., AsyncTask). -- Mark Murphy (a Commons Guy)http://commonsware.com| http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy Android 3.1 Programming Books:http://commonsware.com/books -- 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 http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Help Me!!!!!
dude there are lots of videos out on youtube and other websites also just google it books from appress are good both beginning and pro android development download them from torrent On Sat, Aug 6, 2011 at 8:52 PM, RAJU V kathiriraj...@gmail.com wrote: Hi Am RAJU Am New to this android development so please help me by giving some android e-books to develop the apps in beginner manner please am begging you to send some e-books to develop android application ~~RAJU~~ ~~www.itdoall.co.cc~~ -- 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 -- Regards Abhishek Talwar 9953395712 -- 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: Tab and TabsHost sharing data issue
Someone has any ideas? I understood there is a way all tabs under 1 activity? like view? how to do it? On 8 אוגוסט, 06:55, yoav bbb yoav...@gmail.com wrote: Hello I have an application with 1 tabHast that runs 3 tab activities inside it. In 1 tab there are EditText boxes that user fill. In the TabHost there is a button - when user presses it - I have to get the text the user entered in the EditText boxes - - even if it is not the current tab. Any ideas? -- 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] relative layout
hi friends, i want to add spinner1,btn1,btn2,spinner2 in single row dynamically. likewise i have to add 'n' no of rows. i am using Relative Layout. the problem is when i am adding these controls dynamically the height of btn and spinner will differ. the two btns slightly moved up. 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: How to change device file permission from Java app.
Hello Mark, In java.io, the File API is supposed to provide APIs like setExecutable (boolean) setWritable (boolean) setReadable (boolean) However, in the android.jar which includes all the needed classes, the java.io package doesn't provide the above APIs in the File class. Has this been done for security reasons ? Which means if an application downloads some bytes and writes to a file created through the below code File destination = new File (/sdcard/myfile.txt); there is no way to change permissions of 'myfile.txt' to 777 ? There is a 'Runtime' facility provided through java.lang, but I'm skeptical whether to use this or not. Runtime would only work on rooted devices right? eg., http://stackoverflow.com/questions/6290307/android-runtime-command-problem -- 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: advertising your own apps
Otherwise you can team up with somebody, and share house ads. Actual admod house ads allows you to allocate certain amount of impressions per time slot - I share 2000 impressions per month per slot with somebody - Some 500 downloads so far. On Aug 8, 2:27 pm, elix emr...@gmail.com wrote: In fact my other apps have less traffic but I will give it a try. Thanks for reminding them. On Aug 8, 3:09 pm, Nikolay Elenkov nikolay.elen...@gmail.com wrote: On Mon, Aug 8, 2011 at 8:55 PM, emre önal emr...@gmail.com wrote: Hi, For one of my apps I want to see how advertising will affect the download numbers. I was going to try admob but it asks for 50$ at least. For startup I was looking for somethings cheaper, first I want to try and see the results. If you have more than one app, you can use hose ads with AdMob. You can set up your other apps to display ads for the one you want to advertise. It's free, and you can set targets: how many house ads impressions for a specific period, etc. It works better if your other apps already have a lot of users, and those are potential 'customers' for the new app, of course. -- 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: New email received intent
If intent is not possible, is it possible for my application to check (on regular intervals) if there is new message in the mailbox (on default client or gmail client)? On Aug 9, 2:10 am, Mark Murphy mmur...@commonsware.com wrote: On Sat, Aug 6, 2011 at 9:42 PM, Amit amitg.in...@gmail.com wrote: I am new to android development and looking for a way to receive event when a new email is received. This is not possible. In some post i understood that there is no email client in SDK so there is no intent. Correct. But i see there is a email client in the vitual device installed by default, Does that client (or any other client) publishes this event? No. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy Android 3.1 Programming Books:http://commonsware.com/books -- 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 best to access string resources from AsyncTask.doInBackground
I don't know the performance hit but you can access your resource like this: String s = TheParentActivity.this.getString( R.string.your_string_resource ); -- 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 put a button into a surface view
Ok, I tried that but then I didn't know how to get the surfaceholder where to start the preview of my camera because I'm extending from surfaceview. Plz, help, I'm trying it since long time ago. Thks in advice :) On 9 ago, 01:02, Mark Murphy mmur...@commonsware.com wrote: You cannot put a button into a surfaceview. You can put the SurfaceView and the Button in a RelativeLayout or other type of container. On Sat, Aug 6, 2011 at 1:44 PM, David Sanchez de la Torre dsanchezdelato...@gmail.com wrote: Hi there, I'm trying to put a button into a surfaceview that I use for preview the camera. I prefer to use a xml file but when I try to get it through the R. etc it's impossible. Later I'll try to put an image into the surfaceview. To sum up: I need a frame in Android to preview the camera and some buttons at the bottom. Part of my code: class Preview extends SurfaceView implements SurfaceHolder.Callback { public SurfaceHolder mHolder; public Camera mCamera; Preview(Context context) { super(context); Log.d(Patata, Entré en Preview); // Install a SurfaceHolder.Callback so we get notified when the // underlying surface is created and destroyed. mHolder = getHolder(); mHolder.addCallback(this); mHolder.setType(SurfaceHolder.SURFACE_TYPE_PUSH_BUFFERS); } public void surfaceCreated(SurfaceHolder holder) { // The Surface has been created, acquire the camera and tell it where // to draw. Log.d(, Se creó el surface (saltó el gatillo)); mCamera = Camera.open(); try { mCamera.setPreviewDisplay(holder); } catch (IOException exception) { mCamera.release(); mCamera = null; // TODO: add more exception handling logic here Log.d(, Excepción + exception.toString()); } -- 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 3.1 Programming Books:http://commonsware.com/books -- 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: Make app fullscreen
Hello again. I guess that i did not make myself clear here so iam now adding a image so that you could se what iam talking about. This image is a screencapture of the app, and you could se that its not using full size. http://www.kramericasoftware.se/screenproblem.png Hope this helps you to help me :) On 8 Aug, 10:18, Kristoffer kris.isak.v...@gmail.com wrote: Hello. Iam new to SDK and Eclipse (i have just finished my first app in app inventor) But i feel that i wanna move on to SDK and eclipse. Iam going to rebuild my app that i build in app inventor, but i still have the same problem now with SDK and Eclipse that i had in app inventor. If i run the app on a big screen mobile (like HTC sensation) then the app will not use the whole screen, it leave like 2,5 cm in bottom just black. If i run the app on smaller screen (HTC Wildfire, Hero, Desire) then it uses the whole screen. I guess i have to enable something to make it fill bigger screens. Someone that have the time to help me? -- 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] Convert map cordinates to the location name
Hi All i am developing an app related to location based services in android in my app I get a cordiante value (Longitude, lattitude) as some double numbers such as -132.535676464655 and 38.5552003102 i want to get the name of the location that the coordinates represents Any one help me? Thanks -- -- ωιтн яєgαя∂ѕ Ratheesh * *... -- 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 place two buttons side by side at the bottom of the android emulator to get the appropriate shape displayed by clicking on the appropriate buttons
Hi Ratheesh Thanks a lot for your help. I got it. Thank you once again Thanks and regards, Divya On Aug 9, 9:28 am, Ratheesh Valamchuzhy android...@gmail.com wrote: Hi Divya Plse copy the pgm Create an android program in 2.2 named HelloUIActivity the package name is lello.tab and the activity nae is HelloUIActivity copy the file and paste package lello.tab; import android.app.Activity; import android.os.Bundle; import android.util.Log; import android.view.View; import android.view.View.OnClickListener; import android.widget.Button; import android.widget.ImageView; import android.widget.Toast; public class HelloUIActivity extends Activity implements OnClickListener{ /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); Button sSquare =(Button) findViewById(R.id.getCircle); sSquare.setOnClickListener(this); Button sCircle =(Button) findViewById(R.id.getSquare); sCircle.setOnClickListener(this); } public void onClick(View v) { switch (v.getId()) { case R.id.getSquare: ImageView imageView = (ImageView) findViewById(R.id.getSquare1); imageView.setImageResource(R.drawable.icon); break; case R.id.getCircle: ImageView imageView1 = (ImageView) findViewById(R.id.getCircle1); imageView1.setImageResource(R.drawable.icon); break; } } } The main.xml is ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/android; android:orientation=vertical android:layout_width=fill_parent android:layout_height=fill_parent TextView android:layout_width=fill_parent android:layout_height=wrap_content android:text=@string/hello / Button android:text=Button android:id=@+id/getSquare android:layout_width=wrap_content android:layout_height=wrap_content /Button Button android:text=Button android:id=@+id/getCircle android:layout_width=wrap_content android:layout_height=wrap_content /Button ImageView android:layout_width=wrap_content android:layout_height=wrap_content android:visibility=visible android:id=@+id/getSquare1 /ImageView ImageView android:layout_width=wrap_content android:layout_height=wrap_content android:visibility=visible android:id=@+id/getCircle1 /ImageView /LinearLayout *** I am not placed the button in bottom only 1 by 1 try it it will get 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: Multiple APK support - Who's tried it?
The concept is quite fine imho, but sadly the Market still has some severe bugs. I uploaded a new update that uses multiple apks yesterday. The apk upload area works fine, at least for my usecase (legacy version for Android 1.5/1.6, other version for 2.0+ devices), it also shows (temporary) conflicts, like when the old apk isn't deactivated so far. The first problem that occured, is that obviously nobody at the Market team thought about consistense with the description page. I had to publish the new apks, leave to apps overview, and reopen the app page to be able to add a change description - and I've honestly no clue if it's visible to all users or just those getting one of the apks (I assume the latter). There's no way to use different change logs, and there's even less chance to update them (and the main app description) in one go with activating the new apks. After that, it took quite a while until the changes reflected in the web market, which btw. even shows differs by device if the version string is the same for all published apks. But the biggest trouble is: On the devices, only the 1.x devices seem to be able to update without much trouble, the 2.x devices often see the new update, but the update button is disabled - although there's a huge gap in version numbers (from 213 to 20004, resp. 10004 for the 1.x version). I still need to find some workaround for this... Not exactly a pitfall, but a bit sad: While you are able to use separate apks for different screen sizes and OpenGL resolutions, you are not able to use separate apks for different resolutions (ldpi, mdpi, ...). So the biggest unnecessary bloat (unused images for other resolutions) can't be removed with the current multiple apk support. -- 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: How to place two buttons side by side at the bottom of the android emulator to get the appropriate shape displayed by clicking on the appropriate buttons
K. fine , i hope now u find the errors ROCK android!!!1 -- 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: Splash + Background loading design pattern
Hmm... It's not a splash a screen, it is just a screen with logo and a button to start showing the data. I want to start loading the data before the user presses the button. On Aug 9, 3:56 am, lbendlin l...@bendlin.us wrote: You really want to make the loading piece independent/asynchronous. Just imagine yourself as a user of your application. What is the splash screen telling you? All it does is annoy you. -- 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] Location(longitude and latitude) not Displayed in the phone
Hi All I am dvleping a sample app for displaying the current location, in that app i just print the current location (longitude, lattitude )in a toast it is working fine in Emulater but not working in Real device Any one Help me -- -- ωιтн яєgαя∂ѕ Ratheesh * *... -- 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: Accessing PostGIS database from Android
You're missing a try catch for java.lang.ClassNotFoundException. On Aug 8, 9:05 pm, alexbruy alexander.b...@gmail.com wrote: Hi all, I'm new to Android development and Java. Now I'm work on application that should interact with PostgreSQL (to be exact PostGIS) database. I read Android PostgreSQL presentation by Mark Wong [1] and know that latest PostgreSQL JDBC driver (postgresql-9.0-801.jdbc.jar) works on Android. First I try to add external JAR in console because my PC is a bit slow for using Eclipse. As I understand from presentation, to use JDBC driver I should create .classpath file in the my ptoject directory and all will work. But when I try to build project with and I get next error: [javac] /home/alex/files/data/git/firereporter/src/com/nextgis/ firereporter/ReportActivity.java:51: unreported exception java.lang.ClassNotFoundException; must be caught or declared to be thrown [javac] Class.forName(org.postgresql.Driver); [javac] ^ [javac] 1 error Here is my .classpath file ?xml version=1.0 encoding=UTF-8? classpath classpathentry kind=lib path=/home/alex/devel/java/ postgresql-9.0-801.jdbc4.jar /classpath I try to search how to do this, but all tips are related to Eclipse. Well, I install Eclipse and ADT plugin, then create new Android project and tried to add JAR as described in [2] and [3] but this also don't help. I get error on string Class.forName(org.postgresql.Driver); and project doesn't builds. Can anyone help me with this? May be I miss something or do it wrong? [1]http://www.pgcon.org/2011/schedule/events/278.en.html [2]http://groups.google.com/group/android-developers/browse_thread/threa... [3]http://www.youtube.com/watch?v=eY_uqi_qIz0 Thanks, Alex -- 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] Need to Open my gallery app through chooser list
Hi All, I'm developing a small gallery application, in this application im getting images from sdcard and im displaying those images in my application and I completed this app successfully. My requirement is When the user select some default app in the phone, (like default gallery or wallpaper app) a chooser list is displaying, I want to add my app into that list and I can able to run my application. I have searched this in website but I couldn't get any solution for this. Please anyone help me -- 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] GLSurfaceView inside gallery
Hi, Imagine a Gallery containing 2 fullscreen views, so the user can scroll from a view to the other. The firs view is a common view, the second view is a subclass of GLSurfaceView with its EGLContextFactory, where some content is drawed. The drawing works but the problem is that I NEED (for some reason) to start drawing in the GLSurfaceView as soon as the Activity is running (even if it is not visible for the user), but I can't because the EGL context is not created until the user scrolls to the GL SurfaceView. To be clearer, 'createContext' in EGLContextFactory is called when the user scrolls but I want it to be called from the beginin even if the user does not scroll, to start my OpenGL ES operations when the Activity starts. Is there any way to tell the Gallery to 'activate' the second view from the begining to make createContext be called? Thanks for your help. Goyo -- 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] android Date picker
Refer this site nagu you get what you want:) http://www.edumobile.org/android/android-beginner-tutorials/using-android-date-picker/ On Tue, Aug 9, 2011 at 11:14 AM, nageswara rao rajana nagu.raj...@gmail.com wrote: Hi, I want to set default date for date picker. Can any one please help me. Thanking you, Nagu. -- 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] Re: Make app fullscreen
In ur* AndroidMainfest.xml* file you set the srceen size is true // supports-screens android:xlargeScreens=true android:largeScreens=true android:normalScreens=true android:smallScreens=true android:anyDensity=true / this will helpful to you. On Tue, Aug 9, 2011 at 12:32 PM, Kristoffer kris.isak.v...@gmail.comwrote: Hello again. I guess that i did not make myself clear here so iam now adding a image so that you could se what iam talking about. This image is a screencapture of the app, and you could se that its not using full size. http://www.kramericasoftware.se/screenproblem.png Hope this helps you to help me :) On 8 Aug, 10:18, Kristoffer kris.isak.v...@gmail.com wrote: Hello. Iam new to SDK and Eclipse (i have just finished my first app in app inventor) But i feel that i wanna move on to SDK and eclipse. Iam going to rebuild my app that i build in app inventor, but i still have the same problem now with SDK and Eclipse that i had in app inventor. If i run the app on a big screen mobile (like HTC sensation) then the app will not use the whole screen, it leave like 2,5 cm in bottom just black. If i run the app on smaller screen (HTC Wildfire, Hero, Desire) then it uses the whole screen. I guess i have to enable something to make it fill bigger screens. Someone that have the time to help me? -- 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: Accessing PostGIS database from Android
Hi, On 9 авг, 10:48, Calin Perebiceanu calin.perebice...@gmail.com wrote: You're missing a try catch for java.lang.ClassNotFoundException. May be I'm unclear. I can catch this exception but as I understand, this exception occurs because driver can't be loaded. So I want to know how I can add postgresql and postgis JDBC drivers into my project and use them. Playing with «Add JAR», «Add external JAR» in Eclipse and with .classpath file didn't helps. Thanks, Alex -- 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: EditText text validation
It sounds like you need a focus change listener. http://developer.android.com/reference/android/view/View.OnFocusChangeListener.html On Aug 9, 12:36 am, yoav bbb yoav...@gmail.com wrote: So. The validate function must be called when ressing a button? no option to call the function when user leaves the textbox - to the backgour or to another control? On 9 אוגוסט, 06:24, TreKing treking...@gmail.com wrote: On Sun, Aug 7, 2011 at 10:57 PM, yoav bbb yoav...@gmail.com wrote: Where is the hook for the validate function? There isn't one, AFAIK. --- -- 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] Bluez HDP , Cant read data from fd, message bus timeout error.
Hi, I am trying to read data from oxymeter on android and after calling Acquire method from healthchannel interface, i am doing a reply on wait using dbus_connection_send_with_reply_and_block call and i am getting the following error - Dbus: Acquire method failed (Message did not receive a reply (timeout by message bus)) Can anybody help me resolve the issue Best Regards, Arun S. -- 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: Accessing PostGIS database from Android
You may want to check the .jar file you included in you .classpath , make sure you have Driver.class in it, so the reflection method( that's Class.forname('org.postgresql.Driver'),which is obviously used in your ReportActivity somehow directly or indirectly) will work correctly in your code. On Aug 9, 4:24 pm, alexbruy alexander.b...@gmail.com wrote: Hi, On 9 авг, 10:48, Calin Perebiceanu calin.perebice...@gmail.com wrote: You're missing a try catch for java.lang.ClassNotFoundException. May be I'm unclear. I can catch this exception but as I understand, this exception occurs because driver can't be loaded. So I want to know how I can add postgresql and postgis JDBC drivers into my project and use them. Playing with «Add JAR», «Add external JAR» in Eclipse and with .classpath file didn't helps. Thanks, Alex -- 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 get the resource id of the set wallpaper
Dear Dianne, Thnak you for your info. I misunderstood the wallpaper which is created from my application image in res/drawable has own resource id still... However, I found out that should not be. As you explained, that control is under WallpaperManager just when the wallpaper is set. I apologize for the irritated question for you. Regards, On Aug 9, 4:32 am, Dianne Hackborn hack...@android.com wrote: Why do you think it will have a resource ID? Live wallpapers won't. Wallpapers set from the gallery won't. Ones set by the launcher may internally have one the app uses to retrieve the image from its resources but that is tied to the app. On Sun, Aug 7, 2011 at 5:24 PM, Hiko hikosais...@gmail.com wrote: Dear Hal, Right. That is what I want to ask. Regards, On Aug 6, 1:33 pm, Hal Harrison closeenough.bac...@gmail.com wrote: Are you asking: How can I get the id of my wallpaper graphic in my res/drawable folder into my program so I can do something with it? Hal Harrison. -- 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 http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Project Ideas
How about write a simple twitter client? It's a relatively difficult one for university students, but I'm sure you'll learn a lot from it and have fun, you may ask your friends to use it, and you'll be proud that you made it. Best regards. On Aug 9, 1:12 pm, Sahi cyber.hawk...@gmail.com wrote: Hi, I am a University student, And I want to do project on android, that will be avaluated by University. Can anybody suggest me some Project idea. -- 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: Make app fullscreen
What version of Android are you developing for? If it is 1.5 or below, or the following will be helpful: http://developer.android.com/guide/practices/screens-support-1.5.html Regards, Peter On Aug 9, 3:02 am, Kristoffer kris.isak.v...@gmail.com wrote: Hello again. I guess that i did not make myself clear here so iam now adding a image so that you could se what iam talking about. This image is a screencapture of the app, and you could se that its not using full size. http://www.kramericasoftware.se/screenproblem.png Hope this helps you to help me :) On 8 Aug, 10:18, Kristoffer kris.isak.v...@gmail.com wrote: Hello. Iam new to SDK and Eclipse (i have just finished my first app in app inventor) But i feel that i wanna move on to SDK and eclipse. Iam going to rebuild my app that i build in app inventor, but i still have the same problem now with SDK and Eclipse that i had in app inventor. If i run the app on a big screen mobile (like HTC sensation) then the app will not use the whole screen, it leave like 2,5 cm in bottom just black. If i run the app on smaller screen (HTC Wildfire, Hero, Desire) then it uses the whole screen. I guess i have to enable something to make it fill bigger screens. Someone that have the time to help me? -- 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] Position of dialog box
hi... am using a dialog box in my application.I want to locate dialog box just above a button on click of that button is located on right bottom corner of screen.Now that button is created in another xml layout. I don't want to hard code X,Y coordinates.Am thinking to use id of that button and use method like below above in my code. I had go through many tutorials in few hour but all of them are just scrap . Please suggest me -- 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 find freelancer for creating game picture
Hi, Do you have any references of good freelance which I can hire to create picture for android 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
[android-developers] Re: Make app fullscreen
The following might help you: http://developer.android.com/guide/practices/screens-support-1.5.html It looks like you might be targeting an early version of Android and as a result, the app is running in screen compatibility mode. Easy fix if that's the case is to target a more current version (ie. 1.6 or later) Regards, Peter On Aug 8, 6:18 pm, Kristoffer kris.isak.v...@gmail.com wrote: Hello. Iam new to SDK and Eclipse (i have just finished my first app in app inventor) But i feel that i wanna move on to SDK and eclipse. Iam going to rebuild my app that i build in app inventor, but i still have the same problem now with SDK and Eclipse that i had in app inventor. If i run the app on a big screen mobile (like HTC sensation) then the app will not use the whole screen, it leave like 2,5 cm in bottom just black. If i run the app on smaller screen (HTC Wildfire, Hero, Desire) then it uses the whole screen. I guess i have to enable something to make it fill bigger screens. Someone that have the time to help me? -- 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] pass hashtable from one activity to another activity
hi how to pass hash table from one activity to another using intent.putExtra? -- 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: Just in section
I am the developer of the app 'No Lock', which indeed makes use of the Keyguard apis, to try to disable the lock screen. I can confirm that this does not work very well, and inconsistently across devices ;) I understand the api was not meant to be used this way. The app has had about 770K downloads, which clearly shows that there is a real demand from the users to be able to disable the lock screen completely. Some people just want to use their phone immediately even if that means a risk the phone will inadvertently turn itself on in your pocket :) I was not aware that this option existed in 3.x and I am very glad to hear that. I really hope it will also be there for phones under Ice Cream Sandwitch! -- BoD -- 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: Just in section
Actually I forgot to say this: it would be very cool if there was an API to make custom Lock Screen apps ;) -- BoD -- 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: Make app fullscreen
Thanks for the help. Iam tageting 1.6 and i added supports-screens in my manifest file and that solved the problem. It was easy when you pointed it out for me, thanks again for the help. On 9 Aug, 11:10, Peter Stacey peterst6...@gmail.com wrote: The following might help you: http://developer.android.com/guide/practices/screens-support-1.5.html It looks like you might be targeting an early version of Android and as a result, the app is running in screen compatibility mode. Easy fix if that's the case is to target a more current version (ie. 1.6 or later) Regards, Peter On Aug 8, 6:18 pm, Kristoffer kris.isak.v...@gmail.com wrote: Hello. Iam new to SDK and Eclipse (i have just finished my first app in app inventor) But i feel that i wanna move on to SDK and eclipse. Iam going to rebuild my app that i build in app inventor, but i still have the same problem now with SDK and Eclipse that i had in app inventor. If i run the app on a big screen mobile (like HTC sensation) then the app will not use the whole screen, it leave like 2,5 cm in bottom just black. If i run the app on smaller screen (HTC Wildfire, Hero, Desire) then it uses the whole screen. I guess i have to enable something to make it fill bigger screens. Someone that have the time to help me? -- 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 contact name fetch
Can any1 check these two lines: String where = ContactsContract.CommonDataKinds.StructuredName.CONTACT_ID + = ? ; //problem may be here String[] whereParameters = new String[]{id}; //problem may be here Cursor contacts = contentresolver.query(ContactsContract.Data.CONTENT_URI, projection, where, whereParameters, null); //problem may be here On Mon, Aug 8, 2011 at 7:15 PM, TreKing treking...@gmail.com wrote: On Mon, Aug 8, 2011 at 5:38 PM, Goutom goutom.sust@gmail.com wrote: I dont understand the error in logcat. Letting people know what that error is would help. - 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
Re: [android-developers] Correct Binding to a service?
- If you retrieved this from the network, have a singleton that manages it (downloads it when needs it and holds the result in RAM) and let your second activity just use the some singleton (possibly needing to re-download the string if your process got killed at some point). Thanks very much, this is exactly what i needed and simplified my application 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] Re: Freemium Model with In-App Purchases
The threat to get a letter from Lodsys about possible infringing their patents on Android is quite real. We recieved such a letter yesterday, we just provide a button with a link to the full version in the demo version of our app which from their view is an in-app purchase. We currently evaluating our opertunities but as a legal fight with a patent bully and paying a patent license for the next years is not a big option for us, we currently considering pulling all our demo versions from the U.S. market and only offer payed versions. On Jul 15, 3:38 pm, polyclefsoftware dja...@gmail.com wrote: I'm close to releasing a new iPhone/Android local multiplayer game and I'm looking into monetization issues. My ad revenue is still dismal this year, even though impressions and clicks are fairly robust. And the format of the game is such that I want to encourage new users to easily try the game for free, so I was thinking of using a freemium model where the app is free to download, then locks after a certain amount of gameplay and prompts the user to unlock the full version using in-app purchases. I'd be interested to hear any experiences of any developers who might currently be using this approach. From a marketing/sales perspective, how well does this model work? I know in-app purchases for virtual goods is extremely lucrative if done well, but I haven't heard any experiences of the unlock-full-version model on the Android Market. From a technical perspective, how easy is it for users to exploit such a model, e.g. uninstalling and reinstalling the app or wiping local data associated with the app in order to circumvent the limitations of the free version? Are there best practices to avoid this? From a legal perspective, should developers (especially indie ones like me) be concerned about the current patent trolling and lawsuits by companies like Lodsys? Google still hasn't publicly commented on patent trolls targeting Android developers, have they? -- 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: .apk file is not getting downloaded from HTTPS site
Replying back to group. On Tue, Aug 9, 2011 at 8:00 PM, dilu discover.dile...@gmail.com wrote: I have one month verisign test certificate.Will it work? It depends. If the certificate is issued from the 'real' VeriSign CA, and not one for demo use, it will work. What does the 'issuer' field of your certificate look like? -- 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: Accessing PostGIS database from Android
On 9 авг, 12:00, Carl Lee ljbha...@gmail.com wrote: You may want to check the .jar file you included in you .classpath , make sure you have Driver.class in it, so the reflection method( that's Class.forname('org.postgresql.Driver'),which is obviously used in your ReportActivity somehow directly or indirectly) will work correctly in your code. When I extract JAR there are Driver$1.class, Driver $ConnectThread.class and Driver.class files in root folder among other files. -- 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] pass hashtable from one activity to another activity
On Tue, Aug 9, 2011 at 5:34 AM, sktniran sktniranjanad...@gmail.com wrote: how to pass hash table from one activity to another using intent.putExtra? intent.putExtra(key, yourHashtable); Hashtable is Serializable and therefore should go in an Intent extra. However, this may be slow and memory intensive. Moreover, this should only be used for truly contextual data -- the sort of thing you might put on a GET parameter in a Web link. If this Hashtable is really your data model, you should have it in a central spot (e.g., database) rather than pass it via extras. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android 3.1 Programming Books: http://commonsware.com/books -- 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: how to put a button into a surface view
On Tue, Aug 9, 2011 at 3:00 AM, David Sanchez de la Torre dsanchezdelato...@gmail.com wrote: Ok, I tried that but then I didn't know how to get the surfaceholder where to start the preview of my camera because I'm extending from surfaceview. Call getSurfaceHolder() on your SurfaceView. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android 3.1 Programming Books: http://commonsware.com/books -- 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: How to change device file permission from Java app.
On Tue, Aug 9, 2011 at 2:38 AM, uday kiran jandhyala udayjandhy...@gmail.com wrote: Has this been done for security reasons ? Probably. Which means if an application downloads some bytes and writes to a file created through the below code File destination = new File (/sdcard/myfile.txt); there is no way to change permissions of 'myfile.txt' to 777 ? First, nobody uses /sdcard, since it is wrong. Use Environment.getExternalStorageDirectory(). Second, nobody bothers to try to change Linux file permissions on external storage, since for the vast majority of current devices, that's FAT32 (vfat in Linux-ese), and file permissions do not matter much on that filesystem. There is a 'Runtime' facility provided through java.lang, but I'm skeptical whether to use this or not. Runtime would only work on rooted devices right? More importantly, you cannot reliably change permission bits that way either. And, most of all, you shouldn't be changing permission bits in the first place. I have no idea what you think change the permission of lcd device file permission, but it has nothing to do with the Android SDK. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android 3.1 Programming Books: http://commonsware.com/books -- 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: New email received intent
On Tue, Aug 9, 2011 at 2:43 AM, Amit amitg.in...@gmail.com wrote: If intent is not possible, is it possible for my application to check (on regular intervals) if there is new message in the mailbox (on default client or gmail client)? There are no documented and supported APIs for accessing that data. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android 3.1 Programming Books: http://commonsware.com/books -- 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] How to detect which market the app was installed from
On Mon, Aug 8, 2011 at 11:00 PM, Nikolay Elenkov nikolay.elen...@gmail.comwrote: That leaves the possibility of human error though: you can forget to flip the flag, and upload the wrong binary. Personally, I test before uploading a binary, but that's just me ... ;-) - 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: how best to access string resources from AsyncTask.doInBackground
On Aug 8, 10:57 pm, TreKing treking...@gmail.com wrote: Get them first, in the UI thread, then pass the actual String to the AsyncTask ... ? --- -- TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices Thanks, that's what I've decided to do, at least for now. I pass the Activity to the AsyncTask's constructor, pull out the strings I want and stick them into member variables for later use by doInBackground(). I also noticed while looking at the Activity class a little closer that it's actually a ContextWrapper that contains a Context, so I'm wondering if the inner Context survives the Activity destruction/ recreation. I'll have to debug a little to see if that's the case. -- 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: .apk file is not getting downloaded from HTTPS site
While opening the pages I will get the warning.Security certificate is like this Issued by- Verisign Trial Secure Server CA-G2 Organization -Verisign Inc Organizational Unit-For test purposes only.No assurance Validity . Issued On-27/07/2011 Expires on 27/08/2011 Before buying the certificate we wants to make sure that after buying the certificate it should work. Please let me know your comment on this. On Aug 9, 4:07 pm, Nikolay Elenkov nikolay.elen...@gmail.com wrote: Replying back to group. On Tue, Aug 9, 2011 at 8:00 PM,diludiscover.dile...@gmail.com wrote: I have one month verisign test certificate.Will it work? It depends. If the certificate is issued from the 'real' VeriSign CA, and not one for demo use, it will work. What does the 'issuer' field of your certificate look like? -- 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 best to access string resources from AsyncTask.doInBackground
On Aug 9, 2:46 am, rich friedel rich.frie...@gmail.com wrote: I don't know the performance hit but you can access your resource like this: String s = TheParentActivity.this.getString( R.string.your_string_resource ); Well, I don't want to access the parent activity from doInBackground, since it might not be there due to device rotation or other configuration changes. In fact, as I understand it, for this reason it's not a good idea to make the AsyncTask a nonstatic nested class. -- 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: how best to access string resources from AsyncTask.doInBackground
On Tue, Aug 9, 2011 at 8:12 AM, AndyD andy.den...@gmail.com wrote: I also noticed while looking at the Activity class a little closer that it's actually a ContextWrapper that contains a Context, so I'm wondering if the inner Context survives the Activity destruction/ recreation. I'll have to debug a little to see if that's the case. I wouldn't count on it in any case. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android 3.1 Programming Books: http://commonsware.com/books -- 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: how best to access string resources from AsyncTask.doInBackground
On Tue, Aug 9, 2011 at 7:12 AM, AndyD andy.den...@gmail.com wrote: Thanks, that's what I've decided to do, at least for now. I pass the Activity to the AsyncTask's constructor, pull out the strings I want and stick them into member variables for later use by doInBackground(). I was thinking more along the lines of passing them as arguments to execute(), but I guess that works. new MyTask().execute(getString(R.string.id)); ... doInBackground(String... strings) { useString(strings[0]); } Or something. - 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: Splash + Background loading design pattern
You can create a subclass of Application and start the loading in its onCreate() method. When the second activity is started it can check if the loading is completed. If it's not completed yet it can register itself as a listener that will be called by the AsyncTask. However, as a user I would prefer to have the splash screen and progress dialog merged into one screen with the logo, a progress indicator and the text Loading list. Please wait... On 9 Aug, 09:24, Mark Cz ome...@gmail.com wrote: Hmm... It's not a splash a screen, it is just a screen with logo and a button to start showing the data. I want to start loading the data before the user presses the button. On Aug 9, 3:56 am, lbendlin l...@bendlin.us wrote: You really want to make the loading piece independent/asynchronous. Just imagine yourself as a user of your application. What is the splash screen telling you? All it does is annoy you. -- 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 best to access string resources from AsyncTask.doInBackground
On Aug 9, 8:36 am, TreKing treking...@gmail.com wrote: I was thinking more along the lines of passing them as arguments to execute(), but I guess that works. --- -- TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices Thanks - that would work too, but for encapsulation purposes I was looking to avoid the need for the Activity to know about the AsyncTask's dependency on those strings. -- 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: Accessing PostGIS database from Android
In the root folder? I think it should be in /org/postgresql/Driver.class, shouldn't it? On Aug 9, 7:09 pm, alexbruy alexander.b...@gmail.com wrote: On 9 авг, 12:00, Carl Lee ljbha...@gmail.com wrote: You may want to check the .jar file you included in you .classpath , make sure you have Driver.class in it, so the reflection method( that's Class.forname('org.postgresql.Driver'),which is obviously used in your ReportActivity somehow directly or indirectly) will work correctly in your code. When I extract JAR there are Driver$1.class, Driver $ConnectThread.class and Driver.class files in root folder among other files. -- 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] Joystick IME Problem
I'm trying to create an IME that uses on-screen joysticks as the primary input method from the user. I've found a group of open source widgets that work great for what I'm trying to accomplish, and work fantastically when thrown into a regular application but when I plop them on the IME pop-up, they do not show up at all. A better explanation of my issue can be found here: http://stackoverflow.com/questions/6600981/dual-joystick-ime Im just wondering if there are any limitations to the IME tray that is causing this that I'm unaware of or if there any other source of joystick style widgets that might not give me the same troubles -- 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 audio from google recognizer intent
Hello, I neet do capture the audio from google recognizer intent Right now, I'm doing something like this: Intent intent = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH); intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL, RecognizerIntent.LANGUAGE_MODEL_FREE_FORM); intent.putExtra(RecognizerIntent.EXTRA_CALLING_PACKAGE,stuff); intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE, getLanguagePref()); intent.putExtra(RecognizerIntent.EXTRA_PROMPT, R.string.prompt); startActivityForResult(intent, VOICE_RECOGNITION_REQUEST_CODE); I figure there is no way to access the byte stream from this intent, so, I'm trying something like this: SpeechRecognizer speechRecognizer = SpeechRecognizer.createSpeechRecognizer(this); speechRecognizer.setRecognitionListener(new RecognizerListener() { ... }); but I'm still havin some trouble, can anyone help me out here? I need to store the data in the device and NOT send to google server; /* I'm not using regular audio record because I need to know when the user is speeking to begin save and when the user stoped, to stop save */ tks, -- Dayvid Victor R. de Oliveira 10º Periodo de Engenharia da Computação - UFPE Laboratório Itautec - CIn/UFPE -- 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] problem in opening camera programaticaly code attached
On Tue, Aug 9, 2011 at 10:08 AM, Amit Mangal forum.amit.man...@gmail.com wrote: i am to open camera programaticaly and take picture but whatever code i am trying it is crashing on my device . One of code i have attached whihc is working on simulator but crashing onmy device. Use adb logcat, DDMS, or the DDMS perspective in Eclipse to examine LogCat and look at the stack trace associated with your crash. please tell me is there any special settings required for opening camera programatically ? You need the CAMERA permission in the manifest. For production, you may also want to add appropriate uses-feature elements, but they're not going to cause a crash. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android 3.1 Programming Books: http://commonsware.com/books -- 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] problem in opening camera programaticaly code attached
These all codes i have downloaded from internet and i ave seen comments these are working fine . i have compiled it my sdk and run on simulator it works on simulator but force close on device. i don know how to do ddms . I have attached code please check it once on your device and tell me whether it is working or not . thanks On Tue, Aug 9, 2011 at 7:43 PM, Mark Murphy mmur...@commonsware.com wrote: On Tue, Aug 9, 2011 at 10:08 AM, Amit Mangal forum.amit.man...@gmail.com wrote: i am to open camera programaticaly and take picture but whatever code i am trying it is crashing on my device . One of code i have attached whihc is working on simulator but crashing onmy device. Use adb logcat, DDMS, or the DDMS perspective in Eclipse to examine LogCat and look at the stack trace associated with your crash. please tell me is there any special settings required for opening camera programatically ? You need the CAMERA permission in the manifest. For production, you may also want to add appropriate uses-feature elements, but they're not going to cause a crash. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android 3.1 Programming Books: http://commonsware.com/books -- 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] problem in opening camera programaticaly code attached
On Tue, Aug 9, 2011 at 10:21 AM, Amit Mangal forum.amit.man...@gmail.com wrote: i have compiled it my sdk and run on simulator it works on simulator but force close on device. i don know how to do ddms . Then learn: http://developer.android.com/guide/developing/debugging/ddms.html -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android 3.1 Programming Books: http://commonsware.com/books -- 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] pass hashtable from one activity to another activity
Use a Bundle instead of a Map (HashMap/Hashtable). *Bundle bundle = new Bundle();* *...* *... // copy contents of hash map into bundle * *...* *intent.putExtra(myhashmap, bundle);* *...* In other activity: ** *Bundle bundle = intent.getBundleExtra(myhashmap);* *...* But Mark has some good advice. If your hash map is substantially large, you may want to use some other model (database and such). -- 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 best to access string resources from AsyncTask.doInBackground
Instead of holding on to the Activity in the AsyncTask, just hold on to its application-context: *public class MyAsyncTask extends AsyncTask... {* * private Context context;* * * * public MyAsyncTask(Context context) {* *this.context = context.getApplicationContext();* * }* * ...* *}* If you use the passed context just to get strings and such from the resource-manager, this should work fine. -- 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] How can I know removed non-public API in Gingerbread
Dear Mark Murphy, Thank you for your advice. I really appreciate taking your time to help me. I will try to hunt for solving the problem. But I have one question. As you said ,if we should not use a non-public API, why is the non-public API exist? Thank you and Best regard -- 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: Intents
I am not sure what you mean Dianne - and that's probably because I am still not sure the way I think of this is the right way. I am running a servlet on the phone that starts an Intent on an Activity class. The class starts the camera preview and takes a picture. Then I have a subsequent Intent start on the same Activity class to stop the preview. The second Intent will fall into the OnNewIntent. It also carries a set of extra parameters that I want to read and use iwthin the OnNewIntent. How do I access those Extra params? I have used Extra bundles before and I know how they work. So what do you mean I need to remember the Intent? Thanks for the response On Aug 9, 2:17 am, Dianne Hackborn hack...@android.com wrote: No. That is telling you about the new Intent. If you want to remember it, you will need to remember it yourself. On Mon, Aug 8, 2011 at 8:43 PM, kypriakos demet...@ece.neu.edu wrote: Exactly! I am getting nulls when accessing the extras that I set from the launching intent: @Override protected void onNewIntent(Intent intent){ // super.onNewIntent(intent); setIntent(intent); Log.v(NotifServImpl,# = +intent.getExtras().getString(from)); Bundle extras = intent.getExtras(); ... I was under the impression that setting the intent in this method would guarantee that i am working with the newest intent. Is this the right approach? On Aug 8, 2:56 pm, Mark Murphy mmur...@commonsware.com wrote: On Mon, Aug 8, 2011 at 2:27 PM, kypriakos demet...@ece.neu.edu wrote: Never mind - most likely missing the Override allows for anything ;) Bingo. @Override has no effect at runtime, but it's a compile-time sanity check. Rather useful, particularly for classes with lots of generics (e.g., AsyncTask). -- Mark Murphy (a Commons Guy)http://commonsware.com| http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy Android 3.1 Programming Books:http://commonsware.com/books -- 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 http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] How can I know removed non-public API in Gingerbread
On Tue, Aug 9, 2011 at 10:46 AM, burnbrain burnbrai...@gmail.com wrote: As you said ,if we should not use a non-public API, why is the non-public API exist? Because the Googlers who took the meat cleaver to Android back in ~2007 and split it into an SDK and the other apps did not lock down those internal APIs. However, they are starting to do so now: http://commonsware.com/blog/2011/08/08/gmail-gone-risk-undocumented-apis.html -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in Oslo: http://bit.ly/fjBo24 -- 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 best to access string resources from AsyncTask.doInBackground
My mistake... I overlooked that you were wanting to access the resource strings in the doInBackground() method. -- 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: Multiple APK support - Who's tried it?
I have not tried multiple APK support but IMHO it is much trouble for what it's worth. It is much more simple to have a universal APK, even if size is bigger. It could be useful if it allowed to have a BETA version of an app alongside a STABLE version. The current system doesn't make it easy to have a once stable version going beta for some period. That's why a lot of Market apps are beta quality even if not explicitely stating so. -- 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: Intents
On Tue, Aug 9, 2011 at 10:56 AM, kypriakos demet...@ece.neu.edu wrote: I am running a servlet on the phone that starts an Intent on an Activity class. Blech. The class starts the camera preview and takes a picture. Then I have a subsequent Intent start on the same Activity class to stop the preview. The second Intent will fall into the OnNewIntent. It also carries a set of extra parameters that I want to read and use iwthin the OnNewIntent. How do I access those Extra params? Use the Intent supplied to onNewIntent(). The Intent returned by getIntent() will always be the original Intent used to create the activity. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in Oslo: http://bit.ly/fjBo24 -- 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: Just in section
On Monday, August 8, 2011 11:52:25 AM UTC-4, Vance Turnewitsch wrote: I think the Just In section has been removed on the Market. On Aug 7, 7:30 pm, Jim Graham spook...@gmail.com wrote: On Sun, Aug 07, 2011 at 01:43:13PM -0500, TreKing wrote: I think the Android Market on my phone got updated, and I can't find the Just in section any more. Anyone know about this? http://www.google.com/support/forum/p/Android+Market/thread?tid=69c28... I sympathize with Spooky here as I have also just recently launched some new Live Wallpapers, and while I did see them in Just In on my phone market (doesn't have the new market client yet) -- and some users have indeed found them, they are nearly impossible to find by any means on the web client, which I find using more and more to search out apps and push downloads to my phone + tablet. It's a little troubling and as some of the commenters on the Market thread suggest, the Top sections are relatively slow moving and static, even the Top New ones. With that said, I do agree that most of the apps and items in the Top sections deserve to be there, and shouldn't be bumped just because someone launches an update of their app or launches a new app. I do think that for people who want to look at a more dynamic and changing list of items, this functionality is now gone with the Just In section's removal, and may inevitably hurt smaller developers, and possibly decrease sales from people who like to make impulse purchases or spend a lot of time perusing for new apps. -- 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: Splash + Background loading design pattern
On Tuesday, August 9, 2011 8:39:15 AM UTC-4, nadam wrote: You can create a subclass of Application and start the loading in its onCreate() method. When the second activity is started it can check if the loading is completed. If it's not completed yet it can register itself as a listener that will be called by the AsyncTask. However, as a user I would prefer to have the splash screen and progress dialog merged into one screen with the logo, a progress indicator and the text Loading list. Please wait... I agree with this, if they are going to press the button, and STILL have to wait for the data to load, might as well put a progress bar on the splash, so they have something pleasant to look at, remove the button, and automatically take them to the next screen when everything is loaded, so they don't have to press anything. -- 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 play audio file from sd card ?
Hi Everyone, Anybody knows how to play audio file from sd card ? 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: how best to access string resources from AsyncTask.doInBackground
On Aug 9, 10:28 am, Streets Of Boston flyingdutc...@gmail.com wrote: Instead of holding on to the Activity in the AsyncTask, just hold on to its application-context: Bingo, that's the kind of thing I was looking for. 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] how to play audio file from sd card ?
On Tue, Aug 9, 2011 at 11:37 AM, Amit Mangal forum.amit.man...@gmail.com wrote: Anybody knows how to play audio file from sd card ? Use MediaPlayer: http://developer.android.com/reference/android/media/MediaPlayer.html -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in Oslo: http://bit.ly/fjBo24 -- 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: Intents
Blech. he he ;) Use the Intent supplied to onNewIntent(). The Intent returned by getIntent() will always be the original Intent used to create the activity. But I am - and that's where the null exception occurs. Not sure if the setIntent or the super are needed. I will poke around a bit more to see what is going on. But if the Intent supplied by the onNewIntent() is what I need then that puts me on the right path. Thanks again guys -- 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] How to find freelancer for creating game picture
You could search on deviantart.com for an artist with the style you want, and contact him/her. 2011/8/9 Samuel jrl...@gmail.com Hi, Do you have any references of good freelance which I can hire to create picture for android 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 -- 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: How to change device file permission from Java app.
On Tuesday, August 9, 2011 7:17:30 AM UTC-4, Mark Murphy (a Commons Guy) wrote: Has this been done for security reasons ? Probably. Unlikely, as it can be done with the ndk, and we are repeatedly told that the ndk does not have special permissions. Most likely they just didn't bother implementing support in javaj for something that wasn't envisioned as needed. Which means if an application downloads some bytes and writes to a file created through the below code File destination = new File (/sdcard/myfile.txt); there is no way to change permissions of 'myfile.txt' to 777 ? First, nobody uses /sdcard, since it is wrong. Use Environment.getExternalStorageDirectory(). Second, nobody bothers to try to change Linux file permissions on external storage, since for the vast majority of current devices, that's FAT32 (vfat in Linux-ese), and file permissions do not matter much on that filesystem. However, on internal storage where permissions matter, the java file creation tools do let you set the permissions to some extent (ie, various android presets, but not full unix bit-level control) There is a 'Runtime' facility provided through java.lang, but I'm skeptical whether to use this or not. Runtime would only work on rooted devices right? More importantly, you cannot reliably change permission bits that way either. The runtime facility does not require root, though it's perhaps not future-proof since it's not officially supported. It's also needlessly roundabout. A better way to do it would be to invoke an ndk subroutine through jni which uses the chmod() syscall. There's nothing even slightly improper about doing that. first place. I have no idea what you think change the permission of lcd device file permission, but it has nothing to do with the Android SDK. This may be the only real problem - the device files are certainly not owned by application users, and so cannot have their permissions changed by one. (_That_ might be the reason the task would require an ability to execute a stand alone program as root) Ordinary files owned by an application user id and residing on a filesystem where it is meaningful can however have their permission bits changed. -- 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: How to change device file permission from Java app.
On Tue, Aug 9, 2011 at 11:53 AM, Chris Stratton cs07...@gmail.com wrote: Unlikely, as it can be done with the ndk, and we are repeatedly told that the ndk does not have special permissions. Most likely they just didn't bother implementing support in javaj for something that wasn't envisioned as needed. Possibly, but I'm skeptical. Bear in mind that the decision to remove those methods was made years before the NDK existed. However, on internal storage where permissions matter, the java file creation tools do let you set the permissions to some extent (ie, various android presets, but not full unix bit-level control) Very true. Ordinary files owned by an application user id and residing on a filesystem where it is meaningful can however have their permission bits changed. That being said, IMHO it's rarely a good idea. I would rather developers provide a real API (remote service, content provider, etc.). -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in Oslo: http://bit.ly/fjBo24 -- 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] app issue report utility
On Thu, Aug 4, 2011 at 7:48 AM, TreKing treking...@gmail.com wrote: ACRA Thanks. I was looking for something like this. I implemented it late last week, got some crash reports coming in now.. fixing and re-releasing. Works great :) The Market crash reporting is fine if you only release your APK once every lifetime or so.. ACRA is realtime so I can easily ignore old fixed bugs. -- Greg Donald -- 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] Anyone ever used androidpit's lvl mechanism? Is it trustworthy?
On Friday, February 18, 2011 7:41:22 AM UTC-5, Kostya Vasilyev wrote: Just checked - there are download stats, and you can set a time period filter. And it looks like their site is actually reaching users - my two apps combined had about 10K downloads this year so far, and they aren't even localized to German. No breakdown by device / version though as far as I can see. -- Kostya Just got an email from them asking me to put my apps there, this is the only thread I could find discussing this, has anyone had success with their paid apps on AndroidPIT, payments on time, updates easy to do, etc? -- 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: Accessing PostGIS database from Android
Sorry, in the /org/postgresql/ On 9 авг, 16:21, Carl Lee ljbha...@gmail.com wrote: In the root folder? I think it should be in /org/postgresql/Driver.class, shouldn't it? -- 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: Accessing PostGIS database from Android
In Eclipse, right-click on the project... Select Properties... Then Java Build Path and finally Libraries. Is the .jar there? 09.08.2011 20:25, alexbruy пишет: Sorry, in the /org/postgresql/ On 9 авг, 16:21, Carl Leeljbha...@gmail.com wrote: In the root folder? I think it should be in /org/postgresql/Driver.class, shouldn't it? -- Kostya Vasilyev -- 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: How to detect HTML tag?
http://download.oracle.com/javase/6/docs/api/java/lang/String.html#replace%28java.lang.CharSequence,%20java.lang.CharSequence%29 On Mon, Aug 8, 2011 at 10:43 PM, ndiiie90 rnd...@gmail.com wrote: Oh sorry that is not what i mean. What i mean is to replace all tags in data that is retrieved from database.. So for example, the data is: I am a java amp android developer will be replaced into: I am a java android developer How can i do that? I think it is not effective to replace all tag by proper character On Aug 9, 12:52 pm, Talluri Lakshmi Narayana tlakshma...@gmail.com wrote: press ctrl+h, to replace all at a time On Tue, Aug 9, 2011 at 10:18 AM, ndiiie 90 rnd...@gmail.com wrote: Hi guys, how to replace in html tag? and replace it with proper character? For example, if I detect amp, it will be replaced by .. Must i do it one by one? Or is there any easier way to do it? Thanks, Rendy -- 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 -- -- ThanksRegards., T.Lakshmi narayana -- 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] should DeviceAdmin.setMaximumTimeToLock require android.permission.WRITE_SETTINGS ?
I've got an application that works on lots of devices, but lately a customer with a CASIO C771 running 2.2.1 is failing when my device administrator attempts to set the maximum lock timeout. java.lang.reflect.InvocationTargetException at android.app.admin.DevicePolicyManager.setMaximumTimeToLock(DevicePolicyManager.java: 522) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:521) at *DeviceAdmin.java: 368) at *DeviceAdmin.java: 698) at *(DeviceAdmin.java: 605) at *DeviceAdmin.java: 92) at android.app.ActivityThread.handleReceiver(ActivityThread.java: 2814) at android.app.ActivityThread.access$3200(ActivityThread.java:125) at android.app.ActivityThread$H.handleMessage(ActivityThread.java: 2087) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:123) at android.app.ActivityThread.main(ActivityThread.java:4646) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:521) at com.android.internal.os.ZygoteInit $MethodAndArgsCaller.run(ZygoteInit.java:858) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616) at dalvik.system.NativeStart.main(Native Method) Caused by: java.lang.SecurityException: Permission Denial: writing com.android.providers.settings.SettingsProvider uri content://settings/system from pid=8957, uid=10104 requires android.permission.WRITE_SETTINGS at android.os.Parcel.readException(Parcel.java:1247) at android.os.Parcel.readException(Parcel.java:1235) at android.app.admin.IDevicePolicyManager$Stub $Proxy.setMaximumTimeToLock(IDevicePolicyManager.java:1038) ... 18 more No where in the documentation do I find this requirement and it doesn't seem to be needed for other devices.. Does this make sense? -- 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: Patent Infringement notice by Lodsys.
On Jul 7, 4:39 pm, JAlexoid (Aleksandr Panzin) jalex...@gmail.com wrote: Would you feel better if Google wrote a similar letter to Lodsys? You do understand that that letter is just that - a letter. Apple has not only written a letter but has motioned to intervene in the lawsuit against seven ios developers. So, yes, I would fell better if Google took similar actions, but I'm not counting on it. HTC has been paying royalties to Microsoft for what, two years? And only recently has Google shown concern. And HTC is probably at least ten times higher on the totem pole than we developers are in terms of our importance to Google. Nathan -- 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: Accessing PostGIS database from Android
On 9 авг, 19:30, Kostya Vasilyev kmans...@gmail.com wrote: In Eclipse, right-click on the project... Select Properties... Then Java Build Path and finally Libraries. Is the .jar there? Yes, JAR present in Libraries tab -- 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: How to detect HTML tag?
On Tue, Aug 9, 2011 at 12:43 AM, ndiiie90 rnd...@gmail.com wrote: How can i do that? I think it is not effective to replace all tag by proper character Try: http://developer.android.com/reference/android/text/Html.html - 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: Patent Infringement notice by Lodsys.
On Tuesday, August 9, 2011 6:05:18 PM UTC+1, Nathan wrote:# On Jul 7, 4:39 pm, JAlexoid (Aleksandr Panzin) jale...@gmail.com wrote: Would you feel better if Google wrote a similar letter to Lodsys? You do understand that that letter is just that - a letter. Apple has not only written a letter but has motioned to intervene in the lawsuit against seven ios developers. So, yes, I would fell better if Google took similar actions, but I'm not counting on it. Just keep in mind that, right after Apple took these actions, Lodsys immediately escalated their attacks on several devs from threat to lawsuit. Be careful what you wish for. String -- 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] What should I use for common parts of UI in Android application?
On Mon, Aug 8, 2011 at 11:50 PM, Alexey Zakharov alexey.v.zaha...@gmail.com wrote: Should this screens be separate activities? It can't as you're using Maps which requires one MapActivity. Is fragments API right thing to implement this? Maybe, I don't know. Take a gander at the Strategy Pattern. - 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: Intents
Since setIntent() stores a reference to the intent sent to onNewIntent(), you need to either capture the data there or copy the Intent to a local variable and reference it. Once onNewIntent() finishes, the Intent goes away and your reference is null. Try that... -Jim On Aug 9, 10:46 am, kypriakos demet...@ece.neu.edu wrote: Blech. he he ;) Use the Intent supplied to onNewIntent(). The Intent returned by getIntent() will always be the original Intent used to create the activity. But I am - and that's where the null exception occurs. Not sure if the setIntent or the super are needed. I will poke around a bit more to see what is going on. But if the Intent supplied by the onNewIntent() is what I need then that puts me on the right path. Thanks again guys -- 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: Patent Infringement notice by Lodsys.
I would think 1/10th HTC would be a wildly optimistic assessment of our importance to Google. On 8/10/2011 1:05 AM, Nathan wrote: On Jul 7, 4:39 pm, JAlexoid (Aleksandr Panzin)jalex...@gmail.com wrote: Would you feel better if Google wrote a similar letter to Lodsys? You do understand that that letter is just that - a letter. Apple has not only written a letter but has motioned to intervene in the lawsuit against seven ios developers. So, yes, I would fell better if Google took similar actions, but I'm not counting on it. HTC has been paying royalties to Microsoft for what, two years? And only recently has Google shown concern. And HTC is probably at least ten times higher on the totem pole than we developers are in terms of our importance to Google. Nathan -- 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] What should I use for common parts of UI in Android application?
In general, it is a good idea to start leveraging fragments. This will make it easier to rebuild the UI on tablets. Fragments allows reuse and well as storing of history state of each component. If you are only interested in handsets and don't care about component reuse or history state, then just use an activity and swap out components by setting view visibility. Also the complexity of the UI component is a factor (simple click events may not warrant a fragment but more complicated logic may). On Tue, Aug 9, 2011 at 10:25 AM, TreKing treking...@gmail.com wrote: On Mon, Aug 8, 2011 at 11:50 PM, Alexey Zakharov alexey.v.zaha...@gmail.com wrote: Should this screens be separate activities? It can't as you're using Maps which requires one MapActivity. Is fragments API right thing to implement this? Maybe, I don't know. Take a gander at the Strategy Pattern. - 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] Re: Patent Infringement notice by Lodsys.
How is this different from promoting your app via mobile ads? What if you annotated the link to your paid app as an advertisement? On Jul 6, 12:09 am, LostKid appi13...@gmail.com wrote: Hi We have a game 'Pocket Bingo' which is live in market. Recently got a Fedx from lodsys for a patent infringement on In-App billing. The notice asked us to take down a feature in the game, through which we redirected users to paid version of pocket bingo on the market. Lodsys not only has targeted iOS developers but android developers as well. I believe Apple has stepped in to help out fellow iOS developers. I wish to contact Google and get their attention and their guidance before i could reply to lodsys notice. Can any one please help me and let me know how do i contact Google about this. Also are there any other fellow developers who face the same problem. Any help is appreciated. 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] GLSurface creation taking time
Hi, I have an openGL based game running on 2.2. Sometimes the launch of the game takes time. From the logs it appears surface creation is taking time. This is an inconsistent issue. Any ideas why this might be happening ? Regards, Pradeep -- 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] What should I use for common parts of UI in Android application?
Yep, from my searches in Uber's code it uses ViewStabs and single map 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: Patent Infringement notice by Lodsys.
On Jul 6, 10:24 am, Christopher Van Kirk christopher.vank...@gmail.com wrote: I think the lawyer that Mark Murphy posted makes a more compelling argument for resistance. The Lodsys model depends on many businesses yielding without a fight. If Lodsys faces an uphill battle with every single patent assertion, they'll make a loss on each one and we'll be rid of them in no time at all. I am not convinced of this strategy and it could be counterproductive. Responding to the Lodsys letter threatening a fight tells them two things: a) you won't cooperate and b). You must have money and therefore you are worth suing. So far, having to fight several developers at once doesn't seem to phase LodSys at all. They've filed suit against seven developers in one court case, and they seem to be able to add and subtract defendants at will. Apple is trying to intervene in the suit and they still aren't phased. The Groklaw people may be real lawyers but I see several flaws in their suggestions. 1. Reexamination is stated by them as taking zero money. I have found no evidence that that is true. If someone finds how to do that for free, please post. But the estimates are $20,000-$30,000 and would take two to three years. In the meantime, you would still have to pay the costs of fighting LodSys if they decide to sue you. Not free. Not even close. 2. Seeking a declaratory judgement in whatever district, as they suggest, sounds great but it isn't free. It also means you have a *100%* chance of being in a lawsuit against Lodsys. They will fight it and countersue. Four companies have sought declaratory judgements, and Lodsys has caved on none of them. Some are currently spending money arguing over where Mark Small lives. Negotiating a license right away as Mr. Mueller suggests isn't the only option either. I talk to the Villain CEO who had wanted to band together with other iOS developers. He's heard from a dozen other people but they are waiting to see what LodSys does. In the meantime, what are they doing? Nothing. They've let the 21 days expire. LodSys has probably sent hundreds of letters and has actually started a lawsuit against seven developers. If it wins this case, I expect they will send followups (when may we expect payment?). If they lose, and the patent is invalidated, we can probably just laugh it off. I hope they lose. Seeking reexamination, getting declaratory judgements, and finding prior art are all good ideas, and should be done. I don't feel like I need to start a new court fight in order to do them. If I have a beautiful piece of prior art, I should probably send it to someone who is already fighting. Still, the best advice is to consult with a lawyer. But if that lawyer advises me to fight and hasn't promised to work for free, then I would seriously question their judgement and/or motives. Nathan -- 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: Patent Infringement notice by Lodsys.
On Aug 9, 10:41 am, MB manoj.bi...@gmail.com wrote: How is this different from promoting your app via mobile ads? What if you annotated the link to your paid app as an advertisement? The link to my paid app *is* an advertisement. It is done through AdWhirl as a house ad. My letter from LodSys shows a screenshot of that in their infringement chart. So that is not different as far as LodSys is concerned. They think they invented banner ads and hyperlinks. Nathan -- 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] Candle Stick Graph in Android??
Hi, Is there any good Candle Stick graph libraries for android..?? i managed to find couple of evaluatory versions.. not sure if there is a tested charting library for Candle Stick in Android..?? Any comments or solutions is highly appreciated.. thanks thulasi. -- 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] SoftKeyboard
Hello all, The default sofkeyboard in Nexus one 2.3 does not hide if we touch anywhere outside the keyboard. Actually, it hides with some apps but not with all. What might be the reason of this behaviour ? I have a custom keyboard along the lines of LatinIME so my keyboard also behaves the same. What can I do to have this feature ? Regards, Pradeep -- 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: Intents
Gotcha - but do you agree that the following should work and return the Extras bundle? @Override protected void onNewIntent(Intent intent){ Bundle extras = intent.getExtras(); ... Like Mark said, the intent var that is passed to the onNewIntent each time I start a new intent on a particular activity should hold a ref to that new intent and I should be able to access the data from it. No? On Aug 9, 1:26 pm, Jim secondphonea...@gmail.com wrote: Since setIntent() stores a reference to the intent sent to onNewIntent(), you need to either capture the data there or copy the Intent to a local variable and reference it. Once onNewIntent() finishes, the Intent goes away and your reference is null. Try that... -Jim On Aug 9, 10:46 am, kypriakos demet...@ece.neu.edu wrote: Blech. he he ;) Use the Intent supplied to onNewIntent(). The Intent returned by getIntent() will always be the original Intent used to create the activity. But I am - and that's where the null exception occurs. Not sure if the setIntent or the super are needed. I will poke around a bit more to see what is going on. But if the Intent supplied by the onNewIntent() is what I need then that puts me on the right path. Thanks again guys -- 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