[android-developers] Re: How to simulate 3D-rotation of irregular object using OpenGL in android?

2011-05-26 Thread Nicholas Johnson
This would not be relevant to Android, unless you're talking about how to import the object into memory. For 3D object creation there are a variety of tools to use. Check out some of the free ones, such as Blender http://www.blender.org/. Nick -- You received this message because you are

[android-developers] Re: What did you use to create your launcher icon for your app?

2011-05-24 Thread Nicholas Johnson
The GIMP http://www.gimp.org/. It's free and fairly full featured. 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] Re: Soft keyboard 'Done' button

2011-05-22 Thread Nicholas Johnson
Are you having problems with the implementation? Make sure to put an OnEditorActionListener in your EditText and screen for the IME_ACTION_GO action ID. Nick -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send

[android-developers] Re: Connecting to https server from java

2011-05-22 Thread Nicholas Johnson
Contact a server with a valid certificate? So far, it's not sounding like a problem with your client (Android) app. 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] Re: startActivityForResult

2011-05-19 Thread Nicholas Johnson
startActivityForResult has been in the API since level 1. 1.6 has it. Here's a link to the documentationhttp://developer.android.com/reference/android/app/Activity.html#startActivityForResult(android.content.Intent, int). -- You received this message because you are subscribed to the Google

Re: [android-developers] How can I draw/move a point on screen ?!

2011-05-19 Thread Nicholas Johnson
Look at all the documentation on developer.android.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] Re: htc inspire

2011-05-18 Thread Nicholas Johnson
Totally possible. Of course, if you travel in a spaceship with either phones approaching the speed of light, then the speed of the computations becomes all relative. So, in the time it takes to multiply two floating point numbers on the Android phone, the iPhone will have aged 50 years -- wait,

[android-developers] Re: possible use for Bluetooth

2011-05-17 Thread Nicholas Johnson
Yes, I think it is. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For

[android-developers] Re: Connection between Android phone and python server suggestion

2011-05-17 Thread Nicholas Johnson
Yes, it can be done. You can exchange data between a server and an Android app in any way that you want. I prefer encoding the communication/data in a JSON object. Nick -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this

[android-developers] Re: Samsung Galaxy S

2011-05-17 Thread Nicholas Johnson
On Tuesday, May 17, 2011 1:48:41 PM UTC-4, bob wrote: I was just wondering if anyone has gotten a 60 frames per second frame rate on a Samsung Galaxy S from ATT. Yes Also, is there any way to measure the frame rate of games you didn't make? For instance, if I wanted to download

[android-developers] Re: Connection between Android phone and python server suggestion

2011-05-17 Thread Nicholas Johnson
Put the IP address of the server you're trying to connect to. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to

[android-developers] Re: Market app name case sensitive?

2011-05-17 Thread Nicholas Johnson
AFAIK, it's not case sensitive. Searching for my apps with all sorts of funky capitalization works just fine (e.g. eXaMpLeName) 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] Re: frame rate

2011-05-16 Thread Nicholas Johnson
Yes, Every time you draw a frame increase via an onDraw increase a counter, then divide it by the time you've been drawing. 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] Re: Licensing on Formerly Paid Apps

2011-05-16 Thread Nicholas Johnson
I can't say for 100%, but my initial thought is: No. AFAIK, when you convert your paid app to a free app and a user then downloads it, the licensing service responds in the exact same way as if the user bought it (i.e. bought it for $0.00). So, I think the only way around your problem is

[android-developers] Re: Android Test Market

2011-05-16 Thread Nicholas Johnson
Not that I'm aware of. However, you could include location based discrimination in your app if you wanted to, which would start only if a user is within a certain area or zip code. Nick -- You received this message because you are subscribed to the Google Groups Android Developers group. To

[android-developers] Re: Looking for documentation on showing a value from a string-array in a TextView

2011-05-16 Thread Nicholas Johnson
Something like this should work: String[] textValues = getResources().getStringArray(R.array.your_string_array); for (int i = 0; i textValues.length; ++i) { mTextView.setText(textValues[i]); } ^obviously this code isn't very useful, but you get the idea. Nick -- You received this

Re: [android-developers] How to add Unicode font on Android

2011-05-16 Thread Nicholas Johnson
Android fonts *are* Unicode to the best of my knowledge. However, they don't have *every* character supported. 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

[android-developers] Re: EditTextPreference question

2011-05-16 Thread Nicholas Johnson
I'm not a 100% on this, but I would try and extend the EditTextPreference and add the encryption code there. You would have to override the Preference methods such as onSetInitialValue, onBindView, persistString, etc. I've never done this, but that'd be my best guess. Nick -- You received

[android-developers] Re: Logcat empty

2011-05-16 Thread Nicholas Johnson
Are you seeing any logs in your Logcat? You should see lots of stuff which Android pumps out into a log, even if you don't have any Log's in your code... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

