[android-developers] Making money through advertising in an Android Application

2010-04-01 Thread jax
Does anyone know if there is any money to be made in Android Advertising inside an app? 1. Is anyone making any money? 2. If so how much and what is your average downloads per day from the Market? 3. Is AppMobile the best choice? Thanks -- You received this message because you are subscribed

[android-developers] Re: TimerTask Thread problems

2010-01-12 Thread jax
I actually resolved this issue. I was nothing to do with the TimerTask! On Jan 11, 11:43 pm, jax wrote: > I am having TimerTask Thread problems.  Basically I am running a > TimerTask to update a clock timer I have created.  When the user gets > an answer correct a small animation

[android-developers] TimerTask Thread problems

2010-01-11 Thread jax
I am having TimerTask Thread problems. Basically I am running a TimerTask to update a clock timer I have created. When the user gets an answer correct a small animation will play and the screen will be idle for about 5 seconds, then it will resume with the next question. The problem is that when

[android-developers] Re: How to get the version information

2010-01-10 Thread jax
Solved it: use PackageInfo pinfo = getPackageManager().getPackageInfo (this.getPackageName(), 0); String versionName = pinfo.versionName; On Jan 10, 5:14 pm, jax wrote: > How to I get the version name from the Manifest, I tried the following > but I get a Null Pointer Exc

[android-developers] How to get the version information

2010-01-10 Thread jax
How to I get the version name from the Manifest, I tried the following but I get a Null Pointer Exception. //Set the version PackageInfo info = new PackageInfo(); TextView versionTextView = (TextView) findViewById(R.id.version); ver

[android-developers] Re: Resetting a HTTP InputStream...is this possible?

2010-01-09 Thread jax
What I mean is that I just want to start reading from the start of the Stream again, not request the whole http page again. so basically - read a little of the stream and do some tests I have created then send the stream to another function where I need the entire stream from the beginning On

[android-developers] Resetting a HTTP InputStream...is this possible?

2010-01-09 Thread jax
I am getting the input of a webpage using InputStream in = httpConnection.getInputStream(); I then use the XmlPullParser to check if an error has occurred. If no error has occurred, I then want to reset the InputStream back to the beginning so that I can parse it through another function I have

[android-developers] Soft keyboard allows input when field is disabled

2009-12-21 Thread jax
I have disabled a text field but the soft keyboard still allows me to enter text. how do I stop this? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe f

[android-developers] Base64.decodeBase64

2009-12-21 Thread jax
I need to use Base64.decodeBase64 in my application, I had to download and include it myself into my project from apache commons. Why is this not included in the default Android base system? Are there some weird licensing issues with this function or is it hidden somewhere else under a different

[android-developers] Restarting an application programatically

2009-12-21 Thread jax
I need to restart my application in response to a particular event. How do I do this? I need to do a full restart, ie. kill the process and start it again. thanks -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, sen

[android-developers] Re: Getting hold of PreferenceActivity Views from the xml file

2009-12-13 Thread jax
Yes that worked I used: timeLimitPreference = getPreferenceScreen().findPreference ("time_limit"); to get hold of the preference and then: timeLimitPreference.setOnPreferenceChangeListener to to validate the preference returning false if it was no successful and thus canceling the change. che

[android-developers] Getting hold of PreferenceActivity Views from the xml file

2009-12-13 Thread jax
I have an XML file called user_preferences that contains my preferences for my application. How do I get hold of the different preference Views so that I can validate them? Currently I have the code below which is not working because getSharedPreferences does not return a View. @Overri

[android-developers] Re: Securing a paid app

2009-12-06 Thread jax
wave: > fred.gr...@googlewave.com | > gmail:fred.gr...@gmail.com > > On Nov 23, 9:23 am, David Given wrote: > > > -----BEGIN PGP SIGNED MESSAGE- > > Hash: SHA1 > > > jax wrote: > > > [...] > > > > How would I go about generating the hash co

[android-developers] Re: Failed to resolve class help (custom java library)

2009-12-05 Thread jax
download a .jar or something and ship it with my app? On Dec 6, 10:42 am, jax wrote: > I may have has some progress. > > From the online documentation I cannot see the class > java.beans.ExceptionListener > > In the code ExceptionListener is called: > > listener

[android-developers] Re: Failed to resolve class help (custom java library)

2009-12-05 Thread jax
ot;Error: throwing UndeclaredThrowableException"); throw new UndeclaredThrowableException(e); } }; Is there some sort of Android equivalent I could use? On Dec 6, 9:35 am, jax wrote: > I am using a program I downloaded called TrueLicense.  So far I have > got

[android-developers] Re: KeyStore JKS implementation not found

