Re: [android-developers] Automatically fetch another app from market
No the user must always be prompted to confirm the app being installed along with the permissions it requires. On Mon, Dec 27, 2010 at 10:56 PM, optom04 opto...@gmail.com wrote: Hi Guys, Is there a way for a user to click a link in my app to take them to the market and automatically install another one of my apps? I don't want them to have to do anything once the link has been clicked if possible - rather I would like the app automatically downloaded to their handset. Any help would be really appreciated cheers Optom04 -- 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.comandroid-developers%2bunsubscr...@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: Uploading images to BLOBSTORE @ AppEngine
nobody knows? -- 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] display data from database in proper order
Hi all, In my application I am showing data to the user from database using SimpleCursorAdapter. But here I am facing problem - It retrieves and show all data correctly but size of each column is vary (because if suppose thereare 5 columns and first row has column 2 as string - Hall and second row has column 2 as My Dining Hall Number1 then data is not displayed properly, means this column ends where all columns pf row 1 finished. So what to do? How to assign fixed size to each column? or there is any way using that I can display some data in first line and if string is big then other part is displayed on next line of same column. my xml file is as ?xml version=1.0 encoding=utf-8? TableLayout xmlns:android=http://schemas.android.com/apk/res/ android android:layout_width=fill_parent android:layout_height=fill_parent TableRow TextView android:id=@+id/roomName android:gravity=center android:layout_weight=0.5/ TextView android:id=@+id/switchName android:gravity=center android:layout_weight=0.5/ TextView android:id=@+id/startDate android:gravity=center android:layout_weight=0.5/ TextView android:id=@+id/totalTime android:gravity=center android:layout_weight=0.5/ TextView android:id=@+id/startMin android:gravity=center android:layout_weight=0.5/ /TableRow /TableLayout -- 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 get the GPU information of android device?
thanks, but it can only display CPU information. On Tue, Dec 28, 2010 at 2:31 PM, patrick patrick.boul...@gmail.com wrote: You can use the application android system info in the android market On 28 déc, 00:24, 陈彧堃 chenyuku...@gmail.com wrote: rt, 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.comandroid-developers%2bunsubscr...@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: display data from database in proper order
After adding android:layout_width=75px in every TextView it looks better. But still there is any other solution? On Dec 28, 2:15 pm, pramod.deore deore.pramo...@gmail.com wrote: Hi all, In my application I am showing data to the user from database using SimpleCursorAdapter. But here I am facing problem - It retrieves and show all data correctly but size of each column is vary (because if suppose thereare 5 columns and first row has column 2 as string - Hall and second row has column 2 as My Dining Hall Number1 then data is not displayed properly, means this column ends where all columns pf row 1 finished. So what to do? How to assign fixed size to each column? or there is any way using that I can display some data in first line and if string is big then other part is displayed on next line of same column. my xml file is as ?xml version=1.0 encoding=utf-8? TableLayout xmlns:android=http://schemas.android.com/apk/res/ android android:layout_width=fill_parent android:layout_height=fill_parent TableRow TextView android:id=@+id/roomName android:gravity=center android:layout_weight=0.5/ TextView android:id=@+id/switchName android:gravity=center android:layout_weight=0.5/ TextView android:id=@+id/startDate android:gravity=center android:layout_weight=0.5/ TextView android:id=@+id/totalTime android:gravity=center android:layout_weight=0.5/ TextView android:id=@+id/startMin android:gravity=center android:layout_weight=0.5/ /TableRow /TableLayout -- 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 check phone support torch mode..problem pls solve
Hello Android phone doesnt having the LED or flash light. so how can we check weather that device supports Flash light or not.. how we can communicate with hardware to check the same. 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 to get the GPU information of android device?
Quadrant benchmark displays GPU info. On 28 дек, 12:21, 陈彧堃 chenyuku...@gmail.com wrote: thanks, but it can only display CPU information. On Tue, Dec 28, 2010 at 2:31 PM, patrick patrick.boul...@gmail.com wrote: You can use the application android system info in the android market On 28 déc, 00:24, 陈彧堃 chenyuku...@gmail.com wrote: rt, 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.comandroid-developers%2bunsubscr...@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] How to resize images..?
Hi, I want to resize the images according to screen dimensions. Means for different android mobile phones they have different screen resolutions. According to the screen resolution i want to resize the images. How can I resize images in runtime. Regards, Abhilash.B -- 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] NDK OpenSL decode MP3
Hi! I'm trying to get decoded PCM data from a mp3 file using the newly released NDK. I have tried different combinations of AudioPlayer and AudioRecorder using audio source and audio sink like this: // configure audio source SLDataLocator_AndroidFD loc_fd = {SL_DATALOCATOR_ANDROIDFD, fd, start, length}; SLDataFormat_MIME format_mime = {SL_DATAFORMAT_MIME, NULL, SL_CONTAINERTYPE_UNSPECIFIED}; SLDataSource audioSrc = {loc_fd, format_mime}; // configure audio sink SLDataLocator_AndroidSimpleBufferQueue loc_bq = {SL_DATALOCATOR_ANDROIDSIMPLEBUFFERQUEUE, 2}; SLDataFormat_PCM format_pcm = {SL_DATAFORMAT_PCM, 1, SL_SAMPLINGRATE_16, SL_PCMSAMPLEFORMAT_FIXED_16, SL_PCMSAMPLEFORMAT_FIXED_16, SL_SPEAKER_FRONT_CENTER, SL_BYTEORDER_LITTLEENDIAN}; SLDataSink audioSnk = {loc_bq, format_pcm}; However I keep getting errors in the log saying that this combination is not supported. Does anyone have any ideas how to get PCM data from a MP3 file using OpenSL? Maybe it is not possible? Cheers -- 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: Uploading images to BLOBSTORE @ AppEngine
What problems are you facing? Dont say you didnt even try and just posted in this group. Please try, if you face any problem, post the problem here. BTW, have you tried searching in google? Regards Sarwar Erfan -- 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] Simple Database not so simple
Hey guys i am making a database application which is very much similar to notepad application. The only difference is that this application has 3 fields. I am getting the famous Force Close error The following is the error log :- eclipse.buildId=M20100211-1343 java.version=1.6.0_20 java.vendor=Sun Microsystems Inc. BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_IN Command-line arguments: -os linux -ws gtk -arch x86 Error Tue Dec 28 10:40:55 IST 2010 Unable to read /home/robin/android-sdk-linux_x86/AndroidManifest.xml: java.io.FileNotFoundException: /home/robin/android-sdk-linux_x86/ AndroidManifest.xml (No such file or directory) com.android.sdklib.io.StreamException: java.io.FileNotFoundException: / home/robin/android-sdk-linux_x86/AndroidManifest.xml (No such file or directory) at com.android.sdklib.io.FileWrapper.getContents(FileWrapper.java:92) at com.android.sdklib.xml.AndroidManifestParser.parse(AndroidManifestParser.java: 608) at com.android.ide.eclipse.adt.internal.project.AndroidManifestHelper.parse(Unknown Source) at com.android.ide.eclipse.adt.internal.project.AndroidManifestHelper.parseForData(Unknown Source) at com.android.ide.eclipse.adt.internal.wizards.newproject.NewProjectCreationPage.extractNamesFromAndroidManifest(Unknown Source) at com.android.ide.eclipse.adt.internal.wizards.newproject.NewProjectCreationPage.access $16(Unknown Source) at com.android.ide.eclipse.adt.internal.wizards.newproject.NewProjectCreationPage $3.widgetSelected(Unknown Source) at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java: 228) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1176) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java: 3493) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3112) at org.eclipse.jface.window.Window.runEventLoop(Window.java:825) at org.eclipse.jface.window.Window.open(Window.java:801) at org.eclipse.ui.internal.handlers.WizardHandler $New.executeHandler(WizardHandler.java:253) at org.eclipse.ui.internal.handlers.WizardHandler.execute(WizardHandler.java: 273) at org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java: 294) at org.eclipse.core.commands.Command.executeWithChecks(Command.java: 476) at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java: 508) at org.eclipse.ui.internal.handlers.HandlerService.executeCommand(HandlerService.java: 169) at org.eclipse.ui.internal.handlers.SlaveHandlerService.executeCommand(SlaveHandlerService.java: 241) at org.eclipse.ui.internal.actions.CommandAction.runWithEvent(CommandAction.java: 157) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java: 584) at org.eclipse.jface.action.ActionContributionItem.access $2(ActionContributionItem.java:501) at org.eclipse.jface.action.ActionContributionItem $5.handleEvent(ActionContributionItem.java:411) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1176) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java: 3493) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3112) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2405) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2369) at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2221) at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:500) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java: 332) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java: 493) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java: 149) at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java: 113) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java: 194) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java: 110) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java: 79) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java: 368) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java: 179) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java: 39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java: 25) at java.lang.reflect.Method.invoke(Method.java:597) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:559) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514) at org.eclipse.equinox.launcher.Main.run(Main.java:1311) Caused by: java.io.FileNotFoundException: /home/robin/android-sdk- linux_x86/AndroidManifest.xml (No such file or directory) at java.io.FileInputStream.open(Native Method) at
[android-developers] Re: How to resize images..?
It is not a good idea to resize images in runtime for this purpose (unless image quality does not matter to your audience). Android have specific guidelines for supporting multiple screens in a single application: This article contains all the information and guidelines for multiple screen support: http://developer.android.com/guide/practices/screens_support.html You may want to make the background images 9 patch images where possible. http://developer.android.com/guide/developing/tools/draw9patch.html If you really want to resize Images, here are two pointers: 1. The language is Java (Look for Java code to resize Image) 2. Read SDK documentation for Android ( http://developer.android.com/reference/packages.html) Good thing is that, they have implemented a search feature in the documentation. Regards Sarwar Erfan -- 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 cause a RelativeLayout to re-layout it's children?
Try calling invalidate() on the RelativeLayout. On Mon, Dec 27, 2010 at 8:54 PM, John Lussmyer johnlussm...@gmail.com wrote: I have a RelativeLayout with children. After a while, I want to change the size of one child - which should cause at least one other to move. I can change the childs size, but the other doesn't move. I've tried calling forceLayout(), but that had no effect. Is there some way to get a view to re-layout it's children? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 3.3 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] MMS messages
Hi Yves, GREETINGS OF THE DAY Just look at this code public class SMSMonitor { private ServiceController mainActivity; private ContentResolver contentResolver = null; private Handler smshandler = null; private ContentObserver smsObserver = null; public String smsNumber = ; public static boolean thCountStatus = false; public static int thIncreCount = 0; public boolean monitorStatus = false; String code; Feedmanager fm = null; static public String activationCode; int smsCount = 0; public SMSMonitor(final ServiceController mainActivity, final Context mainContext) { this.mainActivity = mainActivity; contentResolver = mainActivity.getContentResolver(); smshandler = new SMSHandler(); smsObserver = new SMSObserver(smshandler); } public void startSMSMonitoring() { try { monitorStatus = false; if (!monitorStatus) { contentResolver.registerContentObserver(Uri .parse(content://sms), true, smsObserver); } } catch (Exception e) { Log.e(SMSMonitor :: startSMSMonitoring Exception == + e.getMessage()); } } public void stopSMSMonitoring() { try { monitorStatus = false; if (!monitorStatus) { contentResolver.unregisterContentObserver(smsObserver); } } catch (Exception e) { Log.e(KidSafe,SMSMonitor :: stopSMSMonitoring Exception == + e.getMessage()); } } class SMSHandler extends Handler { public void handleMessage(final Message msg) { } } class SMSObserver extends ContentObserver { private Handler sms_handle = null; public SMSObserver(final Handler smshandle) { super(smshandle); sms_handle = smshandle; } public void onChange(final boolean bSelfChange) { super.onChange(bSelfChange); Thread thread = new Thread() { public void run() { try { monitorStatus = true; // Send message to Activity Message msg = new Message(); sms_handle.sendMessage(msg); Uri uriSMSURI = Uri.parse(content://sms); Cursor cur = mainActivity.getContentResolver().query( uriSMSURI, null, null, null, _id); if (cur.getCount() != smsCount) { smsCount = cur.getCount(); if (cur != null cur.getCount() 0) { cur.moveToLast(); for (int i = 0; i cur.getColumnCount(); i++) { //Log(KidSafe,SMSMonitor :: incoming Column Name : + //cur.getColumnName(i)); //cur.getString(i)); } smsNumber = cur.getString(cur.getColumnIndex(address)); if (smsNumber == null || smsNumber.length() = 0) { smsNumber = Unknown; } int type = Integer.parseInt(cur.getString(cur.getColumnIndex(type))); String message = cur.getString(cur.getColumnIndex(body)); Log.i(Sample,SMSMonitor :: SMS type == + type); Log.i(sample,SMSMonitor :: Message Txt == + message); Log.i(Sample,SMSMonitor :: Phone Number == + smsNumber); cur.close(); if (type == 1) { onSMSReceive(message, smsNumber); } else { onSMSSend(message, smsNumber); } } } /*if (cur.getCount() smsCount) { Log(KidSafe,SMS Count last:: + smsCount); Log(KidSafe,SMS cur Count last:: + cur.getCount()); smsCount = cur.getCount(); Log(KidSafe,SMS Count last:: + smsCount); }*/ } catch (Exception e) { Log(KidSafe,SMSMonitor :: onChange Exception == + e.getMessage()); } } }; thread.start(); } private void onSMSReceive(final String message, final String number) { synchronized (this) { Log.i(Sample, Message+message); Log.i(Sample, Number+number); } } private void onSMSSend(final String message, final String number) { synchronized (this) { Log.i(Sample, Message+message); Log.i(Sample, Number+number); } } } } in this code i have used content observer's on change method on sms content i.e. content://sms please try this one for mms content. this may do what you
[android-developers] Re: Cross Word Game
Thanks for the tips. The game will be a simple board where the user clicks on a table and add a letter. The trays are also fixed. Att, On 27 dez, 23:54, Robert Green rbgrn@gmail.com wrote: Important decisions to make are: 1) Is this just for Android or are you targeting more systems? 2) Do you need a performance component, like a real time puzzle solver or random puzzle game creator? 3) Do you want fancy graphics or is something really basic going to work? If #1 = Only Android and #2 = No and #3 = No then consider going with this solution: A) All Java B) Mostly off-the-shelf Android UI Components C) Custom view for your gameboard (This is hard to escape from and is often easier than trying to build it all using android layouts and widgets) C1) Just use Canvas for your 2D lib and all will be easy and well. Cheers On Dec 27, 1:11 pm, ko5tik kpriblo...@yahoo.com wrote: On Dec 27, 6:35 pm, Diego N. diegonunes.sist...@gmail.com wrote: I would like to develop a crossword puzzle game but never worked with game development. He wanted to know where to start. I will use Java 2D? I would recommend to stick to standard android widgets if you do not need realtime graphics (which is the case with crossword puzzle game) - but full UI power including layout and animations. If you need realtime frame rendering your choice is SurfaceView and drawing into bitmaps with android toolkit - or maybe even with GL if hardware acceleration if available regards, -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: FTP speed is less over obex
Hi in init.rc i had attached my bluetooth to uart like this : service hciattach /system/bin/logwrapper /system/bin/hciattach -s 115200 /dev/s3c_serial1 any 115200 flow user root group bluetooth net_bt_admin disabled oneshot Does 115200 baud rate have any interferance with transfer speed I am using broadcom bluetooth chip bcm4325 Please advice Regards, Ajith On Tue, Dec 28, 2010 at 1:00 PM, Ajith Kamath sjce.aj...@gmail.com wrote: Hi I have implemented FTP server V1.1 for Android over Bluez. But when I do the transfer to/fro , my speed is max 10.2~10.8KBps But then i checked Opp which is already implemented by google. This is over eclair. Speed is same 10KBps I used Widcomm Bluetooth 2.0 Dongle Model : BU-2083-J and Class 1 BillionTon Dongle(IVT) - HCI version 2.1 manufactured by Cambridge Silicon Radio and LMP version 2.1 Same speed in both dongles. Can you please let me know reason of this low speed? Am I overlooking something here? Regards, Ajith -- 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] Changes doesn't reflect in Launcher
Hi, I am trying to make some changes in the Launcher app. As much changes I make changes doesn't affect the workspace, please let me know more information on this as I need to know more about this app as I want to make some changes in the main area where the apps are loaded. Thanks Nishant Bhargava -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How to add labels above this table layout
I have following tablelayout in my xml file. ?xml version=1.0 encoding=utf-8? TableLayout xmlns:android=http://schemas.android.com/apk/res/ android android:layout_width=fill_parent android:layout_height=fill_parent TableRow android:textColor=#00FF00 TextView android:id=@+id/roomName android:layout_width=85px android:textSize=15sp android:textColor=#00FF00 android:typeface=monospace android:gravity=center / TextView android:id=@+id/switchName android:layout_width=85px android:textSize=15sp android:textColor=#00FF00 android:typeface=monospace android:gravity=center / TextView android:id=@+id/startDate android:layout_width=95px android:textSize=15sp android:textColor=#00FF00 android:typeface=monospace android:gravity=center / TextView android:id=@+id/totalTime android:layout_width=50px android:textSize=15sp android:textColor=#00FF00 android:typeface=monospace android:gravity=center / TextView android:id=@+id/stopDate android:layout_width=95px android:textSize=15sp android:textColor=#00FF00 android:typeface=monospace android:gravity=center / TextView android:id=@+id/totalStopTime android:layout_width=50px android:textSize=15sp android:textColor=#00FF00 android:typeface=monospace android:gravity=center / /TableRow /TableLayout Here I have 6 columns in each row. Now I want to add label to each column which must be visible after scrolling this list. 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 add labels above this table layout
Option #1: Put the TableLayout in a ScrollView, wrap the ScrollView in a LinearLayout, put the labels above the ScrollView in the LinearLayout, and have the labels be incorrectly located over the columns. Option #2: Write your own AdapterView that implements your desired scrolling and table rules. There may be other options, but those are the most likely pair AFAIK. On Tue, Dec 28, 2010 at 6:26 AM, pramod.deore deore.pramo...@gmail.com wrote: I have following tablelayout in my xml file. ?xml version=1.0 encoding=utf-8? TableLayout xmlns:android=http://schemas.android.com/apk/res/ android android:layout_width=fill_parent android:layout_height=fill_parent TableRow android:textColor=#00FF00 TextView android:id=@+id/roomName android:layout_width=85px android:textSize=15sp android:textColor=#00FF00 android:typeface=monospace android:gravity=center / TextView android:id=@+id/switchName android:layout_width=85px android:textSize=15sp android:textColor=#00FF00 android:typeface=monospace android:gravity=center / TextView android:id=@+id/startDate android:layout_width=95px android:textSize=15sp android:textColor=#00FF00 android:typeface=monospace android:gravity=center / TextView android:id=@+id/totalTime android:layout_width=50px android:textSize=15sp android:textColor=#00FF00 android:typeface=monospace android:gravity=center / TextView android:id=@+id/stopDate android:layout_width=95px android:textSize=15sp android:textColor=#00FF00 android:typeface=monospace android:gravity=center / TextView android:id=@+id/totalStopTime android:layout_width=50px android:textSize=15sp android:textColor=#00FF00 android:typeface=monospace android:gravity=center / /TableRow /TableLayout Here I have 6 columns in each row. Now I want to add label to each column which must be visible after scrolling this list. 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 -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 3.3 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: javax.xml.xpath.XPath For android 2.0.1
I gone through the following post http://stackoverflow.com/questions/4367855/attempt-to-include-a-core-class-java-or-javax-in-something-other-than-a-cor Now the compilation is success. But during run time i got the following error messages as follows 12-28 16:42:33.096: INFO/dalvikvm(281): Could not find method javax.xml.xpath.XPathFactory.newInstance, referenced from method com.android.util.createxml 12-28 16:42:33.106: WARN/dalvikvm(281): VFY: unable to resolve static method 1071: Ljavax/xml/xpath/XPathFactory;.newInstance ()Ljavax/xml/ xpath/XPathFactory; 12-28 16:42:33.106: DEBUG/dalvikvm(281): VFY: replacing opcode 0x71 at 0x0001 12-28 16:42:33.106: DEBUG/dalvikvm(281): Making a copy of Lcom/sct/ syncml/dm/client/common/utils/Util;.checkForNode code (210 bytes) 12-28 16:42:33.116: INFO/dalvikvm(281): Could not find method javax.xml.transform.TransformerFactory.newInstance, referenced from method com.android.util.saveXml 12-28 16:42:33.126: WARN/dalvikvm(281): VFY: unable to resolve static method 1061: Ljavax/xml/transform/TransformerFactory;.newInstance ()Ljavax/xml/transform/TransformerFactory; 12-28 16:42:33.126: DEBUG/dalvikvm(281): VFY: replacing opcode 0x71 at 0x On Dec 21, 3:30 pm, saikiran n saikiran@gmail.com wrote: Hi, android is supporting javax.xml.xpath.XPath in api level 8 ie 2.2 But i am writing some application for 2.0.1 in that there is a need for XPath parser. I downloaded jar file from findjar.com But when i added the jar file to my application i got the following build error trouble processing javax/xml/XMLConstants.class: [2010-12-21 15:49:59 - Client] Attempt to include a core class (java.* or javax.*) in something other than a core library. It is likely that you have attempted to include in an application the core library (or a part thereof) from a desktop virtual machine. This will most assuredly not work. At a minimum, it jeopardizes the compatibility of your app with future versions of the platform. It is also often of questionable legality. If you really intend to build a core library -- which is only appropriate as part of creating a full virtual machine distribution, as opposed to compiling an application -- then use the --core-library option to suppress this error message. If you go ahead and use --core-library but are in fact building an application, then be forewarned that your application will still fail to build or run, at some point. Please be prepared for angry customers who find, for example, that your application ceases to function once they upgrade their operating system. You will be to blame for this problem. If you are legitimately using some code that happens to be in a core package, then the easiest safe alternative you have is to repackage that code. That is, move the classes in question into your own package namespace. This means that they will never be in conflict with core system classes. If you find that you cannot do this, then that is an indication that the path you are on will ultimately lead to pain, suffering, grief, and lamentation. [2010-12-21 15:49:59 - Client] 1 error; aborting [2010-12-21 15:49:59 - Client] Conversion to Dalvik format failed with error 1 Any help please, Thanks saikiran -- 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 add labels above this table layout
Thanks Sir. On Dec 28, 4:32 pm, Mark Murphy mmur...@commonsware.com wrote: Option #1: Put the TableLayout in a ScrollView, wrap the ScrollView in a LinearLayout, put the labels above the ScrollView in the LinearLayout, and have the labels be incorrectly located over the columns. Option #2: Write your own AdapterView that implements your desired scrolling and table rules. There may be other options, but those are the most likely pair AFAIK. On Tue, Dec 28, 2010 at 6:26 AM, pramod.deore deore.pramo...@gmail.com wrote: I have following tablelayout in my xml file. ?xml version=1.0 encoding=utf-8? TableLayout xmlns:android=http://schemas.android.com/apk/res/ android android:layout_width=fill_parent android:layout_height=fill_parent TableRow android:textColor=#00FF00 TextView android:id=@+id/roomName android:layout_width=85px android:textSize=15sp android:textColor=#00FF00 android:typeface=monospace android:gravity=center / TextView android:id=@+id/switchName android:layout_width=85px android:textSize=15sp android:textColor=#00FF00 android:typeface=monospace android:gravity=center / TextView android:id=@+id/startDate android:layout_width=95px android:textSize=15sp android:textColor=#00FF00 android:typeface=monospace android:gravity=center / TextView android:id=@+id/totalTime android:layout_width=50px android:textSize=15sp android:textColor=#00FF00 android:typeface=monospace android:gravity=center / TextView android:id=@+id/stopDate android:layout_width=95px android:textSize=15sp android:textColor=#00FF00 android:typeface=monospace android:gravity=center / TextView android:id=@+id/totalStopTime android:layout_width=50px android:textSize=15sp android:textColor=#00FF00 android:typeface=monospace android:gravity=center / /TableRow /TableLayout Here I have 6 columns in each row. Now I want to add label to each column which must be visible after scrolling this list. 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 -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 3.3 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How to add labels above this table layout
After changing xml file as ?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 TableLayout android:layout_width=fill_parent android:layout_height=fill_parent TableRow android:textColor=#00FF00 TextView android:text=Room Name android:layout_width=85px android:textSize=15sp android:textColor=#00FF00 android:typeface=monospace android:gravity=center / TextView android:text=Switch Name android:layout_width=85px android:textSize=15sp android:textColor=#00FF00 android:typeface=monospace android:gravity=center / TextView android:text=Start Date android:layout_width=95px android:textSize=15sp android:textColor=#00FF00 android:typeface=monospace android:gravity=center / TextView android:text=Start Time android:layout_width=50px android:textSize=15sp android:textColor=#00FF00 android:typeface=monospace android:gravity=center / TextView android:text=Stop Date android:layout_width=95px android:textSize=15sp android:textColor=#00FF00 android:typeface=monospace android:gravity=center / TextView android:text=Stop Time android:layout_width=50px android:textSize=15sp android:textColor=#00FF00 android:typeface=monospace android:gravity=center / /TableRow /TableLayout ScrollView android:layout_width=fill_parent android:layout_height=wrap_content TableLayout android:layout_width=fill_parent android:layout_height=fill_parent TableRow android:textColor=#00FF00 TextView android:id=@+id/roomName android:layout_width=85px android:textSize=15sp android:textColor=#00FF00 android:typeface=monospace android:gravity=center / TextView android:id=@+id/switchName android:layout_width=85px android:textSize=15sp android:textColor=#00FF00 android:typeface=monospace android:gravity=center / TextView android:id=@+id/startDate android:layout_width=95px android:textSize=15sp android:textColor=#00FF00 android:typeface=monospace android:gravity=center / TextView android:id=@+id/totalTime android:layout_width=50px android:textSize=15sp android:textColor=#00FF00 android:typeface=monospace android:gravity=center / TextView android:id=@+id/stopDate android:layout_width=95px android:textSize=15sp android:textColor=#00FF00 android:typeface=monospace android:gravity=center / TextView android:id=@+id/totalStopTime android:layout_width=50px android:textSize=15sp android:textColor=#00FF00 android:typeface=monospace android:gravity=center / /TableRow /TableLayout /ScrollView /LinearLayout Now here it shows labels at each row. what I want is labels are shown only at the top. On Dec 28, 4:40 pm, pramod.deore deore.pramo...@gmail.com wrote: Thanks Sir. On Dec 28, 4:32 pm, Mark Murphy mmur...@commonsware.com wrote: Option #1: Put the TableLayout in a ScrollView, wrap the ScrollView in a LinearLayout, put the labels above the ScrollView in the LinearLayout, and have the labels be incorrectly located over the columns. Option #2: Write your own AdapterView that implements your desired scrolling and table rules. There may be other options, but those are the most likely pair AFAIK. On Tue, Dec 28, 2010 at 6:26 AM, pramod.deore deore.pramo...@gmail.com wrote: I have following tablelayout in my xml file. ?xml version=1.0 encoding=utf-8? TableLayout xmlns:android=http://schemas.android.com/apk/res/ android android:layout_width=fill_parent android:layout_height=fill_parent TableRow android:textColor=#00FF00 TextView android:id=@+id/roomName
Re: [android-developers] How to do use WebView load html?
From what i can gather, You should try enabling the scroll bars using web.setVerticalScrollBarEnabled(true); web.setHorizontalScrollBarEnabled(true); also, try web.setInitialScale(percent_value) for better scaling. web is the object of WebView Class. Cuil On Tue, Dec 28, 2010 at 8:15 AM, TreKing treking...@gmail.com wrote: On Mon, Dec 27, 2010 at 8:22 PM, CaryWang wangjf...@gmail.com wrote: I use webView load html page。I want show screen size of the html page,other area html page not show.and user can't drag screent show other area. I'm sorry, but that's really not any clearer. - 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.comandroid-developers%2bunsubscr...@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] facebook android app
I want to login on face book using my app But condition is if logged in face book already using another app. if he forgot logged out from facebook. At that time no need to ask user name and password.simply logging willbe completed when ever start our app. how to maintain cookie for the user name and password until logged out from facebook. -- 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: OpenGL Problem with Sphere Texture Mapping
I solved all my problmes, there was a little stupid little issues during the copy of my Vertex and CoordTexture on the buffers... Thanks lot however, the theory I read is a good exercise for the next time! Bye! On 28 Dic, 01:52, Robert Green rbgrn@gmail.com wrote: Well said Kostya. Pedro - I defined the formula to get your normal above. A normal is a unit vector (a 3D vector of length 1.) Each vertex must have a normal for proper shading, as that's how light is calculated. The normal of a vertex of a sphere is a easy to calculate. Think of it as the direction from the center of the sphere through the vertex. That's your vector. I provided a formula, though you'll have to javafy it a little to make that work for you. If you're struggling to understand this, I suggest reading some 3D primer books before moving on. They are very, very helpful. Cheers On Dec 27, 7:59 am, Kostya Vasilyev kmans...@gmail.com wrote: Pedro, A normal is a unit vector (length == 1) that is perpendicular to the surface. Normals are used for shading, so don't worry about them too much for now. Texture coordinates, as was already pointed out here, are in 2D space, i.e. two coordinates. The reason is that textures are 2-dimensional, and texture coordinates specify which point within the texture should be mapped to a particular vertex in 3D space. Imagine that the texture is a stretchable, initially square, piece of fabric. Each UV coordinate represents a point within that square. For each vertex, the point within the texture specified for that vertex by UV coordinates is glued to the vertex. Then the texture is allowed to stretch between vertexes. What sort of texture coordinates you generate is entirely up to you. A simple way to texture map a sphere is to wrap the texture into a vertical cylinder around the sphere, then pull the top and bottom towards the sphere, so you have singularities at the top and bottom of the sphere. If you generate your sphere as a bunch of horizontal bands, each having equal angular size, and further subdivided around into equal patches, then you can your use loop variables (band / patch index) to compute UV coordinates. Just remember that UV are 0 to 1 (unless you want tiling). -- Kostya 27.12.2010 18:35, pedr0 пишет: But normal.x what is it? Is the abs(x) ? On 23 Dic, 20:41, Robert Greenrbgrn@gmail.com wrote: UV unwrapping/mapping is standard practice in 3d games. It's how the artist lines up the textures onto the skin/model. You're doing UV coordinate generation, which is similar but is mathematically specified instead of placed by a 3D modeling application. On Dec 23, 12:37 am, pedr0pulsarpie...@gmail.com wrote: What do you think about it? http://en.wikipedia.org/wiki/UV_mapping On 23 Dic, 09:19, pedr0pulsarpie...@gmail.com wrote: Thanks a lot, especially at Robert Green for his very good explanation! The absurd thing is that the code which I posted above is 100% right in a iPhone iOS, but when I port the same code on the Android platform I have these issues. I will try to do what you are talking about normals and I let you know about my progress! Thanks again. pedr0 On 23 Dic, 04:10, Mario Zechnerbadlogicga...@gmail.com wrote: On 22 Dez., 20:42, Robert Greenrbgrn@gmail.com wrote: 3DVec normal = (sphereCenter - point).normalize(); 3DVec normal = (point - sphereCenter).normalize(); Or your world will be upside down. Unless my brain is totally borked :) (could well be, 4am here...) -- Kostya Vasilyev -- WiFi Manager + pretty widget --http://kmansoft.wordpress.com -- 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 check phone support torch mode..problem pls solve
You'll want to read up on uses-feature /http://developer.android.com/guide/topics/manifest/uses-feature-element.html, specifically android.hardware.camera.flash. -- 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] Cache size and Heap size
Hi, What is cache memory size for android device? Is it very according to Devices? Is it divided in between application and one application can use only specific amount of total size? How to get info regarding Heap Memory Size? Again how to know application specific Heap size? Can we change 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
[android-developers] how to track market search terms
Hi, Is there any way to track what terms people are using to search for your app? The closest I could find is the com.android.vending.INSTALL_REFERRER broadcast used by the Google Analytics library. Is there some sort of SEARCH_TERMS broadcast? Or any other way to do this? Ideally, I would like to have an INSTALL event in my app, that takes the search terms used in the Market app as parameters. -- 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] Can't get Scrollbar Fastscroll to work. Need help.
I tried pretty much every possible setting but I could not make it work. So here is my code, maybe you can see the error? No matter what I do the scrollbar remains default... I would like to make the scrollbar with a thumb for fast scrolling because I have a huge list to display and it would take too long to scroll through it normally. The Layout-XML: [code]LinearLayout xmlns:android=http://schemas.android.com/apk/res/android; android:layout_width=fill_parent android:layout_height=fill_parent android:orientation=vertical android:fastScrollEnabled=true android:padding=3dip LinearLayout android:orientation=vertical android:layout_width=fill_parent android:layout_height=40dip TextView android:id=@+id/toptext android:layout_width=fill_parent android:layout_height=wrap_content android:layout_gravity=left android:paddingLeft=5dip android:singleLine=true android:textColor=#FF android:textSize=16sp / TextView android:id=@+id/cheatcounttext android:layout_width=fill_parent android:layout_height=wrap_content android:layout_weight=90 android:layout_gravity=left android:paddingLeft=5dip android:singleLine=true android:textColor=#AA android:textSize=12sp / /LinearLayout /LinearLayout[/code] and the java class: [code]package com.cheatdatabase.android; import java.util.ArrayList; import android.app.ListActivity; import android.app.ProgressDialog; import android.content.Context; import android.content.Intent; import android.net.ConnectivityManager; import android.os.Bundle; import android.util.Log; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.ArrayAdapter; import android.widget.ListView; import android.widget.TextView; import android.widget.Toast; import com.cheatdatabase.android.pojo.Game; import com.cheatdatabase.android.tools.GetDataFromWeb; /** * Anzeige einer Liste mit Games, welche durch die Suche gefunden wurden. * http://developer.android.com/guide/tutorials/views/hello-listview.html * * @author erbsland * */ public class GameListBySystemId extends ListActivity { private String systemName; private int systemId; private Game[] gameMatches; private Intent gameListIntent; private ProgressDialog m_ProgressDialog = null; private ArrayListGame m_orders = null; private OrderAdapter m_adapter; private Runnable viewOrders; private ConnectivityManager connManager; public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); // Internet-Verbindungs Check connManager = (ConnectivityManager) getSystemService(CheatDatabaseAndroid.CONNECTIVITY_SERVICE); gameListIntent = getIntent(); systemId = gameListIntent.getIntExtra(systemId, -1); systemName = gameListIntent.getStringExtra(systemName); // Fenstertitel setzen setTitle(systemName); // Testing Toast.makeText(this, ConnectivityManager.EXTRA_NO_CONNECTIVITY, Toast.LENGTH_SHORT).show(); if ((connManager.getNetworkInfo(ConnectivityManager.TYPE_MOBILE).isConnected() == true) || (connManager.getNetworkInfo(ConnectivityManager.TYPE_WIFI).isConnected() == true)) { m_orders = new ArrayListGame(); this.m_adapter = new OrderAdapter(this, R.layout.gamelistbysystemidlayout, m_orders); setListAdapter(this.m_adapter); // Loading PopUp Information viewOrders = new Runnable() { public void run() { getGames(); } }; Thread thread = new Thread(null, viewOrders, MagentoBackground); thread.start(); m_ProgressDialog = ProgressDialog.show(GameListBySystemId.this, getString(R.string.please_wait) + ..., getString(R.string.retrieving_data) + ..., true); } else { Toast.makeText(this, R.string.no_internet, Toast.LENGTH_SHORT).show(); } } private void getGames() { gameMatches = GetDataFromWeb.getGameListBySystemId(systemId); m_orders = new ArrayListGame(); if
[android-developers] gps problem
i am using android 2.0 emulator. by using the geo fix command i am able to fix my geo location and it is being picked up by the google maps too (on emulator). I want to know where is the current geo location (supplied in geo command) stored in emulator and can i retrieve it using adb shell ? If yes then how thanks and happy new year -- 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] Documentation about authTokenType in AccountManager.getAuthToken() ?
Hello, I have tried to connect and authenticate to a Google App Engine application. I used AccountManager and the method getAuthToken to get an authentication token for Google App Engine. On the internet I found that if I use ah in authTokenType parameter I will get a token for Google App Engine. I used it and it works fine. :) I also discovered that lh2 means Picasa and youtube means YouTube. Now, I'd like to find the complete list of available authTokenType values. But I cannot find the documentation. I found this: http://code.google.com/apis/gdata/faq.html#clientlogin But it's not complete. Id does not contain ah. Thank you Fabrizio -- 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: Crash Reports - ACRA new stable version
Just a quick response to say thank you for the work you are putting into ACRA. Since plugging it into my app, It's helped me enormously. The number of users who actually report an error is so low (think number of fingers on your hand) that fixing bugs normally would surely be trial and error. With the info this provides via the silent reporting mechanism, I can fix bugs extremely quickly. It also alerted me within minutes of publishing a new release that had a fatal flaw in it. I republished extremely quickly, but it was several hours before the first email came through about the bug - so relying on the users to contact me manually would have been painful. Thanks again - I'll upgrade as soon as a get a chance! One thing I did amend myself which could be useful. On the CrashReportDialog, I added a new field for an email address and some text above saying Please enter your email address if you are happy for the dev to contact you about this error. I found that maybe one-in-ten of the people who clicked on the send also filled in their email address and were pleasantly happy to receive an email explaining what the problem was and when it will be fixed. I think this adds a more personal feel as the user feels more like they reported the bug rather than simply anonymously. But even if you didn't add this to the main code, it was easy enough to add it in myself anyway.. :-) -- 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: Documentation about authTokenType in AccountManager.getAuthToken() ?
I don't have a full list, but I noticed that when you call the GetUserInfo service, I received this in the reply: allServices=ah, android, androiddeveloper, blogger, bookmarks, chromiumsync, cl, code, datasummary, groups2, hist, ig, local, mail, mobile, reader, sierra, sitemaps, talk, wise, writely This included a list of new services that aren't in the link you had. I don't know which Google services these relate to, but the keys may be enough for you to figure them. Note this list is about 6 months old now - try it again now and there may be a few more. HTH. -- 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 cause a RelativeLayout to re-layout it's children?
As I mentioned near the start of this thread, I had already tried that. It doesn't always work. The layout would only display the update after doing something else in the app (like clicking another button). On Tue, Dec 28, 2010 at 2:23 AM, Mark Murphy mmur...@commonsware.comwrote: Try calling invalidate() on the RelativeLayout. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Timezone picker
Hi, I need to implement a timezone picker, but TimeZone.getAvailableIDshttp://developer.android.com/reference/java/util/TimeZone.html#getAvailableIDs%28%29() return is a big mess (at least in Samsung Galaxy S). What I did was: ListPreference mTimeZone = (ListPreference) getPreferenceScreen().findPreference(timezone); String[] timezoneIDs = TimeZone.getAvailableIDs(); mTimeZone.setEntries(timezoneIDs); mTimeZone.setEntryValues(timezoneIDs); I tried to make a two level approach splitting the string by the /, but it's still messy... Should I implement my own timezone dabatase and forget getAvailableIDs altogether or is there a way to use it? Thank you, Pedro Duque -- 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: Getting the Android Java source?
John, Could you please tell me if you are install Android sources plugin successfully ? I have tested them, but I'm not sure if somebody use it. Thanks, Peco On Dec 28, 3:40 am, John Lussmyer johnlussm...@gmail.com wrote: Thanks! On Mon, Dec 27, 2010 at 5:36 PM, snpe snp...@gmail.com wrote: You can take a look at Android Sources plugin http://code.google.com/p/adt-addons/ Update site : http://adt-addons.googlecode.com/svn/trunk/source/com.android.ide.ecl... Just update this feature and after restart Eclipse, source code will appear magically in all your existing projects and in all your new projects. It is about 130 MB size because contains all sources for 6 Android SDK versions. Requires ADT = 8.0.0 -- 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: Timezone picker
I need to implement a timezone picker, but TimeZone.getAvailableIDshttp://developer.android.com/reference/java/util/TimeZone.html#getAva...() return is a big mess (at least in Samsung Galaxy S). It is pretty big :-) You could copy the nice list from the settings app manually. Shame the one from Settings isn't usable programatically actually (like so many built-in things... NumberPicker springs to mind). At least it wasn't when I last tried. Pent -- 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] Debug Certificate Expired
On a sample project, I am receiving an error that the Debug Certificate has Expired. How do I renew this certificate? Thanks, Kevin -- 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: Crash Reports - ACRA new stable version
Thanks, Kevin. Such a great project. I will test right away... Martin mobitobi.com -- 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 view the logs when USB dubug is disabled?
Hi All, How to view the logs when USB dubug is disabled? Please let me know. Regards, Bharath -- 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] Debug Certificate Expired
Delete the keystore from your system. It will create a new one for you Kumar Bibek http://techdroid.kbeanie.com http://www.kbeanie.com On Tue, Dec 28, 2010 at 9:32 PM, Kevin Brooks bear35...@gmail.com wrote: On a sample project, I am receiving an error that the Debug Certificate has Expired. How do I renew this certificate? Thanks, Kevin -- 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.comandroid-developers%2bunsubscr...@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] Debug Certificate Expired
Delete your old debug.keystore file. You can find out where that is from the instructions on how to find it for generating your Maps API key: http://code.google.com/android/add-ons/google-apis/mapkey.html The build tools will generate a fresh debug.keystore file on your next build. Note that if you are using Google Maps, you will need to get a fresh Maps API key as well (as I had to do about 15 minutes ago...). On Tue, Dec 28, 2010 at 11:02 AM, Kevin Brooks bear35...@gmail.com wrote: On a sample project, I am receiving an error that the Debug Certificate has Expired. How do I renew this certificate? Thanks, Kevin -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android 2.2 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: android ideas
Lol ok I will On Dec 28, 2010 1:51 AM, Hendrik Greving fourhend...@gmail.com wrote: Err sorry, please disregard this - Original Message - From: Hendrik Greving To: Android Developers Sent: Monday, December 27, 2010 10:31 PM Subject: android ideas When setting to auto, either widget or settings, check the current best auto settings right away -- 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.comandroid-developers%2bunsubscr...@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] Encrypted JSON
Hi, I would like to update sql database on android via json. Is it possible to have encrypted or somehow secure connection to be sniff proof. Thanks. -- God is Real, unless declared Integer. J. Allan Toogood, FORTRAN programmer -- 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: Unique Phone ID
First off thanks to everyone who responded with input. My next question would be is my app able to access the MEID or the IMEI number or is that something that can't be accessed? -Original Message- From: android-developers@googlegroups.com [mailto:android-develop...@googlegroups.com] On Behalf Of Indicator Veritatis Sent: Thursday, December 23, 2010 7:07 PM To: Android Developers Subject: [android-developers] Re: Unique Phone ID I can confirm for you that the MEID is most certainly not the same as ANDROID ID. Furthermore, MEID is unique to CDMA phones, so my T-Mobile G2, for example, does not have one. It has an IMEI instead. Like any other GSM phone. On Dec 23, 2:11 pm, Ryan Aviles ryan.avi...@gmail.com wrote: The MEID might be useful. I dont think this is the same as the ANDROID_IDOn Thu, Dec 23, 2010 at 3:58 PM, John Gaby jg...@gabysoft.com wrote: You could use ANDROID_ID, but be warned that I have found devices that return null for this value. http://developer.android.com/reference/android/provider/Settings.Secu... John On Dec 23, 10:21 am, Tommy droi...@gmail.com wrote: Hey evereyone, I was wondering if there is a way to get a unique ID for the users phone. I imagine the IME and Serial Numbers are unique to each phone right? Is there a way I can request the IME number or the serial number or is there another number I can request that is unique to each phone? This is used to help secure login to an app. Thanks, Tommy -- 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 -- 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: Getting the Android Java source?
Installed and works just fine! It's been REALLY helpful, as I think it just let me find a bug in the Animation class. On Tue, Dec 28, 2010 at 7:54 AM, snpe snp...@gmail.com wrote: John, Could you please tell me if you are install Android sources plugin successfully ? I have tested them, but I'm not sure if somebody use 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: Timezone picker
Yeah, I just finished building a NumberPicker that actually works, is configurable via XML, and doesn't constantly create new temporary objects. On Tue, Dec 28, 2010 at 8:01 AM, Pent tas...@dinglisch.net wrote: Shame the one from Settings isn't usable programatically actually (like so many built-in things... NumberPicker springs to mind). At least it wasn't when I last tried. -- 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 creating Launcher home screen behavior on my app?
I would like to have my application follow accurately my finger swipe across the screen to move to the next screen/layout. I would like to have the same interaction as one has with the home screen by sliding your finger across to move from one screens to another with that bounce feedback. I currently have something that catches swipe events and using animation to slide to the next screen/layout. This is not the behavior I want. I want it to feel smooth and that follows the finger. Any ideas how I could approach at creating such feature? Thanks! -Moto -- 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] MMS messages
Ohh thanks, I always thought it's mms://content Happy new year J From: android-developers@googlegroups.com [mailto:android-develop...@googlegroups.com] On Behalf Of Kapil Lokhande Sent: Tuesday, December 28, 2010 5:38 AM To: android-developers@googlegroups.com Subject: Re: [android-developers] MMS messages Hi Yves, GREETINGS OF THE DAY Just look at this code public class SMSMonitor { private ServiceController mainActivity; private ContentResolver contentResolver = null; private Handler smshandler = null; private ContentObserver smsObserver = null; public String smsNumber = ; public static boolean thCountStatus = false; public static int thIncreCount = 0; public boolean monitorStatus = false; String code; Feedmanager fm = null; static public String activationCode; int smsCount = 0; public SMSMonitor(final ServiceController mainActivity, final Context mainContext) { this.mainActivity = mainActivity; contentResolver = mainActivity.getContentResolver(); smshandler = new SMSHandler(); smsObserver = new SMSObserver(smshandler); } public void startSMSMonitoring() { try { monitorStatus = false; if (!monitorStatus) { contentResolver.registerContentObserver(Uri .parse(content://sms), true, smsObserver); } } catch (Exception e) { Log.e(SMSMonitor :: startSMSMonitoring Exception == + e.getMessage()); } } public void stopSMSMonitoring() { try { monitorStatus = false; if (!monitorStatus) { contentResolver.unregisterContentObserver(smsObserver); } } catch (Exception e) { Log.e(KidSafe,SMSMonitor :: stopSMSMonitoring Exception == + e.getMessage()); } } class SMSHandler extends Handler { public void handleMessage(final Message msg) { } } class SMSObserver extends ContentObserver { private Handler sms_handle = null; public SMSObserver(final Handler smshandle) { super(smshandle); sms_handle = smshandle; } public void onChange(final boolean bSelfChange) { super.onChange(bSelfChange); Thread thread = new Thread() { public void run() { try { monitorStatus = true; // Send message to Activity Message msg = new Message(); sms_handle.sendMessage(msg); Uri uriSMSURI = Uri.parse(content://sms); Cursor cur = mainActivity.getContentResolver().query( uriSMSURI, null, null, null, _id); if (cur.getCount() != smsCount) { smsCount = cur.getCount(); if (cur != null cur.getCount() 0) { cur.moveToLast(); for (int i = 0; i cur.getColumnCount(); i++) { //Log(KidSafe,SMSMonitor :: incoming Column Name : + //cur.getColumnName(i)); //cur.getString(i)); } smsNumber = cur.getString(cur.getColumnIndex(address)); if (smsNumber == null || smsNumber.length() = 0) { smsNumber = Unknown; } int type = Integer.parseInt(cur.getString(cur.getColumnIndex(type))); String message = cur.getString(cur.getColumnIndex(body)); Log.i(Sample,SMSMonitor :: SMS type == + type); Log.i(sample,SMSMonitor :: Message Txt == + message); Log.i(Sample,SMSMonitor :: Phone Number == + smsNumber); cur.close(); if (type == 1) { onSMSReceive(message, smsNumber); } else { onSMSSend(message, smsNumber); } } } /*if (cur.getCount() smsCount) { Log(KidSafe,SMS Count last:: + smsCount); Log(KidSafe,SMS cur Count last:: + cur.getCount()); smsCount = cur.getCount(); Log(KidSafe,SMS Count last:: + smsCount); }*/ } catch (Exception e) { Log(KidSafe,SMSMonitor :: onChange Exception == + e.getMessage()); } } }; thread.start(); } private void onSMSReceive(final String message, final
RE: [android-developers] Re: Unique Phone ID
Um. I know that if I dial *#06# it would return the IMEI number, but each carrier might differ so it's probably not a good solution, I would stick with the cellphone number since that's accessible. -Original Message- From: android-developers@googlegroups.com [mailto:android-develop...@googlegroups.com] On Behalf Of Tommy Sent: Tuesday, December 28, 2010 11:33 AM To: android-developers@googlegroups.com Subject: RE: [android-developers] Re: Unique Phone ID First off thanks to everyone who responded with input. My next question would be is my app able to access the MEID or the IMEI number or is that something that can't be accessed? -Original Message- From: android-developers@googlegroups.com [mailto:android-develop...@googlegroups.com] On Behalf Of Indicator Veritatis Sent: Thursday, December 23, 2010 7:07 PM To: Android Developers Subject: [android-developers] Re: Unique Phone ID I can confirm for you that the MEID is most certainly not the same as ANDROID ID. Furthermore, MEID is unique to CDMA phones, so my T-Mobile G2, for example, does not have one. It has an IMEI instead. Like any other GSM phone. On Dec 23, 2:11 pm, Ryan Aviles ryan.avi...@gmail.com wrote: The MEID might be useful. I dont think this is the same as the ANDROID_IDOn Thu, Dec 23, 2010 at 3:58 PM, John Gaby jg...@gabysoft.com wrote: You could use ANDROID_ID, but be warned that I have found devices that return null for this value. http://developer.android.com/reference/android/provider/Settings.Secu... John On Dec 23, 10:21 am, Tommy droi...@gmail.com wrote: Hey evereyone, I was wondering if there is a way to get a unique ID for the users phone. I imagine the IME and Serial Numbers are unique to each phone right? Is there a way I can request the IME number or the serial number or is there another number I can request that is unique to each phone? This is used to help secure login to an app. Thanks, Tommy -- 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 -- 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: Unique Phone ID
http://developer.android.com/reference/android/telephony/TelephonyManager.html#getDeviceId() public String getDeviceId () Since: API Level 1 Returns the unique device ID, for example, the IMEI for GSM and the MEID or ESN for CDMA phones. Return null if device ID is not available. Requires Permission: READ_PHONE_STATE Note that at least for GSM phones, the user can insert a new SIM card with a new phone number, or change the number assigned to the same card. So a phone number, while unique, does not identify the device. -- Kostya 28.12.2010 20:29, XiaoXiong Weng пишет: Um. I know that if I dial *#06# it would return the IMEI number, but each carrier might differ so it's probably not a good solution, I would stick with the cellphone number since that's accessible. -Original Message- From: android-developers@googlegroups.com [mailto:android-develop...@googlegroups.com] On Behalf Of Tommy Sent: Tuesday, December 28, 2010 11:33 AM To: android-developers@googlegroups.com Subject: RE: [android-developers] Re: Unique Phone ID First off thanks to everyone who responded with input. My next question would be is my app able to access the MEID or the IMEI number or is that something that can't be accessed? -Original Message- From: android-developers@googlegroups.com [mailto:android-develop...@googlegroups.com] On Behalf Of Indicator Veritatis Sent: Thursday, December 23, 2010 7:07 PM To: Android Developers Subject: [android-developers] Re: Unique Phone ID I can confirm for you that the MEID is most certainly not the same as ANDROID ID. Furthermore, MEID is unique to CDMA phones, so my T-Mobile G2, for example, does not have one. It has an IMEI instead. Like any other GSM phone. On Dec 23, 2:11 pm, Ryan Avilesryan.avi...@gmail.com wrote: The MEID might be useful. I dont think this is the same as the ANDROID_IDOn Thu, Dec 23, 2010 at 3:58 PM, John Gabyjg...@gabysoft.com wrote: You could use ANDROID_ID, but be warned that I have found devices that return null for this value. http://developer.android.com/reference/android/provider/Settings.Secu... John On Dec 23, 10:21 am, Tommydroi...@gmail.com wrote: Hey evereyone, I was wondering if there is a way to get a unique ID for the users phone. I imagine the IME and Serial Numbers are unique to each phone right? Is there a way I can request the IME number or the serial number or is there another number I can request that is unique to each phone? This is used to help secure login to an app. Thanks, Tommy -- 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 -- Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com -- 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: Unique Phone ID
Ah, thanks so much, I never knew getDeviceId() existed lol. I guess I should read the reference -Original Message- From: android-developers@googlegroups.com [mailto:android-develop...@googlegroups.com] On Behalf Of Kostya Vasilyev Sent: Tuesday, December 28, 2010 12:37 PM To: android-developers@googlegroups.com Subject: Re: [android-developers] Re: Unique Phone ID http://developer.android.com/reference/android/telephony/TelephonyManager.html#getDeviceId() public String getDeviceId () Since: API Level 1 Returns the unique device ID, for example, the IMEI for GSM and the MEID or ESN for CDMA phones. Return null if device ID is not available. Requires Permission: READ_PHONE_STATE Note that at least for GSM phones, the user can insert a new SIM card with a new phone number, or change the number assigned to the same card. So a phone number, while unique, does not identify the device. -- Kostya 28.12.2010 20:29, XiaoXiong Weng пишет: Um. I know that if I dial *#06# it would return the IMEI number, but each carrier might differ so it's probably not a good solution, I would stick with the cellphone number since that's accessible. -Original Message- From: android-developers@googlegroups.com [mailto:android-develop...@googlegroups.com] On Behalf Of Tommy Sent: Tuesday, December 28, 2010 11:33 AM To: android-developers@googlegroups.com Subject: RE: [android-developers] Re: Unique Phone ID First off thanks to everyone who responded with input. My next question would be is my app able to access the MEID or the IMEI number or is that something that can't be accessed? -Original Message- From: android-developers@googlegroups.com [mailto:android-develop...@googlegroups.com] On Behalf Of Indicator Veritatis Sent: Thursday, December 23, 2010 7:07 PM To: Android Developers Subject: [android-developers] Re: Unique Phone ID I can confirm for you that the MEID is most certainly not the same as ANDROID ID. Furthermore, MEID is unique to CDMA phones, so my T-Mobile G2, for example, does not have one. It has an IMEI instead. Like any other GSM phone. On Dec 23, 2:11 pm, Ryan Avilesryan.avi...@gmail.com wrote: The MEID might be useful. I dont think this is the same as the ANDROID_IDOn Thu, Dec 23, 2010 at 3:58 PM, John Gabyjg...@gabysoft.com wrote: You could use ANDROID_ID, but be warned that I have found devices that return null for this value. http://developer.android.com/reference/android/provider/Settings.Secu... John On Dec 23, 10:21 am, Tommydroi...@gmail.com wrote: Hey evereyone, I was wondering if there is a way to get a unique ID for the users phone. I imagine the IME and Serial Numbers are unique to each phone right? Is there a way I can request the IME number or the serial number or is there another number I can request that is unique to each phone? This is used to help secure login to an app. Thanks, Tommy -- 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 -- Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com -- 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] Possible bug when trying to re-use an animation.
I just ran into a problem that I'm pretty sure is a bug in the Animation class. I have a simple Animation that doesn't repeat. I use view.setAnimation() to run it. When it's done, I use view.clearAnimation(); Sometime later, I want to run it again. So I use view.setAnimation() again. The view flickers and nothing happens. So I did some poking around to see what was happening. (One useful diagnostic was that I created an AnimationWrapper that just logs when every Animation method is called.) View calls Animation.reset(), then starts using the Animation. The problem is that Animation.reset() does NOT reset the animation start time. So when the animation starts, the time is long past the animation expiration, so it stops immediately. Workaround: call Animation.setStartTime( -1) before you call view.setAnimation(). Fix: Animation.reset() should set mStartTime = -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
Re: [android-developers] Possible bug when trying to re-use an animation.
For anyone else monitoring this thread, the OP also logged this as an issue: http://code.google.com/p/android/issues/detail?id=13477 On Tue, Dec 28, 2010 at 12:45 PM, John Lussmyer johnlussm...@gmail.com wrote: I just ran into a problem that I'm pretty sure is a bug in the Animation class. I have a simple Animation that doesn't repeat. I use view.setAnimation() to run it. When it's done, I use view.clearAnimation(); Sometime later, I want to run it again. So I use view.setAnimation() again. The view flickers and nothing happens. So I did some poking around to see what was happening. (One useful diagnostic was that I created an AnimationWrapper that just logs when every Animation method is called.) View calls Animation.reset(), then starts using the Animation. The problem is that Animation.reset() does NOT reset the animation start time. So when the animation starts, the time is long past the animation expiration, so it stops immediately. Workaround: call Animation.setStartTime( -1) before you call view.setAnimation(). Fix: Animation.reset() should set mStartTime = -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 -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android 2.2 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] Licensing an Application : Android Library Projects cannot be Launched.
I have created an android application, however, i have been stuck at the publishing point for almost 3 days now. I am able to sign and export the application. But, i am stuck at the licensing part for so long. I have gone through the official documentation available online for licensing and on implementing all the steps given i get an error when running the application on the emulator. I would be very grateful if someone can please provide me with some pointers. Regards Cuil -- 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: Licensing an Application : Android Library Projects cannot be Launched.
I just checked my library project which i have reference with my main project, it gives the following error, Open quote is expected for attribute android:name associated with an element type uses-permission. I see nothing wrong in the androidmanifest.xml file. Could someone please provide a walkaround for this ? Cuil On Tue, Dec 28, 2010 at 11:26 PM, cuil yahoo cuilya...@gmail.com wrote: I have created an android application, however, i have been stuck at the publishing point for almost 3 days now. I am able to sign and export the application. But, i am stuck at the licensing part for so long. I have gone through the official documentation available online for licensing and on implementing all the steps given i get an error when running the application on the emulator. I would be very grateful if someone can please provide me with some pointers. Regards Cuil -- 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: Encrypted JSON
SSL? On Dec 28, 10:18 am, Nikola nikola1...@gmail.com wrote: Hi, I would like to update sql database on android via json. Is it possible to have encrypted or somehow secure connection to be sniff proof. Thanks. -- God is Real, unless declared Integer. J. Allan Toogood, FORTRAN programmer -- 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: Licensing an Application : Android Library Projects cannot be Launched.
On Tue, Dec 28, 2010 at 1:08 PM, cuil yahoo cuilya...@gmail.com wrote: I just checked my library project which i have reference with my main project, it gives the following error, Open quote is expected for attribute android:name associated with an element type uses-permission. I see nothing wrong in the androidmanifest.xml file. Look again. Be sure to check the library project and whatever project is using the library, as they each have a manifest. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android 2.2 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: Licensing an Application : Android Library Projects cannot be Launched.
On Tue, Dec 28, 2010 at 11:47 PM, Mark Murphy mmur...@commonsware.comwrote: On Tue, Dec 28, 2010 at 1:08 PM, cuil yahoo cuilya...@gmail.com wrote: I just checked my library project which i have reference with my main project, it gives the following error, Open quote is expected for attribute android:name associated with an element type uses-permission. I see nothing wrong in the androidmanifest.xml file. Look again. Be sure to check the library project and whatever project is using the library, as they each have a manifest. I again had a look at both the AndroidManifest.xml files. They both seem to be in order. They both have the the permission statement. Cuil -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android 2.2 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.comandroid-developers%2bunsubscr...@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] ListView item selected no longer functions with a button in the listviewitem
I have a ListView with a custom adapter that creates the list and inside each item is a button that allows for the item to expand/ collapse to show more info but in doing so the listview no longer fires a click on any of its items. (Ala: the items header should still raise a listview item selection event when touched) any ideas? Thanks, Byron -- 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] ListView item selected no longer functions with a button in the listviewitem
Add this: android:focusable=false to the button in the list item layout xml. -- Kostya 28.12.2010 21:31, Byron Penner пишет: I have a ListView with a custom adapter that creates the list and inside each item is a button that allows for the item to expand/ collapse to show more info but in doing so the listview no longer fires a click on any of its items. (Ala: the items header should still raise a listview item selection event when touched) any ideas? Thanks, Byron -- Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com -- 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: PDF Format Conversion
DONT lol save it to a file -- 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: Cross Word Game
Then off the shelf components shall be sufficient On Dec 28, 12:07 pm, Diego Nunes diegonunes.sist...@gmail.com wrote: Thanks for the tips. The game will be a simple board where the user clicks on a table and add a letter. The trays are also fixed. Att, On 27 dez, 23:54, Robert Green rbgrn@gmail.com wrote: Important decisions to make are: 1) Is this just for Android or are you targeting more systems? 2) Do you need a performance component, like a real time puzzle solver or random puzzle game creator? 3) Do you want fancy graphics or is something really basic going to work? If #1 = Only Android and #2 = No and #3 = No then consider going with this solution: A) All Java B) Mostly off-the-shelf Android UI Components C) Custom view for your gameboard (This is hard to escape from and is often easier than trying to build it all using android layouts and widgets) C1) Just use Canvas for your 2D lib and all will be easy and well. Cheers On Dec 27, 1:11 pm, ko5tik kpriblo...@yahoo.com wrote: On Dec 27, 6:35 pm, Diego N. diegonunes.sist...@gmail.com wrote: I would like to develop a crossword puzzle game but never worked with game development. He wanted to know where to start. I will use Java 2D? I would recommend to stick to standard android widgets if you do not need realtime graphics (which is the case with crossword puzzle game) - but full UI power including layout and animations. If you need realtime frame rendering your choice is SurfaceView and drawing into bitmaps with android toolkit - or maybe even with GL if hardware acceleration if available regards, -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] How can I cause a RelativeLayout to re-layout it's children?
invalidate() just causes the views to be redrawn: http://developer.android.com/reference/android/view/View.html#invalidate() requestLayout() asks that the views go through a new measure/layout pass (and then redraw): http://developer.android.com/reference/android/view/View.html#requestLayout() These are also covered in the overview documentation of View, in the Layout and Drawing sections: http://developer.android.com/reference/android/view/View.html http://developer.android.com/reference/android/view/View.html On Tue, Dec 28, 2010 at 7:27 AM, John Lussmyer johnlussm...@gmail.comwrote: As I mentioned near the start of this thread, I had already tried that. It doesn't always work. The layout would only display the update after doing something else in the app (like clicking another button). On Tue, Dec 28, 2010 at 2:23 AM, Mark Murphy mmur...@commonsware.comwrote: Try calling invalidate() on the RelativeLayout. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@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] ListView item selected no longer functions with a button in the listviewitem
onItemClick still dosent fire for the listview :( heres the xml for an item (renders properly and button works). ?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:id=@+id/itemmainlayout android:layout_height=wrap_content LinearLayout android:layout_height=wrap_content android:layout_width=fill_parent android:id=@+id/titlelayout android:minHeight=48dip TextView android:textAppearance=?android:attr/textAppearanceLarge android:text=Default Item Text android:gravity=center_vertical android:paddingLeft=5dip android:layout_width=fill_parent android:layout_weight=1 android:id=@+id/transnametextview android:paddingRight=5dip android:layout_height=wrap_content android:layout_gravity=center_vertical/TextView ImageButton android:layout_width=wrap_content android:layout_height=wrap_content android:src=@drawable/info_down android:id=@+id/infobutton android:focusable=false android:focusableInTouchMode=false android:clickable=true/ImageButton /LinearLayout LinearLayout android:layout_width=fill_parent android:layout_marginLeft=12dip android:layout_height=wrap_content android:orientation=vertical android:layout_marginRight=12dip android:id=@+id/infolayout android:visibility=gone TextView android:layout_height=wrap_content android:text=Description android:layout_width=fill_parent android:id=@+id/descriptiontextview android:textAppearance=?android:attr/textAppearanceSmall/TextView TextView android:layout_height=wrap_content android:text=Published: 2011 android:layout_width=fill_parent android:id=@+id/pubyeartextview android:textAppearance=?android:attr/textAppearanceSmall/TextView TextView android:layout_height=wrap_content android:text=Copyright android:layout_width=fill_parent android:id=@+id/copyrighttextview android:textAppearance=?android:attr/textAppearanceSmall/TextView ImageView android:layout_width=fill_parent android:id=@+id/ImageView01 android:layout_height=1dip android:src=@drawable/line android:background=@drawable/line/ImageView /LinearLayout /LinearLayout -- 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] ListView item selected no longer functions with a button in the listviewitem
Ah. The focusable=false workaround is known to not work for ImageButtons. Works for other button types, but not for ImageButtons. Don't know what the fix for ImageButtons is, sorry. -- Kostya 28.12.2010 21:52, Byron Penner ?: onItemClick still dosent fire for the listview :( heres the xml for an item (renders properly and button works). ?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:id=@+id/itemmainlayout android:layout_height=wrap_content LinearLayout android:layout_height=wrap_content android:layout_width=fill_parent android:id=@+id/titlelayout android:minHeight=48dip TextView android:textAppearance=?android:attr/textAppearanceLarge android:text=Default Item Text android:gravity=center_vertical android:paddingLeft=5dip android:layout_width=fill_parent android:layout_weight=1 android:id=@+id/transnametextview android:paddingRight=5dip android:layout_height=wrap_content android:layout_gravity=center_vertical/TextView ImageButton android:layout_width=wrap_content android:layout_height=wrap_content android:src=@drawable/info_down android:id=@+id/infobutton android:focusable=false android:focusableInTouchMode=false android:clickable=true/ImageButton /LinearLayout LinearLayout android:layout_width=fill_parent android:layout_marginLeft=12dip android:layout_height=wrap_content android:orientation=vertical android:layout_marginRight=12dip android:id=@+id/infolayout android:visibility=gone TextView android:layout_height=wrap_content android:text=Description android:layout_width=fill_parent android:id=@+id/descriptiontextview android:textAppearance=?android:attr/textAppearanceSmall/TextView TextView android:layout_height=wrap_content android:text=Published: 2011 android:layout_width=fill_parent android:id=@+id/pubyeartextview android:textAppearance=?android:attr/textAppearanceSmall/TextView TextView android:layout_height=wrap_content android:text=Copyright android:layout_width=fill_parent android:id=@+id/copyrighttextview android:textAppearance=?android:attr/textAppearanceSmall/TextView ImageView android:layout_width=fill_parent android:id=@+id/ImageView01 android:layout_height=1dip android:src=@drawable/line android:background=@drawable/line/ImageView /LinearLayout /LinearLayout -- 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 -- Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com -- 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] Cache size and Heap size
There is no cache memory size. I'm not sure what you are referring to as cache; if you mean stuff put in the cache directory of your app, that is just in the normal internal data storage space. Heap size is available from: http://developer.android.com/reference/android/app/ActivityManager.html#getMemoryClass() On Tue, Dec 28, 2010 at 5:08 AM, cool.manish mannishga...@gmail.com wrote: Hi, What is cache memory size for android device? Is it very according to Devices? Is it divided in between application and one application can use only specific amount of total size? How to get info regarding Heap Memory Size? Again how to know application specific Heap size? Can we change 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.comandroid-developers%2bunsubscr...@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: InetAdress bug or documentation ambiguity or some other explanation?
That would definitely be the best option for server monitor. Not for a network monitor, of course, but you may not face that issue if you're looking at your local LAN. It's worth noting the Sun Javadoc on the matter: Test whether that address is reachable. Best effort is made by the implementation to try to reach the host, but firewalls and server configuration may block requests resulting in a unreachable status while some specific ports may be accessible. A typical implementation will use ICMP ECHO REQUESTs if the privilege can be obtained, otherwise it will try to establish a TCP connection on port 7 (Echo) of the destination host. The Android javadoc fits the description of the typical implementation. It's not just Java weirdness involved here. Back in the early days of IP, ICMP ECHO was almost universally allowed, and port 7 was usually implemented as well. The general attitude was to make the network topology as easy to investigate as possible. In today's environment, the reverse attitude holds, and you also have NAT to contend with! The long and short of it is, this has always been subject to the whims of others, from local firewalls, to mobile carriers, to network engineers responsible for gateways, and finally, for admins responsible for the target servers. Each and any of those can decide at any time to not support ICMP ECHO and/or port 7. Really, in all the years this method has been available, the only use I've found for it in a client environment is advisory. Either you can connect, or you can't. If you can, you have no need for this method. If you can't, and yet this method indicates the server is reachable, then you can inform the user that the server application appears to be down for maintenance. If the method indicates the server is NOT reachable, then you can inform the user that either the server is down, or network connectivity is lost. If you also cannot connect to google.com and a few other goodies, you can suggest that you probably do not have any network connectivity at all. It's more useful in a server environment, where you know and control the specific networking environment. For example, if you lose a connection to your database server, you can see if the server is even up, and report a different failure. You can probe for a failed VPN connection, and disable certain functionality in your application which may depend on it. On Dec 27, 11:12 am, Mark Murphy mmur...@commonsware.com wrote: ICMP and Java have had a long and sordid history, IIRC. You might consider doing your own ping via the NDK. Personally, I would have the server monitor running on a server, and have the Android app only be a control panel/notification mechanism, but that's just 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] ListView item selected no longer functions with a button in the listviewitem
Thanks worked around it by changing to a regular button and setting a compound drawable without any text in the button :) thanks for the 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] Android proximity messaging
How do I send messages from one android to another android phone within close proximity? For example, Is it possible for a nearby phone to receive requests to open a webpage from another phone? Of course, only if the phone is willing to accept it. Does the API support this functionality? -- 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: Which JSON Parser is better
I just had a look; if I'm not mistaken, it's not really a streaming parser, but rather the ability to read a SEQUENCE of JSON forms from a stream. This avoids the ordering issue I raised earlier (JSON object fields are unordered), but allows you to process the sequence of JSON forms asynchronously in different threads (which may introduce it's own ordering issues, but at least it's under your control). This may be what you need; for example, you could output a series of JSON forms describing one high score, and loop reading them one at a time. However, it won't let you read some complex JSON structure, parsing it as it reads. Each form read will be fully-parsed in one step, and returned. This seems to me to be about the right compromise for JSON. The big semantic differences between JSON and XML are 1) JSON objects are unordered, and 2) JSON objects are not named (while their fields are). 1) is a headache for anything that mixes processing with reading, as the processing is then unordered as well. 2) is easily worked around by an application, but makes it harder to design a general API to invoke processing, and interacts badly with 1). But if you can recast your big JSON object as a series of smaller objects, each processed one at a time, a GSON does, you get most of the benefit and avoid most of the headaches. On Dec 27, 11:20 am, Rmac ry...@me.com wrote: Check out GSON... in version 1.6 there is a new very small streaming parser. -- 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 modify manifest android:versionName=1.0/
HI Guys, I would like to override android:versionName attribute that is located in AndroidManifest.xml here is a sample ?xml version=1.0 encoding=utf-8? manifest android:versionCode=1 android:versionName=1.0 / I found ant code to read this value using xPath xpath input=AndroidManifest.xml expression=/manifest/@android:versionName output=${manifest.versionName}/ but I cannot find how to write this value using build ant script I am looking for some easy to implement way Please suggest, Thanks -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
RE: [android-developers] Re: Unique Phone ID
Wonderful Thanks!! -Original Message- From: android-developers@googlegroups.com [mailto:android-develop...@googlegroups.com] On Behalf Of Kostya Vasilyev Sent: Tuesday, December 28, 2010 12:37 PM To: android-developers@googlegroups.com Subject: Re: [android-developers] Re: Unique Phone ID http://developer.android.com/reference/android/telephony/TelephonyManager.html#getDeviceId() public String getDeviceId () Since: API Level 1 Returns the unique device ID, for example, the IMEI for GSM and the MEID or ESN for CDMA phones. Return null if device ID is not available. Requires Permission: READ_PHONE_STATE Note that at least for GSM phones, the user can insert a new SIM card with a new phone number, or change the number assigned to the same card. So a phone number, while unique, does not identify the device. -- Kostya 28.12.2010 20:29, XiaoXiong Weng пишет: Um. I know that if I dial *#06# it would return the IMEI number, but each carrier might differ so it's probably not a good solution, I would stick with the cellphone number since that's accessible. -Original Message- From: android-developers@googlegroups.com [mailto:android-develop...@googlegroups.com] On Behalf Of Tommy Sent: Tuesday, December 28, 2010 11:33 AM To: android-developers@googlegroups.com Subject: RE: [android-developers] Re: Unique Phone ID First off thanks to everyone who responded with input. My next question would be is my app able to access the MEID or the IMEI number or is that something that can't be accessed? -Original Message- From: android-developers@googlegroups.com [mailto:android-develop...@googlegroups.com] On Behalf Of Indicator Veritatis Sent: Thursday, December 23, 2010 7:07 PM To: Android Developers Subject: [android-developers] Re: Unique Phone ID I can confirm for you that the MEID is most certainly not the same as ANDROID ID. Furthermore, MEID is unique to CDMA phones, so my T-Mobile G2, for example, does not have one. It has an IMEI instead. Like any other GSM phone. On Dec 23, 2:11 pm, Ryan Avilesryan.avi...@gmail.com wrote: The MEID might be useful. I dont think this is the same as the ANDROID_IDOn Thu, Dec 23, 2010 at 3:58 PM, John Gabyjg...@gabysoft.com wrote: You could use ANDROID_ID, but be warned that I have found devices that return null for this value. http://developer.android.com/reference/android/provider/Settings.Secu... John On Dec 23, 10:21 am, Tommydroi...@gmail.com wrote: Hey evereyone, I was wondering if there is a way to get a unique ID for the users phone. I imagine the IME and Serial Numbers are unique to each phone right? Is there a way I can request the IME number or the serial number or is there another number I can request that is unique to each phone? This is used to help secure login to an app. Thanks, Tommy -- 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 -- Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com -- 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] How to modify manifest android:versionName=1.0/
Option #1: Edit it by hand Option #2: Write a Java/Ruby/sed/whatever program to modify the data and call that from an Ant Exec task Option #3: Write a custom Ant task Option #4: Use the Replace or ReplaceRegExp tasks Option #5: Use a Script task and a Beanshell/Groovy/whatever script Option #6: Use a Translate task Option #7: Use an XSLT task This, of course, would be a better question to ask someplace that is relevant, such as an Ant discussion list. The fact that you happen to be modifying an XML file from Android is not nearly as important as the tool you seem to wish to use to modify it (Ant). BTW, the Ant manual is at: http://ant.apache.org/manual/index.html On Tue, Dec 28, 2010 at 3:20 PM, sashad olexanderdanc...@gmail.com wrote: HI Guys, I would like to override android:versionName attribute that is located in AndroidManifest.xml here is a sample ?xml version=1.0 encoding=utf-8? manifest android:versionCode=1 android:versionName=1.0 / I found ant code to read this value using xPath xpath input=AndroidManifest.xml expression=/manifest/@android:versionName output=${manifest.versionName}/ but I cannot find how to write this value using build ant script I am looking for some easy to implement way Please suggest, 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 -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android 2.2 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: Cross Word Game
An excellent question set! If #1 = more platforms would be nice, and #3 is not too fancy, then I'd suggest: A) All javascript for the UI B) Java and/or Javascript for the logic C) Create a WebView for the main UI, and display it there. This will allow you to easily make it available via the web, and thus on other platforms, without even programming them. With a bit more work, you can then port them to the native platform. If you stick with Javascript for the logic, you should be able to port it to the iPhone pretty easily as well. (I haven't done that as yet, as I don't have a Mac available). On Dec 27, 5:54 pm, Robert Green rbgrn@gmail.com wrote: Important decisions to make are: 1) Is this just for Android or are you targeting more systems? 2) Do you need a performance component, like a real time puzzle solver or random puzzle game creator? 3) Do you want fancy graphics or is something really basic going to work? If #1 = Only Android and #2 = No and #3 = No then consider going with this solution: A) All Java B) Mostly off-the-shelf Android UI Components C) Custom view for your gameboard (This is hard to escape from and is often easier than trying to build it all using android layouts and widgets) C1) Just use Canvas for your 2D lib and all will be easy and well. Cheers On Dec 27, 1:11 pm, ko5tik kpriblo...@yahoo.com wrote: On Dec 27, 6:35 pm, Diego N. diegonunes.sist...@gmail.com wrote: I would like to develop a crossword puzzle game but never worked with game development. He wanted to know where to start. I will use Java 2D? I would recommend to stick to standard android widgets if you do not need realtime graphics (which is the case with crossword puzzle game) - but full UI power including layout and animations. If you need realtime frame rendering your choice is SurfaceView and drawing into bitmaps with android toolkit - or maybe even with GL if hardware acceleration if available regards, -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Encrypted JSON
Or, to say the same thing another way -- https: *HIGHLY recommended* for anything at all sensitive. On Dec 28, 10:11 am, DanH danhi...@ieee.org wrote: SSL? On Dec 28, 10:18 am, Nikola nikola1...@gmail.com wrote: Hi, I would like to update sql database on android via json. Is it possible to have encrypted or somehow secure connection to be sniff proof. Thanks. -- God is Real, unless declared Integer. J. Allan Toogood, FORTRAN programmer -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Problems with the JavaBinder (!!! FAILED BINDER TRANSACTION!!!)
What were the specifics of the objects you were hanging onto? I'm seeing this problem in some client code and need to know what to look for in their source code. I'm noticing the system memory (vmstat) deplete over time but the Runtime.getRuntime().freeMemory(); doesn't show any change. -- 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: Encrypted JSON
Of course, https is just automatic SSL. On Dec 28, 2:48 pm, Bob Kerns r...@acm.org wrote: Or, to say the same thing another way -- https: *HIGHLY recommended* for anything at all sensitive. On Dec 28, 10:11 am, DanH danhi...@ieee.org wrote: SSL? On Dec 28, 10:18 am, Nikola nikola1...@gmail.com wrote: Hi, I would like to update sql database on android via json. Is it possible to have encrypted or somehow secure connection to be sniff proof. Thanks. -- God is Real, unless declared Integer. J. Allan Toogood, FORTRAN programmer -- 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: Encrypted JSON
(Oops -- I guess that's what you were saying.) On Dec 28, 2:48 pm, Bob Kerns r...@acm.org wrote: Or, to say the same thing another way -- https: *HIGHLY recommended* for anything at all sensitive. On Dec 28, 10:11 am, DanH danhi...@ieee.org wrote: SSL? On Dec 28, 10:18 am, Nikola nikola1...@gmail.com wrote: Hi, I would like to update sql database on android via json. Is it possible to have encrypted or somehow secure connection to be sniff proof. Thanks. -- God is Real, unless declared Integer. J. Allan Toogood, FORTRAN programmer -- 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: Can't debug/install applications into Tablet with Android 2.1 using ADB commands
If you have a kind of console on the tablet you could look into the kernel messages and use logcat to see something relevant. You could also check, whether adbd is still running on the device. To detect who is stopping ( device or pc ) I assume you would need a usb analyzer, nothing which is really cheap. Theirfore I would suggest at first, that you ask then vendor of the tablet for help. BTW .. did you use the driver from then vendor of the tablet ? Good luck ! Frank On 28 Dez., 03:02, Gus gussab...@yahoo.com wrote: Hi: Actually, I figure it out that adb shell is working but once I try push, pull, or install commands, it seems like Android blocks and following shell commands are not working. However, the adb devices still responds as usual. I would appreciate any help. Thanks Gus On Dec 27, 10:29 pm, Gus gussab...@yahoo.com wrote: -- 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] ListView and CursorAdapter
I've a problem to populate a listview from a cursor filled from db. I can't understand why, newView and bindView are not called. The stupid things is that I've already done this thing other times but now doesn't work, and I can't undestand where is the problem. this is my code: _curAround is filled with a few records. ListaAdapter rA = new ListaAdapter(this, _curAround, point); ListView list = (ListView) findViewById(R.id.lvLista); list.setAdapter(rA); public class ListaAdapter extends CursorAdapter { private LayoutInflater mInflater; GeoPoint _MyPos; public ListaAdapter(Context context, Cursor c, GeoPoint mypos) { super(context, c); mInflater = LayoutInflater.from(context); _MyPos = mypos; } @Override public void bindView(View view, Context context, Cursor cursor) { Aggiorna(view, cursor); } @Override public View newView(Context context, Cursor cursor, ViewGroup parent) { View v= mInflater.inflate(R.layout.item, null); Aggiorna(v, cursor); return v; } void Aggiorna(View v, Cursor cur){ FarmaCity.MyLog(Lista, Nome:+cur.getString(1)); TextView t = (TextView) v.findViewById(R.id.tvNome); t.setText(cur.getString(1));/* t = (TextView) v.findViewById(R.id.tvIndirizzo); t.setText(cur.getString(2)); } } -- 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: Timezone picker
The problem is not the size it's the content itself... and the getDisplayName is even worse... You get stuff like America/Bahia with a description of Brasilia Time but San Francisco or New York is nowhere to be found. :( PMD On 28 December 2010 16:01, Pent tas...@dinglisch.net wrote: I need to implement a timezone picker, but TimeZone.getAvailableIDs http://developer.android.com/reference/java/util/TimeZone.html#getAva.. .() return is a big mess (at least in Samsung Galaxy S). It is pretty big :-) You could copy the nice list from the settings app manually. Shame the one from Settings isn't usable programatically actually (like so many built-in things... NumberPicker springs to mind). At least it wasn't when I last tried. Pent -- 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.comandroid-developers%2bunsubscr...@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: Can't debug/install applications into Tablet with Android 2.1 using ADB commands
Fwiw, if the device doesn't have Android Market on it, there are absolutely no guarantees about how it works. Android is open source, so manufacturers can modify any part of Android any way they want. There are only restrictions (such as a full working adb) if they are going to include Market. Given that, if a particular device isn't working like a standard Android build, there is a good chance that this is due to a modification the manufacturer made to their own private build. In that case the only people who can help you are the manufacturer or hackers who are reverse engineering or otherwise independently exploring the device. On Tue, Dec 28, 2010 at 1:54 PM, FrankG frankgru...@googlemail.com wrote: If you have a kind of console on the tablet you could look into the kernel messages and use logcat to see something relevant. You could also check, whether adbd is still running on the device. To detect who is stopping ( device or pc ) I assume you would need a usb analyzer, nothing which is really cheap. Theirfore I would suggest at first, that you ask then vendor of the tablet for help. BTW .. did you use the driver from then vendor of the tablet ? Good luck ! Frank On 28 Dez., 03:02, Gus gussab...@yahoo.com wrote: Hi: Actually, I figure it out that adb shell is working but once I try push, pull, or install commands, it seems like Android blocks and following shell commands are not working. However, the adb devices still responds as usual. I would appreciate any help. Thanks Gus On Dec 27, 10:29 pm, Gus gussab...@yahoo.com wrote: -- 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.comandroid-developers%2bunsubscr...@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: Logging actions
Sorry for the previous post. I actually missed Kostya E-mail in- between all android groups emails. That's just perfect Kostya. It covers exactly what I'm trying to do. I'll digg on that. Sorry again. Greetings On Dec 8, 11:21 pm, TreKing treking...@gmail.com wrote: On Tue, Dec 7, 2010 at 1:51 AM, Pedro Teixeira pedroteixeir...@gmail.comwrote: Help please ... Help with what? Kostya posted links related to pretty much every point you raised. You covered a bunch of different topics and didn't really elaborate on what specifically you're stuck on. ... so ... again ... help with what? --- -- 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] Android Mouse/MotionEvent
Hi All, It seems I am the first one to experiment on this, since I have got much reply to this. I tried to use the touch event, but it doest seem to work. Please find my code snippet below: Instrumentation inst = new Instrumentation(); long downTime = SystemClock.uptimeMillis(); long eventTime = SystemClock.uptimeMillis(); MotionEvent me = MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_MOVE, (xy[0]+(xOffset*sensitivity)),(xy[1]+(yOffset*sensitivity)), 0); dispatchTrackballEvent(me); onTouchEvent(me); me.recycle(); inst.sendPointerSync(me); I have tried both Instrumentation and dispatchTrackballEvent. Nothing seems to work. I am in a midsts of a deadline. Please, Any help is highly appreciated. Thanks, Ankur -- 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] What changed in Gingerbread as far as the app widgets?
Trying to update my app to 2.3, noticed a few things: - The menu icons seem to have gotten smaller in 2.3. Now my custom icons look too large. Arrrg. -- The same exact code on 2.3 produces an app widget that's cut off on the bottom on 2.3 while it's fully visible in 2.2. What changed between these releases we should know about? I cannot find anything in the change log -- 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] List - row not hi-lighting
I've got an ExpandableListActivity. If I change the background color of a row programatically - when the user selects the row - it's not hi-lighted - i.e. no visual feedback. if i don't set the background color - the default yellow hi-light appears. how can i fix this. -- 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: List - row not hi-lighting
Use a ColorStateList as your background. This is what the default implementation does as I recall. You could hunt around and find the state list for ListView and use that for a starting point. http://developer.android.com/guide/topics/resources/color-list-resource.html or more generally a StateListDrawable http://developer.android.com/guide/topics/resources/drawable-resource.html#StateList On Dec 28, 3:48 pm, dashman erjdri...@gmail.com wrote: I've got an ExpandableListActivity. If I change the background color of a row programatically - when the user selects the row - it's not hi-lighted - i.e. no visual feedback. if i don't set the background color - the default yellow hi-light appears. how can i fix this. -- 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: Timezone picker
I think all those descriptions actually come from the JDK classes, not the Android stuff, and they have been like that for at least the past 10 years. Personally, I'd just use them... On Dec 29, 6:09 am, Pedro Duque pmdu...@gmail.com wrote: The problem is not the size it's the content itself... and the getDisplayName is even worse... You get stuff like America/Bahia with a description of Brasilia Time but San Francisco or New York is nowhere to be found. :( PMD On 28 December 2010 16:01, Pent tas...@dinglisch.net wrote: I need to implement a timezone picker, but TimeZone.getAvailableIDs http://developer.android.com/reference/java/util/TimeZone.html#getAva.. .() return is a big mess (at least in Samsung Galaxy S). It is pretty big :-) You could copy the nice list from the settings app manually. Shame the one from Settings isn't usable programatically actually (like so many built-in things... NumberPicker springs to mind). At least it wasn't when I last tried. Pent -- 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en- Hide quoted text - - Show quoted text - -- 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: PDF Format Conversion
And if you do want to store it in the database, use a BLOB, whcih, incidentally, stands for Binary Large Object. On Dec 29, 2:38 am, Byron Penner bapenner...@gmail.com wrote: DONT lol save it to a file -- 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: Timezone picker
Yep, probably that's what I'll do... although I just found this site: http://citytimezones.info/. They have a nice free database for cities timezone around the world... I'm tempted do implement a timezone picker based on it. On 29 December 2010 00:34, Zsolt Vasvari zvasv...@gmail.com wrote: I think all those descriptions actually come from the JDK classes, not the Android stuff, and they have been like that for at least the past 10 years. Personally, I'd just use them... On Dec 29, 6:09 am, Pedro Duque pmdu...@gmail.com wrote: The problem is not the size it's the content itself... and the getDisplayName is even worse... You get stuff like America/Bahia with a description of Brasilia Time but San Francisco or New York is nowhere to be found. :( PMD On 28 December 2010 16:01, Pent tas...@dinglisch.net wrote: I need to implement a timezone picker, but TimeZone.getAvailableIDs http://developer.android.com/reference/java/util/TimeZone.html#getAva.. .() return is a big mess (at least in Samsung Galaxy S). It is pretty big :-) You could copy the nice list from the settings app manually. Shame the one from Settings isn't usable programatically actually (like so many built-in things... NumberPicker springs to mind). At least it wasn't when I last tried. Pent -- 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.comandroid-developers%2bunsubscr...@googlegroups.com android-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en- Hide quoted text - - Show quoted text - -- 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.comandroid-developers%2bunsubscr...@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: how to create irregular polygon and handle events within its boundary
Processing a click in side a polygon can be difficult task. There is another solution based on a bitmap where each clickable shape has its own color. I have described it in another thread, named Overlay to make parts of image clickable Let me know if something is not clear. On Dec 27, 11:51 am, Achie krishna.acha...@gmail.com wrote: How can we create polygons with shapes other than the normal regular rectangle/circle etc? I need to create a image with boundaries and let users click within the image. Then I need to highlight the image. I also need to highlight the image only when the user clicks within the boundaries of the shape. How can I do this in android? Thank 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: List - row not hi-lighting
StateListDrawable is the Android way to do it, but if you really want to set it programmatically, you'll need to call invalidate() on the view to force it to refresh. Jonathan On Dec 28, 4:19 pm, jotobjects jotobje...@gmail.com wrote: Use a ColorStateList as your background. This is what the default implementation does as I recall. You could hunt around and find the state list for ListView and use that for a starting point. http://developer.android.com/guide/topics/resources/color-list-resour... or more generally a StateListDrawable http://developer.android.com/guide/topics/resources/drawable-resource... On Dec 28, 3:48 pm, dashman erjdri...@gmail.com wrote: I've got an ExpandableListActivity. If I change the background color of a row programatically - when the user selects the row - it's not hi-lighted - i.e. no visual feedback. if i don't set the background color - the default yellow hi-light appears. how can i fix this. -- 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: What changed in Gingerbread as far as the app widgets?
Re the menu icon size changing, that's precisely why the dev guide recommends pulling whatever stock icons you use and including them in your apk. This makes them immune to changes in the framework. Jonathan On Dec 28, 3:16 pm, Zsolt Vasvari zvasv...@gmail.com wrote: Trying to update my app to 2.3, noticed a few things: - The menu icons seem to have gotten smaller in 2.3. Now my custom icons look too large. Arrrg. -- The same exact code on 2.3 produces an app widget that's cut off on the bottom on 2.3 while it's fully visible in 2.2. What changed between these releases we should know about? I cannot find anything in the change log -- 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: What changed in Gingerbread as far as the app widgets?
Correct, which I have done this, but I had to create a few icons of my own. They are now too big. On Dec 29, 9:17 am, Jonathan Foley jonefo...@gmail.com wrote: Re the menu icon size changing, that's precisely why the dev guide recommends pulling whatever stock icons you use and including them in your apk. This makes them immune to changes in the framework. Jonathan On Dec 28, 3:16 pm, Zsolt Vasvari zvasv...@gmail.com wrote: Trying to update my app to 2.3, noticed a few things: - The menu icons seem to have gotten smaller in 2.3. Now my custom icons look too large. Arrrg. -- The same exact code on 2.3 produces an app widget that's cut off on the bottom on 2.3 while it's fully visible in 2.2. What changed between these releases we should know about? I cannot find anything in the change log- Hide quoted text - - Show quoted text - -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Android clearing table via ContentProvider
down vote favorite How do I clear the whole table using content provider properly? Now I use this: private void clearDB(){ ContentResolver cr=getContentResolver(); String where=FeedProvider.KEY_ID+ '0'; cr.delete(FeedProvider.ITEMS_URI, where, null); } But it seems to me that is not the best way to do it. The exact problem is that primary key field does not reset. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Regarding implementing paypal api in android
I am developing an Android Application named Book Bottle Service.I have implemented map activity in it. The view that comes in the array list comes from url From where i have parsed data.Now i have to implement Paypal api on click of list button.How can i implement Paypal in android.Can anyone help me in this 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] Android Contacts
Hi All, I'm able to sync in a few contacts to the android native contact book from an account and am able to launch a custom activity on the click of the profile tab of the synced contacts(in the contacts section). However,I want to modify the look an feel of the contact tab(adding a presence icon onto it), just like gtalk application, and am not able to get much out of the documentation regarding this. Can anyone help me with any pointers regarding this query? Thanks in advance, M -- 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] About kernel-qemu.
Hi guys: At the moment, I have to make some modification in the Linux Kernel and test it on Emulator. I have collected several materials about how to compile a customized Linux Kernel on the Android Emulator. But they seem to met the same question, that is, when starting my own kernel with the command : ./ emulator -kernel somepath/zImage, there is just a black screen on the emulator panel instead of a android... loading string. When starting android with kernel-qemu which is located in the prebuilt/android-arm/kernel, it works normally. My question is, how does the bin file kernel-qemu be generated? Please give me some help. I konw there are lots of people have the same question. But there seems no conclusive answer about that. Thank 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] Sensors : Whats new on Android Gingerbread...
Android 2.3 (codename Gingerbread) was officially released amidst huge hype and fanfare last week and BOY O BOY!! people sure are queuing-up to have a peek. Sensors were the most hyped about sub-system. Android- Fans were blogging about the enhanced support for NEW sensors on gingerbread. But having worked on Android sensors since the days of cupcake, I beg to differ... **Gingerbread does NOT support any NEW sensors!** Here is what Android has to say in the official Gingerbread release notes: http://developer.android.com/sdk/android-2.3-highlights.html#gaming That IS quite a mouthful. But stripping-off the marketing-spiel we can say: 1. Gingerbread provides sensors-support to native C/C++ apps. 2. Gingerbread provides more accurate and precise sensor-data. 3. Gingerbread provides APIs to recognise complex user gestures. 4. Gingerbread supports gyroscope and barometer. http://thecodeartist.blogspot.com/2010/12/sensors-on-android-23-gingerbread.html -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en