[android-developers] Re: Surveys using Google Docs

2011-05-16 Thread Nicholas Johnson
I'm not sure if the pretty please is going to do it... maybe with a cherry on top 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

[android-developers] Re: Need help understanding crash report.

2011-05-15 Thread Nicholas Johnson
It sounds like you are trying to update an UI element from a non-UI thread. Are you using an AsyncTask, thread, IntentService, etc. and trying to update a UI element from it? Nick -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to

[android-developers] Re: Payout problem on the Android Market?

2011-05-15 Thread Nicholas Johnson
Nope, no payout problems here. In fact, I've been recently surprised by the Android Market since Google IO 2011. The market seems to be refreshing multiple times daily, etc. Nick -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to

[android-developers] Re: Image Picker and Cropper

2011-05-15 Thread Nicholas Johnson
is this a programming question? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to

[android-developers] Re: starting Activity with result calls onActivityResult from calling Activty

2011-05-13 Thread Nicholas Johnson
Are your activities run in singleTask launch mode? 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] Re: starting Activity with result calls onActivityResult from calling Activty

2011-05-13 Thread Nicholas Johnson
Also, what type of activities are you launching? That is, are you opening a web browser, or are these activities that you implemented? And, what result code is returned in onActivityResult? Is it RESULT_CANCELED? Nick -- You received this message because you are subscribed to the Google

[android-developers] Re: starting Activity with result calls onActivityResult from calling Activty

2011-05-13 Thread Nicholas Johnson
startActivityForResult(intent); Stupid question here, but you're calling startActivityForResult(Intent, int), correct? What values are you using for your requestCodes? Are they = 0? Nick -- You received this message because you are subscribed to the Google Groups Android Developers

[android-developers] Re: Progress circle (NOT indeterminate!)

2011-05-13 Thread Nicholas Johnson
Use a determinate progress bar as documented herehttp://developer.android.com/reference/android/widget/ProgressBar.html . Or, if you're looking for a progress dialog (which has a progress bar in it), then use a progress dialog, as documented

[android-developers] Re: Progress circle (NOT indeterminate!)

2011-05-13 Thread Nicholas Johnson
But, if you're looking to make a wheel progress bar instead of a horizontal progress bar, then you'll have to make a custom view. It's actually not too hard, and can be easily done by extending the progress bar class, and handling the onDraw methods. My suggestion would be to first draw a

[android-developers] Re: Progress circle (NOT indeterminate!)

2011-05-13 Thread Nicholas Johnson
Are you set on a progress circle. If not, you should really consider using a ProgressBar. It not only does everything you're wanting to do, but it gives users a consistent experience from your app to every other app out there. Nick -- You received this message because you are subscribed to

Re: [android-developers] How to use Notification service from Broadcast receiver

2011-05-13 Thread Nicholas Johnson
What kind of notification service are you talking about? Status bar notification? Text only (i.e. Toast) notification? Here's some code for a status bar notificationhttp://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/app/StatusBarNotifications.html. I won't

[android-developers] Re: Progress circle (NOT indeterminate!)

2011-05-13 Thread Nicholas Johnson
Here's what you can do: Extend the AbsSeekBar classhttp://developer.android.com/reference/android/widget/AbsSeekBar.html, and implement the onDraw method to your liking. You can capture the height and width of your custom view by capturing those values in the onSizeChanged method. By drawing

[android-developers] Re: Twitter support

2011-05-12 Thread Nicholas Johnson
yes you should probably look at the dev.twitter.com website. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to

[android-developers] Re: Does App description matter in Android Market search listing

2011-05-12 Thread Nicholas Johnson
My question is : does google do anything about it? Or their algorithm just boost the app across all categories - which in my opinion is happening Yes, it is happening. Does google plan to address these kind of spam apps? I don't know. -- You received this message because you are

[android-developers] Re: Screen refreshing

2011-05-11 Thread Nicholas Johnson
If fact, I do want the UI to be locked while the proccess is working Are you sure you want the main thread blocked? This could cause the Application Not Responding error to pop up during your lengthy process. And users tend to get very confused when their phones become unresponsive. On

[android-developers] Re: Documentation for older Android SDK versions?

2011-04-30 Thread Nicholas Johnson
AFAIK, you can't, unless you saved the Android 2.2 SDK when you downloaded it (you might also find someone on the net who has it). However, of all my apps that I have, 3 are developed for Android 1.6 and one is developed for Android 1.5. I don't have too much of a problem reading the SDK. I

[android-developers] Re: problem with asyntask

2011-04-28 Thread Nicholas Johnson
I'm having trouble understanding your problem. From your post, you have 2 AsyncTasks. Launching task B depends upon the result of task A. So, the tasks will run sequentially by design. Is there a specific error that this scenario is generating an error for you? That is, are you having a