2009-12-05 Thread jax
I found out how: bouncycastle.org On Dec 5, 8:18 pm, jax wrote: > I have discovered that JKS is not supported by android. > > How do I create a BKS keystore? > > On Dec 5, 5:55 pm, jax wrote: > > > I am trying to create certificates for users for my program > >

[android-developers] Failed to resolve class help (custom java library)

2009-12-05 Thread jax
I am using a program I downloaded called TrueLicense. So far I have got everything working. I am now trying to install a license file but am getting the following errors. Does anyone know what this means? 12-06 09:17:49.588: INFO/dalvikvm(2637): Failed resolving Lde/ schlichtherle/xml/Persiste

[android-developers] Re: Getting a File object from android

2009-12-05 Thread jax
OK thanks On Dec 6, 1:56 am, "Mark Murphy" wrote: > > I have a library that takes a File object as a parameter to one of the > > functions. > > > I am getting the file like this: > > > this.openFileOutput("myFile", MODE_PRIVATE) > > > I need to load this file from the system, however, I don't k

[android-developers] Getting a File object from android

2009-12-05 Thread jax
I have a library that takes a File object as a parameter to one of the functions. I am getting the file like this: this.openFileOutput("myFile", MODE_PRIVATE) I need to load this file from the system, however, I don't know how to convert FileOutputStream to File. Or is there another way of doin

[android-developers] Re: KeyStore JKS implementation not found

2009-12-05 Thread jax
I have discovered that JKS is not supported by android. How do I create a BKS keystore? On Dec 5, 5:55 pm, jax wrote: > I am trying to create certificates for users for my program > > I am have created a keystore and included the publickeystore.store > with my application i

[android-developers] KeyStore JKS implementation not found

2009-12-05 Thread jax
I am trying to create certificates for users for my program I am have created a keystore and included the publickeystore.store with my application in the assets folder. I created all the certificates using the keytool program from JAVA. When I try to authenticate the certificate I get the follow

[android-developers] Re: Using external source inside my program (Eliminating Swing components)

2009-12-05 Thread jax
Hi Mark Got it working. I actually copied the parts I wanted into my own personal project called myAndroidLibraries. It works a treat. However, this will obviously eliminate any updates made by the author, is this a good idea? I could have just deleted the Wizard package from the CSV project an

[android-developers] Re: Using external source inside my program (Eliminating Swing components)

2009-12-05 Thread jax
Hi Mark I just commented out the Swing import into the suspect class and the only package that is broken is de.schlichtherle.wizard. This is the exact package that I don't need. Should I just delete this package? On Dec 5, 5:06 pm, "Mark Murphy" wrote: > > Well the part of the project I need

[android-developers] Re: Using external source inside my program (Eliminating Swing components)

2009-12-05 Thread jax
Oh...actually I just saw a Swing reference. So this means that I will need to delete all swing references right. On Dec 5, 5:01 pm, jax wrote: > Hi > > Well the part of the project I need actually has no references to > Swing. > > The project looks like this > >

[android-developers] Re: Using external source inside my program (Eliminating Swing components)

2009-12-05 Thread jax
Hi Well the part of the project I need actually has no references to Swing. The project looks like this de.schlichtherle.license de.schlichtherle.ftp de.schlichtherle.wizard All the swing parts are in the wizard section. I don't want anything from this package at all so can simple remove it.

[android-developers] Using external source inside my program (Eliminating Swing components)

2009-12-05 Thread jax
Hi I am having a little trouble using some external source files. I am new to eclipse and the methods used to import external source files. Basically this is what I have done. Downloaded the source files for a java project called "TrueLicense" via CVS. Imported this library by going to "Project

[android-developers] Re: Securing a paid app

2009-11-23 Thread jax
> >         } > > >         String srvcName = Context.TELEPHONY_SERVICE; > >         TelephonyManager telephonyManager = > >           (TelephonyManager)getSystemService(srvcName); > > >         /* requires READ_PHONE_STATE permission */ > >         String deviceId = telephonyMan

[android-developers] Re: Securing a paid app

2009-11-23 Thread jax
it back to the phone.  You can then mark > the "Request for serial number code" as used so that they can not use > it for another device.  This is the method I use for my > applications. > > On Nov 14, 8:39 am,jax wrote: > > > Yes, that is why I have posted the ques

[android-developers] Encrypting in PHP and Decrypting in Android

2009-11-22 Thread jax
What would I use to: Encrypt a string in PHP and Decrypt that string from Android? What methods are supported by both and which is the most secure? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to androi

[android-developers] Returning gmail email from device

2009-11-22 Thread jax
1. Will/do all android phones use the gmail account sign-up system? Is this a permanent thing or will it change in the future? 2. How do you return the users gmail account that they use to sign up to android with. -- You received this message because you are subscribed to the Google Groups "And

[android-developers] Re: Saving Activity state when pressing "Home"

