[android-developers] Re: write tag with opengl on android
I just draw a character at a time, so I can draw anything. I use char[] instead of String so I can preallocate and avoid garbage collection. You asked for code, so here it is. Mine's horrendously ugly, but I wrote it once and it never needed much revising, so I never really needed to clean it up. Anyway the methods look like this: /** * Draw a character array. * * @param chars char[] to draw * @param offset int offset into the array specifying where to start * @param count int number of characters to draw from the array * @param startX int x position to start drawing from * @param bottom int y position of bottom of first line of text * @param alignedLeft boolean true to draw text toward the right, false to draw toward the left * @return y position to use to draw a line below the drawn text */ public int drawChars(final char[] chars, final int offset, final int count, final Text font, final int startX, final int bottom, final boolean alignedLeft, final boolean nextLineDown, final int scaleFP, final byte alpha) { final int scaledFontHeightFP = FP.Mul(scaleFP, font.mHeightFP); final int scaledFontWidthFP = FP.Mul(scaleFP, font.mWidthFP); final int scaledFontHeightDifference = scaledFontHeightFP - font.mHeightFP; final int lineIncrement = scaledFontHeightFP; final int limit = offset + count; int drawingX = startX; int drawingBottom = bottom - scaledFontHeightDifference; final int charsStart = alignedLeft ? offset : limit - 1; final int charsEnd = alignedLeft ? limit : offset - 1; final int charsInc = alignedLeft ? 1 : -1; for(int i = charsStart; i != charsEnd; i += charsInc) { final char c = chars[i]; if ( '\n' == c ) { if ( LOG ) Log.i(TAG, Line return detected, bottom = + bottom); drawingBottom -= lineIncrement; if ( LOG ) Log.i(TAG, Line return detected, bottom = + bottom); drawingX = startX; continue; } final int charTexture = font.texture(c); if ( !alignedLeft ) { drawingX -= scaledFontWidthFP; } quad(drawingX, drawingBottom, scaledFontWidthFP, scaledFontHeightFP, font.mAtlas, charTexture, alpha); if ( alignedLeft ) { drawingX += scaledFontWidthFP; } } drawingBottom -= lineIncrement; if ( nextLineDown ) { return drawingBottom - lineIncrement; } return drawingBottom + lineIncrement + scaledFontHeightFP; } public int drawChars(final char[] chars, final int offset, final int count, final Text font, final int startX, final int bottom, final boolean alignedLeft, final boolean nextLineDown) { return drawChars(chars, offset, count, font, startX, bottom, alignedLeft, nextLineDown, FP.ONE, ColorBytes.COMPONENT_MAX); } public void number(final int number, final Text font, final int startX, final int bottom, final boolean alignedLeft) { number(number, font, startX, bottom, alignedLeft, FP.ONE); } public void number(final int number, final Text font, final int startX, final int bottom, final boolean alignedLeft, final int scaleFP) { int numberStart = CharUtil.prepend(number, charBuffer.length, 1, charBuffer); int count = charBuffer.length - numberStart; drawChars(charBuffer, numberStart, count, font, startX, bottom, alignedLeft, true, scaleFP, ColorBytes.COMPONENT_MAX); } public void quad(final int left, final int bottom, final Atlas atlas, final int texture) { quad(left, bottom, atlas.widthFP[texture], atlas.heightFP[texture], atlas, texture, ColorBytes.COMPONENT_MAX); } public void quad(final int left, final int bottom, final Atlas atlas, final int texture, boolean flipHorizontal) { final int textureWFP = atlas.widthFP[texture]; final int adjustedLeft = flipHorizontal ? left + textureWFP : left; final int wFP = flipHorizontal ? -textureWFP : textureWFP; quad(adjustedLeft, bottom, wFP, atlas.heightFP[texture], atlas, texture, ColorBytes.COMPONENT_MAX); } public void quad(final int leftFP, final int bottomFP, final
Re: [android-developers] Re: Confused by @Override
My app is based on the SoftKeyboard example. Problem is the way the KeyboardView class is designed in the Android API, as far as I can see it only allows for one key background for all keys. As of yet the only way around it I can see is to create a IME from the ground up and dump the Keyboard classes the Andorid API provides out of the box. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: adding custom view in main.xml
my code:- main.xml ?xml version=1.0 encoding=utf-8? com.MyPack.canvasexample.Myview android:id=@+id/view1 android:layout_width=fill_parent xmlns:android=http://schemas.android.com/apk/res/android; android:layout_height=fill_parent android:clickable=true / Myview.java package com.MyPack.canvasexample; import android.content.Context; import android.graphics.Canvas; import android.graphics.Paint; import android.util.AttributeSet; import android.view.View; public class Myview extends View { public Myview(Context context) { super(context); // TODO Auto-generated constructor stub this.invalidate(); } public Myview(Context context, AttributeSet attrs, int defStyle) { super(context, attrs, defStyle); // TODO Auto-generated constructor stub this.invalidate(); } public Myview(Context context, AttributeSet attrs) { super(context, attrs); // TODO Auto-generated constructor stub this.invalidate(); } @Override protected void onDraw(Canvas canvas) { // TODO Auto-generated method stub super.onDraw(canvas); canvas.drawLine(100, 100, 200, 200, new Paint()); } @Override protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { // TODO Auto-generated method stub super.onMeasure(widthMeasureSpec, heightMeasureSpec); } } canvasexample.java package com.MyPack.canvasexample; import android.app.Activity; import android.os.Bundle; public class canvasexample extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); View v= findViewById(R.id.view1); if(v==null) Log.w(isnull, null); else Log.w(isnull, not null); } } this is my code the log displays not null for isnull tag that is view to b not null... do we need to write anything in manifest file. in graphical view of main.xml i can see a line drawn on the canvas but when i execute my program it shows nothing on canvas... ya we knw that we can draw a line without creating an extra view but we r trying to do it by creating a custom view... On Mar 18, 9:55 pm, Aisthesis marsh...@marshallfarrier.com wrote: did you use the fully qualified name when you put it in main.xml? e.g.: com.google.myapp.MyView if that doesn't do it, it's hard to debug without any code--also there are ways to draw a line without creating an extra custom view On Mar 17, 8:05 am, Vishwesh R. vish...@gmail.com wrote: hi, im a beginner i have created a Myview wich extends View class. i have drawn a line on this view (that is Myview) in its onDraw() method. i included my view in its main.xml it shows no error but when i run this application, it loads the canvas but im unable to see the line wich i have drawn in Myview the coordinate of the line do lie on canvas but it not visible after the application is run.. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: adding custom view in main.xml
set paint style canvas.drawLine(100, 100, 200, 200, new Paint()); instead of new paint define pay style On Mar 22, 11:27 am, Vishwesh R. vish...@gmail.com wrote: my code:- main.xml ?xml version=1.0 encoding=utf-8? com.MyPack.canvasexample.Myview android:id=@+id/view1 android:layout_width=fill_parent xmlns:android=http://schemas.android.com/apk/res/android; android:layout_height=fill_parent android:clickable=true / Myview.java package com.MyPack.canvasexample; import android.content.Context; import android.graphics.Canvas; import android.graphics.Paint; import android.util.AttributeSet; import android.view.View; public class Myview extends View { public Myview(Context context) { super(context); // TODO Auto-generated constructor stub this.invalidate(); } public Myview(Context context, AttributeSet attrs, int defStyle) { super(context, attrs, defStyle); // TODO Auto-generated constructor stub this.invalidate(); } public Myview(Context context, AttributeSet attrs) { super(context, attrs); // TODO Auto-generated constructor stub this.invalidate(); } @Override protected void onDraw(Canvas canvas) { // TODO Auto-generated method stub super.onDraw(canvas); canvas.drawLine(100, 100, 200, 200, new Paint()); } @Override protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { // TODO Auto-generated method stub super.onMeasure(widthMeasureSpec, heightMeasureSpec); } } canvasexample.java package com.MyPack.canvasexample; import android.app.Activity; import android.os.Bundle; public class canvasexample extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); View v= findViewById(R.id.view1); if(v==null) Log.w(isnull, null); else Log.w(isnull, not null); } } this is my code the log displays not null for isnull tag that is view to b not null... do we need to write anything in manifest file. in graphical view of main.xml i can see a line drawn on the canvas but when i execute my program it shows nothing on canvas... ya we knw that we can draw a line without creating an extra view but we r trying to do it by creating a custom view... On Mar 18, 9:55 pm, Aisthesis marsh...@marshallfarrier.com wrote: did you use the fully qualified name when you put it in main.xml? e.g.: com.google.myapp.MyView if that doesn't do it, it's hard to debug without any code--also there are ways to draw a line without creating an extra custom view On Mar 17, 8:05 am, Vishwesh R. vish...@gmail.com wrote: hi, im a beginner i have created a Myview wich extends View class. i have drawn a line on this view (that is Myview) in its onDraw() method. i included my view in its main.xml it shows no error but when i run this application, it loads the canvas but im unable to see the line wich i have drawn in Myview the coordinate of the line do lie on canvas but it not visible after the application is run.. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 reload previous activity on back button click
@Override public boolean onKeyDown(int keyCode, KeyEvent event) { if (keyCode == KeyEvent.KEYCODE_BACK) { //Intent intent = new Intent(this,name of the class where you want to go to); startActivity(intent); return true; } return super.onKeyDown(keyCode, event); } this code captures the event on back button click On Mar 22, 8:49 am, Ranveer ranveer.s...@gmail.com wrote: Dear all, I want to reload the previous activity (history) on back button click. Right now When I am pressing back (Phone) it going to previous activity but showing from history. So every time I click back I want to reload the history page. regards -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Can this app be developed?
yes it could be done On Mar 21, 6:20 am, shubhandroid aadee...@gmail.com wrote: Can an app with the following features be made: -Phone1 transfers video feed from the major camera to the screen of phone2 via bluetooth -when user clicks on a button on the screen of phone2, it should press a number of the numeric pad during its call to phone1. With AI or normal coding -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Activity lifecycle... still a mystery to me
yes all things you specified could be done write overwrite back button code for 1 2 not clear 3 ok write overwrite onstop ,onpause,on resume On Mar 22, 7:59 am, DulcetTone dulcett...@gmail.com wrote: My app responds to speech commands. I want the behavior to be that 1. if back is hit on my initial activity, it exits. 2. My app has a few sub-activities it may launch on user speech- or GUI input 3. if home is hit on ANY of my activities, I want all of them to finish. That's basically it. Why I want this is uninteresting... few users of the app would find the desired behavior anything other than the one they'd want. It's possible that I could get some of this to happen by use of the activity flags/modes (single-top, etc), but their documentation also reads like Sanskrit after 10 reads through. tone -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 capture key events from View subclass
try ontouch method get x and y coordinate of the area clicked and do as you want on the clicked event On Mar 21, 4:39 pm, Rich E reakina...@gmail.com wrote: Hi, I'm trying to figure out how to capture keyboard input from a View, without subclassing EditText or something similar (the reason is that I have a complex bit of drawing to do, in which the text does not at all go in a horizontal direction, nor does it ever start at a consistent location.. so I figured that I would try to use a more direct route). I am able to show the keyboard from my View by first calling setFocusableInTouchMode(true) in my onCreateMethod, then calling: InputMethodManager imm = (InputMethodManager)getContext().getSystemService(Context. INPUT_METHOD_SERVICE); imm.showSoftInput(this, InputMethodManager.SHOW_FORCED); I call this from onTouchEvent(), in order to get the location of the touch within the view. This is where I get stuck. When I implement onKeyDown or onKeyUp in the View, I only get a callback when the done or back button is hit on the keyboard. I need to know which key of the soft keyboard is pressed, so that I can draw that character in my View. I also tried to setOnKeyListener for a key listener, but it also only gets a callback when the done or back buttons are pressed on the soft keyboard. Any suggestions on how to proceed are gratefully appreciated. Best, Rich -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 WebView with CSS modification of hr tag
just open it in web view webview.setLayoutParams(new LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT)); webview.setBackgroundColor(0); webview.setInitialScale(110); form.addView(webview); webview.getSettings().setJavaScriptEnabled(true); webview.getSettings().setJavaScriptCanOpenWindowsAutomatically(false); if (url.contains(www.twitter.com)) url=url.replace(www.twitter.com, twitter.com); webview.loadUrl(url); On Mar 22, 1:33 am, Dale dale.ham...@gmail.com wrote: I am working on an app which needs to display some dynamically queried HTML content, including CSS. WebView seems to be the best implementation for this type of work. I ran into an error when testing it out, and tracked it down to the following css tag: hr{width:100%!important} Android WebView seems to be incapable of displaying any html that includes this line. Some research shows that the hr width=100%/ attribute was depricated (link:http://www.w3schools.com/tags/att_hr_width.asp), but it works on all browsers. Below is some html, including this line. It will render fine in any browser. htmlheadstyle type=\text/css\ hr{width:100%!important} /style/headbody Some text /body/html And, in Android: String exampleCSS = htmlheadstyle type=\text/css\ + hr{width:100%!important} + /style/headbody + Some text + /body/html; WebView webView = (WebView) findViewById(R.id.web_html_about); webView.loadData(exampleCSS, text/html, utf-8); The result is a Web page not available error in the webview. Is this a known issue due to deprecation? Is it a bug with WebView? Is there any known work around for such issues? Cheers, Dale. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Cloud Computing
On 21 March 2011 19:08, TreKing treking...@gmail.com wrote: On Mon, Mar 21, 2011 at 1:03 PM, rishabh agrawal android.rish...@gmail.com wrote: I am a Begginer in android.But i want develope apps for Cloud Computing Oh for goodness sake. And who says marketing buzzwords do not work? Regards, Marcin Orlowski Tray Agenda http://bit.ly/trayagenda - keep you daily schedule handy... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 WebView with CSS modification of hr tag
It seems to the limitations of WebView.loadData? I also ran into some weird problems with loadData. Such as cannot display tables. See http://groups.google.com/group/android-developers/browse_thread/thread/13f9b8850ac048ac/7347368a5adbe905. But when using WebView.loadUrl, the same html content can display correctly. On Mar 22, 4:33 am, Dale dale.ham...@gmail.com wrote: I am working on an app which needs to display some dynamically queried HTML content, including CSS. WebView seems to be the best implementation for this type of work. I ran into an error when testing it out, and tracked it down to the following css tag: hr{width:100%!important} Android WebView seems to be incapable of displaying any html that includes this line. Some research shows that the hr width=100%/ attribute was depricated (link:http://www.w3schools.com/tags/att_hr_width.asp), but it works on all browsers. Below is some html, including this line. It will render fine in any browser. htmlheadstyle type=\text/css\ hr{width:100%!important} /style/headbody Some text /body/html And, in Android: String exampleCSS = htmlheadstyle type=\text/css\ + hr{width:100%!important} + /style/headbody + Some text + /body/html; WebView webView = (WebView) findViewById(R.id.web_html_about); webView.loadData(exampleCSS, text/html, utf-8); The result is a Web page not available error in the webview. Is this a known issue due to deprecation? Is it a bug with WebView? Is there any known work around for such issues? Cheers, Dale. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Idea Conceptualization
On Tue, Mar 22, 2011 at 2:29 AM, Indicator Veritatis mej1...@yahoo.comwrote: History of what? The URL of each HTTP GET to the given account? Your idea sounds too inchoate for implementation. I am sorry that you feel this way. I agree my language isn't very clear. I am planning to make an android based application which logs (in the database) the last 10 IP addresses used by the given account holder of gmail to access gmail. Are you aware your device can be NATed so it's not just the point of getting device's IP? Regards, Marcin Orlowski Tray Agenda http://bit.ly/trayagenda - keep you daily schedule handy... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Cloud Computing
Oh please, leave the guy alone. He probably got his CS degree from the same school where the Indian pilots get their pilot's licenses. On Mar 22, 3:39 pm, Marcin Orlowski webnet.andr...@gmail.com wrote: On 21 March 2011 19:08, TreKing treking...@gmail.com wrote: On Mon, Mar 21, 2011 at 1:03 PM, rishabh agrawal android.rish...@gmail.com wrote: I am a Begginer in android.But i want develope apps for Cloud Computing Oh for goodness sake. And who says marketing buzzwords do not work? Regards, Marcin Orlowski Tray Agenda http://bit.ly/trayagenda - keep you daily schedule handy... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Reading files, cut off at 10kb on samsungs
Does anyone know why some samsung phones stops reading files at around 10kb? And what a solution could be? I am using this to open files right now which works on every other phone: FileInputStream fileIS = new FileInputStream(file); BufferedReader in = new BufferedReader(new InputStreamReader(fileIS)); do { st = in.readLine(); if (st != null) { mEditText.append(st); mEditText.append(String.valueOf(lf)); } } while (st != null); in.close(); Any suggestions? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Installation error: INSTALL_FAILED_INSUFFICIENT_STORAGE
WHEN I RUN MY APPS IN MY EMULATOR THEN THESE ERROR IS OCCURES.HOW TO REMOVE THESE ERROR Installation error: INSTALL_FAILED_INSUFFICIENT_STORAGE [2011-03-22 13:23:30 - SAI2011] Please check logcat output for more details. [2011-03-22 13:23:31 - SAI2011] Launch canceled! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Hard Key Board problem
When i set Screen size of the emulator then the Hard Key Board Remove.I have no real android mobile where i test my apps.so how to call Back,Home button when the Hard Key Board is Removed. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] CamcorderProfile
Hi, My camcorder resolution is set to 1280x720 in my Htc Desire with 2.2. If I get CamcorderProfile.get(CamcorderProfile.QUALITY_HIGH) then it says that resolution is 720*480. QUALITY_HIGH refers to the highest quality available Do you know why? How can I get maximum camcorder resolution? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: [bionic-c-lib] SIGSEGV on free()
I have tested it on Galaxy S and it worked well on Galaxy S (2.2). I have not tried it on another Nexus One in order to know if my Nexus One is faulty. and it seems like that AssetFileDescriptor is not the source of the problem, because the problem is still ocurring while I didn't access asset files directly but accessing copied ones. On Fri, Feb 25, 2011 at 1:10 PM, Dewr wind8...@gmail.com wrote: it often causes SIGSEGV on third for-loop. but just a moment ago SIGSEGV on fourth loop. for ( i = 0 ; i 4 ; i++ ) { sprintf (temp, %s%s, header[i], index[fileno[i]]); *strBuf = getTextByIndex(filebuf, temp);* *//malloc() in this function.* if (strBuf == NULL) buf_output[i] = NULL; else { buf_output[i] = (*gEnv)-NewStringUTF(gEnv, strBuf); *free(strBuf);* } } On Thu, Feb 24, 2011 at 1:15 PM, Dewr wind8...@gmail.com wrote: Hello, I am porting a C program. The problem I've met is SIGSEGV on free(). I can't see what's the root cause of it. it doesn't occur sometimes, but very often. I am testing it on NexusOne 2.2.1 I am using Android NDK r5b and Android SDK and Eclipse ADT and Cygwin. I am using *android.content.res.AssetFileDescriptor* to read assets in C modules. Here is the messages in ndk-gdb when the problem appears. (gdb) c Continuing. Breakpoint 2, Java_kr_co_pkbio_Unse_DangSaJuShinSal (env=0xaa50, obj=0x4495b970) at C:/DEWR/Product/Software-Engineering/Eclipse-Workspace/Unse/jni/unse.c:1 83 *1083free(strBuf);* (gdb) next *Program received signal SIGSEGV, Segmentation fault.* *0xafd11c80 in __libc_android_abort ()* from C:/DEWR/Product/Software-Engineering/Eclipse-Workspace/Unse/obj/local/a meabi/libc.so (gdb) bt #0 0xafd11c80 in __libc_android_abort () from C:/DEWR/Product/Software-Engineering/Eclipse-Workspace/Unse/obj/local/a meabi/libc.so #1 0xbec233bc in ?? () Cannot access memory at address 0xc (gdb) quit Here is the Java source code... public static FileInfoForNativeCode openAssets(String fname) { if (Constants.VERBOSE_LOGS) Log.d(TAG, openAssets(+fname+)); *AssetFileDescriptor myDescriptor = null;* try { myDescriptor = context.getAssets().openFd(fname+.jet); } catch (IOException e) { e.printStackTrace(); return null; } FileDescriptor fd = myDescriptor.getFileDescriptor(); long off = myDescriptor.getStartOffset(); long len = myDescriptor.getLength(); if (Constants.VERBOSE_LOGS) Log.d(TAG, fd:+fd+ off:+off+ len:+len); return new FileInfoForNativeCode(off, len, fd); } Here is the C source code... char* getTextByIndex (TextFileBufType *filebuf, char *index) { #define _INDEX_PREFIX_'@' inti, j, lenBuf; char*result; charindexPrefix = _INDEX_PREFIX_; intlenIndexPrefix = utf8len( indexPrefix ); intlenIndex = strlen(index); for ( i = 0 ; i filebuf-total ; i++ ) { *//__android_log_print(ANDROID_LOG_DEBUG,TAG, JNI : %d - %s, i, filebuf-text[i]);* if ( memcmp (filebuf-text[i], indexPrefix, lenIndexPrefix) != 0 ) continue; if ( memcmp (filebuf-text[i]+lenIndexPrefix, index, lenIndex) != 0 ) continue; lenBuf = 0; lenBuf += strlen(filebuf-text[i]); lenBuf++; for ( j = i+1 ; j filebuf-total ; j++ ) { if ( memcmp (filebuf-text[j], indexPrefix, lenIndexPrefix) == 0 ) break; lenBuf += strlen(filebuf-text[j]); lenBuf++; } *result = malloc(lenBuf);* result[0] = 0; strcat(result, filebuf-text[i]); strcat(result, \n); for ( j = i+1 ; j filebuf-total ; j++ ) { if ( memcmp (filebuf-text[j], indexPrefix, lenIndexPrefix) == 0 ) break; strcat(result, filebuf-text[j]); strcat(result, \n); } *//__android_log_print(ANDROID_LOG_DEBUG,TAG, JNI : %d!!! - %s, i, filebuf-text[i]);* *return result;* } return NULL; #undef _INDEX_PREFIX_ } inline void readyFileInFile (FileInFile *fif, char *path) { jstring jstrFpath; jobject finfo; jobject descriptor; jstrFpath = (*gEnv)-NewStringUTF(gEnv, path); finfo = (*gEnv)-CallStaticObjectMethod(gEnv, clsUtility, midOpenAssets, jstrFpath); fif-offset = (*gEnv)-GetLongField(gEnv, finfo, fidOffset); fif-length = (*gEnv)-GetLongField(gEnv, finfo, fidLength); descriptor = (*gEnv)-GetObjectField(gEnv, finfo, fidDescriptor); fif-fd = (*gEnv)-GetIntField(gEnv, descriptor, fidDescriptorFileDescriptor); } jobjectArray Java_kr_co_pkbio_Unse_DangSaJuShinSal (JNIEnv *env, jobject obj) { *//char *fname =
Re: [android-developers] CamcorderProfile
On 22 March 2011 09:17, b_t bartata...@gmail.com wrote: Hi, My camcorder resolution is set to 1280x720 in my Htc Desire with 2.2. If I get CamcorderProfile.get(CamcorderProfile.QUALITY_HIGH) then it says that resolution is 720*480. QUALITY_HIGH refers to the highest quality available Do you know why? How can I get maximum camcorder resolution? Quality is not synonim for resolution. Isn't the framerate higher on Desire in 720x480 than in 1280x720? If so, then framerate is aparently higher quality factor, and weights more than frame resolution Regards, Marcin Orlowski Tray Agenda http://bit.ly/trayagenda - keep you daily schedule handy... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: bitmap size exceeds VM budget on BitmapFactory.decodeResource
bitmap 1 - 403KB 1600x800 bitmap 2 - 73KB 2600x800 bitmap 3 - 73KB 2600x800 Which means that uncompressed they have around 6 MB each, totaling 18MB :S This isn't a memory leak I'm getting the exception in the first line of code when i call the bitmapHolder to load resources. Your process presumably already is more than 10MB then. Are you loading them in scaled-down or scaling them once loaded ? You should be using e.g. decodeFile() with the option inSampleSize set. Pent -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] What to do when the Hard keyboard is out?
Hello, I have a soft keyboard (an alternative keyboard) that functions well, except when the hard keyboard is out. When that happens, the text field annoyingly covers the entire screen. (and the soft keyboard does not show up, which is ok). I can detect the keyboard being out in my code, but I don't know what to do to prevent the expansion of the text field. So, what do I do when I detect this (onConfigurationChanged(Configuration newConfig) ) Thanks. Saied -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Is there any Reminder Service in Android?
this great! Thanks! On Mon, Mar 21, 2011 at 8:02 PM, roberto roberto.fo...@gmail.com wrote: If you need to run a recurring task (once, twice, 3 times a day or even every 5 minutes), consider using the buzzbox sdk that is built on top of the AlarmManager. More info herehttp://hub.buzzbox.com/android-sdk/ On Mar 21, 5:10 am, Nesim TUNÇ nesimt...@gmail.com wrote: Hi Great Developers, I have a job that needs to check if the time's up. Now, I do that with a normal Android Service. I wonder is there anything to handle such of those things? I don't want to that via while loop because of cpu and battery spending. Thanks in advance. -- Nesim TUNÇ Senior Software Developer of Distributed Applications -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Nesim TUNÇ Senior Software Developer of Distributed Applications -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: How to get my device's source code?
No, I mean compiled code. I need reverse the compiled code to source code. I seek something like that. On Wed, Feb 16, 2011 at 8:25 PM, Tomislav Vujec tvu...@gmail.com wrote: You can get the sources for various Samsung Galaxy phones at http://opensource.samsung.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 -- Nesim TUNÇ Senior Software Developer of Distributed Applications -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 exactly is the obtainBuffer in an AudioTrack?
I wonder, what exactly is the obtainBuffer in an AudioTrack? I ask this because there is no documentation about it what-so-ever. I have the famous obtainBuffer timed out (is the CPU pegged?) warning whenever I try to play a sound in my project, which causes quite a delay. To try to solve the warning, and minimize the delay, I tried buffering, placing the write in a separate thread, but this still didn't solve it. Tinkering with the buffer size in the AudioTrack didn't work either. It might also be helpful to say that I read a file from the sd-card in chunks the size of AudioTrack.getMinBufferSize(...). The total file size varies, as it is a recording which I record with an AudioRecord, but this works and I suspect it hasn't got anything to do with it, as it never touches resources that the AudioTrack might use (at least not in my code). I've looked at the C++ code which is the AudioTrack's native code, but I didn't get any wiser there. So I ask you, what exactly is the obtainBuffer, and how can I prevent (or at least minimize) the delay when trying to play an audio file? I've seen enough topics on this issue, but never a decisive answer. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: CamcorderProfile
Oh, I understand, thank you On Mar 22, 9:26 am, Marcin Orlowski webnet.andr...@gmail.com wrote: On 22 March 2011 09:17, b_t bartata...@gmail.com wrote: Hi, My camcorder resolution is set to 1280x720 in my Htc Desire with 2.2. If I get CamcorderProfile.get(CamcorderProfile.QUALITY_HIGH) then it says that resolution is 720*480. QUALITY_HIGH refers to the highest quality available Do you know why? How can I get maximum camcorder resolution? Quality is not synonim for resolution. Isn't the framerate higher on Desire in 720x480 than in 1280x720? If so, then framerate is aparently higher quality factor, and weights more than frame resolution Regards, Marcin Orlowski Tray Agenda http://bit.ly/trayagenda - keep you daily schedule handy... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] NFC Question
Hallo Zhihong, [...] I write the tag by Ndef class, but the tag can't be read by any readers application, it cause them crash. [...] NdefRecord record = new NdefRecord( NdefRecord.TNF_WELL_KNOWN, NdefRecord.RTD_TEXT, new byte[0], this is a write tag.getBytes() ); Right, looking at the above statement you try to write an NDEF Text record. Unfortunately, your payload data (this is a write tag.getBytes()) is simply wrong. You should have a look at the NFC Forum's NDEF Text Record Type Definition specification[]. A text record's payload looks like this: +-+---++ | Header Byte | Language Code | Text | +-+---++ So the payload starts with a header byte that defines the text encoding and the length of the language code. It is followed by a language code and the actual text field. [] http://www.nfc-forum.org/specs/spec_list/#text_rtd br, Michael -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Why can't draw a picture on canvas
Following is my test code public class testCanvas extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); Canvas canvas = new Canvas(); Drawable draw = getResources().getDrawable(R.drawable.bg); Bitmap bitmap = Bitmap.createBitmap(draw.getIntrinsicWidth(), draw.getIntrinsicWidth(), Bitmap.Config.RGB_565); Paint paint = new Paint(); paint.setColor(30); canvas.setBitmap(bitmap); canvas.drawBitmap(bitmap, bitmap.getHeight(), bitmap.getWidth(), paint); } -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 set static ip for wifi configuration
Hi I have android device and i want to add one wifi configuration with static ip. I have done this with the following code. WifiManager wifi = (WifiManager) getSystemService(Context.WIFI_SERVICE); WifiConfiguration wc = new WifiConfiguration(); wc.SSID = \MyWifi\; wc.hiddenSSID = true; wc.status = WifiConfiguration.Status.DISABLED; wc.priority = 40; wc.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.NONE); wc.allowedProtocols.set(WifiConfiguration.Protocol.RSN); wc.allowedProtocols.set(WifiConfiguration.Protocol.WPA); wc.allowedAuthAlgorithms.set(WifiConfiguration.AuthAlgorithm.OPEN); wc.allowedAuthAlgorithms.set(WifiConfiguration.AuthAlgorithm.SHARED); wc.allowedPairwiseCiphers.set(WifiConfiguration.PairwiseCipher.CCMP); wc.allowedPairwiseCiphers.set(WifiConfiguration.PairwiseCipher.TKIP); wc.allowedGroupCiphers.set(WifiConfiguration.GroupCipher.WEP40); wc.allowedGroupCiphers.set(WifiConfiguration.GroupCipher.WEP104); wifi.addNetwork(wc); But i don't know where to assign an ip address. Thanks in advance saikiran -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] write tag with opengl on android
Following is my test code, but it can't drawable. public class testCanvas extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); Canvas canvas = new Canvas(); Drawable draw = getResources().getDrawable(R.drawable.bg); Bitmap bitmap = Bitmap.createBitmap(draw.getIntrinsicWidth(), draw.getIntrinsicWidth(), Bitmap.Config.RGB_565); Paint paint = new Paint(); paint.setColor(30); canvas.setBitmap(bitmap); canvas.drawBitmap(bitmap, bitmap.getHeight(), bitmap.getWidth(), paint); } 2011/3/21 Marcin Orlowski webnet.andr...@gmail.com: On 21 March 2011 09:48, a a harvey.a...@gmail.com wrote: How can i write a tag like string Dog on the picture. Use Canvas to paint on your bitmap. http://developer.android.com/reference/android/graphics/Canvas.html -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How to get my device's source code?
On Mar 22, 4:44 pm, Nesim TUNÇ nesimt...@gmail.com wrote: No, I mean compiled code. I need reverse the compiled code to source code. I seek something like that. If the source code is NOT available at the link provided, it is because it's propiatary and decompiling it is against the license in most instances. You should not expect people to help you with doing that. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: write tag with opengl on android
sorry, it seams better and light to use canvas to draw the text on the bitmap. anyway, thanks for your help. 2011/3/22 Lance Nanek lna...@gmail.com: I just draw a character at a time, so I can draw anything. I use char[] instead of String so I can preallocate and avoid garbage collection. You asked for code, so here it is. Mine's horrendously ugly, but I wrote it once and it never needed much revising, so I never really needed to clean it up. Anyway the methods look like this: /** * Draw a character array. * * @param chars char[] to draw * @param offset int offset into the array specifying where to start * @param count int number of characters to draw from the array * @param startX int x position to start drawing from * @param bottom int y position of bottom of first line of text * @param alignedLeft boolean true to draw text toward the right, false to draw toward the left * @return y position to use to draw a line below the drawn text */ public int drawChars(final char[] chars, final int offset, final int count, final Text font, final int startX, final int bottom, final boolean alignedLeft, final boolean nextLineDown, final int scaleFP, final byte alpha) { final int scaledFontHeightFP = FP.Mul(scaleFP, font.mHeightFP); final int scaledFontWidthFP = FP.Mul(scaleFP, font.mWidthFP); final int scaledFontHeightDifference = scaledFontHeightFP - font.mHeightFP; final int lineIncrement = scaledFontHeightFP; final int limit = offset + count; int drawingX = startX; int drawingBottom = bottom - scaledFontHeightDifference; final int charsStart = alignedLeft ? offset : limit - 1; final int charsEnd = alignedLeft ? limit : offset - 1; final int charsInc = alignedLeft ? 1 : -1; for(int i = charsStart; i != charsEnd; i += charsInc) { final char c = chars[i]; if ( '\n' == c ) { if ( LOG ) Log.i(TAG, Line return detected, bottom = + bottom); drawingBottom -= lineIncrement; if ( LOG ) Log.i(TAG, Line return detected, bottom = + bottom); drawingX = startX; continue; } final int charTexture = font.texture(c); if ( !alignedLeft ) { drawingX -= scaledFontWidthFP; } quad(drawingX, drawingBottom, scaledFontWidthFP, scaledFontHeightFP, font.mAtlas, charTexture, alpha); if ( alignedLeft ) { drawingX += scaledFontWidthFP; } } drawingBottom -= lineIncrement; if ( nextLineDown ) { return drawingBottom - lineIncrement; } return drawingBottom + lineIncrement + scaledFontHeightFP; } public int drawChars(final char[] chars, final int offset, final int count, final Text font, final int startX, final int bottom, final boolean alignedLeft, final boolean nextLineDown) { return drawChars(chars, offset, count, font, startX, bottom, alignedLeft, nextLineDown, FP.ONE, ColorBytes.COMPONENT_MAX); } public void number(final int number, final Text font, final int startX, final int bottom, final boolean alignedLeft) { number(number, font, startX, bottom, alignedLeft, FP.ONE); } public void number(final int number, final Text font, final int startX, final int bottom, final boolean alignedLeft, final int scaleFP) { int numberStart = CharUtil.prepend(number, charBuffer.length, 1, charBuffer); int count = charBuffer.length - numberStart; drawChars(charBuffer, numberStart, count, font, startX, bottom, alignedLeft, true, scaleFP, ColorBytes.COMPONENT_MAX); } public void quad(final int left, final int bottom, final Atlas atlas, final int texture) { quad(left, bottom, atlas.widthFP[texture], atlas.heightFP[texture], atlas, texture, ColorBytes.COMPONENT_MAX); } public void quad(final int left, final int bottom, final Atlas atlas, final int texture, boolean flipHorizontal) { final int textureWFP = atlas.widthFP[texture]; final int adjustedLeft = flipHorizontal ? left + textureWFP : left; final int wFP = flipHorizontal ? -textureWFP : textureWFP;
[android-developers] How to access files in sdcard from the server running in android
Hi, I have developed an application in which the files from the emulator should be accessible in the web browser in my desktop. I am using i- jetty server which is running in the emulator. I am able to access the music files which are stored in the project's webapps/app_name/ folder using HTML5 audio tag by giving the filename as src. But I want to access the music files stored in sdcard from i-jetty. When i gave / sdcard/song.mp3 as src path the song is not getting accessed. Please help me on this. Thanks in advance. Regards, Sreehari. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Bud setAdapter of AbsListView
E/AndroidRuntime(14762): FATAL EXCEPTION: main E/AndroidRuntime(14762): java.lang.NoSuchMethodError: android.widget.AbsListView.setAdapter E/AndroidRuntime(14762):at com.reader.android.LocalStore.bindAdapters(LocalStore.java:534) E/AndroidRuntime(14762):at com.reader.android.LocalStore.ReloadCatalogBind(LocalStore.java:438) E/AndroidRuntime(14762):at com.reader.android.LocalStore.access$32(LocalStore.java:437) E/AndroidRuntime(14762):at com.reader.android.LocalStore$8.onPostExecute(LocalStore.java:420) E/AndroidRuntime(14762):at com.reader.android.LocalStore$8.onPostExecute(LocalStore.java:1) E/AndroidRuntime(14762):at android.os.AsyncTask.finish(AsyncTask.java:417) E/AndroidRuntime(14762):at android.os.AsyncTask.access$300(AsyncTask.java:127) E/AndroidRuntime(14762):at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:429) E/AndroidRuntime(14762):at android.os.Handler.dispatchMessage(Handler.java:99) E/AndroidRuntime(14762):at android.os.Looper.loop(Looper.java:123) E/AndroidRuntime(14762):at android.app.ActivityThread.main(ActivityThread.java:4627) E/AndroidRuntime(14762):at java.lang.reflect.Method.invokeNative(Native Method) E/AndroidRuntime(14762):at java.lang.reflect.Method.invoke(Method.java:521) E/AndroidRuntime(14762):at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:858) E/AndroidRuntime(14762):at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616) E/AndroidRuntime(14762):at dalvik.system.NativeStart.main(Native Method) W/ActivityManager( 1997): Force finishing activity com.reader.android/.Main On Fri, Mar 18, 2011 at 3:27 PM, TreKing treking...@gmail.com wrote: On Fri, Mar 18, 2011 at 3:56 AM, Sergey Okhotny okho...@gmail.com wrote: AbsListView mNewspapersView = (AbsListView)findViewById(R.id.localstore_newspapers); this fails mNewspapersView.setAdapter(new NewspapersListAdapter()); but if I do ((ListView)mNewspapersView).setAdapter(new NewspapersListAdapter()); this works ok And the callstack from the crash? - 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 -- Sergey A. Okhotny Skype:okhotny / G-Talk:okho...@gmail.com Phone:+380 (68) 322-0338 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 set static ip for wifi configuration
See this: http://developer.android.com/reference/android/provider/Settings.System.html#WIFI_STATIC_DNS1 Go ahead and use them before they are moved under Settings.Secure :) -- Kostya 22.03.2011 12:17, saikiran n ?: Hi I have android device and i want to add one wifi configuration with static ip. I have done this with the following code. WifiManager wifi = (WifiManager) getSystemService(Context.WIFI_SERVICE); WifiConfiguration wc = new WifiConfiguration(); wc.SSID = \MyWifi\; wc.hiddenSSID = true; wc.status = WifiConfiguration.Status.DISABLED; wc.priority = 40; wc.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.NONE); wc.allowedProtocols.set(WifiConfiguration.Protocol.RSN); wc.allowedProtocols.set(WifiConfiguration.Protocol.WPA); wc.allowedAuthAlgorithms.set(WifiConfiguration.AuthAlgorithm.OPEN); wc.allowedAuthAlgorithms.set(WifiConfiguration.AuthAlgorithm.SHARED); wc.allowedPairwiseCiphers.set(WifiConfiguration.PairwiseCipher.CCMP); wc.allowedPairwiseCiphers.set(WifiConfiguration.PairwiseCipher.TKIP); wc.allowedGroupCiphers.set(WifiConfiguration.GroupCipher.WEP40); wc.allowedGroupCiphers.set(WifiConfiguration.GroupCipher.WEP104); wifi.addNetwork(wc); But i don't know where to assign an ip address. Thanks in advance saikiran -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Kostya Vasilyev -- 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] Wrong widthPixels?
DisplayMetrics dm = new DisplayMetrics(); dm=getResources().getDisplayMetrics(); int width=dm.widthPixels int height=dm.heightPixels W shoud be 480 and H shoud be 854 But for me W is 320 and H is 536.What am I doing wrong??? -- Cary -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 declare Button as global object????
Declare a method to add button in a function and add setonclicklistner method on the button in the onclicklstner method do whatever you want to do with the button On Mar 15, 5:04 pm, DanH danhi...@ieee.org wrote: PS: You can probably skip chapters 13 and 15. On Mar 15, 4:53 am, Ponraj \Android Developer\sanraj...@gmail.com wrote: Hi All. I am creating buttons dynamically. I am not able to access those buttons outside the methods. I am not familiar with java programming. I am new to android. Give solution for my problem. Should I declare the Buttons globallyIf yes means, How should I? help me out -- with thanks and regards, P.Ponraj -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: bitmap size exceeds VM budget on BitmapFactory.decodeResource
As someone who's done a bunch of similar work, I'm afraid the short answer is: you can't do that. The slightly longer answer: As your math shows, simply loading the WVGA-scale bitmaps blows out the 16MB limit. Now, my understanding is that a Galaxy S should have 24MB of heap, but still - you're pushing it. Between the unavoidable couple of MB that all Android apps use, whatever else your code needs, and (most crucially for you) a bit of room to assemble the final wallpaper image, you're still going well over the limit. A few things you might try to mitigate the situation: - Rearrange your code so that you only load one source image at a time, do what you need to with it, then clear it from RAM with a recycle() call. - Avoid the ARGB_ config. If you need transparency, use ARGB_, otherwise go with RGB_565. - As Pent suggested, downsample your images. But that essentially just decreases the resolution, with a corresponding increase in pixellation. String -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Wrong widthPixels?
Make sure that in the manifest, you either have: uses-sdk android:minSdkVersion=4 / or supports-screens android:smallScreens=true android:normalScreens=true android:largeScreens=true android:anyDensity=true / -- Kostya 22.03.2011 13:01, CaryWang пишет: DisplayMetrics dm = new DisplayMetrics(); dm=getResources().getDisplayMetrics(); int width=dm.widthPixels int height=dm.heightPixels W shoud be 480 and H shoud be 854 But for me W is 320 and H is 536.What am I doing wrong??? -- Cary -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Kostya Vasilyev -- http://kmansoft.wordpress.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: write tag with opengl on android
Depends on your use case. In my case I was rendering UI and scores in full screen OpenGL games. The scores changed frequently, so rendering them to a bitmap and uploading that as a texture would be terrible for the frame rate compared to never having to change the textures. Similarly, overlaying standard Android UI stuff over the GLSurfaceView hurt the frame rate as well; weird layer locking messages in the logs. On Mar 22, 5:22 am, a a harvey.a...@gmail.com wrote: sorry, it seams better and light to use canvas to draw the text on the bitmap. anyway, thanks for your help. 2011/3/22 Lance Nanek lna...@gmail.com: I just draw a character at a time, so I can draw anything. I use char[] instead of String so I can preallocate and avoid garbage collection. You asked for code, so here it is. Mine's horrendously ugly, but I wrote it once and it never needed much revising, so I never really needed to clean it up. Anyway the methods look like this: /** * Draw a character array. * * @param chars char[] to draw * @param offset int offset into the array specifying where to start * @param count int number of characters to draw from the array * @param startX int x position to start drawing from * @param bottom int y position of bottom of first line of text * @param alignedLeft boolean true to draw text toward the right, false to draw toward the left * @return y position to use to draw a line below the drawn text */ public int drawChars(final char[] chars, final int offset, final int count, final Text font, final int startX, final int bottom, final boolean alignedLeft, final boolean nextLineDown, final int scaleFP, final byte alpha) { final int scaledFontHeightFP = FP.Mul(scaleFP, font.mHeightFP); final int scaledFontWidthFP = FP.Mul(scaleFP, font.mWidthFP); final int scaledFontHeightDifference = scaledFontHeightFP - font.mHeightFP; final int lineIncrement = scaledFontHeightFP; final int limit = offset + count; int drawingX = startX; int drawingBottom = bottom - scaledFontHeightDifference; final int charsStart = alignedLeft ? offset : limit - 1; final int charsEnd = alignedLeft ? limit : offset - 1; final int charsInc = alignedLeft ? 1 : -1; for(int i = charsStart; i != charsEnd; i += charsInc) { final char c = chars[i]; if ( '\n' == c ) { if ( LOG ) Log.i(TAG, Line return detected, bottom = + bottom); drawingBottom -= lineIncrement; if ( LOG ) Log.i(TAG, Line return detected, bottom = + bottom); drawingX = startX; continue; } final int charTexture = font.texture(c); if ( !alignedLeft ) { drawingX -= scaledFontWidthFP; } quad(drawingX, drawingBottom, scaledFontWidthFP, scaledFontHeightFP, font.mAtlas, charTexture, alpha); if ( alignedLeft ) { drawingX += scaledFontWidthFP; } } drawingBottom -= lineIncrement; if ( nextLineDown ) { return drawingBottom - lineIncrement; } return drawingBottom + lineIncrement + scaledFontHeightFP; } public int drawChars(final char[] chars, final int offset, final int count, final Text font, final int startX, final int bottom, final boolean alignedLeft, final boolean nextLineDown) { return drawChars(chars, offset, count, font, startX, bottom, alignedLeft, nextLineDown, FP.ONE, ColorBytes.COMPONENT_MAX); } public void number(final int number, final Text font, final int startX, final int bottom, final boolean alignedLeft) { number(number, font, startX, bottom, alignedLeft, FP.ONE); } public void number(final int number, final Text font, final int startX, final int bottom, final boolean alignedLeft, final int scaleFP) { int numberStart = CharUtil.prepend(number, charBuffer.length, 1, charBuffer); int count = charBuffer.length - numberStart; drawChars(charBuffer, numberStart, count, font, startX, bottom, alignedLeft, true, scaleFP, ColorBytes.COMPONENT_MAX); } public void quad(final int left,
Re: [android-developers] Wrong widthPixels?
if i don't want add code to XML.Are there any other method. 2011/3/22 Kostya Vasilyev kmans...@gmail.com Make sure that in the manifest, you either have: uses-sdk android:minSdkVersion=4 / or supports-screens android:smallScreens=true android:normalScreens=true android:largeScreens=true android:anyDensity=true / -- Kostya 22.03.2011 13:01, CaryWang пишет: DisplayMetrics dm = new DisplayMetrics(); dm=getResources().getDisplayMetrics(); int width=dm.widthPixels int height=dm.heightPixels W shoud be 480 and H shoud be 854 But for me W is 320 and H is 536.What am I doing wrong??? -- Cary -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Kostya Vasilyev -- 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 -- Cary -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: ideal system configuration for developing Android 3 apps
And if you're not in the USA, you're kinda screwed for Honeycomb development. String -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Service stops after 10 minutes of standby
WakeLocks are evil. Are you sure the service is actually stopping or maybe (based on your criteria) it just doesn't have a new position to tell about? On Mar 21, 11:30 pm, Chris Stewart cstewart...@gmail.com wrote: As Nick mentioned, you'll want to look into a wake lock. I would highly recommend Mark's implementation with WakefulIntentService (https://github.com/commonsguy/cwac-wakeful). I'm using it in my app with no issues at all. -- Chris Stewarthttp://chriswstewart.com On Mon, Mar 21, 2011 at 11:14 PM, Roger Podacter rogerpodac...@gmail.comwrote: I think there is something extra that needs to be added to keep your service running in deep sleep standby. Cause my service also stops running on my nexus one once the phone goes into deep sleep. My service actually takes 2 second sample readings of battery current so it would be nice to see standby readings. On Mar 21, 8:05 pm, Nick Kulikaev nkulik...@gmail.com wrote: Hi, You probably need to obtain a wake lock to keep your service running if you want to stick to the design you've already made, but i guess what you are trying to do could be also done with alarm manager which can wake you up whenever you want. This can save you some battery. Nick On Mar 21, 1:56 am, stefan jakober stefan.jako...@gmail.com wrote: Hey there, I've got a wired problem. I've got a tracking service which sends geo- data to a server every 5 seconds. When I run this service on the HTC Wildfire, there are no problems at all (even when the phone goes standby), but when I use the HTC Desire, the service seems to stop after 10 minutes standby though there is no problem with the service when the phone's active. I will try to figure out the problem with testing some other phones, but you guys might have an idea where the problem is and I would be so thankful for every kind of help. I'm stuck on this problem for weeks. thank you stefan -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Why can't draw a picture on canvas
It appears, by your code, that you *are* drawing on the bitmap through the canvas. However, I'm guessing your *real* question is: why is my bitmap not being displayed on the screen? Well, that's because your bitmap or canvas is not associated at all with any buffers which finally get displayed on your device. Here are 2 options for you: 1) If you're just trying to display a picture to the screen that doesn't change, then just put an ImageView in your view hierarchy and define the android:src=R.drawable.bg. 2) If you're end goal is to do custom drawing onto the screen, then you're going to have to create a custom view and override the onDraw method, which *gives* you the Canvas object which is linked to the display. Remember, a Canvas is just a tool for drawing onto a bitmap. It has, inherently, nothing to do with drawing something to the screen. Nick -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Hi... Flocks
Namatse, I guess. On Mar 21, 7:34 am, Narendra Padala checksumandr...@gmail.com wrote: Hi..Flocks, I am new to android, up to now i am java/j2ee/php/cakephp web developer now i move on to android, please give some suggestion to learn very quickly Android, -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: android licensing: when do we need generate new key pair
If you lose your old key, maybe? On Mar 21, 9:34 pm, veetowner veetow...@gmail.com wrote: I am reading Android Application Licensing. It uses a key pair to check license. The document also says that Note that if you decide to generate a new licensing key pair for your account for some reason, you need to notify all users of test accounts. For testers, you can embed the new key in the application package and distribute it to users. For developers, you will need to distribute the new key to them directly. I think this is related to this server response LICENSED_OLD_KEY: The application is licensed to the user, but there is an updated application version available that is signed with a different key. I understand this concept. However, what I am clear is when you would need to generate a new licensing key pair. Do we need to generate a new key pair whenever we submit an update? My guess is no. When do we need to generate a new key? 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] How to access other application's resources?
hi, I want to know whether can i access other application's resources like application's buttons,views etc from another application. I tried the following: res = pm.getResourcesForApplication(com.example); int i = res.getIdentifier(button1, id, com.example); But the problem is,eventhough i am getting the id properly, i am not able to access that particular view. For Ex: In one application i have a button, and from other application i want to alter the button's text..how can i achieve this? What permissions do i need to give? And in the example code above what i can do with that id if its not possible to directly alter the view in original application? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Amazon Appmarket is now open!
I have one word to sum it up as: Hooray!! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 access other application's resources?
I want to know whether can i access other application's resources like application's buttons,views etc from another application. N -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Need Information about System update in android
Hi, In our project we need to provide firmware upgrade feature to the product. We are using android 2.2 in our product. We are using NAND flash to store linux and file system. Our requirement is download the update.zip from PC to SD card and put the SD card in to the product and update the firmware from SD card to NAND. Can we use installPackage (Context context, File package File) API of recovery system to update the software. Do we have to put udate.zip in the recovery partition of NAND? Do we have to put recovery support in bootloader or is it a part of android OS, because I can see the recovery directory under bootable/ recovery of android source. Please provide us the more details about the recovery system. Thanks and Regards Deepthi.G -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 licensing: when do we need generate new key pair
You old key expires? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: ideal system configuration for developing Android 3 apps
I am not in US and I really dont want to buy new hardware to develop for Android as its only an hobby and learning tool. I was looking for any optimization anyone has done on their system, such as increasing the default JVM memory, increasing the default stack space etc. On Mar 22, 3:11 pm, String sterling.ud...@googlemail.com wrote: And if you're not in the USA, you're kinda screwed for Honeycomb development. String -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Activity lifecycle... still a mystery to me
On Mon, Mar 21, 2011 at 10:59 PM, DulcetTone dulcett...@gmail.com wrote: My app responds to speech commands. I want the behavior to be that 1. if back is hit on my initial activity, it exits. That is normal behavior. 2. My app has a few sub-activities it may launch on user speech- or GUI input 3. if home is hit on ANY of my activities, I want all of them to finish. Again, I ask: why? Why I want this is uninteresting... Then don't expect much help. I'm not asking why because I expect the reason to be interesting, I am asking why because you are clearly confused, so I am trying to get to the real problem here. few users of the app would find the desired behavior anything other than the one they'd want. That's conceivable, but unlikely, since your users probably want your app to behave like all their other apps. What do you think the difference is between: if home is hit on ANY of my activities, I want all of them to finish and: if home is hit on ANY of my activities, the home screen should appear since the latter is the standard behavior? The home screen will appear in either case. Clearly, you think that there is some difference. We need to know what the behavior difference is that you are expecting, so we can guide you on how to achieve it. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 3.5 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Android Application Sold to 100,000 Users
Well actually the statistics are off by ALOT, because of the number of spam applications and flash apps that completly such and should not really count, i mean some developers have over 300 apps all rated below 3 stars -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Cloud Computing
On Mar 22, 12:48 pm, Zsolt Vasvari zvasv...@gmail.com wrote: Oh please, leave the guy alone. He probably got his CS degree from the same school where the Indian pilots get their pilot's licenses. Lets not generalize about indian pilots and stick to the topic of cloud computing, On Mar 22, 3:39 pm, Marcin Orlowski webnet.andr...@gmail.com wrote: On 21 March 2011 19:08, TreKing treking...@gmail.com wrote: On Mon, Mar 21, 2011 at 1:03 PM, rishabh agrawal android.rish...@gmail.com wrote: I am a Begginer in android.But i want develope apps for Cloud Computing Oh for goodness sake. And who says marketing buzzwords do not work? Regards, Marcin Orlowski Tray Agenda http://bit.ly/trayagenda - keep you daily schedule handy...- Hide quoted text - - Show quoted text - -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: ideal system configuration for developing Android 3 apps
I think the point is that the Honeycomb emulator is abominable on every configuration that anyone's reported. Even Google has admitted that it's really bad. AFAIK, nobody's reported any success with improving the situation by tweaking settings, either. Why don't you do that, and let us know what you find? String -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Need Information about System update in android
product. We are using android 2.2 in our product. We are using NAND Your asking on wrong group. Regards, Marcin Orlowski Tray Agenda http://bit.ly/trayagenda - keep you daily schedule handy... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: ideal system configuration for developing Android 3 apps
Actually, bumping the RAM helps a bit. hw.ramSize (Device RAM size) of 1024, if you have enough memory on your development machine, does improve performance. It is still fairly dreadful, but I couldn't even get it to boot with whatever the default was. On Tue, Mar 22, 2011 at 7:19 AM, String sterling.ud...@googlemail.com wrote: I think the point is that the Honeycomb emulator is abominable on every configuration that anyone's reported. Even Google has admitted that it's really bad. AFAIK, nobody's reported any success with improving the situation by tweaking settings, either. Why don't you do that, and let us know what you find? String -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 3.5 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: android RelativeLaout's children can't modify the ones that are based on them.
is it maybe related to this? Note that you cannot have a circular dependency between the size of the RelativeLayout and the position of its children. For example, you cannot have a RelativeLayout whose height is set to WRAP_CONTENT and a child set to ALIGN_PARENT_BOTTOM. On Mar 20, 2:56 pm, Игорь Богославский zab...@gmail.com wrote: Hi there. I have already posted my question to the stackoverflow website, so I will just post a reference to that page. The reason I do this is that i'm absolutely stuck with this and I really need it for tomorrow, 'cos otherwise I will have to rewrite a lot of code. And make it a lot uglier too. So - here you go. http://stackoverflow.com/questions/5368534/android-relativelaouts-chi... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: What exactly is the obtainBuffer in an AudioTrack?
how can I prevent (or at least minimize) the delay When AudioTrack object is created, buffer size is passed into a constructor among other parameters. AudioTrack won't start playing until you write at least that amount of data into it. I presume that in your case chosen buffer size is siginificantly larger than AudioTrack.getMinBufferSize. That's why it doesn't start playing when the first data portion is written. famous obtainBuffer timed out (is the CPU pegged?) warning It appears to the worst in 1.5 emulator. Much better in Android 2+ emulator (shown maybe once per 4 seconds). I have never seen this warning when testing on a real device. My suggestion is to ignore it. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Help using custom Preference types - for pity or money
nothing is stopping you from learning how to do that - based on the link I provided, and on the Preferences documentation. On Mar 21, 8:38 pm, Peter Webb r.peter.w...@gmail.com wrote: Thanks - But I already have two suitable color Preferences classes which I downloaded from the net - neither actually works for me. I assume its my error in incorporating them into the Cube demo. I certainly don't want to write my own Preference, just want to get somebody else's color preference working in the cube demo and then move it to my wallpaper. On Mar 22, 5:21 am, lbendlin l...@bendlin.us wrote: Rolling your own preference is not trivial. Definitely more than an hour, including all the required regression testing. Here's a good starter http://android-journey.blogspot.com/2010/01/for-almost-any-applicatio...- Hide quoted text - - Show quoted text - -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Help using custom Preference types - for pity or money
On Tue, Mar 22, 2011 at 7:35 AM, lbendlin l...@bendlin.us wrote: nothing is stopping you from learning how to do that - based on the link I provided, and on the Preferences documentation. FWIW, here is Yet Another Color Mixer, in the form of a custom View, custom Preference, and custom Dialog: https://github.com/commonsguy/cwac-colormixer It's an Android library project with a demo/ subproject that demonstrates their use. And, in a blatant commercial plug, two chapters of _The Busy Coder's Guide to Advanced Android Development_ go through how all of it works. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 3.5 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How to increase the amount of time to consider input complete, in android voice recognition?
Hi In android voice recognition, Can any one know how to increase the amount of time that it should take after we stop hearing speech to consider the input possibly complete. I need to prevent the endpointer cutting off during very short mid-speech pauses while voice recognition. If anyone knows the solution, please give reply. Any response would be appreciated. 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] Re: What exactly is the obtainBuffer in an AudioTrack?
Hmm, I'd rather solve it, as it is the only viable explanation left for why I have delays in playing... As I've said in my first post, I've tried playing with the buffersize of the AudioTrack, but to no avail. The only lead to a solution I have atm. is the warning, so I can't ignore it... On 22 mrt, 12:30, emymrin emym...@gmail.com wrote: how can I prevent (or at least minimize) the delay When AudioTrack object is created, buffer size is passed into a constructor among other parameters. AudioTrack won't start playing until you write at least that amount of data into it. I presume that in your case chosen buffer size is siginificantly larger than AudioTrack.getMinBufferSize. That's why it doesn't start playing when the first data portion is written. famous obtainBuffer timed out (is the CPU pegged?) warning It appears to the worst in 1.5 emulator. Much better in Android 2+ emulator (shown maybe once per 4 seconds). I have never seen this warning when testing on a real device. My suggestion is to ignore it. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: how to reload previous activity on back button click
Hi Ranveer, maybe refreshing the contents in the history Activity's onResume() method would be sufficient for your needs. Best regards, Filip Havlicek 2011/3/22 harsh chandel harshdchan...@gmail.com @Override public boolean onKeyDown(int keyCode, KeyEvent event) { if (keyCode == KeyEvent.KEYCODE_BACK) { //Intent intent = new Intent(this,name of the class where you want to go to); startActivity(intent); return true; } return super.onKeyDown(keyCode, event); } this code captures the event on back button click On Mar 22, 8:49 am, Ranveer ranveer.s...@gmail.com wrote: Dear all, I want to reload the previous activity (history) on back button click. Right now When I am pressing back (Phone) it going to previous activity but showing from history. So every time I click back I want to reload the history page. regards -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: What exactly is the obtainBuffer in an AudioTrack?
On a side note, I am developing for Android 2.2 minimum. And I use a real device to test everything. I've stopped using the Emulator for sound related topics, as I never got the sound working in the Emulator at all... See a previous post on this: http://groups.google.com/group/android-developers/browse_thread/thread/bc65a57e445e9f29/558dfc39a7da7361?#558dfc39a7da7361 On 22 mrt, 12:56, ThaMe90 theprophes...@gmail.com wrote: Hmm, I'd rather solve it, as it is the only viable explanation left for why I have delays in playing... As I've said in my first post, I've tried playing with the buffersize of the AudioTrack, but to no avail. The only lead to a solution I have atm. is the warning, so I can't ignore it... On 22 mrt, 12:30, emymrin emym...@gmail.com wrote: how can I prevent (or at least minimize) the delay When AudioTrack object is created, buffer size is passed into a constructor among other parameters. AudioTrack won't start playing until you write at least that amount of data into it. I presume that in your case chosen buffer size is siginificantly larger than AudioTrack.getMinBufferSize. That's why it doesn't start playing when the first data portion is written. famous obtainBuffer timed out (is the CPU pegged?) warning It appears to the worst in 1.5 emulator. Much better in Android 2+ emulator (shown maybe once per 4 seconds). I have never seen this warning when testing on a real device. My suggestion is to ignore 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] How to increase the amount of time to consider input complete, in android voice recognition?
Hi vamsi, check this RecognizerIntent extra http://developer.android.com/reference/android/speech/RecognizerIntent.html#EXTRA_SPEECH_INPUT_COMPLETE_SILENCE_LENGTH_MILLIS Best regards, Filip Havlicek 2011/3/22 vamsi shailajamudathanapa...@gmail.com Hi In android voice recognition, Can any one know how to increase the amount of time that it should take after we stop hearing speech to consider the input possibly complete. I need to prevent the endpointer cutting off during very short mid-speech pauses while voice recognition. If anyone knows the solution, please give reply. Any response would be appreciated. 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: ideal system configuration for developing Android 3 apps
Thanks Mark for your suggestion. According to the API, the default is 96MB RAM which I am not sure applies to all versions of API. I will try your suggestions and other hardware options mentioned in API and update this thread. -jm On Mar 22, 4:23 pm, Mark Murphy mmur...@commonsware.com wrote: Actually, bumping the RAM helps a bit. hw.ramSize (Device RAM size) of 1024, if you have enough memory on your development machine, does improve performance. It is still fairly dreadful, but I couldn't even get it to boot with whatever the default was. On Tue, Mar 22, 2011 at 7:19 AM, String sterling.ud...@googlemail.com wrote: I think the point is that the Honeycomb emulator is abominable on every configuration that anyone's reported. Even Google has admitted that it's really bad. AFAIK, nobody's reported any success with improving the situation by tweaking settings, either. Why don't you do that, and let us know what you find? String -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 3.5 Available!- Hide quoted text - - Show quoted text - -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Package file was not signed correctly error
Oh brother, that was easy :) Uninstall, then reinstall fixed the problem (and none of my 600 users ever had a problem). Thanks! Anders On Mar 22, 12:47 am, Justin Anderson magouyaw...@gmail.com wrote: Or vice-versa... It happens either way. Thanks, Justin Anderson MagouyaWare Developerhttp://sites.google.com/site/magouyaware On Mon, Mar 21, 2011 at 10:47 PM, Justin Anderson magouyaw...@gmail.comwrote: I usually run into this when I have a debug version on my phone already installed from doing development and then forgetting to uninstall it before trying to install the release version. Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Mon, Mar 21, 2011 at 5:59 AM, Anders byl...@gmail.com wrote: My application refuses to install from the Market since I uploaded a new version. First, I had trouble finding the right keystore again after a few months of not touching the app. Market finally stopped halting the uploads with messages about the wrong signature, so everything seemed okay. But the new version refuses to install. Logcat dump in debug mode from trying it on my own phone: 03-21 07:15:59.740: DEBUG/vending(1401): [14] LocalAssetDatabase.notifyListener(): -5180615462709890363 / DOWNLOAD_PENDING 03-21 07:15:59.890: INFO/vending(1401): [14] RequestDispatcher $RequestContext.init(): Some requests use secure token but dont require SSL. Forcing SSL. 03-21 07:16:01.010: DEBUG/RC_WifiBroadcastReceiver(20453): action android.net.wifi.SCAN_RESULTS 03-21 07:16:01.010: DEBUG/RC_WifiService(20453): notifyScanResults() 760811490 03-21 07:16:01.330: DEBUG/MobileDataStateTracker(158): hipri Received state= CONNECTED, old= CONNECTED, reason= (unspecified), apnTypeList= default,supl,mms 03-21 07:16:01.360: DEBUG/MobileDataStateTracker(158): replacing old mInterfaceName (rmnet0) with rmnet0 for supl 03-21 07:16:01.380: DEBUG/MobileDataStateTracker(158): replacing old mInterfaceName (rmnet0) with rmnet0 for mms 03-21 07:16:01.380: DEBUG/MobileDataStateTracker(158): default Received state= CONNECTED, old= CONNECTED, reason= (unspecified), apnTypeList= default,supl,mms 03-21 07:16:01.550: DEBUG/NetworkLocationProvider(158): onDataConnectionStateChanged 3 03-21 07:16:02.810: DEBUG/vending(1401): [87] AssetDownloader.downloadAndInstall(): Initiating Download for 1 applications. 03-21 07:16:02.810: INFO/vending(1401): [87] DownloadManagerUtil.enqueueDownload(): Enqueue for download com.android.vending.util.DownloadManagerUtil$Request@43de9668 03-21 07:16:03.020: DEBUG/vending(1401): [87] LocalAssetDatabase.notifyListener(): -5180615462709890363 / null 03-21 07:16:03.460: DEBUG/vending(1401): [87] LocalAssetDatabase.notifyListener(): -5180615462709890363 / DOWNLOADING 03-21 07:16:06.820: DEBUG/dalvikvm(2573): GC_FOR_MALLOC freed 7137 objects / 439928 bytes in 116ms 03-21 07:16:08.750: DEBUG/dalvikvm(2557): GC_EXPLICIT freed 328 objects / 16528 bytes in 96ms 03-21 07:16:09.670: DEBUG/dalvikvm(158): GC_EXPLICIT freed 22964 objects / 1049192 bytes in 284ms 03-21 07:16:10.100: INFO/vending(1401): [96] AssetDownloader $DownloadManagerBroadcastReceiver.startNextDownload(): Found Paused URI null 03-21 07:16:10.110: INFO/vending(1401): [96] AssetDownloader $DownloadManagerBroadcastReceiver.startNextDownload(): No more paused downloads. 03-21 07:16:10.110: DEBUG/vending(1401): [96] AssetDownloader $DownloadManagerBroadcastReceiver.handleDownloadCompletedAction(): Got a download completed intent. 03-21 07:16:10.260: DEBUG/vending(1401): [96] LocalAssetDatabase.notifyListener(): -5180615462709890363 / null 03-21 07:16:10.340: DEBUG/vending(1401): [97] AssetDownloader $DownloadManagerBroadcastReceiver.installFromUri(): Calling install uri=content://downloads/download/812 src=null asset=-5180615462709890363 (RobotMoose.TennisScore:8) [DOWNLOADING] name=Tennis Score last=TRUE 03-21 07:16:10.730: DEBUG/vending(1401): [97] LocalAssetDatabase.notifyListener(): -5180615462709890363 / INSTALLING 03-21 07:16:10.880: DEBUG/vending(1401): [97] VendingNotificationManager.showNotification(): Showing notification: [AssetID=-5180615462709890363, NotificationID=-1700280694, Title=Tennis Score, Message=Installing…] 03-21 07:16:11.260: DEBUG/MobileDataStateTracker(158): hipri Received state= CONNECTED, old= CONNECTED, reason= (unspecified), apnTypeList= default,supl,mms 03-21 07:16:11.280: DEBUG/MobileDataStateTracker(158): replacing old mInterfaceName (rmnet0) with rmnet0 for supl 03-21 07:16:11.280: DEBUG/MobileDataStateTracker(158): replacing old mInterfaceName (rmnet0) with rmnet0 for mms 03-21 07:16:11.290: DEBUG/MobileDataStateTracker(158): default Received state= CONNECTED, old= CONNECTED, reason= (unspecified), apnTypeList= default,supl,mms 03-21 07:16:11.650: DEBUG/dalvikvm(248): GC_FOR_MALLOC freed 10547
[android-developers] Amazon Appmarket is now open!
Zsolt Vasvari zvasv...@gmail.com Mar 22 03:47AM -0700 I have one word to sum it up as: Hooray!! It is only open for US of A customers though :( -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Amazon Appmarket is now open!
Amazon almost always introduces new services on their home turf first. Other countries will come. I'm just happy that, at the moment, one of my apps is #1 in its category. Open in the USA only is better than not open at all! String -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: 2.3.3 View setVisibility bug?
I am having this exact problem right now. If I use android:visibility=invisible in the XML then setting them to visible does nothing, no matter how I call it. Weird and annoying. C On Mar 5, 3:52 pm, Jeremy Statz jst...@gmail.com wrote: One of my products has an activity with three LinearLayouts that start out invisible. The user has buttons that toggle these layouts on and off, so they don't have the additional interface getting in the way if they don't want it. This toggle behavior has broken on the 2.3.3 version of Android, does anyone know what's changed there? The behavior I'm seeing now is that if the layout is set to invisible immediately, I can never make it visible again. The way this works is extremely simple, and has been fine for most of a year. Upon startup I load the layout, then get those three layouts and call setVisibility( View.INVISIBLE ). Later, when the user presses the appropriate button, the button's callback does this: LinearLayout ll = (LinearLayout)findViewById( R.id.PropsDetailedLayout ); if( ll.getVisibility() != View.VISIBLE ) ll.setVisibility( View.VISIBLE ); else ll.setVisibility( View.INVISIBLE ); The strange thing is, toggling them visible/invisible works just fine so long as I don't make make them invisible on startup. Even if I change the setting in the XML to have them be default upon load rather than using the method, I still can't ever make them visible again. I've confirmed it's not a problem in getVisibility, as forcibly setting them to visible any time a button press happens doesn't work either. Has anyone else had this problem? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Amazon Appmarket is now open!
The Amazon Appstore for Android is not yet available in your region. Beside the small problem I can not install an app it looks great! My first impression is very positive.I like the user interface on the phone and on the website. Now the Android Market sucks even more. 2011/3/22 Zsolt Vasvari zvasv...@gmail.com I have one word to sum it up as: Hooray!! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Amazon Appmarket is now open!
Awesome! Or maybe not awesome...they have a Test Drive Now feature that opens up a web based emulator to run your app for 30 minutes as a trial. Don't know how I feel about this. On Tue, Mar 22, 2011 at 7:33 AM, Ralf Schneider li...@gestaltgeber.comwrote: The Amazon Appstore for Android is not yet available in your region. Beside the small problem I can not install an app it looks great! My first impression is very positive.I like the user interface on the phone and on the website. Now the Android Market sucks even more. 2011/3/22 Zsolt Vasvari zvasv...@gmail.com I have one word to sum it up as: Hooray!! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Android Beginner Having Problems
Are your imports listed? import android.view.Menu; import android.view.MenuInflater; import android.view.MenuItem; On Mar 20, 12:46 am, Matt Clark mrclark32...@gmail.com wrote: I tried using the MenuInflation off of the android developers site: @Override public boolean onCreateOptionsMenu(Menu menu) { MenuInflater inflater = getMenuInflater(); inflater.inflate(R.menu.game_menu, menu); return true; } with an xml in the res/meno directory by the name of game_menu. when I try to compile this, i get an error saying that the symbol 'menu' on line inflater.inflate(R.menu.game_menu, menu); can not be found. I have all of my imports set, the code shows no errors, just will not compile. Any and all help is greatly appreciated. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Is the RTSP streaming on android secure
I don't think it is, but it's kind of a moot point anyhow as RTSP is broken on 2.3.3+ On Mar 20, 1:59 pm, viv sangeeta.mu...@gmail.com wrote: I am trying to build a media player and the content is under DRM. I have read that you can reconstruct the media packets on the client by sniffing for them using wire shark or some other tools. Is there support in android for these packets to be encrypted using RTP/RTSP -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Amazon Appmarket is now open!
On Tue, Mar 22, 2011 at 8:43 AM, Justin Giles jtgi...@gmail.com wrote: Awesome! Or maybe not awesome...they have a Test Drive Now feature that opens up a web based emulator to run your app for 30 minutes as a trial. Don't know how I feel about this. Web-based emulator? Ignoring the business aspects, from a purely technical standpoint, that's pretty slick. I'll have to check that out and see if I can determine how they pulled that little trick off... -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 3.5 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Amazon Appmarket is now open!
Angry Birds Rio is getting a lot of 1-star reviews form non-US users who are unable to get the app. I have even seen a review from an iPad user who was unable to download the app via Safari. How on earth is it possible that these users can review the app! It is the Android Market all over again. On Mar 22, 1:43 pm, Justin Giles jtgi...@gmail.com wrote: Awesome! Or maybe not awesome...they have a Test Drive Now feature that opens up a web based emulator to run your app for 30 minutes as a trial. Don't know how I feel about this. On Tue, Mar 22, 2011 at 7:33 AM, Ralf Schneider li...@gestaltgeber.comwrote: The Amazon Appstore for Android is not yet available in your region. Beside the small problem I can not install an app it looks great! My first impression is very positive.I like the user interface on the phone and on the website. Now the Android Market sucks even more. 2011/3/22 Zsolt Vasvari zvasv...@gmail.com I have one word to sum it up as: Hooray!! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Android API 10
When i run my apps on emulator API 8 then it run correctly.But when i run my apps on API 10 then it get unexpected error.it is RunTime error.I use DualCore processer .i thing that the speed of my PC is slow that why that error are created.i am right or not.please suggest me how to remove that type of error.i also include in mainfest file. android:minSdkVersion=8 android:minSdkVersion=10. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] MotionEvent.getEdgeFlags() never reports non-zero value
Looking over older posts, I found this: http://groups.google.com/group/android-developers/browse_thread/thread/a55db4c49b12248d So it's 2011 now, and I am using the emulator and a Galaxy Tab both running 2.2, and I can't for the life of me get the MotionEvent's passed from a simple full-screen drawing app to report a getEdgeFlags() value of anything other than 0. Anyone else have this issue, or a workaround for it? Thanks, Paul -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Amazon Appmarket is now open!
On 22 March 2011 13:52, webmonkey webmonke...@gmail.com wrote: Angry Birds Rio is getting a lot of 1-star reviews form non-US users who are unable to get the app. I have even seen a review from an iPad user who was unable to download the app via Safari. How on earth is it possible that these users can review the app! It is the Android Market all over again. Could be they simply purchased via web so they are allowed to make comments But yes, that silly that you can comment instantly. It shall be i.e. a week of delay from your purchase date before you are allowed to review purchased app. Regards, Marcin Orlowski Tray Agenda http://bit.ly/trayagenda - keep you daily schedule handy... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Amazon Appmarket is now open!
On 22 March 2011 13:43, Justin Giles jtgi...@gmail.com wrote: Awesome! Or maybe not awesome...they have a Test Drive Now feature that opens up a web based emulator to run your app for 30 minutes as a trial. Where exactly did you spot that feature? Regards, Marcin Orlowski Tray Agenda http://bit.ly/trayagenda - keep you daily schedule handy... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Amazon Appmarket is now open!
Yes giving the developers a 1-star rating is not nice. On the other hand I understand the frustration: It's the worldwide internet we are connect to. Apps a virtual goods transfered via the inter-tubes. Payment is done with worldwide operating credit card companies. For a potential customer in Moscow or Tokyo there is no good reason he can not by at the appstore. 2011/3/22 webmonkey webmonke...@gmail.com Angry Birds Rio is getting a lot of 1-star reviews form non-US users who are unable to get the app. I have even seen a review from an iPad user who was unable to download the app via Safari. How on earth is it possible that these users can review the app! It is the Android Market all over again. On Mar 22, 1:43 pm, Justin Giles jtgi...@gmail.com wrote: Awesome! Or maybe not awesome...they have a Test Drive Now feature that opens up a web based emulator to run your app for 30 minutes as a trial. Don't know how I feel about this. On Tue, Mar 22, 2011 at 7:33 AM, Ralf Schneider li...@gestaltgeber.com wrote: The Amazon Appstore for Android is not yet available in your region. Beside the small problem I can not install an app it looks great! My first impression is very positive.I like the user interface on the phone and on the website. Now the Android Market sucks even more. 2011/3/22 Zsolt Vasvari zvasv...@gmail.com I have one word to sum it up as: Hooray!! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Can somebody suggest the best book or online resource for beginning android apps development?
I have to agree - http://commonsware.com/ - helped me a lot when I was first starting and is still something I refer to frequently. On Mar 21, 6:51 am, Narendra Padala checksumandr...@gmail.com wrote: Hi Flocks, Can somebody suggest the best book or online resource for beginning android apps development? Regard's Narendra -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Amazon Appmarket is now open!
I really don't like _how_ you have to get the Appstore app itself. I suppose that's because it's an Appstore within the Market itself. Asking users to enable unknown sources doesn't seem like a good idea. I bet my mom would be confused as hell over this. -- Chris Stewart http://chriswstewart.com On Tue, Mar 22, 2011 at 9:03 AM, Marcin Orlowski webnet.andr...@gmail.comwrote: On 22 March 2011 13:43, Justin Giles jtgi...@gmail.com wrote: Awesome! Or maybe not awesome...they have a Test Drive Now feature that opens up a web based emulator to run your app for 30 minutes as a trial. Where exactly did you spot that feature? Regards, Marcin Orlowski Tray Agenda http://bit.ly/trayagenda - keep you daily schedule handy... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Android API 10
Please Suggest On Mar 22, 5:56 pm, rishabh agrawal android.rish...@gmail.com wrote: When i run my apps on emulator API 8 then it run correctly.But when i run my apps on API 10 then it get unexpected error.it is RunTime error.I use DualCore processer .i thing that the speed of my PC is slow that why that error are created.i am right or not.please suggest me how to remove that type of error.i also include in mainfest file. android:minSdkVersion=8 android:minSdkVersion=10. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 App Tracker - market rank tool
CL == Corey Ledin Corey writes: CL Hi All, CL I have yet to contribute to this group just start off by saying CL hi and if you haven't heard of me I developed Beer Pong Free for CL the android and iPhone etc. Recently I was trying to find a CL decent app rank website for the android like that of all of CL iPhone pones with not really any luck besides that one app. So I CL said what the heck and built my own... It is still in beta / CL testing phase since i only started the project with my partner 4 CL days ago lol. But go check it out! CL http://androidapptracker.com CL Let me know what you think and if you have any ideas. Looks good. Is tracking of my own apps supposed to be working? I tried adding my app and it says that it is not found. -- Jake Colman -- Android Tinkerer -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Amazon Appmarket is now open!
On 22 March 2011 13:43, Justin Giles jtgi...@gmail.com wrote: Awesome! Or maybe not awesome...they have a Test Drive Now feature that opens up a web based emulator to run your app for 30 minutes as a trial. Where exactly did you spot that feature? I just looked up one of my apps Word Mix. Below the pricing information there was a big green button saying Test Drive Now. I was in Chrome when I saw this. Doesn't look like it is for all apps. I would say that it is a developer feature, but I'm not signed in to my developer Amazon account when I see it. It's pretty slick, but laggy with button presses. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Android API 10
On 22 March 2011 14:19, rishabh agrawal android.rish...@gmail.com wrote: Please Suggest Don't bump after 3 seconds!. Stay in the line and wait for anyone's answer (if any) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Regarding Image Fetching
Hi All, How To Fetch Image From my own database...?? Am getting Null Pointer Exception While am Running my app... Cursor cr; ImageView myImage = (ImageView) findViewById(R.id.image); byte[] bb = cr.getBlob(cr.getColumnIndex(pharmPic)); Bitmap bm = BitmapFactory.decodeByteArray(bb, 0, bb.length); myImage.setImageBitmap(bm); pharmPic(BLOB) is my field name in my database table. Plz Help me out in this query asap. Regards, Yogi -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Amazon Appmarket is now open!
Awesome! Or maybe not awesome...they have a Test Drive Now feature that opens up a web based emulator to run your app for 30 minutes as a trial. Where exactly did you spot that feature? I just looked up one of my apps Word Mix. Below the pricing information there was a big green button saying Test Drive Now. I was in Chrome when I saw this. Doesn't look like it is for all apps. I would say that it is a developer feature, but I'm not signed in to my developer Amazon account when I see it. It's pretty slick, but laggy with button presses. Hm, I do not see anythink like that for app you named - make sure you wasn't logged. Regards, Marcin Orlowski Tray Agenda http://bit.ly/trayagenda - keep you daily schedule handy... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 3.0 Starter Pack - XML Verification Error
Hi, i was finally able to resolve this issue. i am sharing this information as it might be useful for someone else. i was facing this issue because the language setting on my PC was 'Hindi'. Once i changed back the Language to english it worked. On Mar 21, 9:32 pm, learner1980 vipul.bahug...@gmail.com wrote: Hi, I have recently downloaded the SDK starter pack 'android-sdk_r10- windows' for Android development. I have Windows Vista OS. But now when I am starting the SDK Manager to install the Platform tools i am getting the below erorrs - XML verification failed forhttps://dl-ssl.google.com/android/repository/repository.xml. Line -१:-१, Error: org.xml.sax.SAXParseException: schema_reference.4: Failed to read schema document 'null', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not . XML verification failed forhttps://dl-ssl.google.com/android/repository/addons_list.xml. Line -१:-१, Error: org.xml.sax.SAXParseException: schema_reference.4: Failed to read schema document 'null', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not . I also tried the Force settings in Settings - Misc, but it too didn't help. Can someone throw some pointers. I am a bit stuck as I have downloaded the Starter pack and not able to figure out what could be wrong. 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] Re: installing sdk
Hi Chris, Thanks for your reply. i was finally able to resolve this issue. i am sharing this information as it might be useful for someone else. i was facing this issue because the language setting on my PC was 'Hindi'. Once i changed back the Language to english it worked. Now I am just wondering if this is a BUG? On Mar 22, 8:45 am, Chris Stewart cstewart...@gmail.com wrote: What version of Eclipse are you using? Did you start with this page (http://developer.android.com/sdk/index.html), download the package, and follow the steps below? Then, proceed to the SDK install page (http://developer.android.com/sdk/installing.html)? Which step are you stuck at? -- Chris Stewarthttp://chriswstewart.com On Mon, Mar 21, 2011 at 12:38 PM, learner1980 vipul.bahug...@gmail.comwrote: Hi, I have recently downloaded the SDK starter pack 'android-sdk_r10- windows' for Android development. I have Windows Vista OS. But now when I am starting the SDK Manager to install the Platform tools i am getting the below erorrs - XML verification failed for https://dl-ssl.google.com/android/repository/repository.xml. Line -१:-१, Error: org.xml.sax.SAXParseException: schema_reference.4: Failed to read schema document 'null', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not . XML verification failed for https://dl-ssl.google.com/android/repository/addons_list.xml. Line -१:-१, Error: org.xml.sax.SAXParseException: schema_reference.4: Failed to read schema document 'null', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not . I also tried the Force settings in Settings - Misc, but it too didn't help. Can someone throw some pointers. I am a bit stuck as I have downloaded the Starter pack and not able to figure out what could be wrong. Thanks in advance. On Feb 26, 2:49 am, Marcin Orlowski webnet.andr...@gmail.com wrote: On 25 February 2011 14:46, Ashwin Menkudle ashwinmenku...@gmail.com wrote: i am trying to install addon after install of sdk. i am behind firewall there is no support for https See settings Tag, 1st checkbox -- Regards, Marcin -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Amazon Appmarket is now open!
I really just wish that Google would bite the bullet and implement some of the much needed features for the Android Market. I'm not unhappy with what's there and I know the individuals are putting in serious effort, so I don't want my comment to come off as a snub to those developers. I really hate the idea of managing two app stores, not only for myself but for consumers. If the Android Market was where I think a lot of us believe it should be, Amazon wouldn't have even seen an opportunity in building their own market. Competition is great and all, but in the end it's simply going to make us spend time thinking about app stores and not our apps. I think that's a problem. -- Chris Stewart http://chriswstewart.com On Tue, Mar 22, 2011 at 9:28 AM, Marcin Orlowski webnet.andr...@gmail.comwrote: Awesome! Or maybe not awesome...they have a Test Drive Now feature that opens up a web based emulator to run your app for 30 minutes as a trial. Where exactly did you spot that feature? I just looked up one of my apps Word Mix. Below the pricing information there was a big green button saying Test Drive Now. I was in Chrome when I saw this. Doesn't look like it is for all apps. I would say that it is a developer feature, but I'm not signed in to my developer Amazon account when I see it. It's pretty slick, but laggy with button presses. Hm, I do not see anythink like that for app you named - make sure you wasn't logged. Regards, Marcin Orlowski Tray Agenda http://bit.ly/trayagenda - keep you daily schedule handy... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Amazon Appmarket is now open!
Hm, I do not see anythink like that for app you named - make sure you wasn't logged. I swear it's there for my apps, even when I'm not logged into Amazon. But I'm like others...I can't seem to find it on other apps...ah wait! Found it on another app Impossible Level Game LITE. Here's the text on the about for the web emulator: Clicking the “Test drive now” button launches a copy of this app on Amazon Elastic Compute Cloud (EC2), an Amazon Web Service available to developers. When you click on the simulated phone using your mouse, those inputs are sent over the Internet to the app running on an Amazon server—just like a finger tap is sent to the app on your mobile device. From the server, the video and audio output from the app are sent back to your computer. All this happens in real time, creating the effect that you're running the app locally on your computer. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Amazon Appmarket is now open!
Well crap, my apps' description is entirely missing for some reason. Well that's the Amazon experience I've been having all along with this thing...really feels half assed pretty much always... -n On Mar 22, 8:35 am, Justin Giles jtgi...@gmail.com wrote: Hm, I do not see anythink like that for app you named - make sure you wasn't logged. I swear it's there for my apps, even when I'm not logged into Amazon. But I'm like others...I can't seem to find it on other apps...ah wait! Found it on another app Impossible Level Game LITE. Here's the text on the about for the web emulator: Clicking the “Test drive now” button launches a copy of this app on Amazon Elastic Compute Cloud (EC2), an Amazon Web Service available to developers. When you click on the simulated phone using your mouse, those inputs are sent over the Internet to the app running on an Amazon server—just like a finger tap is sent to the app on your mobile device. From the server, the video and audio output from the app are sent back to your computer. All this happens in real time, creating the effect that you're running the app locally on your computer. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Show activities in gallery
How can I start several activities in parallel and present them all together in a galley? I want the user to be able to scroll through the activities like he does in a gallery. A tab does not exactly present the same user experience of scrolling. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] parse json response containing html tags
hi, i am getting html tags in json response likep,href so how i can parse it. thankx -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Amazon Appmarket is now open!
On 2011-03-22 14:42, niko20 wrote: Well crap, my apps' description is entirely missing for some reason. Well that's the Amazon experience I've been having all along with this thing...really feels half assed pretty much always... Well, one of my apps was refused since I had a reference to Barcode Scanner (ZXing) on standard Market in it - they promised me a way to dynamically find out a suitable reference to Market/AmazonAppStore, btu that was a month ago and I've not heard a been since then. Can't say I'm too bothered about this delay, but I'm not exactly impressed... Best / Jonas -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Internet for the App
Hello Folks, I hope you can help me with a special problem I have. The android app I am developing requires the internet for every activity (data will be submitted to the server). My question is: how can I get notified when the connection breaks down/gets up again? Is there any good solution? Thank you. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Amazon Appmarket is now open!
Do you guy's apps have the original descriptions and bullet points you submitted? It seems like Amazon just wrote their own marketing descriptions ... - 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