[android-developers] Language-specific Softkeyboard for Android
Hi friends, Can any one know how to create Language-specific Soft keyboard for my android app. please suggest me for it. thanks in advance -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Check support for wifi personal hotspot
There is no proper API for this. On Tue, Sep 25, 2012 at 2:51 PM, Anders lanils...@gmail.com wrote: Does anyone know how an app may check whether a device supports wifi mobile hotspot/wifi tethering? For example, my Android phone has this functionality and you can tether the 3G connection, while my newer android tablet does not support it. To complicate things further, I actually have another tablet, with only wifi and no 3G that do support the portable hotspot mode. Please observe that I am not asking how to enable the hotspot, just whether the device has support for it. Thanks -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: onActivityResult and the Settings Menu
Hi KG, I am in a similar situation of that of yours. Even after two years I couldn't get a correct answer for this issue. I have posted this issue in this link, http://stackoverflow.com/questions/12586941/onactivityresult-called-prematurely-with-settings-menu If you have found out the answer, could you please share it with me? Thanks in Advance! Aswathy P Krishnan (DroidBee APK) On Saturday, August 14, 2010 12:15:34 AM UTC+5:30, KG wrote: Yeah while looking through WifiManager and ConnectivityManager I saw those methods. However, I don't want to enable it automatically because the user probably disabled it for a reason. I think it is better to give them a choice rather than just go ahead and do it. In addition, I think I should let them choose to either enable their 3G (if they have it) or Wifi and configure the settings before forcing them to use my app. On Aug 13, 11:18 am, Kostya Vasilyev kmans...@gmail.com wrote: Not quite a direct answer to your question, but: An ordinary Android application can enable Wifi subsystem if not already enabled. This requires a special permission. Look up WifiManager.setWifiEnabled(). After enabling Wifi, you can watch broadcast actions defined in WifiManager or ConnectivityManager to know when a connection is established. -- Kostya 13.08.2010 22:02, KG пишет: Hi Everyone, My app requires a network connection so if they don't have one enabled I prompt them to start it. I do this by calling the Wireless Network settings Activity as such: startActivityForResult(new Intent(android.provider.Settings.ACTION_WIRELESS_SETTINGS), NETWORK_RESULT); However, when I run my app in the debugger, onActivityResult is called immediately as my calling activity is exited when it should be called once the settings menu if exited. This premature call also sends a resultCode of Activity.RESULT_CANCEL. Here is the code from onActivityResult: if (resultCode == Activity.RESULT_OK) { switch (requestCode) { case NETWORK_RESULT: if (!mobileInfo.isConnected() !wifiInfo.isConnected()) noNetwork(); else do_something(); } } Does anyone know if I'm doing something wrong? If I understand this correctly, onActivityResult should be the callback to when the Wireless Network Settings activity exits. -- Kostya Vasilev -- 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] Apps are incompatible with your Vodafone IN Samsung GT-S5670.
Dear All, I J Naresh using Samsung Galaxy Fit GT-S5670 and my android version is 2.3.6. I am facing problem to download some apps the error message is This app is incompatible with your Vodafone IN Samsung GT-S5670 Apps are as follows 1) Racing Moto 2) G T Racing : Motor Academy Free+ 3) Temple Run 4) Free Running etc So, Please let me no why this apps are not installing in my Mobile. do the needful. Regards, Naresh -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 SDK manager
Hi! I'm using linux Mint and I install the Android SDK and downloading the packages, the manager log says in red: Stopping ADB server failed (code -1) And then when I connect my phone to the usb laptop, this one doesn't recognize any device because there is no ADB. How can I fix this problem, please? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: most vexing error
Are you running this on a Samsung device? Did you by any change use reflection to run createRfcommSocket ? I'm getting this error consistently on a device running a Samsung rom (Samsung Galaxy Tab) whereas I don't get it when running on a device running Cyanogenmod. It appears to me that android.sec.enterprise.BluetoothUtils is a proprietary class added to Android by Samsung and it appears this class has a bug in it (causing the NullPointerException). Well, or not exactly a bug if you are using a method via reflection as it is never guaranteed to work. Does anyone else have any thoughts on this? On Friday, July 13, 2012 6:05:45 PM UTC, bob wrote: Can someone please help me understand this error? 07-13 18:03:52.224: W/System.err(4597): java.lang.NullPointerException 07-13 18:03:52.244: W/System.err(4597): at android.sec.enterprise.BluetoothUtils.isSocketAllowedBySecurityPolicy(BluetoothUtils.java:106) 07-13 18:03:52.244: W/System.err(4597): at android.bluetooth.BluetoothSocket.connect(BluetoothSocket.java:215) 07-13 18:03:52.254: W/System.err(4597): at com.reflect.remote.Blue_Client.attempt_first_connect(Blue_Client.java:133) 07-13 18:03:52.254: W/System.err(4597): at com.reflect.remote.Remote_Control_Activity.onActivityResult(Remote_Control_Activity.java:299) 07-13 18:03:52.254: W/System.err(4597): at android.app.Activity.dispatchActivityResult(Activity.java:4654) 07-13 18:03:52.274: W/System.err(4597): at android.app.ActivityThread.deliverResults(ActivityThread.java:2990) 07-13 18:03:52.284: W/System.err(4597): at android.app.ActivityThread.handleSendResult(ActivityThread.java:3037) 07-13 18:03:52.284: W/System.err(4597): at android.app.ActivityThread.access$1100(ActivityThread.java:128) 07-13 18:03:52.284: W/System.err(4597): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1191) 07-13 18:03:52.284: W/System.err(4597): at android.os.Handler.dispatchMessage(Handler.java:99) 07-13 18:03:52.294: W/System.err(4597): at android.os.Looper.loop(Looper.java:137) 07-13 18:03:52.294: W/System.err(4597): at android.app.ActivityThread.main(ActivityThread.java:4514) 07-13 18:03:52.294: W/System.err(4597): at java.lang.reflect.Method.invokeNative(Native Method) 07-13 18:03:52.294: W/System.err(4597): at java.lang.reflect.Method.invoke(Method.java:511) 07-13 18:03:52.294: W/System.err(4597): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:980) 07-13 18:03:52.294: W/System.err(4597): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:747) 07-13 18:03:52.304: W/System.err(4597): at dalvik.system.NativeStart.main(Native Method) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] order results in Play Store
Hello everyone, I have a few days published my first app, but that is hardly known in the search results of Google Play. Do you know by chance what are the variables that influence the search order of the app? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] dexgen questions ...
What is dexgen? Il giorno 25/set/2012 22:26, Richard Schilling coderroa...@gmail.com ha scritto: I have a question about the usage of dexgen. Is there a special group setup for that, or is this the place to ask that? My question is this ... how do you use dexgen to generate a switch/case statement? Thanks Richard Schilling Senior Mobile Developer, RD Cetecom, USA -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] StackOverflow Exception while using TabActivity
Hello, Romain Guy i am facing a same issue java.lang.StackOverflowError, i didn't understand what can i do ? i am newbie in Android so please help, i am working on this issues last 1 to 2 days, but i didn't get success. please go through this link, https://groups.google.com/forum/?fromgroups=#!searchin/android-developers/Multiple$20SubActivity$20:$20facing$20StackOverflowError,$20please$20help/android-developers/nDWpyVOo3nQ/xbD5CZuEtGsJ please help me. Thank you. On Tuesday, 21 July 2009 21:13:02 UTC+5:30, Romain Guy wrote: You have way too many nested viewsgroups/layout. Remove some of them :) On Mon, Jul 20, 2009 at 10:04 PM, Dexter#39;s Braincooma...@gmail.com javascript: wrote: Hi, I have a TabActivity, there are 4 tabs. In each tab I have put a single Activity. One of the activities contains a Custom List View which uses a CustomAdapter which extends the BaseAdapter. I get this excpetion, when I try to open the tab containing this activity. It seems to be thrown at a point when probably the TabActivity is being re-drawn. Can anybody please suggest some alternatives, or solutions to avoid this problem. Here is the stack trace. java.lang.StackOverflowError at android.text.SpannableStringBuilder.drawText (SpannableStringBuilder.java:1042) at android.graphics.Canvas.drawText(Canvas.java:1273) at android.text.Styled.each(Styled.java:119) at android.text.Styled.foreach(Styled.java:249) at android.text.Styled.drawText(Styled.java:302) at android.text.Layout.drawText(Layout.java:1346) at android.text.Layout.draw(Layout.java:339) at android.widget.TextView.onDraw(TextView.java:3921) at android.view.View.draw(View.java:5838) at android.view.ViewGroup.drawChild(ViewGroup.java:1486) at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228) at android.view.ViewGroup.drawChild(ViewGroup.java:1484) at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228) at android.view.ViewGroup.drawChild(ViewGroup.java:1484) at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228) at android.view.ViewGroup.drawChild(ViewGroup.java:1484) at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228) at android.widget.AbsListView.dispatchDraw(AbsListView.java:1319) at android.widget.ListView.dispatchDraw(ListView.java:2820) at android.view.View.draw(View.java:5944) at android.widget.AbsListView.draw(AbsListView.java:2121) at android.view.ViewGroup.drawChild(ViewGroup.java:1486) at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228) at android.view.ViewGroup.drawChild(ViewGroup.java:1484) at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228) at android.view.View.draw(View.java:5841) at android.widget.FrameLayout.draw(FrameLayout.java:352) at android.view.ViewGroup.drawChild(ViewGroup.java:1486) at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228) at android.view.ViewGroup.drawChild(ViewGroup.java:1484) at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228) at android.view.ViewGroup.drawChild(ViewGroup.java:1484) at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228) at android.view.ViewGroup.drawChild(ViewGroup.java:1484) at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228) at android.view.ViewGroup.drawChild(ViewGroup.java:1484) at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228) at android.view.View.draw(View.java:5841) at android.widget.FrameLayout.draw(FrameLayout.java:352) at android.view.ViewGroup.drawChild(ViewGroup.java:1486) at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228) at android.view.ViewGroup.drawChild(ViewGroup.java:1484) at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228) at android.view.View.draw(View.java:5841) at android.widget.FrameLayout.draw(FrameLayout.java:352) at com.android.internal.policy.impl.PhoneWindow$DecorView.draw (PhoneWindow.java:1847) at android.view.ViewRoot.draw(ViewRoot.java:1217) at android.view.ViewRoot.performTraversals(ViewRoot.java:1030) at android.view.ViewRoot.handleMessage(ViewRoot.java:1482) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:123) at android.app.ActivityThread.main(ActivityThread.java:3948) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:521) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:782) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:540) at dalvik.system.NativeStart.main(Native Method) Thanks, Dexter -- Romain Guy Android framework engineer roma...@android.com javascript: Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them -- You received this
[android-developers] Update Apps Content
Hi, This might be a stupid question but I am new to app development. I have an app that is currently available in the play store. I want to change some graphics and add some more articles. If i do that and reload the apk to the google store will that require the user to update the app before they see the new content. If so what do you suggest to enable me to update content and not require the user to update the entire app. Thanks for your 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] TTS when recieve call
hi i am trying to play TTS when i recieve ringtone, i tried a lot of ways to do it, however without success..here is my last try,i am really despair, i am working on this about 4 days without success, i hope someone here will help me! in the oncreate function i call: tm = (TelephonyManager) getSystemService(TELEPHONY_SERVICE); tm.listen(mPhoneListener, PhoneStateListener.LISTEN_CALL_STATE); here is he implementation of the phonestatelistener: private PhoneStateListener mPhoneListener = new PhoneStateListener() { @SuppressLint(SdCardPath) public void onCallStateChanged(int state, String incomingNumber) { try { switch (state) { case TelephonyManager.CALL_STATE_RINGING: Toast.makeText(HandsFree.this, CALL RING, Toast.LENGTH_SHORT).show(); startService(new Intent(HandsFree.this,TTS.class)); public static class TTS extends Service implements TextToSpeech.OnInitListener, OnUtteranceCompletedListener { private TextToSpeech mTts; private String spokenText=hello; @Override public void onCreate() { mTts = new TextToSpeech(this, this); // This is a good place to set spokenText } public void onInit(int status) { if (status == TextToSpeech.SUCCESS) { int result = mTts.setLanguage(Locale.US); if (result != TextToSpeech.LANG_MISSING_DATA result != TextToSpeech.LANG_NOT_SUPPORTED) { mTts.speak(spokenText, TextToSpeech.QUEUE_FLUSH, null); } } } public void onUtteranceCompleted(String uttId) { stopSelf(); } @Override public void onDestroy() { if (mTts != null) { mTts.stop(); mTts.shutdown(); } super.onDestroy(); } @Override public IBinder onBind(Intent arg0) { return null; } } and this is my manifest file: uses-permission android:name=android.permission.READ_PHONE_STATE/ uses-permission android:name=android.permission.WRITE_SETTINGS/ uses-permission android:name=android.permission.CHANGE_NETWORK_STATE/ uses-permission android:name=android.permission.MODIFY_PHONE_STATE / uses-permission android:name=android.permission.UPDATE_DEVICE_STATS / uses-permission android:name=android.permission.MODIFY_AUDIO_SETTINGS / uses-permission android:name=android.permission.ACCESS_NETWORK_STATE / uses-permission android:name=android.permission.INTERNET / uses-permission android:name=android.permission.CALL_PHONE/uses-permission uses-permission android:name=android.permission.READ_CONTACTS / uses-permission android:name=android.permission.WRITE_EXTERNAL_STORAGE / /manifest -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Orientation from Sensor Fusion
Does anyone know which phone's currently support sensor fusion for orientation (gyroscope + compass + accelerometer)? Also, does anyone know the accuracy in terms of degrees for the orientation the phone gives (e.g +- 1 degree, .1 degree, etc)? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] AsyncTask issues...
Hey there good forum people, I was hoping you could help me with a really frustrating issue I am having... Basically, I am using an AsyncTask to run code that connects to a URL, which executes a PHP script, and then grabs the output. Within the AsyncTask class I can get the information from the URL that I need fine, but I cannot seem to move it from the AsyncTask back to my normal code. My custom AsyncTask class looks like this: private class ScriptExecutionTask extends AsyncTaskURL, Boolean, String { private boolean executionComplete = false; private String result = null; @Override protected void onPreExecute() { scriptExecutionInProgress = true; } @Override protected String doInBackground(URL... scriptUrl) { try { URL script = scriptUrl[0]; URLConnection scriptConnection = script.openConnection(); BufferedReader resultReader = new BufferedReader(new InputStreamReader(scriptConnection.getInputStream())); StringBuilder resultBuilder = new StringBuilder(); String line; while((line = resultReader.readLine()) != null) { resultBuilder.append(line); } resultReader.close(); executionComplete = true; return resultBuilder.toString(); } catch (IOException ex) { ex.printStackTrace(System.err); return null; } } @Override protected void onPostExecute(String result) { this.result = result; scriptExecutionInProgress = false; } protected String getResult() { return result; } protected boolean isExecutionComplete() { return executionComplete; } } And this is the code I use to execute the script and then wait for it to return the output: // Execute the script URL script = new URL(url); ScriptExecutionTask scriptExecutionTask = new ScriptExecutionTask(); scriptExecutionTask.execute(script); long timeAtExecute = System.currentTimeMillis(); // Wait for script to execute, or time out if it takes too long while(!scriptExecutionTask.isExecutionComplete() System.currentTimeMillis() - timeAtExecute = executionTimeOut); latestResult = scriptExecutionTask.getResult(); return latestResult; The main issue is that 'latestResult' will always be returned as null from the above code. When I System.out.println() the result within the AsyncTask I get exactly what I wanted. But for some reason, I can't grab the result from the AsyncTask and store it in latestResult. Thank you very much to anyone who can advise me, this has been bothering me for a while now :) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Problema con Base de Datos Android
Estoy desarrollando una aplicacion en android para la cual tengo una base de datos en excel, pase los datos a un archivo sqlite es decir. DB el cual subo al emulador y funciona de maravilla pero al copiar al dispositivo (Rooteado) no me permite conectarme con la base de datos. Simplemente copio el archivo .db con los datos al hacer dicha operacion deja de conectarse alguna solucion? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: runtime compilation of dalvik bytecode
Hi, On Saturday, 23 June 2012 12:27:31 UTC+1, mame82 wrote: A first naive approach using luajava was far to slow for a method called about 5k times per frame. I need a way to compile to Dalvik bytecode at runtime. Has anybody done sth like this, it seems impossible without the javac class? A scripting language supporting compilation to Dalvik DEX code would also help. Apologies for reviving an old thread. If you've already found a solution to this, please ignore me :) We open-sourced Deelang, our lightweight in-app scripting language about a year ago. Recently, I've been working on a native (i.e. DEX) compiler for it. The compiler runs on-device and allows you to take script code and compile it a runtime-generated Class. Right now it's almost feature-complete but only tested to the extent that we use it in-house. It may well work for your needs? And in any case, more testers are always welcome ;) You'll find the project at http://deelang.googlecode.com/ . To get the native compiler, you'll need to check the DEXCOMPILER branch out of subversion (a file release is planned soon, but not yet). Kind regards, Ross -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] dexgen questions ...
It's the code generator used in Android.. I.e., it's a library for manipulating Dalvik bytecode. kris On Tue, Sep 25, 2012 at 4:27 PM, Angelo Cesaro javandroi...@gmail.com wrote: What is dexgen? Il giorno 25/set/2012 22:26, Richard Schilling coderroa...@gmail.com ha scritto: I have a question about the usage of dexgen. Is there a special group setup for that, or is this the place to ask that? My question is this ... how do you use dexgen to generate a switch/case statement? Thanks Richard Schilling Senior Mobile Developer, RD Cetecom, USA -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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
[android-developers] Re: On screen orientation changes activity restarted.
Hi I am also have the same problem. Here i show you the code. public class YemegimyoldaActivity extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { final ProgressDialog progressDialog = new ProgressDialog(this); progressDialog.setIcon(R.drawable.ic_launcher); progressDialog.setTitle(Yemegimyolda); progressDialog.setMessage(Loading ...); progressDialog.setIndeterminate(true); progressDialog.setCancelable(true); progressDialog.show(); WebView yemeWebView = new WebView(this); yemeWebView.setLayoutParams(new LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.WRAP_CONTENT)); WebSettings webSettings = yemeWebView.getSettings(); webSettings.setJavaScriptEnabled(true); webSettings.setSupportZoom(true); webSettings.setLoadsImagesAutomatically(true); webSettings.setLightTouchEnabled(true); yemeWebView.setWebViewClient(new WebViewClient() { public boolean shouldOverrideUrlLoading(WebView view, String url) { Log.i(URL Load, Processing webview url click...); view.loadUrl(url); return true; } public void onPageFinished(WebView view, String url) { if (progressDialog.isShowing()) { progressDialog.dismiss(); } Log.i(On Finish, Finished loading URL: + url); } }); yemeWebView.loadUrl(http://mobile.yemegimyolda.com/index.html;); setContentView(yemeWebView); super.onCreate(savedInstanceState); } public void onConfigurationChanged(Configuration newConfig) { super.onConfigurationChanged(newConfig); } } manifest xmlns:android=http://schemas.android.com/apk/res/android; package=com.yeme.yemegimyolda android:versionCode=1 android:versionName=1.0 uses-sdk android:minSdkVersion=4 android:targetSdkVersion=15 / uses-permission android:name=android.permission.INTERNET / application android:icon=@drawable/ic_launcher android:label=@string/app_name android:theme=@style/AppTheme activity android:name=.YemegimyoldaActivity android:label=@string/app_name android:configChanges=orientation|keyboardHidden intent-filter action android:name=android.intent.action.MAIN / category android:name=android.intent.category.LAUNCHER / /intent-filter /activity /application /manifest On Monday, August 16, 2010 10:42:16 AM UTC+5:30, pramod.deore wrote: Hi everybody, I know on screen orientation changes activity restarted, but suppose i don't want to restart the activity then what should I do? I had tried it by adding in manifest.xml. android:configChanges=keyboardHidden|orientation and override public void onConfigurationChanged(Configuration newConfig) { super.onConfigurationChanged(newConfig); } But still activity restarted each time when I change screen orientation. How to resolve this issue? Thanks in advance. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] When does google is going to end C2DM push notifications ?
Hi , I have been using C2DM push notifications for my app users. But now since google has deprecated C2DM , i need to know how fast i should move all my users to GCM so that none of the user suffers ? 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: runtime compilation of dalvik bytecode
On Tue, Sep 25, 2012 at 9:22 PM, Ross Bamford roscop...@gmail.com wrote: Hi, On Saturday, 23 June 2012 12:27:31 UTC+1, mame82 wrote: A first naive approach using luajava was far to slow for a method called about 5k times per frame. I need a way to compile to Dalvik bytecode at runtime. Has anybody done sth like this, it seems impossible without the javac class? A scripting language supporting compilation to Dalvik DEX code would also help. Apologies for reviving an old thread. If you've already found a solution to this, please ignore me :) We open-sourced Deelang, our lightweight in-app scripting language about a year ago. Recently, I've been working on a native (i.e. DEX) compiler for it. The compiler runs on-device and allows you to take script code and compile it a runtime-generated Class. Right now it's almost feature-complete but only tested to the extent that we use it in-house. It may well work for your needs? And in any case, more testers are always welcome ;) So I guess my question is, what does this provide over something say like, Groovy, would that work on Android. Also, generating native != generating Dalvik bytecode, to me :-/ ... that would be ... generating bytecode. You'll find the project at http://deelang.googlecode.com/ . To get the native compiler, you'll need to check the DEXCOMPILER branch out of subversion (a file release is planned soon, but not yet). Hm... You might be surprised that generating Dex doesn't help you as much here as you might think. Why? Because, let's say you're comparing this with code that you have running through an interpreter (okay, so you've converted your scripting language to a sort of intermediate form or something beforehand like Lua intermediate..) Now, your interpreter will run over this code in some systematic structure, and your wanting to use Dex is because you can translate this into Dalvik bytecode. But note! You will probably find that you will get pretty good perf out of this interpreter (sans bytecode generation) already, because Dalvik's (trace based) JIT will knock out hot paths of code along your bytecode generation. Do you have any firm numbers to support this either way? kris -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Timepicker AM/PM value issue
Hi all, Thanks for your quick replies.. TimePickerListener issue is there in honeycomb . But I got the result.. Finally i used TimePickerDialog Fragment.. This what i have done public void onTimeSet(TimePicker view, int hourOfDay, int minute) { // Do something with the time chosen by the user log(Hour :+hourOfDay); log(Minute : +minute); ViewGroup vg=(ViewGroup) view.getChildAt(0); log(AM/PM values after user selection:+((EditText)(((NumberPicker)vg.getChildAt(3)).getChildAt(1))).getText()); } Android timepicker control internally has 4 childs 1 st - NumberPicker 2nd - TextView 3rd - NumberPicker 4th - NumberPicker 4th children is the AM/PM widget This is also contains 2 childrens 1st - ImageButton 2nd - EditTextView(The value what i want hu.. AM/PM). after too much of trial and error cases finally i got the result.. On Tuesday, September 25, 2012 9:13:43 AM UTC+5:30, sindhu wrote: Hi, how to get time picker am/pm values in android 3.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] FATAL EXCEPTION: java.lang.IllegalStateException: Can not perform this action after onSaveInstanceState
Hi, We met the below FATAL Exception while launching the Playstore. Problem reproduction steps: 1. Start playstore and then start download. 2. Again start the playstore. The issue is not observed on mobile devices, but we are seeing only on PAD devices. Can you please check and let us know the reason for this. Please also tell us if we have any workaround. I/ActivityManager( 321): START {act=android.intent.action.MAIN cat=[android.intent.category.APP_MARKET] flg=0x1000 cmp=com.android.vending/.AssetBrowserActivity} from pid 541 08-13 17:30:35.327 D/PowerManagerService( 321): acquireWakeLock flags=0x1 tag=ActivityManager-Launch 08-13 17:30:35.347 D/PowerManagerService( 321): setKeyboardVisibility: false 08-13 17:30:35.347 D/PowerManagerService( 321): setScreenBrightnessOverride -1 08-13 17:30:35.347 D/PowerManagerService( 321): setButtonBrightnessOverride -1 08-13 17:30:35.347 D/PowerManagerService( 321): releaseWakeLock flags=0x1 tag=*vibrator* 08-13 17:30:35.347 D/PowerManagerService( 321): acquireWakeLock flags=0x1 tag=*vibrator* 08-13 17:30:35.367 D/PowerManagerService( 321): setScreenBrightnessOverride -1 08-13 17:30:35.367 D/PowerManagerService( 321): setButtonBrightnessOverride -1 08-13 17:30:35.417 E/AndroidRuntime(30040): EXCEPTION: main 08-13 17:30:35.417 E/AndroidRuntime(30040): java.lang.IllegalStateException: Can not perform this action after onSaveInstanceState 08-13 17:30:35.417 E/AndroidRuntime(30040): at android.support.v4.app.FragmentManagerImpl.checkStateLoss(FragmentManager.java:1300) 08-13 17:30:35.417 E/AndroidRuntime(30040): at android.support.v4.app.FragmentManagerImpl.enqueueAction(FragmentManager.java:1311) 08-13 17:30:35.417 E/AndroidRuntime(30040): at android.support.v4.app.FragmentManagerImpl.popBackStack(FragmentManager.java:436) 08-13 17:30:35.417 E/AndroidRuntime(30040): at com.google.android.finsky.navigationmanager.NavigationManager.clear(NavigationManager.java:97) 08-13 17:30:35.417 E/AndroidRuntime(30040): at com.google.android.finsky.activities.MainActivity.handleIntent(MainActivity.java:307) 08-13 17:30:35.417 E/AndroidRuntime(30040): at com.google.android.finsky.activities.MainActivity.onNewIntent(MainActivity.java:543) 08-13 17:30:35.417 E/AndroidRuntime(30040): at android.app.Instrumentation.callActivityOnNewIntent(Instrumentation.java:1123) 08-13 17:30:35.417 E/AndroidRuntime(30040): at android.app.ActivityThread.deliverNewIntents(ActivityThread.java:2042) 08-13 17:30:35.417 E/AndroidRuntime(30040): at android.app.ActivityThread.performNewIntents(ActivityThread.java:2055) 08-13 17:30:35.417 E/AndroidRuntime(30040): at android.app.ActivityThread.handleNewIntent(ActivityThread.java:2064) 08-13 17:30:35.417 E/AndroidRuntime(30040): at android.app.ActivityThread.access$1400(ActivityThread.java:123) 08-13 17:30:35.417 E/AndroidRuntime(30040): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1194) 08-13 17:30:35.417 E/AndroidRuntime(30040): at android.os.Handler.dispatchMessage(Handler.java:99) 08-13 17:30:35.417 E/AndroidRuntime(30040): at android.os.Looper.loop(Looper.java:137)FATAL 08-13 17:30:35.417 E/AndroidRuntime(30040): at android.app.ActivityThread.main(ActivityThread.java:4424) 08-13 17:30:35.417 E/AndroidRuntime(30040): at java.lang.reflect.Method.invokeNative(Native Method) 08-13 17:30:35.417 E/AndroidRuntime(30040): at java.lang.reflect.Method.invoke(Method.java:511) 08-13 17:30:35.417 E/AndroidRuntime(30040): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:787) 08-13 17:30:35.417 E/AndroidRuntime(30040): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:554) 08-13 17:30:35.417 E/AndroidRuntime(30040): at dalvik.system.NativeStart.main(Native Method) 08-13 17:30:35.457 D/PowerManagerService( 321): releaseWakeLock flags=0x1 tag=*vibrator* 08-13 17:30:35.487 W/ActivityManager( 321): Force finishing activity com.android.vending/.AssetBrowserActivity Thanks, Mahesh -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Best strategy in handling location change
On Monday, 24 September 2012 12:17:51 UTC+7, TreKing wrote: On Sun, Sep 23, 2012 at 11:25 PM, Muhammad Ichsan ich...@gmail.comjavascript: wrote: To simplify, this is an application which set off alarm by location. The alarm is determined by user coarse location. Providing less information does not simplify anything. The app is an app which reminds users of doing a task. When should the alarm go off? The alarm is scheduled by sun positioning which is relative to user's coarse position. So, when a user travels far away, the alarm can change. The 100 miles movoment probably may shift time about 1 minute (based on sun position. The method is approached by calculation based on user coarse location). I'm sorry if it was not clear, but is that clear enough now? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] api for dictionary in free
how to access dictionary with API? can you plz tell me were i can get the API in free. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] api for dictionary in free
There is no standard dictionary API within Android. iirc this is because of licensing restrictions. You can look for alternative (open source) dictionary packages that you can plug into your app, that would be an option, or you can look at web based services which export a REST based API for dictionaries, I'm confident there are many... kris On Wed, Sep 26, 2012 at 3:55 AM, rajlaxmi jagdale jagdalerajla...@gmail.com wrote: how to access dictionary with API? can you plz tell me were i can get the API in free. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] When I want to build libhello-jni native library with ndk-build, there is an error
On 24/09/2012 10:52, Xiaobo Huang wrote: When I want to build libhello-jni native library with ndk-build, there is an error: root@ThinkPad-Edge-E430:~/android-ndk-r8b/samples/hello-jni# ndk-build Gdbserver : [arm-linux-androideabi-4.6] libs/armeabi/gdbserver Gdbsetup : libs/armeabi/gdb.setup Executable : hello-jni /root/android-ndk-r8b/platforms/android-14/arch-arm/usr/lib/crtbegin_dynamic.o: In function `atexit': crtbrand.c:(.text+0x44): undefined reference to `main' collect2: ld returned 1 exit status make: *** [obj/local/armeabi/hello-jni] Error 1 I spent many time trying to see what happened but didn't figure out what's wrong :( I'd appreciate if any one can give some suggestions to resolve it, thank you in advance! ) Post your query on android-ndk. - Fabien -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Is in-app billing subsction purchaseToken persistent?
Will subscription purchaseToken be changed after user buys expired/canceled subscription again? Subscription is managed item, but it's possible to buy it twice, so it's behavior is not clear. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 use dictionary api key
I have register to dictionary.com for api key i got the key how should i 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] spinning tablet
On 25/09/2012 17:49, bob wrote: Let's say you have a tablet lying flat on a table. Then you spin it around. What type of sensor could detect that it is spinning? You may use direction and acceleration values. - Fabien -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 API 16 deisgn in API 8
Hi ! Is there any quick possiblilty to extract Android 4.x platform design from the SDK folder and include into a project ? I would like to have Android 4.x design in android 2.x too for some specified element (spinner, listview, listitems), but as I trying to copy the xmls I always get into errors, some of the components aren't included ! If this is a wrong point of view is there any another solution ? Thank you so much ! Cheers, Karoly -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Prevent application from updating
Is it possible to restrict application from updating receiveing update messages from google play from apllication code itself. 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: does android now support bluetooth 3.0 or higher
does anyone help me 在 2012年9月6日星期四UTC+8下午1时45分53秒,小明写道: bt 3.0 / bt 3.0 + hs / bt 4.0 / bt 4.0 + LE which bt revision does android support ? in which android version ? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] FATAL EXCEPTION: java.lang.IllegalStateException: Can not perform this action after onSaveInstanceState
Looks like a bug in Play -- it should be saving the new intent and run a fragment transaction, if needed, in onStart / onResume... -- K 2012/9/26 Maheswar Martha marthamahes...@gmail.com Hi, We met the below FATAL Exception while launching the Playstore. Problem reproduction steps: 1. Start playstore and then start download. 2. Again start the playstore. The issue is not observed on mobile devices, but we are seeing only on PAD devices. Can you please check and let us know the reason for this. Please also tell us if we have any workaround. I/ActivityManager( 321): START {act=android.intent.action.MAIN cat=[android.intent.category.APP_MARKET] flg=0x1000 cmp=com.android.vending/.AssetBrowserActivity} from pid 541 08-13 17:30:35.327 D/PowerManagerService( 321): acquireWakeLock flags=0x1 tag=ActivityManager-Launch 08-13 17:30:35.347 D/PowerManagerService( 321): setKeyboardVisibility: false 08-13 17:30:35.347 D/PowerManagerService( 321): setScreenBrightnessOverride -1 08-13 17:30:35.347 D/PowerManagerService( 321): setButtonBrightnessOverride -1 08-13 17:30:35.347 D/PowerManagerService( 321): releaseWakeLock flags=0x1 tag=*vibrator* 08-13 17:30:35.347 D/PowerManagerService( 321): acquireWakeLock flags=0x1 tag=*vibrator* 08-13 17:30:35.367 D/PowerManagerService( 321): setScreenBrightnessOverride -1 08-13 17:30:35.367 D/PowerManagerService( 321): setButtonBrightnessOverride -1 08-13 17:30:35.417 E/AndroidRuntime(30040): EXCEPTION: main 08-13 17:30:35.417 E/AndroidRuntime(30040): java.lang.IllegalStateException: Can not perform this action after onSaveInstanceState 08-13 17:30:35.417 E/AndroidRuntime(30040): at android.support.v4.app.FragmentManagerImpl.checkStateLoss(FragmentManager.java:1300) 08-13 17:30:35.417 E/AndroidRuntime(30040): at android.support.v4.app.FragmentManagerImpl.enqueueAction(FragmentManager.java:1311) 08-13 17:30:35.417 E/AndroidRuntime(30040): at android.support.v4.app.FragmentManagerImpl.popBackStack(FragmentManager.java:436) 08-13 17:30:35.417 E/AndroidRuntime(30040): at com.google.android.finsky.navigationmanager.NavigationManager.clear(NavigationManager.java:97) 08-13 17:30:35.417 E/AndroidRuntime(30040): at com.google.android.finsky.activities.MainActivity.handleIntent(MainActivity.java:307) 08-13 17:30:35.417 E/AndroidRuntime(30040): at com.google.android.finsky.activities.MainActivity.onNewIntent(MainActivity.java:543) 08-13 17:30:35.417 E/AndroidRuntime(30040): at android.app.Instrumentation.callActivityOnNewIntent(Instrumentation.java:1123) 08-13 17:30:35.417 E/AndroidRuntime(30040): at android.app.ActivityThread.deliverNewIntents(ActivityThread.java:2042) 08-13 17:30:35.417 E/AndroidRuntime(30040): at android.app.ActivityThread.performNewIntents(ActivityThread.java:2055) 08-13 17:30:35.417 E/AndroidRuntime(30040): at android.app.ActivityThread.handleNewIntent(ActivityThread.java:2064) 08-13 17:30:35.417 E/AndroidRuntime(30040): at android.app.ActivityThread.access$1400(ActivityThread.java:123) 08-13 17:30:35.417 E/AndroidRuntime(30040): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1194) 08-13 17:30:35.417 E/AndroidRuntime(30040): at android.os.Handler.dispatchMessage(Handler.java:99) 08-13 17:30:35.417 E/AndroidRuntime(30040): at android.os.Looper.loop(Looper.java:137)FATAL 08-13 17:30:35.417 E/AndroidRuntime(30040): at android.app.ActivityThread.main(ActivityThread.java:4424) 08-13 17:30:35.417 E/AndroidRuntime(30040): at java.lang.reflect.Method.invokeNative(Native Method) 08-13 17:30:35.417 E/AndroidRuntime(30040): at java.lang.reflect.Method.invoke(Method.java:511) 08-13 17:30:35.417 E/AndroidRuntime(30040): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:787) 08-13 17:30:35.417 E/AndroidRuntime(30040): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:554) 08-13 17:30:35.417 E/AndroidRuntime(30040): at dalvik.system.NativeStart.main(Native Method) 08-13 17:30:35.457 D/PowerManagerService( 321): releaseWakeLock flags=0x1 tag=*vibrator* 08-13 17:30:35.487 W/ActivityManager( 321): Force finishing activity com.android.vending/.AssetBrowserActivity Thanks, Mahesh -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Update Apps Content
Answers in line below: On Wednesday, September 26, 2012 12:12:50 AM UTC+1, hnic101 wrote: Hi, This might be a stupid question but I am new to app development. I have an app that is currently available in the play store. I want to change some graphics and add some more articles. If i do that and reload the apk to the google store will that require the user to update the app before they see the new content. Yes If so what do you suggest to enable me to update content and not require the user to update the entire app. Pull your updates from a server you own. Thanks for your help!!! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: how to build stand alone shared library in Android
NDK group is here: https://groups.google.com/forum/?fromgroups=#!forum/android-ndk On Tuesday, September 25, 2012 10:26:08 AM UTC+1, Mr cool wrote: i want build one stand alone shared library in android, i compile one sample application using arm-linux-androideabi-gcc but when i compile i doesn't load standard include files i got this error, how to link the standard include files in Android arm-linux-androideabi-gcc -fpic -c hello.c hello.c:1:6: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token In file included from hello.c:2:0: f:\android-ndk-r8b\toolchains\arm-linux-androideabi-4.6\prebuilt\windows\bin\../lib/gcc/arm-linux-androideabi/4.6.x-google/include-fixed/stdio.h:50:23: fatal error: sys/cdefs.h: No such file or directory compilation terminated. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] file size too large to attach
ASALAM O ALAIKUM i am trying to email an image from sdcard in android emulator.there is nothing wrong with the path and as well is with the email client(i have Gmail client).and the image size is not more then 3kb,but it still gives an error that is File size too large to attach.below is the code any help or idea ? thanks selectedImagePath= getPath(selectedImageUri); Intent i = new Intent(Intent.ACTION_SEND); //i.putExtra(Intent.EXTRA_EMAIL , yes u are right); i.putExtra(Intent.EXTRA_SUBJECT, yes u are right); i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); //i.putExtra(Intent.EXTRA_STREAM , baos.toByteArray()); i.putExtra(Intent.EXTRA_STREAM , Uri.parse(selectedImagePath)); i.setType(image/jpeg); try { startActivity(Intent.createChooser(i, Send mail...)); } catch (android.content.ActivityNotFoundException ex) { Toast.makeText(MyPhoto.this, There are no email clients installed., Toast.LENGTH_SHORT).show(); } -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] subscription period for google play?
Forever. On 09/26/2012 05:38 AM, rajlaxmi jagdale wrote: can i know what will be the subscription period once i register with google play for 25$? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: When does google is going to end C2DM push notifications ?
Simple answer: Now. Regardless of when support will end for C2DM, GCM is the future so there is no advantage to waiting until C2DM fails. It's a fairly simple modification to move to GCM and there are significant advantages. -John Coryat -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] StackOverflow Exception while using TabActivity
Just a guess, but if you don't think Romain's advice is on spot... could it be that you have a parent adjusting its size to wrap a child which is adjusting to match its parent? I think somebody posted something similar and that was the cause. Marina On Sep 26, 2012 3:50 AM, Rajan r.d.thak...@gmail.com wrote: Hello, Romain Guy i am facing a same issue java.lang.StackOverflowError, i didn't understand what can i do ? i am newbie in Android so please help, i am working on this issues last 1 to 2 days, but i didn't get success. please go through this link, https://groups.google.com/forum/?fromgroups=#!searchin/android-developers/Multiple$20SubActivity$20:$20facing$20StackOverflowError,$20please$20help/android-developers/nDWpyVOo3nQ/xbD5CZuEtGsJ please help me. Thank you. On Tuesday, 21 July 2009 21:13:02 UTC+5:30, Romain Guy wrote: You have way too many nested viewsgroups/layout. Remove some of them :) On Mon, Jul 20, 2009 at 10:04 PM, Dexter#39;s Braincooma...@gmail.com wrote: Hi, I have a TabActivity, there are 4 tabs. In each tab I have put a single Activity. One of the activities contains a Custom List View which uses a CustomAdapter which extends the BaseAdapter. I get this excpetion, when I try to open the tab containing this activity. It seems to be thrown at a point when probably the TabActivity is being re-drawn. Can anybody please suggest some alternatives, or solutions to avoid this problem. Here is the stack trace. java.lang.StackOverflowError at android.text.**SpannableStringBuilder.**drawText (SpannableStringBuilder.java:**1042) at android.graphics.Canvas.**drawText(Canvas.java:1273) at android.text.Styled.each(**Styled.java:119) at android.text.Styled.foreach(**Styled.java:249) at android.text.Styled.drawText(**Styled.java:302) at android.text.Layout.drawText(**Layout.java:1346) at android.text.Layout.draw(**Layout.java:339) at android.widget.TextView.**onDraw(TextView.java:3921) at android.view.View.draw(View.**java:5838) at android.view.ViewGroup.**drawChild(ViewGroup.java:1486) at android.view.ViewGroup.**dispatchDraw(ViewGroup.java:**1228) at android.view.ViewGroup.**drawChild(ViewGroup.java:1484) at android.view.ViewGroup.**dispatchDraw(ViewGroup.java:**1228) at android.view.ViewGroup.**drawChild(ViewGroup.java:1484) at android.view.ViewGroup.**dispatchDraw(ViewGroup.java:**1228) at android.view.ViewGroup.**drawChild(ViewGroup.java:1484) at android.view.ViewGroup.**dispatchDraw(ViewGroup.java:**1228) at android.widget.AbsListView.**dispatchDraw(AbsListView.java:**1319) at android.widget.ListView.**dispatchDraw(ListView.java:**2820) at android.view.View.draw(View.**java:5944) at android.widget.AbsListView.**draw(AbsListView.java:2121) at android.view.ViewGroup.**drawChild(ViewGroup.java:1486) at android.view.ViewGroup.**dispatchDraw(ViewGroup.java:**1228) at android.view.ViewGroup.**drawChild(ViewGroup.java:1484) at android.view.ViewGroup.**dispatchDraw(ViewGroup.java:**1228) at android.view.View.draw(View.**java:5841) at android.widget.FrameLayout.**draw(FrameLayout.java:352) at android.view.ViewGroup.**drawChild(ViewGroup.java:1486) at android.view.ViewGroup.**dispatchDraw(ViewGroup.java:**1228) at android.view.ViewGroup.**drawChild(ViewGroup.java:1484) at android.view.ViewGroup.**dispatchDraw(ViewGroup.java:**1228) at android.view.ViewGroup.**drawChild(ViewGroup.java:1484) at android.view.ViewGroup.**dispatchDraw(ViewGroup.java:**1228) at android.view.ViewGroup.**drawChild(ViewGroup.java:1484) at android.view.ViewGroup.**dispatchDraw(ViewGroup.java:**1228) at android.view.ViewGroup.**drawChild(ViewGroup.java:1484) at android.view.ViewGroup.**dispatchDraw(ViewGroup.java:**1228) at android.view.View.draw(View.**java:5841) at android.widget.FrameLayout.**draw(FrameLayout.java:352) at android.view.ViewGroup.**drawChild(ViewGroup.java:1486) at android.view.ViewGroup.**dispatchDraw(ViewGroup.java:**1228) at android.view.ViewGroup.**drawChild(ViewGroup.java:1484) at android.view.ViewGroup.**dispatchDraw(ViewGroup.java:**1228) at android.view.View.draw(View.**java:5841) at android.widget.FrameLayout.**draw(FrameLayout.java:352) at com.android.internal.policy.**impl.PhoneWindow$DecorView.**draw (PhoneWindow.java:1847) at android.view.ViewRoot.draw(**ViewRoot.java:1217) at android.view.ViewRoot.**performTraversals(ViewRoot.**java:1030) at android.view.ViewRoot.**handleMessage(ViewRoot.java:**1482) at android.os.Handler.**dispatchMessage(Handler.java:**99) at android.os.Looper.loop(Looper.**java:123) at android.app.ActivityThread.**main(ActivityThread.java:3948) at java.lang.reflect.Method.**invokeNative(Native Method) at java.lang.reflect.Method.**invoke(Method.java:521) at com.android.internal.os.**ZygoteInit$**MethodAndArgsCaller.run (ZygoteInit.java:782) at com.android.internal.os.**ZygoteInit.main(ZygoteInit.**java:540) at
Re: [android-developers] AsyncTask issues...
The key on AsyncTask is that it is asynchronic. You launch it and the lines of code after that can't be sure it ended. That's what onPostExecute is for. Google around to see how to send your result back to your main thread. There are several tutorials about it. Marina On Sep 26, 2012 3:51 AM, Ollie Pennington olliepennington1...@gmail.com wrote: Hey there good forum people, I was hoping you could help me with a really frustrating issue I am having... Basically, I am using an AsyncTask to run code that connects to a URL, which executes a PHP script, and then grabs the output. Within the AsyncTask class I can get the information from the URL that I need fine, but I cannot seem to move it from the AsyncTask back to my normal code. My custom AsyncTask class looks like this: private class ScriptExecutionTask extends AsyncTaskURL, Boolean, String { private boolean executionComplete = false; private String result = null; @Override protected void onPreExecute() { scriptExecutionInProgress = true; } @Override protected String doInBackground(URL... scriptUrl) { try { URL script = scriptUrl[0]; URLConnection scriptConnection = script.openConnection(); BufferedReader resultReader = new BufferedReader(new InputStreamReader(scriptConnection.getInputStream())); StringBuilder resultBuilder = new StringBuilder(); String line; while((line = resultReader.readLine()) != null) { resultBuilder.append(line); } resultReader.close(); executionComplete = true; return resultBuilder.toString(); } catch (IOException ex) { ex.printStackTrace(System.err); return null; } } @Override protected void onPostExecute(String result) { this.result = result; scriptExecutionInProgress = false; } protected String getResult() { return result; } protected boolean isExecutionComplete() { return executionComplete; } } And this is the code I use to execute the script and then wait for it to return the output: // Execute the script URL script = new URL(url); ScriptExecutionTask scriptExecutionTask = new ScriptExecutionTask(); scriptExecutionTask.execute(script); long timeAtExecute = System.currentTimeMillis(); // Wait for script to execute, or time out if it takes too long while(!scriptExecutionTask.isExecutionComplete() System.currentTimeMillis() - timeAtExecute = executionTimeOut); latestResult = scriptExecutionTask.getResult(); return latestResult; The main issue is that 'latestResult' will always be returned as null from the above code. When I System.out.println() the result within the AsyncTask I get exactly what I wanted. But for some reason, I can't grab the result from the AsyncTask and store it in latestResult. Thank you very much to anyone who can advise me, this has been bothering me for a while now :) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] HorizontalScrollView inside HorizontalScrollView ¿making it possible?
I want to learn how to solve this problem. I want to have a Horizontal scrollview with the scroll blocked (the user should not be able to scroll it) and inside that horizontal scrollview i want to have another horizontal scroll view, and this scrollview must be able to be scrolled by the user (it haves more content that the width of the screen). It is possible to do it? i tryed using this on the parent horizontal scroll view: ((HorizontalScrollView) view).setHorizontalScrollBarEnabled(false); ((HorizontalScrollView) view).setEnabled(false); ((HorizontalScrollView) view).setFocusable(false); ((HorizontalScrollView) view).setFocusableInTouchMode(false); and this on the child horizontal scroll view: ((HorizontalScrollView) view).requestFocus(); It is not working, The child appears to have a scroll bar but it cannot be scrolled. How can this be solved? PD: I know that this is not a good practice, but i want to learn how to achieve this goal. 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: On screen orientation changes activity restarted.
If your target is 13 or higher you need to add screenSize too. You didn't even needed Google on this one. It's on the docs. http://developer.android.com/guide/topics/manifest/activity-element.html#config Marina On Sep 26, 2012 3:52 AM, Joseph Visuvasam josep...@roamsoft.in wrote: Hi I am also have the same problem. Here i show you the code. public class YemegimyoldaActivity extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { final ProgressDialog progressDialog = new ProgressDialog(this); progressDialog.setIcon(R.drawable.ic_launcher); progressDialog.setTitle(Yemegimyolda); progressDialog.setMessage(Loading ...); progressDialog.setIndeterminate(true); progressDialog.setCancelable(true); progressDialog.show(); WebView yemeWebView = new WebView(this); yemeWebView.setLayoutParams(new LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.WRAP_CONTENT)); WebSettings webSettings = yemeWebView.getSettings(); webSettings.setJavaScriptEnabled(true); webSettings.setSupportZoom(true); webSettings.setLoadsImagesAutomatically(true); webSettings.setLightTouchEnabled(true); yemeWebView.setWebViewClient(new WebViewClient() { public boolean shouldOverrideUrlLoading(WebView view, String url) { Log.i(URL Load, Processing webview url click...); view.loadUrl(url); return true; } public void onPageFinished(WebView view, String url) { if (progressDialog.isShowing()) { progressDialog.dismiss(); } Log.i(On Finish, Finished loading URL: + url); } }); yemeWebView.loadUrl(http://mobile.yemegimyolda.com/index.html;); setContentView(yemeWebView); super.onCreate(savedInstanceState); } public void onConfigurationChanged(Configuration newConfig) { super.onConfigurationChanged(newConfig); } } manifest xmlns:android=http://schemas.android.com/apk/res/android; package=com.yeme.yemegimyolda android:versionCode=1 android:versionName=1.0 uses-sdk android:minSdkVersion=4 android:targetSdkVersion=15 / uses-permission android:name=android.permission.INTERNET / application android:icon=@drawable/ic_launcher android:label=@string/app_name android:theme=@style/AppTheme activity android:name=.YemegimyoldaActivity android:label=@string/app_name android:configChanges=orientation|keyboardHidden intent-filter action android:name=android.intent.action.MAIN / category android:name=android.intent.category.LAUNCHER / /intent-filter /activity /application /manifest On Monday, August 16, 2010 10:42:16 AM UTC+5:30, pramod.deore wrote: Hi everybody, I know on screen orientation changes activity restarted, but suppose i don't want to restart the activity then what should I do? I had tried it by adding in manifest.xml. android:configChanges=**keyboardHidden|orientation and override public void onConfigurationChanged(**Configuration newConfig) { super.onConfigurationChanged(**newConfig); } But still activity restarted each time when I change screen orientation. How to resolve this issue? Thanks in advance. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: FATAL EXCEPTION: java.lang.IllegalStateException: Can not perform this action after onSaveInstanceState
Compare this: http://stackoverflow.com/questions/7469082 and this: http://stackoverflow.com/questions/7575921 Regards Emanuel Moecklin 1gravity LLC -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: subscription period for google play?
On Tuesday, September 25, 2012 11:40:05 PM UTC-4, rajlaxmi jagdale wrote: can i know what will be the subscription period once i register with google play for 25$? Its not like the other Markets that charge annually. The fee is a one time fee, although Google keeps 30% of your sales, kinda like paying juice on wins to a bookie ;-) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Android API 16 deisgn in API 8
If you copy from the AOSP, you could be referencing some hidden or private attributes/properties/classes. You'd either have to substitute these with your own or find where these hidden or private elements are defined and copy these as well (and make sure that these are referenced properly by the other XML files). On Wednesday, September 26, 2012 5:13:20 AM UTC-4, Károly Holczhauser wrote: Hi ! Is there any quick possiblilty to extract Android 4.x platform design from the SDK folder and include into a project ? I would like to have Android 4.x design in android 2.x too for some specified element (spinner, listview, listitems), but as I trying to copy the xmls I always get into errors, some of the components aren't included ! If this is a wrong point of view is there any another solution ? Thank you so much ! Cheers, Karoly -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: file size too large to attach
Does Uri.parse really take a path? Are you passing in an RFC 2396-compliant, encoded URI to it? On Wednesday, September 26, 2012 5:15:24 AM UTC-5, Badshah khan wrote: ASALAM O ALAIKUM i am trying to email an image from sdcard in android emulator.there is nothing wrong with the path and as well is with the email client(i have Gmail client).and the image size is not more then 3kb,but it still gives an error that is File size too large to attach.below is the code any help or idea ? thanks selectedImagePath= getPath(selectedImageUri); Intent i = new Intent(Intent.ACTION_SEND); //i.putExtra(Intent.EXTRA_EMAIL , yes u are right); i.putExtra(Intent.EXTRA_SUBJECT, yes u are right); i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); //i.putExtra(Intent.EXTRA_STREAM , baos.toByteArray()); i.putExtra(Intent.EXTRA_STREAM , Uri.parse(selectedImagePath)); i.setType(image/jpeg); try { startActivity(Intent.createChooser(i, Send mail...)); } catch (android.content.ActivityNotFoundException ex) { Toast.makeText(MyPhoto.this, There are no email clients installed., Toast.LENGTH_SHORT).show(); } -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] passing json value to webservice..
Dear All, Im having a problem with senting JSON object to webservice. Webservice is coded in asp.net... Insert option in webservice, my data have to insert. Im using JSONobject to pass the data... Problem is, the url where i want to insert is in the format www.example.com/webservice/Service.asmx/Insert?customer=100item=100quantity=100rate=100dt=2012/09/19user=100 .. But i don know to convert into these format.. Or its very easy to convert in webservice?? Please give some options for insert my sqlite data to the curresponding webservice... Thanks Regards Anoop Narayanan C an...@biscommunication.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] the public library
So, what if you want to create an Android library and distribute it? Do you have to give away the source? Is the best we can do to obfuscate the source if we don't want people to see the source? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] parceling bitmaps pre and post honeycomb
With the changes to how bitmap data is stored that came in with Honeycomb affect the efficiency of parceling bitmap objects? I'm assuming the actual bitmap data wasn't ever parceled pre-Honeycomb. Is that accurate? If so, then my question is basically whether this behavior (not parceling the bitmap data) was carried forward into Honeycomb when the behind-the-scenes memory changes were made. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Error (INSTALL_FAILED_MISSING_FEATURE)
Hi, I got error *INSTALL_FAILED_MISSING_FEATURE* while installing my app in emulator. I am unable to find out the where is the error. My app consists of both Gps Camera features. I am not getting where I am wrong even i have made many changes but not working. Is it problem with ANDROID MANIFESTPlease Help me as soon as possible... Thank you error while installing on console [2012-09-26 19:00:50 - CaptureActivity] Installation error: INSTALL_FAILED_MISSING_FEATURE [2012-09-26 19:00:50 - CaptureActivity] Please check logcat output for more details. [2012-09-26 19:00:50 - CaptureActivity] Launch canceled! -- *Sobia Awan* * Bs(cs)* ** -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Replacing fragments in different transactions
Hello, I have a framelayout where I am adding a listfragment and adding it to backstack. If user selects an item in that list, I start a new transaction and replace the last fragment with a new one. But when I press back button, I dont see my first list fragment, rather I see the original splash screen. Do I have to replace fragments in same transactions to be able to navigate back to last fragment? Here is my code: //Adding first fragment: private void addRouteCategoryFragment(){ FragmentManager fm = getSupportFragmentManager(); FragmentTransaction ft = fm.beginTransaction(); ft=fm.beginTransaction(); ft.add(R.id.fragment_content, new RouteCategoryFragment(),ROUTE_CATEGORY_TAG); ft.addToBackStack(null); ft.commit(); } //Once user selects and item in RouteCategoryFragment, I replace it with other fragment- private void handleRuralRoutesClick(){ FragmentManager fm = getSupportFragmentManager(); FragmentTransaction ft = fm.beginTransaction(); ft.add(R.id.fragment_content, new CountyListFragment(),COUNTY_TAG); ft.addToBackStack(null); ft.commit(); } Thanks Apurva -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Best strategy in handling location change
On Wed, Sep 26, 2012 at 2:50 AM, Ichsan ich...@gmail.com wrote: I'm sorry if it was not clear, but is that clear enough now? I, for one, have no idea what you're talking about. Sorry. But if you want to set an alarm based on the user's location changing, you can register a Location listener to get notified of this fact. If you don't want to drain battery by having this on all the time, you can set a recurring alarm that checks the current location every X minutes or hours or something. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] passing json value to webservice..
On Wed, Sep 26, 2012 at 9:42 AM, Anoop C anoopc@gmail.com wrote: Please give some options for insert my sqlite data to the curresponding webservice... This has nothing to do with Android specifically. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Prevent application from updating
On Wed, Sep 26, 2012 at 4:14 AM, Dmitriy F midnight@gmail.com wrote: Is it possible to restrict application from updating receiveing update messages from google play from apllication code itself. Yes: don't publish updates. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] how to use dictionary api key
On Wed, Sep 26, 2012 at 3:17 AM, rajlaxmi jagdale jagdalerajla...@gmail.com wrote: I have register to dictionary.com for api key i got the key how should i use it? WTF does this have to do with Android development? - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Replacing fragments in different transactions
My correct code is- //Adding first fragment: private void addRouteCategoryFragment(){ FragmentManager fm = getSupportFragmentManager(); FragmentTransaction ft = fm.beginTransaction(); ft=fm.beginTransaction(); ft.add(R.id.fragment_content, new RouteCategoryFragment(),ROUTE_CATEGORY_TAG); ft.addToBackStack(null); ft.commit(); } //Once user selects and item in RouteCategoryFragment, I replace it with other fragment- private void handleRuralRoutesClick(){ FragmentManager fm = getSupportFragmentManager(); FragmentTransaction ft = fm.beginTransaction(); ft.replace(R.id.fragment_content, new CountyListFragment(),COUNTY_TAG); ft.addToBackStack(null); ft.commit(); } On Wednesday, September 26, 2012 11:35:29 AM UTC-4, Apurva Goyal wrote: Hello, I have a framelayout where I am adding a listfragment and adding it to backstack. If user selects an item in that list, I start a new transaction and replace the last fragment with a new one. But when I press back button, I dont see my first list fragment, rather I see the original splash screen. Do I have to replace fragments in same transactions to be able to navigate back to last fragment? Here is my code: //Adding first fragment: private void addRouteCategoryFragment(){ FragmentManager fm = getSupportFragmentManager(); FragmentTransaction ft = fm.beginTransaction(); ft=fm.beginTransaction(); ft.add(R.id.fragment_content, new RouteCategoryFragment(),ROUTE_CATEGORY_TAG); ft.addToBackStack(null); ft.commit(); } //Once user selects and item in RouteCategoryFragment, I replace it with other fragment- private void handleRuralRoutesClick(){ FragmentManager fm = getSupportFragmentManager(); FragmentTransaction ft = fm.beginTransaction(); ft.add(R.id.fragment_content, new CountyListFragment(),COUNTY_TAG); ft.addToBackStack(null); ft.commit(); } Thanks Apurva -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] order results in Play Store
On Tue, Sep 25, 2012 at 11:19 AM, Angelo Cesaro javandroi...@gmail.comwrote: Do you know by chance what are the variables that influence the search order of the app? No. These are secrets and mysteries known only to the Googs. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Error (INSTALL_FAILED_MISSING_FEATURE)
As the message says look in the logcat output and if you don't understand it please post it here. On Wednesday, September 26, 2012 4:26:08 PM UTC+1, S Awan wrote: Hi, I got error *INSTALL_FAILED_MISSING_FEATURE* while installing my app in emulator. I am unable to find out the where is the error. My app consists of both Gps Camera features. I am not getting where I am wrong even i have made many changes but not working. Is it problem with ANDROID MANIFESTPlease Help me as soon as possible... Thank you error while installing on console [2012-09-26 19:00:50 - CaptureActivity] Installation error: INSTALL_FAILED_MISSING_FEATURE [2012-09-26 19:00:50 - CaptureActivity] Please check logcat output for more details. [2012-09-26 19:00:50 - CaptureActivity] Launch canceled! -- *Sobia Awan* * Bs(cs)* ** -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: spinning tablet
I think I was thinking of the gyroscope. On Tuesday, September 25, 2012 10:49:35 AM UTC-5, bob wrote: Let's say you have a tablet lying flat on a table. Then you spin it around. What type of sensor could detect that it is spinning? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: the public library
Not sure where you are getting your info from can you post a reference please? Bitmap.writeToParcel http://developer.android.com/reference/android/graphics/Bitmap.html#writeToParcel(android.os.Parcel, int) Has no notes against it and says it writes the pixels (from API level 1) On Wednesday, September 26, 2012 4:02:07 PM UTC+1, bob wrote: So, what if you want to create an Android library and distribute it? Do you have to give away the source? Is the best we can do to obfuscate the source if we don't want people to see the source? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: the public library
Sorry responding to wrong message On Wednesday, September 26, 2012 4:52:41 PM UTC+1, RichardC wrote: Not sure where you are getting your info from can you post a reference please? Bitmap.writeToParcel http://developer.android.com/reference/android/graphics/Bitmap.html#writeToParcel(android.os.Parcel, int) Has no notes against it and says it writes the pixels (from API level 1) On Wednesday, September 26, 2012 4:02:07 PM UTC+1, bob wrote: So, what if you want to create an Android library and distribute it? Do you have to give away the source? Is the best we can do to obfuscate the source if we don't want people to see the source? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: parceling bitmaps pre and post honeycomb
Not sure where you are getting your info from can you post a reference please? Bitmap.writeToParcel http://developer.android.com/reference/android/graphics/Bitmap.html#writeToParcel(android.os.Parcel, int) Has no change notes against it and says it writes the pixels (from API level 1) On Wednesday, September 26, 2012 4:22:04 PM UTC+1, Jay Howard wrote: With the changes to how bitmap data is stored that came in with Honeycomb affect the efficiency of parceling bitmap objects? I'm assuming the actual bitmap data wasn't ever parceled pre-Honeycomb. Is that accurate? If so, then my question is basically whether this behavior (not parceling the bitmap data) was carried forward into Honeycomb when the behind-the-scenes memory changes were made. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: dictionary app
u can store all the words and meaning in a database and u have to retrieve the meaning from the database using sqlite querys go thru database samples regards, jovish On Wed, Sep 26, 2012 at 3:55 AM, bob b...@coolfone.comze.com wrote: You will want to use a Hashtable. You fill in the keys with words and the values with definitions. On Monday, September 24, 2012 4:48:05 AM UTC-5, rajlaxmi jagdale wrote: how to develop a app for dictionary?from where i should i start? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 drag listview item into other tab?
u cannot drag an item from one tab to the other but can add that item as string and use it in other tab On Wed, Sep 26, 2012 at 11:21 AM, Sohan badaya sohan.bad...@gmail.comwrote: I have a Tab activity that has 3 tabs. Each tab is a listView. I wanted to drag any list item form tab1 and drop it into tab2. I tried a lot but couldn't find any such example. If anyone have idea please let me know. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] dexgen questions ...
Sounds good. On Tuesday, September 25, 2012 1:42:21 PM UTC-7, Kristopher Micinski wrote: Try android-platform, that would be the appropriate place to ask. (Certainly not here!) kris On Tue, Sep 25, 2012 at 4:25 PM, Richard Schilling coder...@gmail.com javascript: wrote: I have a question about the usage of dexgen. Is there a special group setup for that, or is this the place to ask that? My question is this ... how do you use dexgen to generate a switch/case statement? Thanks Richard Schilling Senior Mobile Developer, RD Cetecom, USA -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-d...@googlegroups.comjavascript: To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com javascript: 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] gyro trouble
I'm trying to learn gyroscopes, so I have this code (partly from a book Meier, Reto (2012-04-05). Professional Android 4 Application Development (Wrox Professional Guides) (Kindle Locations 13327-13331). John Wiley and Sons. Kindle Edition. , partly from my head) package com.gyro_test; import android.hardware.Sensor; import android.hardware.SensorEvent; import android.hardware.SensorEventListener; public class Gyro_Listener implements SensorEventListener { final float nanosecondsPerSecond = 1.0f / 1.0f; private long lastTime = 0; final float[] angle = new float[3]; @Override public void onAccuracyChanged(Sensor sensor, int accuracy) { // TODO Auto-generated method stub } @Override public void onSensorChanged(SensorEvent sensorEvent) { if (lastTime != 0) { final float dT = (sensorEvent.timestamp - lastTime) * nanosecondsPerSecond; angle[0] += sensorEvent.values[0] * dT; angle[1] += sensorEvent.values[1] * dT; angle[2] += sensorEvent.values[2] * dT; } lastTime = sensorEvent.timestamp; System.out.println(angle0 = + angle[0] + , angle1 = + angle[1] + , angle2 = + angle[2]); } } Anyhow, the issue is that when I rotate the tablet by 90 degrees on the table, angle2 increases by about 15.4. I would expect it to increase by pi/2. Anyone know why this is? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: dexgen questions ...
Kristopher ... Yeah, android internals is a good place. And I was just reminded too, that it's a monitored group. I think the moderator is asleep at times. They don't get around to messages sometimes for a while. Grumph. Richard On Tuesday, September 25, 2012 1:25:43 PM UTC-7, Richard Schilling wrote: I have a question about the usage of dexgen. Is there a special group setup for that, or is this the place to ask that? My question is this ... how do you use dexgen to generate a switch/case statement? Thanks Richard Schilling Senior Mobile Developer, RD Cetecom, USA -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: gyro trouble
Looks like Reto forgot a 0 in his nanosecondsPerSecond. Should be: final float nanosecondsPerSecond = 1.0f / 10.0f; On Wednesday, September 26, 2012 1:17:51 PM UTC-5, bob wrote: I'm trying to learn gyroscopes, so I have this code (partly from a book Meier, Reto (2012-04-05). Professional Android 4 Application Development (Wrox Professional Guides) (Kindle Locations 13327-13331). John Wiley and Sons. Kindle Edition. , partly from my head) package com.gyro_test; import android.hardware.Sensor; import android.hardware.SensorEvent; import android.hardware.SensorEventListener; public class Gyro_Listener implements SensorEventListener { final float nanosecondsPerSecond = 1.0f / 1.0f; private long lastTime = 0; final float[] angle = new float[3]; @Override public void onAccuracyChanged(Sensor sensor, int accuracy) { // TODO Auto-generated method stub } @Override public void onSensorChanged(SensorEvent sensorEvent) { if (lastTime != 0) { final float dT = (sensorEvent.timestamp - lastTime) * nanosecondsPerSecond; angle[0] += sensorEvent.values[0] * dT; angle[1] += sensorEvent.values[1] * dT; angle[2] += sensorEvent.values[2] * dT; } lastTime = sensorEvent.timestamp; System.out.println(angle0 = + angle[0] + , angle1 = + angle[1] + , angle2 = + angle[2]); } } Anyhow, the issue is that when I rotate the tablet by 90 degrees on the table, angle2 increases by about 15.4. I would expect it to increase by pi/2. Anyone know why this is? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: parceling bitmaps pre and post honeycomb
Hmm. Good point. Some info I found online (forget where) suggested that Bitmap instances are fairly small since the pixel is stored externally on the native heap and the Bitmap instance only contains a reference to this externally allocated storage. I thought this would imply that, during parceling, only the reference to this external storage would be parceled rather than its entire contents. Some other info I found talked about how, with Honeycomb, this pixel storage was allocated on the VM heap rather than in native-land. My question was trying to get at whether this change would affect how Bitmaps are parceled. Does parceling a Bitmap *really* involve string-ifying the entire contents of its pixel data? On Wednesday, September 26, 2012 10:57:08 AM UTC-5, RichardC wrote: Not sure where you are getting your info from can you post a reference please? Bitmap.writeToParcel http://developer.android.com/reference/android/graphics/Bitmap.html#writeToParcel(android.os.Parcel, int) Has no change notes against it and says it writes the pixels (from API level 1) On Wednesday, September 26, 2012 4:22:04 PM UTC+1, Jay Howard wrote: With the changes to how bitmap data is stored that came in with Honeycomb affect the efficiency of parceling bitmap objects? I'm assuming the actual bitmap data wasn't ever parceled pre-Honeycomb. Is that accurate? If so, then my question is basically whether this behavior (not parceling the bitmap data) was carried forward into Honeycomb when the behind-the-scenes memory changes were made. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: parceling bitmaps pre and post honeycomb
As Parcels can be used in IPC calls it would have to as the image memory would not be accessible to the other process. On Wednesday, September 26, 2012 7:30:40 PM UTC+1, Jay Howard wrote: Hmm. Good point. Some info I found online (forget where) suggested that Bitmap instances are fairly small since the pixel is stored externally on the native heap and the Bitmap instance only contains a reference to this externally allocated storage. I thought this would imply that, during parceling, only the reference to this external storage would be parceled rather than its entire contents. Some other info I found talked about how, with Honeycomb, this pixel storage was allocated on the VM heap rather than in native-land. My question was trying to get at whether this change would affect how Bitmaps are parceled. Does parceling a Bitmap *really* involve string-ifying the entire contents of its pixel data? On Wednesday, September 26, 2012 10:57:08 AM UTC-5, RichardC wrote: Not sure where you are getting your info from can you post a reference please? Bitmap.writeToParcel http://developer.android.com/reference/android/graphics/Bitmap.html#writeToParcel(android.os.Parcel, int) Has no change notes against it and says it writes the pixels (from API level 1) On Wednesday, September 26, 2012 4:22:04 PM UTC+1, Jay Howard wrote: With the changes to how bitmap data is stored that came in with Honeycomb affect the efficiency of parceling bitmap objects? I'm assuming the actual bitmap data wasn't ever parceled pre-Honeycomb. Is that accurate? If so, then my question is basically whether this behavior (not parceling the bitmap data) was carried forward into Honeycomb when the behind-the-scenes memory changes were made. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: dexgen questions ...
Or at all, usually, I wouldn't count on having a message to android-internals answered. I don't view these groups as a reliable place to get information from the Google team. (I don't blame them..) kris On Wed, Sep 26, 2012 at 2:21 PM, Richard Schilling coderroa...@gmail.com wrote: Kristopher ... Yeah, android internals is a good place. And I was just reminded too, that it's a monitored group. I think the moderator is asleep at times. They don't get around to messages sometimes for a while. Grumph. Richard On Tuesday, September 25, 2012 1:25:43 PM UTC-7, Richard Schilling wrote: I have a question about the usage of dexgen. Is there a special group setup for that, or is this the place to ask that? My question is this ... how do you use dexgen to generate a switch/case statement? Thanks Richard Schilling Senior Mobile Developer, RD Cetecom, USA -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Update EditText Fields With Spinner Select
Any tutorial where spinner have the (set) same value, and updated as an edittext in a database, and by select from the items from the spinner; the edittext fields (7 edittext) is updated (loaded). -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Adding fragments to backstack in different transactions
Hello, I have a framelayout where I am adding a listfragment and adding it to backstack. If user selects an item in that list, I start a new transaction and replace the last fragment with a new one. But when I press back button, I dont see my first list fragment, rather I see the original splash screen. Do I have to replace fragments in same transactions to be able to navigate back to last fragment? Here is my code: //Adding first fragment: private void addRouteCategoryFragment(){ FragmentManager fm = getSupportFragmentManager(); FragmentTransaction ft = fm.beginTransaction(); ft=fm.beginTransaction(); ft.add(R.id.fragment_content, new RouteCategoryFragment(),ROUTE_CATEGORY_TAG); ft.addToBackStack(null); ft.commit(); } //Once user selects and item in RouteCategoryFragment, I replace it with other fragment- private void handleRuralRoutesClick(){ FragmentManager fm = getSupportFragmentManager(); FragmentTransaction ft = fm.beginTransaction(); ft.replace(R.id.fragment_content, new CountyListFragment(),COUNTY_TAG); ft.addToBackStack(null); ft.commit(); } Thanks Apurva -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Aligning a view to an ImageView in different resolutions
The problem with properly handling multiple screen sizes on Android has been talked all over thousands of times. However I couldn't find a solution to m problem. In a nutshell I need to align my custom progress bar over an imageView. I've got 3 set of drawables for the imageView - ldpi(scaled for 240x400), mdpi(scaled for 320x480), hdpi(scaled for 480x800). I align my custom view in Java with the following code: //get screen density float density = getBaseContext().getResources().getDisplayMetrics().density; //set the progress bar position according to screen density if ( density == 1.0f) { ImageView micImage = ((ImageView) findViewById(R.id.imageViewClk)); Drawable drawing = micImage.getDrawable(); Bitmap bitmap = ((BitmapDrawable)drawing).getBitmap(); // Get current dimensions int width = bitmap.getWidth(); int height = bitmap.getHeight(); LayoutParams params = new LayoutParams((int)(height/13.94), (int)(height/13.94)); params.setMargins((int)(width/2.30), 0, 0, (int)(height/2.75)); params.addRule(RelativeLayout.ALIGN_LEFT,R.id.imageViewClk); params.addRule(RelativeLayout.ALIGN_BOTTOM,R.id.imageViewClk); myCustomTwistedProgressBar.setLayoutParams(params); }else if ( density == 1.5f ){ ImageView micImage = ((ImageView) findViewById(R.id.imageViewClk)); Drawable drawing = micImage.getDrawable(); Bitmap bitmap = ((BitmapDrawable)drawing).getBitmap(); int width = bitmap.getWidth(); int height = bitmap.getHeight(); LayoutParams params = new LayoutParams((int)Math.round(height/14.13), (int)Math.round(height/14.13)); params.setMargins((int)Math.round( width/2.27), 0, 0, (int)Math.round(height/2.91)); params.addRule(RelativeLayout.ALIGN_LEFT,R.id.imageViewClk); params.addRule(RelativeLayout.ALIGN_BOTTOM,R.id.imageViewClk); myCustomTwistedProgressBar.setLayoutParams(params); }else if ( density == 0.75f ){ ImageView micImage = ((ImageView) findViewById(R.id.imageViewClk)); Drawable drawing = micImage.getDrawable(); Bitmap bitmap = ((BitmapDrawable)drawing).getBitmap(); // Get current dimensions int width = bitmap.getWidth(); int height = bitmap.getHeight(); LayoutParams params = new LayoutParams((int)(height/14.88), (int)(height/14.88)); params.setMargins((int)(width/2.27), 0, 0, (int)(height/2.69)); params.addRule(RelativeLayout.ALIGN_LEFT,R.id.imageViewClk); params.addRule(RelativeLayout.ALIGN_BOTTOM,R.id.imageViewClk); myCustomTwistedProgressBar.setLayoutParams(params); } The problem with properly handling multiple screen sizes on Android has been talked all over thousands of times. However I couldn't find a solution to m problem. In a nutshell I need to align my custom progress bar over an imageView. I've got 3 set of drawables for the imageView - ldpi(240x400), mdpi(320x480), hdpi(480x800). I align my custom view in Java with the following code: //get screen density float density = getBaseContext().getResources().getDisplayMetrics().density; //set the progress bar position according to screen density if ( density == 1.0f) { ImageView micImage = ((ImageView) findViewById(R.id.imageViewClk)); Drawable drawing = micImage.getDrawable(); Bitmap bitmap = ((BitmapDrawable)drawing).getBitmap(); // Get current dimensions int width = bitmap.getWidth(); int height = bitmap.getHeight(); LayoutParams params = new LayoutParams((int)(height/13.94), (int)(height/13.94)); params.setMargins((int)(width/2.30), 0, 0, (int)(height/2.75)); params.addRule(RelativeLayout.ALIGN_LEFT,R.id.imageViewClk); params.addRule(RelativeLayout.ALIGN_BOTTOM,R.id.imageViewClk); myCustomTwistedProgressBar.setLayoutParams(params); }else if ( density == 1.5f ){ ImageView micImage = ((ImageView) findViewById(R.id.imageViewClk)); Drawable drawing = micImage.getDrawable(); Bitmap bitmap = ((BitmapDrawable)drawing).getBitmap(); int width = bitmap.getWidth(); int height = bitmap.getHeight(); LayoutParams params = new LayoutParams((int)Math.round(height/14.13), (int)Math.round(height/14.13)); params.setMargins((int)Math.round( width/2.27), 0, 0, (int)Math.round(height/2.91)); params.addRule(RelativeLayout.ALIGN_LEFT,R.id.imageViewClk); params.addRule(RelativeLayout.ALIGN_BOTTOM,R.id.imageViewClk); myCustomTwistedProgressBar.setLayoutParams(params); }else if ( density == 0.75f ){
[android-developers] Re: How to publish paid apps when your country is not in Merchant list?
If your country allows you to open a bank account in a foreign country then that would work. Google does care only where it can send the money. They don't care where you are actually spending most of your time :) Here in EU you can pretty much open a bank account anywhere and still live in some other country. Just be sure to select the right country when you register because that CANNOT be changed later. (only if you register as a new user). On Tuesday, September 25, 2012 4:01:48 PM UTC+2, rahul wrote: I’ve one question. How do application developers from the countries who are not in this merchant list (like India) publish there paid apps in the market. I mean there must be some way. Do they have to open a bank account in other country like US and open a merchant account from that. Is it allowed legal? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] MPL sensors?
I'm looking at a lot of sensors on my device like so: SensorManager sm = (SensorManager) getSystemService(Context.SENSOR_SERVICE); List Sensor allSensors = sm.getSensorList( Sensor.TYPE_ALL); for (Iterator iterator = allSensors.iterator(); iterator.hasNext();) { Sensor sensor = (Sensor) iterator.next(); String name = sensor.getName(); System.out.println(name: + name); } I noticed a lot of them start with MPL: 09-26 15:49:14.580: I/System.out(26490): name: MPL Gyroscope 09-26 15:49:14.580: I/System.out(26490): name: MPL Accelerometer 09-26 15:49:14.580: I/System.out(26490): name: MPL Magnetic Field 09-26 15:49:14.580: I/System.out(26490): name: MPL Orientation 09-26 15:49:14.580: I/System.out(26490): name: MPL Rotation Vector 09-26 15:49:14.580: I/System.out(26490): name: MPL Linear Acceleration 09-26 15:49:14.580: I/System.out(26490): name: MPL Gravity Anyone know what MPL means in this context? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Error (INSTALL_FAILED_MISSING_FEATURE)
Thank you for your reply ...now Activity starting successfully without any logcat messages but fatal exception occur on scanner activity...Any help please... On Wed, Sep 26, 2012 at 8:47 PM, RichardC richard.crit...@googlemail.comwrote: As the message says look in the logcat output and if you don't understand it please post it here. On Wednesday, September 26, 2012 4:26:08 PM UTC+1, S Awan wrote: Hi, I got error *INSTALL_FAILED_MISSING_FEATURE* while installing my app in emulator. I am unable to find out the where is the error. My app consists of both Gps Camera features. I am not getting where I am wrong even i have made many changes but not working. Is it problem with ANDROID MANIFESTPlease Help me as soon as possible... Thank you error while installing on console [2012-09-26 19:00:50 - CaptureActivity] Installation error: INSTALL_FAILED_MISSING_FEATURE [2012-09-26 19:00:50 - CaptureActivity] Please check logcat output for more details. [2012-09-26 19:00:50 - CaptureActivity] Launch canceled! -- *Sobia Awan* * Bs(cs)* ** -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- *Sobia Awan* * Bs(cs)* ** -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] the public library
The rules for Android are no different than with any sort of Java technology. If you write a library that uses Android stuff, it's no different than any other library that uses a standard library that it links against. Generally you provide someone with a big jar blob, or something like that. So, Android doesn't change anything, really... If you don't want someone to see the source, yes, you can obfuscate your code, typically a jar, using an obfuscation tool. kris On Wed, Sep 26, 2012 at 11:02 AM, bob b...@coolfone.comze.com wrote: So, what if you want to create an Android library and distribute it? Do you have to give away the source? Is the best we can do to obfuscate the source if we don't want people to see the source? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Error (INSTALL_FAILED_MISSING_FEATURE)
Fatal exception implies there *will* be a logcat message. kris On Wed, Sep 26, 2012 at 5:01 PM, Sobia Awan juwerian.so...@gmail.com wrote: Thank you for your reply ...now Activity starting successfully without any logcat messages but fatal exception occur on scanner activity...Any help please... On Wed, Sep 26, 2012 at 8:47 PM, RichardC richard.crit...@googlemail.com wrote: As the message says look in the logcat output and if you don't understand it please post it here. On Wednesday, September 26, 2012 4:26:08 PM UTC+1, S Awan wrote: Hi, I got error INSTALL_FAILED_MISSING_FEATURE while installing my app in emulator. I am unable to find out the where is the error. My app consists of both Gps Camera features. I am not getting where I am wrong even i have made many changes but not working. Is it problem with ANDROID MANIFESTPlease Help me as soon as possible... Thank you error while installing on console [2012-09-26 19:00:50 - CaptureActivity] Installation error: INSTALL_FAILED_MISSING_FEATURE [2012-09-26 19:00:50 - CaptureActivity] Please check logcat output for more details. [2012-09-26 19:00:50 - CaptureActivity] Launch canceled! -- Sobia Awan Bs(cs) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Sobia Awan Bs(cs) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Error (INSTALL_FAILED_MISSING_FEATURE)
Get a logcat dump, there *will* be one, if the app has crashed. kris On Wed, Sep 26, 2012 at 5:10 PM, Sobia Awan juwerian.so...@gmail.com wrote: fatal exception means... on my scanner activity there is a pop up box which showing me this message( this application has stopped unexpectedly)..please any help On Thu, Sep 27, 2012 at 2:06 AM, Kristopher Micinski krismicin...@gmail.com wrote: Fatal exception implies there *will* be a logcat message. kris On Wed, Sep 26, 2012 at 5:01 PM, Sobia Awan juwerian.so...@gmail.com wrote: Thank you for your reply ...now Activity starting successfully without any logcat messages but fatal exception occur on scanner activity...Any help please... On Wed, Sep 26, 2012 at 8:47 PM, RichardC richard.crit...@googlemail.com wrote: As the message says look in the logcat output and if you don't understand it please post it here. On Wednesday, September 26, 2012 4:26:08 PM UTC+1, S Awan wrote: Hi, I got error INSTALL_FAILED_MISSING_FEATURE while installing my app in emulator. I am unable to find out the where is the error. My app consists of both Gps Camera features. I am not getting where I am wrong even i have made many changes but not working. Is it problem with ANDROID MANIFESTPlease Help me as soon as possible... Thank you error while installing on console [2012-09-26 19:00:50 - CaptureActivity] Installation error: INSTALL_FAILED_MISSING_FEATURE [2012-09-26 19:00:50 - CaptureActivity] Please check logcat output for more details. [2012-09-26 19:00:50 - CaptureActivity] Launch canceled! -- Sobia Awan Bs(cs) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Sobia Awan Bs(cs) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 -- Sobia Awan Bs(cs) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Error (INSTALL_FAILED_MISSING_FEATURE)
ok...Thanks for your help On Thu, Sep 27, 2012 at 2:16 AM, Kristopher Micinski krismicin...@gmail.com wrote: Get a logcat dump, there *will* be one, if the app has crashed. kris On Wed, Sep 26, 2012 at 5:10 PM, Sobia Awan juwerian.so...@gmail.com wrote: fatal exception means... on my scanner activity there is a pop up box which showing me this message( this application has stopped unexpectedly)..please any help On Thu, Sep 27, 2012 at 2:06 AM, Kristopher Micinski krismicin...@gmail.com wrote: Fatal exception implies there *will* be a logcat message. kris On Wed, Sep 26, 2012 at 5:01 PM, Sobia Awan juwerian.so...@gmail.com wrote: Thank you for your reply ...now Activity starting successfully without any logcat messages but fatal exception occur on scanner activity...Any help please... On Wed, Sep 26, 2012 at 8:47 PM, RichardC richard.crit...@googlemail.com wrote: As the message says look in the logcat output and if you don't understand it please post it here. On Wednesday, September 26, 2012 4:26:08 PM UTC+1, S Awan wrote: Hi, I got error INSTALL_FAILED_MISSING_FEATURE while installing my app in emulator. I am unable to find out the where is the error. My app consists of both Gps Camera features. I am not getting where I am wrong even i have made many changes but not working. Is it problem with ANDROID MANIFESTPlease Help me as soon as possible... Thank you error while installing on console [2012-09-26 19:00:50 - CaptureActivity] Installation error: INSTALL_FAILED_MISSING_FEATURE [2012-09-26 19:00:50 - CaptureActivity] Please check logcat output for more details. [2012-09-26 19:00:50 - CaptureActivity] Launch canceled! -- Sobia Awan Bs(cs) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Sobia Awan Bs(cs) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 -- Sobia Awan Bs(cs) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 -- *Sobia Awan* * Bs(cs)* ** -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Error (INSTALL_FAILED_MISSING_FEATURE)
Yes, adb logcat should turn up *something*.. kris On Wed, Sep 26, 2012 at 5:23 PM, Sobia Awan juwerian.so...@gmail.com wrote: ok...Thanks for your help On Thu, Sep 27, 2012 at 2:16 AM, Kristopher Micinski krismicin...@gmail.com wrote: Get a logcat dump, there *will* be one, if the app has crashed. kris On Wed, Sep 26, 2012 at 5:10 PM, Sobia Awan juwerian.so...@gmail.com wrote: fatal exception means... on my scanner activity there is a pop up box which showing me this message( this application has stopped unexpectedly)..please any help On Thu, Sep 27, 2012 at 2:06 AM, Kristopher Micinski krismicin...@gmail.com wrote: Fatal exception implies there *will* be a logcat message. kris On Wed, Sep 26, 2012 at 5:01 PM, Sobia Awan juwerian.so...@gmail.com wrote: Thank you for your reply ...now Activity starting successfully without any logcat messages but fatal exception occur on scanner activity...Any help please... On Wed, Sep 26, 2012 at 8:47 PM, RichardC richard.crit...@googlemail.com wrote: As the message says look in the logcat output and if you don't understand it please post it here. On Wednesday, September 26, 2012 4:26:08 PM UTC+1, S Awan wrote: Hi, I got error INSTALL_FAILED_MISSING_FEATURE while installing my app in emulator. I am unable to find out the where is the error. My app consists of both Gps Camera features. I am not getting where I am wrong even i have made many changes but not working. Is it problem with ANDROID MANIFESTPlease Help me as soon as possible... Thank you error while installing on console [2012-09-26 19:00:50 - CaptureActivity] Installation error: INSTALL_FAILED_MISSING_FEATURE [2012-09-26 19:00:50 - CaptureActivity] Please check logcat output for more details. [2012-09-26 19:00:50 - CaptureActivity] Launch canceled! -- Sobia Awan Bs(cs) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Sobia Awan Bs(cs) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 -- Sobia Awan Bs(cs) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 -- Sobia Awan Bs(cs) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Aligning a view to an ImageView in different resolutions
Not sure what your requirements are, but the code below seems way too complicated to me. Subclass ViewGroup, draw the image in onDraw, override onMeasure / onLayout and position the progress bar (or skip the drawing and add an image view as a child... you'd need to position it too...) -- K 2012/9/26 Serdel adam.lichwierow...@gmail.com The problem with properly handling multiple screen sizes on Android has been talked all over thousands of times. However I couldn't find a solution to m problem. In a nutshell I need to align my custom progress bar over an imageView. I've got 3 set of drawables for the imageView - ldpi(scaled for 240x400), mdpi(scaled for 320x480), hdpi(scaled for 480x800). I align my custom view in Java with the following code: //get screen density float density = getBaseContext().getResources().getDisplayMetrics().density; //set the progress bar position according to screen density if ( density == 1.0f) { ImageView micImage = ((ImageView) findViewById(R.id.imageViewClk)); Drawable drawing = micImage.getDrawable(); Bitmap bitmap = ((BitmapDrawable)drawing).getBitmap(); // Get current dimensions int width = bitmap.getWidth(); int height = bitmap.getHeight(); LayoutParams params = new LayoutParams((int)(height/13.94), (int)(height/13.94)); params.setMargins((int)(width/2.30), 0, 0, (int)(height/2.75)); params.addRule(RelativeLayout.ALIGN_LEFT,R.id.imageViewClk); params.addRule(RelativeLayout.ALIGN_BOTTOM,R.id.imageViewClk); myCustomTwistedProgressBar.setLayoutParams(params); }else if ( density == 1.5f ){ ImageView micImage = ((ImageView) findViewById(R.id.imageViewClk)); Drawable drawing = micImage.getDrawable(); Bitmap bitmap = ((BitmapDrawable)drawing).getBitmap(); int width = bitmap.getWidth(); int height = bitmap.getHeight(); LayoutParams params = new LayoutParams((int)Math.round(height/14.13), (int)Math.round(height/14.13)); params.setMargins((int)Math.round( width/2.27), 0, 0, (int)Math.round(height/2.91)); params.addRule(RelativeLayout.ALIGN_LEFT,R.id.imageViewClk); params.addRule(RelativeLayout.ALIGN_BOTTOM,R.id.imageViewClk); myCustomTwistedProgressBar.setLayoutParams(params); }else if ( density == 0.75f ){ ImageView micImage = ((ImageView) findViewById(R.id.imageViewClk)); Drawable drawing = micImage.getDrawable(); Bitmap bitmap = ((BitmapDrawable)drawing).getBitmap(); // Get current dimensions int width = bitmap.getWidth(); int height = bitmap.getHeight(); LayoutParams params = new LayoutParams((int)(height/14.88), (int)(height/14.88)); params.setMargins((int)(width/2.27), 0, 0, (int)(height/2.69)); params.addRule(RelativeLayout.ALIGN_LEFT,R.id.imageViewClk); params.addRule(RelativeLayout.ALIGN_BOTTOM,R.id.imageViewClk); myCustomTwistedProgressBar.setLayoutParams(params); } The problem with properly handling multiple screen sizes on Android has been talked all over thousands of times. However I couldn't find a solution to m problem. In a nutshell I need to align my custom progress bar over an imageView. I've got 3 set of drawables for the imageView - ldpi(240x400), mdpi(320x480), hdpi(480x800). I align my custom view in Java with the following code: //get screen density float density = getBaseContext().getResources().getDisplayMetrics().density; //set the progress bar position according to screen density if ( density == 1.0f) { ImageView micImage = ((ImageView) findViewById(R.id.imageViewClk)); Drawable drawing = micImage.getDrawable(); Bitmap bitmap = ((BitmapDrawable)drawing).getBitmap(); // Get current dimensions int width = bitmap.getWidth(); int height = bitmap.getHeight(); LayoutParams params = new LayoutParams((int)(height/13.94), (int)(height/13.94)); params.setMargins((int)(width/2.30), 0, 0, (int)(height/2.75)); params.addRule(RelativeLayout.ALIGN_LEFT,R.id.imageViewClk); params.addRule(RelativeLayout.ALIGN_BOTTOM,R.id.imageViewClk); myCustomTwistedProgressBar.setLayoutParams(params); }else if ( density == 1.5f ){ ImageView micImage = ((ImageView) findViewById(R.id.imageViewClk)); Drawable drawing = micImage.getDrawable(); Bitmap bitmap = ((BitmapDrawable)drawing).getBitmap(); int width = bitmap.getWidth(); int height = bitmap.getHeight(); LayoutParams params = new
[android-developers] Re: gyro trouble
I gather from your followup that you found your answer, so I will indulge in a mini-code review for you. bob wrote: package com.gyro_test; By long-standing and official convention, don't use underscores in Java package names or other identifiers, except for constant variable names. import android.hardware.Sensor; import android.hardware.SensorEvent; import android.hardware.SensorEventListener; public class Gyro_Listener implements SensorEventListener { No underscore. final float nanosecondsPerSecond = 1.0f / 1.0f; private long lastTime = 0; final float[] angle = new float[3]; @Override public void onAccuracyChanged(Sensor sensor, int accuracy) { // TODO Auto-generated method stub } @Override public void onSensorChanged(SensorEvent sensorEvent) { if (lastTime != 0) { final float dT = (sensorEvent.timestamp - lastTime) You need indentation. Your lack of indentation is very disturbing. Why 'float' and not 'double'? Ordinarily you'd want 'double'. You'll lose precision in this calculation. Well, you might lose precision with 'double', too, but not as much. * nanosecondsPerSecond; angle[0] += sensorEvent.values[0] * dT; angle[1] += sensorEvent.values[1] * dT; angle[2] += sensorEvent.values[2] * dT; } lastTime = sensorEvent.timestamp; System.out.println(angle0 = + angle[0] + , angle1 = + angle[1] + , angle2 = + angle[2]); } } -- Lew -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: gyro trouble
On Wednesday, September 26, 2012 11:29:10 AM UTC-7, bob wrote: Looks like Reto forgot a 0 in his nanosecondsPerSecond. Should be: final float nanosecondsPerSecond = 1.0f / 10.0f; That's seconds per nanosecond. There are one billion nanoseconds per second, not one billionth. -- Lew -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: dictionary app
rajlaxmi jagdale wrote: how to develop a app for dictionary?from where i should i start? bob wrote: You will want to use a Hashtable. You fill in the keys with words and the values with definitions. No. Assuming the OP means dictionary in the normal English sense and not the restricted computer- programming sense, that won't be enough, and 'Hashtable' is an outdated type anyway, so don't recommend it. -- Lew -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: dictionary app
rajlaxmi jagdale wrote: how to develop a app for dictionary?from where i [sic] should i [sic] start? Jovish P wrote: u [sic] can store all the words and meaning in a database and u [sic] have to retrieve the meaning from the database using sqlite querys go thru database samples This is highly insufficient. That's like saying, Write a program. In that database you can store words and meanings naively, but that leads to space issues, if you have a lot of words. Plurals, declensions, conjugations - all that stuff puffs up your storage requirements. The OP should start by researching (GIYF) storage protocols for natural-language dictionaries. There are all kinds of compression and root+extension tricks to help reduce dictionary size and increase reliability. Also, there already is a dictionary in the device, yes? -- Lew -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] MPL sensors?
On Wed, Sep 26, 2012 at 3:58 PM, bob b...@coolfone.comze.com wrote: Anyone know what MPL means in this context? http://justfuckinggoogleit.com/ - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] MPL sensors?
I agree On Sep 27, 2012 3:42 AM, TreKing treking...@gmail.com wrote: On Wed, Sep 26, 2012 at 3:58 PM, bob b...@coolfone.comze.com wrote: Anyone know what MPL means in this context? http://justfuckinggoogleit.com/ - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] What is the meaning of Incl CPU Time, Excl CPU Time, Incl Real CPU Time, Excl Real CPU Time in DDMS Method Profiling
RT,I got some information form this article : http://developer.android.com/tools/debugging/debugging-tracing.html, but seems it is out of date right now... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 publish paid apps when your country is not in Merchant list?
Using a bank in a country on the merchant list is one alternative, another is to use a different Android market, such as slideme.org, which has more flexible payment arrangements. I would not use getjar.com, since they only allow the 'freemium' model, which is useless outside of games. On Tuesday, September 25, 2012 7:01:48 AM UTC-7, rahul wrote: I’ve one question. How do application developers from the countries who are not in this merchant list (like India) publish there paid apps in the market. I mean there must be some way. Do they have to open a bank account in other country like US and open a merchant account from that. Is it allowed legal? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Where to download the Lenovo A2901 ADB interface USB driver?
If it is a Windows driver you are interested in, go to the Lenovo website for your Lenovo and select the right USB package (including lots of drivers, I forget the exact name). Download from there. On Tuesday, September 25, 2012 3:48:38 AM UTC-7, mw1 wrote: I can't find the Lenovo A2901 ADB interface USB driver? Any comment? Thank you in advance. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: checking WI-FI
Judging from Harry's link, where neither the documentation nor the code sample say what it will do if there is the wi-fi is off, I would guess you get the return value for no connection. But nothing to differenetiate between wi-fi present and on but w/o connection and wi-fi not present, off, or broken. On Tuesday, September 25, 2012 3:15:07 AM UTC-7, Saurabh Khemka wrote: How to check programmatically whether a device's wi-fi is on or not using phonegap? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] import android.os.SystemProperties
I've been reading a bit on the use of System.Properties, using or removing (@hide) and reflection to get access to it, needless to say I havent been succesful.. This is my code..how do I import to allow access to this android.os.SystemProperties..THNX! package com.MovilTeacher_titan.app; import android.annotation.SuppressLint; import android.app.Activity; import android.app.AlertDialog; import android.app.AlertDialog.Builder; import android.content.DialogInterface; import android.content.Intent; import android.content.DialogInterface.OnClickListener; import android.media.MediaPlayer; import android.os.Bundle; import android.os.StrictMode; import android.os.SystemProperties; import android.util.Log; import android.view.View; import android.widget.Button; import android.widget.TextView; import com.MovilTeacher_titan.app.R; import com.example.app.library.UserFunctions; import com.tchip.kw.kwsoft; @SuppressLint(NewApi) public class DashboardActivity extends Activity { UserFunctions userFunctions; Button btnLogout; MediaPlayer ourSong; kwsoft kw = new kwsoft(); @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); String Key = SystemProperties.get(ro.tchip.software, k); boolean ismachinestatus2=kw.getmachinestatus2()==1 || Key.endsWith( kw); if (kw.getmachinestatus1()==1 ismachinestatus2 ) { //tv.setText(it is Tchip); Log.v(DashboardActivity,is current); StrictMode.ThreadPolicy policy = newStrictMode.ThreadPolicy.Builder().permitAll().build(); StrictMode.setThreadPolicy(policy); -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Android: nXn metric over an image .. Which Also move with image.
I subclass the imageview also but not getting proper result I tried but not satisfactory Drwaing grid from top left corner of the layout . Any Code Help ? On Saturday, September 22, 2012 1:43:48 PM UTC+5:30, umesh rathod wrote: I want a metric or a grid over an image of nXn . As I zoom the image this should also get zoom. And this grid should also move with the Image move. Is there any way to do this in android. If image is moving out of the screen this grid should also move out of the screen. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] passing json value to webservice..
At the same time... You probably want to look at HttpRequest. kris On Wed, Sep 26, 2012 at 11:37 AM, TreKing treking...@gmail.com wrote: On Wed, Sep 26, 2012 at 9:42 AM, Anoop C anoopc@gmail.com wrote: Please give some options for insert my sqlite data to the curresponding webservice... This has nothing to do with Android specifically. - TreKing - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Offline Floor Plan
i want to implement an offline map of a building .I need to use tiled map with several zoom levels and be able to zoom in/out by pinching on the map, double tap, pan and so on. It contains lot of stand and location from on stand to another stand -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=enattachment: flash_pra.jpg
Re: [android-developers] Update EditText Fields With Spinner Select
Hi, Could you please more specific to your question. It would be more easy to understand and answer it. Subject Update EditText Fields With Spinner Select *Any tutorial where spinner have the (set) same value, and updated as an edittext in a database, and* *by select from the items from the spinner; the edittext fields (7 edittext) is updated (loaded).* Regards Vinay kumar On Thu, Sep 27, 2012 at 12:44 AM, jabjab j-bor...@online.no wrote: Any tutorial where spinner have the (set) same value, and updated as an edittext in a database, and by select from the items from the spinner; the edittext fields (7 edittext) is updated (loaded). -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] import android.os.SystemProperties
On Wed, Sep 26, 2012 at 10:56 PM, Marcelo Corvezola mcorvez...@gmail.comwrote: This is my code..how do I import to allow access to this android.os.SystemProperties..THNX! http://lmgtfy.com/?q=android.os.SystemProperties - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Offline Floor Plan
On Wed, Sep 26, 2012 at 11:42 PM, ashish mishra mishra.ashishmishr...@gmail.com wrote: i want to implement an offline map of a building .I need to use tiled map with several zoom levels and be able to zoom in/out by pinching on the map, double tap, pan and so on. It contains lot of stand and location from on stand to another stand OK. Was there a question? - 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] import a jar file ?
How to import a jar file in libs folder ? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en