Re: [android-developers] Re: how to access desktop files from android app remotely?

2011-04-20 Thread Nicholas Johnson
I provided the reference links above. RFC 959 describes the protocol required to interface between an FTP server/client. Here is another link that I think you might find useful: http://developer.android.com/guide/basics/what-is-android.html It deals with how to implement apps in Android using

[android-developers] Re: ANDROID GAME

2011-04-20 Thread Nicholas Johnson
The Android team has put together many helpful tutorials with all the code required to build a game. Check out the code for Lunar Landerhttp://developer.android.com/resources/samples/LunarLander/index.html. It sounds like you're only trying to build a very simple game, so this should help you

[android-developers] Re: how to access desktop files from android app remotely?

2011-04-19 Thread Nicholas Johnson
so what is the basic need to do it. like i have to make a ftp server at desktop side? Yes, an FTP server on your desktop would do the job. is there any library that support ftp through android? Do a google search on java ftp

[android-developers] Re: File transfer application

2011-04-15 Thread Nicholas Johnson
Create and use a FTP client on your phone, and run a FTP server 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

[android-developers] Re: Android Apps, move apps into phone's memory, or switch them into external memory.

2011-04-15 Thread Nicholas Johnson
For heaven's sake: the functionality has to be implemented by the app programmer. Thread over. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from

[android-developers] Re: How to change Application theme

2011-04-15 Thread Nicholas Johnson
Set your theme at run time in the onCreate() method using setTheme(int). Check it out herehttp://developer.android.com/reference/android/view/ContextThemeWrapper.html#setTheme(int) . I do this with my app, and it works very well. My onCreate() method looks something like this: public

[android-developers] Re: how to prevent the app be killed by “unmount media”(change to usb storage mode)

2011-04-11 Thread Nicholas Johnson
No, the app is immediately killed. AFAIK, the only way to prevent this is to store the app on internal memory instead of the SD card. Nick -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

Re: [android-developers] Re: How do i upload the file from android mobile to public server

2011-04-11 Thread Nicholas Johnson
I don't think that the FTP ports are inherently disabled, so there's no need to try and enable it. I built a quick FTP client server for my phone and it works fine. Nick -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this

[android-developers] Re: LVL Retry Count