2009-11-20 Thread jax
Hi thanks that. The issue is that the "Bundle" object only gets passed to onCreate() and onSaveInstanceState() Do I have to get this manually somehow? On Nov 20, 2:15 am, "vendor.net" wrote: > How do you store that variable? > > On 19 Ноем, 17:18, jax wrote: >

[android-developers] Saving Activity state when pressing "Home"

2009-11-19 Thread jax
I need to store a variable that contains my application state "restoredClockTime" I do this in onSaveInstanceState and onRestoreInstanceState and it works when I flip the screen on the G1. The problem is when I press the Home button and then re-enter the activity it does not work. why is this?

[android-developers] Re: Setting the ID in a SimpleAdapter

2009-11-19 Thread jax
OK, I did it by extending SimpleAdapter. cheers On Nov 19, 6:59 pm, jax wrote: > What is the best way to do this? > > Extend the ListView...or the adapter? > > Or is there are more efficient way? > > On Nov 19, 3:07 am, jeffro wrote: > > > You need to implement

[android-developers] Re: Setting the ID in a SimpleAdapter

2009-11-19 Thread jax
What is the best way to do this? Extend the ListView...or the adapter? Or is there are more efficient way? On Nov 19, 3:07 am, jeffro wrote: > You need to implement the Adapter method to pass the id value you > want: > > public long getItemId(int index) {} > > On Nov 18, 7

[android-developers] Setting the ID in a SimpleAdapter

2009-11-18 Thread jax
How do you set the Id attribute for a SimpleAdapter so that when you run onItemClick(AdapterView parent, View view,int position, long id) I will be able to get the id? The data is coming from an XML file. -- You received this message because you are subscribed to the Google Groups "Android Dev

[android-developers] Adding hidden extra data to a ListView item

2009-11-17 Thread jax
I have downloaded and parsed an XML file. The file contained and "id" and "name". I want the "name" to be visible in a ListView but the id to be hidden. I am having trouble getting this working and have been experimenting with ArrayAdapters and SimpleAdapters. Below is what I have so far.

[android-developers] Re: Securing a paid app

2009-11-14 Thread jax
Yes, that is why I have posted the question because I don't know how to do it. Has anyone done this before or know of a method for achieving this? On Nov 14, 10:23 pm, Andrei wrote: > What u want to do is to tie your app to one device > How u do it up to u > > On Nov 14, 7:

[android-developers] Securing a paid app

2009-11-14 Thread jax
I am wondering how I might go about securing a paid app on Android. I am thinking of selling the application from my own website via PayPal, however, how will I stop people from sharing it with their friends etc. Does Android have any type of native support for this? -- You received this messag

[android-developers] Re: Subclass of ArrayAdapter not working