2011-04-10 Thread Nicholas Johnson
I use the default implementation of the Server Managed Policy (read about it herehttp://developer.android.com/guide/publishing/licensing.html#ServerManagedPolicy) for a paid version of my app, and haven't had any problems of note. I haven't had any complaints about false-negatives, or the like

[android-developers] Re: LVL does not work while testing

2011-04-10 Thread Nicholas Johnson
Ted, Besides doing what jtoolsdev already said, make sure that you're associating your Google account with your phone (Settings-Account-Add Account). If you're using your own phone to test it out, then I assume that you're Gmail account is already associated with your phone. Also, the LVL

[android-developers] Re: Connecting Andrid Application to Sql Server Database

2011-04-10 Thread Nicholas Johnson
The best way I've found to connect your local (app) database to your server database is to exchange information through JSON strings. Post a query through an HTTP POST method to your website, decode the information, process the SQL query on the server (I use PHP), then build and send a JSON

[android-developers] Re: 3d engine advices

2011-04-10 Thread Nicholas Johnson
Are you trying to port a 3D desktop game to Android, or just create something new? If you're already familiar with using OpenGL on the desktop, it's actually not that big of a transition to OpenGL ES 1.x or 2.0. The API is reduced to its basics, but still offers almost everything you need.

Re: [android-developers] Re: How do i upload the file from android mobile to public server

2011-04-08 Thread Nicholas Johnson
It seems like your error is occurring at line 203 in the FtpURLConnection class. Find out what's at the line, and you'll be closer to solving your problem. W/System.err( 1281): at org.apache.harmony.luni.internal.net.www.protocol.ftp.FtpURLConnection.connect(FtpURLConnection.java:203) --

[android-developers] Re: Creating 9-patch Images on Device

2011-04-03 Thread Nicholas Johnson
It shouldn't be too difficult. If you have a byte stream of the bitmap, then just set the pixels on the first/last row/col to black where you want to stretch the image and set the other pixels to zero. Then you could remain the image *.9.png and then load it as a normal 9 patch drawable

[android-developers] Re: Creating 9-patch Images on Device

2011-04-03 Thread Nicholas Johnson
Ah, ok, I hadn't read that at all. By the way, what are you doing with the image that you need to make it a 9 patch? Perhaps you can use a matrix to scale it however you need before displaying it? Nick -- You received this message because you are subscribed to the Google Groups Android

[android-developers] Re: Android sqlite and multithreading

2011-03-31 Thread Nicholas Johnson
If you plan on using threads to access a database, then I believe there is no other way to alleviate the exceptions being thrown *except* with some sort of synchronization like you have. I do the same sort of things with my databases and use semaphores to ensure exclusivity of my database. As

[android-developers] Re: totally 2d

2011-03-27 Thread Nicholas Johnson
Bob, I recently released a game (actually just this week, called Prism or Prism Light by Shadowpuppets), which doesn't use OpenGL at all. I just draw onto the canvas from my overrided onDraw method, and then invalidate only the part of the view which contains animation. I have determined that

[android-developers] Re: Regarding screen resolution

2011-03-27 Thread Nicholas Johnson
Different screen resolutions started to get support in API Level 4 (1.6). So, I recommend using API Level 4 and then reading the documention on the Android Dev sitehttp://developer.android.com/guide/practices/screens_support.html. It's really good. Nick -- You received this message because

Re: Fwd: [android-developers] Re: Regarding screen resolution

2011-03-27 Thread Nicholas Johnson
Please read the link I posted in my original comment. It'll tell you where to go from there. 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

[android-developers] Re: How do i upload the file from android mobile to public server

2011-03-25 Thread Nicholas Johnson
I believe the first error that is causing your program to crash is located here: 03-25 10:33:36.980: ERROR/AndroidRuntime(301): java.lang.NullPointerException 03-25 10:33:36.980: ERROR/AndroidRuntime(301): at com.example.uplaod.MyUpload$1.upload(MyUpload.java:146) Check out line 146 in

[android-developers] Re: How do i upload the file from android mobile to public server

2011-03-24 Thread Nicholas Johnson
There are several FTP apps that can do just that. Astro file manager can create SFTP connections to upload files, or AndFTP... (there's a whole bunch if you search for FTP on the Android Market). If you're talking about uploading a file to a public server from an app you're developing, then

[android-developers] Re: Why can't draw a picture on canvas

2011-03-22 Thread Nicholas Johnson
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

[android-developers] Re: android licensing: when do we need generate new key pair

2011-03-22 Thread Nicholas Johnson
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

Re: [android-developers] Any Android Test Prep application open source

2011-03-22 Thread Nicholas Johnson
This is not open source, but it's free: Pop Quizhttp://androidshadowpuppets.com/PopQuiz Unlike other apps that only allow you to make flash cards, Pop Quiz allows you to make multiple choice questions *and* flash cards. You can upload, download, and share the question banks from its website.

[android-developers] Re: Prism - Please help test my puzzle game! (Release Candidate)

2011-03-17 Thread Nicholas Johnson
Thanks to all those who have tested my puzzle game! I've heard about no errors so far and so far a smooth 60fps for everybody, so I assume that this release candidate is just about ready for launch. I'll keep my app in beta for another couple days (please feel free to test it out!), but

[android-developers] Re: How to create a view?

2011-03-17 Thread Nicholas Johnson
Just extend the RadioButton class. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to

Re: [android-developers] mySQL android php

2011-03-16 Thread Nicholas Johnson
I have several apps which talk to mysql databases that I have on my websites. For me, I use a http post and json to talk between the two. For example, say I want a user to be able to insert some arbitrary data into a database (assuming he's already set up a username and password on my

[android-developers] Re: How to install market app in emulator?

2011-03-16 Thread Nicholas Johnson
As far as I know, I don't think it's possible. However, Google APIs 8 and above include some Market functionality for using License Verification, etc. Why do u you the market app in the emulator? -- You received this message because you are subscribed to the Google Groups Android Developers

Re: [android-developers] Re: rotating a bitmap

2011-03-16 Thread Nicholas Johnson
Marcin, I don't think that will work for him, since he's trying to keep the precision of the number (i.e. he needs whatever fractional part of the division). Nick -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group,

Re: [android-developers] Walking Sprite....

2011-03-16 Thread Nicholas Johnson
You're asking quite a lot in one question (kind of like asking, How do I create a first person shooter)... My advice to you would be to read the sample code provided by Google. Once you're comfortable with that program, then you can probably ask more specific questions here that we might help

[android-developers] Re: rotating a bitmap

2011-03-15 Thread Nicholas Johnson
A couple things: This might help your pivot point that you have: instead of converting to float after the division, try doing it before the division. Like this: ((float)mBitmap.getHeight())/2f -- I believe you are losing some accuracy by doing it the other way around. As in (float)(7/2)

[android-developers] Prism - Please help test my puzzle game! (Release Candidate)

2011-03-15 Thread Nicholas Johnson
Hello all, I'm about a week or so away from releasing my first video game on the Android Market. It's a puzzle game with 100 levels of brain busting goodness, and I'm very excited about it. However, I only have my original Moto Droid to test the app -- and I don't really trust the emulators to

[android-developers] Re: SQLite Transactions

2011-03-15 Thread Nicholas Johnson
As far as I know execution is blocked on SQLite calls in Android (i.e. they are not done asynchronously). 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