2009-11-04 Thread jax
53 pm, jax wrote: > Thanks, I will check it out > > On Nov 4, 9:19 pm, Mark Murphy wrote: > > > jax wrote: > > > Thanks it worked, I changed it to > > > >                 if(!item.contains("100%")) { > > >                    tv.setTextColor

[android-developers] Re: Subclass of ArrayAdapter not working

2009-11-04 Thread jax
Thanks, I will check it out On Nov 4, 9:19 pm, Mark Murphy wrote: > jax wrote: > > Thanks it worked, I changed it to > > >                 if(!item.contains("100%")) { > >                    tv.setTextColor(Color.RED); > >  

[android-developers] Re: Subclass of ArrayAdapter not working

2009-11-04 Thread jax
Do you know any sites that explain about recycling views? On Nov 4, 8:45 pm, Mark Murphy wrote: > jax wrote: > > I have subclassed ArrayAdapter to set the color of text to RED if the > > string does not contain 100%, this has been added to a ListView.  The > > problem is th

[android-developers] Subclass of ArrayAdapter not working

2009-11-04 Thread jax
I have subclassed ArrayAdapter to set the color of text to RED if the string does not contain 100%, this has been added to a ListView. The problem is that some of the rows show as red when they contain 100%. Why would this happen? /* * Subclass of ArrayAdapter to change the colo

[android-developers] Re: When I scroll a list I get the force close message

2009-11-01 Thread jax
Thanks, it worked On Nov 1, 7:58 pm, "Dexter's Brain" wrote: > I think. > > In your getView() method, don't cast it to ListView, remove that and I > guess, I will work. > > Dexter. > > http://tech-droid.blogspot.com -- You received this message because you are subscribed to the Google Groups

[android-developers] Re: Need an invitation to google Wave?

2009-11-01 Thread jax
yes thanks On Nov 1, 4:26 pm, li jiecong wrote: > Hi, please give me an invitation, thx! > > 2009/11/1 Auguste Lunang > > > Hi, > > i have some google wave. invits to share. tell me if u want .. > > thx > > > -- > > You received this message because you are subscribed to the Google > > Groups "A

[android-developers] Re: When I scroll a list I get the force close message

2009-11-01 Thread jax
} On Nov 1, 5:05 pm, jax wrote: > Here is the output from logcat as I scroll down > > 11-01 17:04:08.979: ERROR/StatsDisplay(1355): > android.widget.textv...@4381ade8 is not a valid ListView! > 11-01 17:04:08.999: DEBUG/AndroidRuntime(1355): Shutting down VM > 11-01 17:04:0

[android-developers] Re: When I scroll a list I get the force close message

2009-11-01 Thread jax
pet or the stack trace would help us figure out the > problem > > Dexter > > http://tech-droid.blogspot.com > > On Nov 1, 12:46 pm, jax wrote: > > > I have an ArrayList connected to a ListView with an onclick event that > > loads some extra info about each list it

[android-developers] When I scroll a list I get the force close message

2009-11-01 Thread jax
I have an ArrayList connected to a ListView with an onclick event that loads some extra info about each list item. When the list fits inside the screen (no scrolling) it works fine, however, when the list becomes long enought that I need to scroll I get the "Force Close" message. why is this? --

[android-developers] Locale and TTS problem

2009-10-31 Thread jax
I have set my emulator to use US English. When I run Locale.getDefault() There is no country code! The language code is set to "en_us" When I set a varaible "audioLocale" using audioLocale= Locale.US The country code is "US" The language code is "en" When I run mTts.isLanguageAvailable(audio

[android-developers] Re: Can two different activities that extend the same superclass have the same view ids?

2009-10-31 Thread jax
my mistake forgot to run super on the methods in the second game when overriding. On Oct 31, 2:15 pm, jax wrote: > I have a superclass called Game.  I have two subclasses of this class > Game1 and Game2 . > > Inside the superclass "Game" there is a Skip button.  This but

[android-developers] Can two different activities that extend the same superclass have the same view ids?

2009-10-31 Thread jax
I have a superclass called Game. I have two subclasses of this class Game1 and Game2 . Inside the superclass "Game" there is a Skip button. This button is in both Game1 and Game2 as they both use this button. Inside Game I have initialized it using mSkipButton = (Button)findViewById(R.id.skip_

[android-developers] Re: How to disable touch event on listView

2009-10-30 Thread jax
ur idea. > > Use access mutex, message to user, or threads. > > On 29 Paź, 15:52, jax wrote: > > > I have a ListView with a setOnItemClickListener.  I am trying to > > prevent the user from pressing an item repeatedly but can't seem to

[android-developers] How to disable touch event on listView

2009-10-29 Thread jax
I have a ListView with a setOnItemClickListener. I am trying to prevent the user from pressing an item repeatedly but can't seem to get it to work. I have tried the following. mAvailableOptionsListView.setClickable(false); mAvailab

[android-developers] Re: update a ListView with getView

2009-10-28 Thread jax
ok, I used invalidateViews() and it seemed to work. This will invalidate all views. Is it better to use a Rect in this case or does it not really matter? On Oct 28, 11:25 pm, jax wrote: > ok fixed that, I used this: > > mAvailableOptionsListView.getChildAt(correctPosition).set

[android-developers] Re: update a ListView with getView

2009-10-28 Thread jax
somehow? On Oct 28, 10:54 pm, jax wrote: > Hi > > I am trying to update a ListView with the following: > > TextView listItem= (TextView)mAvailableOptionsListView.getAdapter > ().getView(1, null, null); > > listItem.setText("test"); > > The p

[android-developers] update a ListView with getView

2009-10-28 Thread jax
Hi I am trying to update a ListView with the following: TextView listItem= (TextView)mAvailableOptionsListView.getAdapter ().getView(1, null, null); listItem.setText("test"); The problem is that it does not update in the mAvailableOptionsListView ListView. Why is that? --~--~-~--~---

[android-developers] Re: Instant Refresh on CursorAdapter attached to a ListView

2009-10-16 Thread jax
I finally fixed this problem I needed to run a requery() on the cursor cursor.requery(); myAdapter.notifyDataSetChanged(); On Oct 15, 10:05 am, jax wrote: > I have a CursorAdapter attached to a ListView, the ListView contains > checkboxes for every row. > > When I check/unchec

[android-developers] Re: Instant Refresh on CursorAdapter attached to a ListView

2009-10-16 Thread jax
no that did not work On Oct 15, 5:46 pm, "odd.isometry" wrote: > Maybe, it will be useful to override methods  onPause() & onResume() --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To pos

[android-developers] Instant Refresh on CursorAdapter attached to a ListView

2009-10-14 Thread jax
I have a CursorAdapter attached to a ListView, the ListView contains checkboxes for every row. When I check/uncheck a checkbox in a row it will update it to a 0 or 1 in the database (This is working fine) I also have another checkbox in the same Activity that when pressed will disable all the ch