[android-developers] Does a android phone/emulator always ship with X509Certificates

2012-03-28 Thread MCON Dev
Hello, I am trying to build a authentication system that will run with my android phones. I ran into a wonderful blog http://nelenkov.blogspot.in/2011/12/using-custom-certificate-trust-store-on.html explaining how to use the Android X509Certificate. I wrote the following in a extends

[android-developers] Copying a file from assets or raw to /system/bin folder (rsync)

2011-09-16 Thread MCON Dev
Hi, If I use the code below, I get java.io.FileNotFoundException : /system/bin/rsync (Read-Only File system). I have one more question following this for the Samsung Tablet. The emulator has a /dev/block/mtdblock0 file. But the samsung tablet does not. It instead has a mmcblk0. I need to know how

[android-developers] Re: Copying a file from assets or raw to /system/bin folder (rsync)

2011-09-16 Thread MCON Dev
I get the exception at OutputStream out = new FileOutputStream(dst); On Fri, Sep 16, 2011 at 2:32 PM, MCON Dev mcon...@gmail.com wrote: Hi, If I use the code below, I get java.io.FileNotFoundException : /system/bin/rsync (Read-Only File system). I have one more question following

[android-developers] Re: Copying a file from assets or raw to /system/bin folder (rsync)

2011-09-16 Thread MCON Dev
/application /manifest On Fri, Sep 16, 2011 at 2:34 PM, MCON Dev mcon...@gmail.com wrote: I get the exception at OutputStream out = new FileOutputStream(dst); On Fri, Sep 16, 2011 at 2:32 PM, MCON Dev mcon...@gmail.com wrote: Hi, If I use the code below, I get

[android-developers] WebView takes up entire screen, I need it to fit in the remaining space of the layout.

2011-09-13 Thread MCON Dev
Hello All, I am trying to use Webview in a relative layout with a progress bar and some buttons. But as soon as I run webview.loadUrl(my path), the webview takes over the entire space. I need the webview to fit in the remaining space of my layout. Please help. code ?xml version=1.0

[android-developers] Samsung Galaxy wont let me cd or ls in the data directory

2011-07-05 Thread MCON Dev
Hello, I am running ubuntu 11, and have connected samsung galaxy to my usb port. I ran ddms, shell and sqlite3. When I cd or ls in the data directory it reports permission denied. Please help. Conny -- You received this message because you are subscribed to the Google Groups Android Developers

[android-developers] Fwd: Setting Ringtones issue on Samsung Galaxy (works on nexus, htc, xperia and lg)

2011-07-04 Thread MCON Dev
-- Forwarded message -- From: MCON Dev mcon...@gmail.com Date: Thu, Jun 30, 2011 at 11:38 AM Subject: Re: Setting Ringtones To: Kyung-Su Kim ks...@sta.samsung.com Cc: Madan Ankapura manka...@sta.samsung.com Kyungsu kim/Madan, If you notice carefully the code for RingtoneManager

[android-developers] In App billing, just 3 lines and integrate your app

2011-06-25 Thread MCON Dev
I hope google makes it a bit easier to integrate in app billing in the future. It took me sometime to get this working. And with this blog I hope to make it easier for folks out there. Conny -- You received this message because you are subscribed to the Google Groups Android Developers group.

[android-developers] Blog on creating the android test project for zxing 1.7

2011-06-24 Thread MCON Dev
zXing guys have done a good job with zxing 1.7. Creating a zxing project for android was not painful at all. Thanks. A quick blog on it for people who need help anyway. http://mcondev.wordpress.com/2011/06/24/zxing-1-7-for-android-on-eclipse/ Conny -- You received this message because you are

[android-developers] In App Billing - REQUEST_ITEM_UNAVAILABLE

2011-06-18 Thread MCON Dev
I think I have things setup correctly, but I keep getting REQUEST_ITEM_UNAVAILABLE. DDMS reports the following 06-18 21:09:27.714: DEBUG/iDHaysbert(5449): ItemName : Hello(a) SettingRingToneUri : android.resource://com.haysbertv2/raw/hello3timescomeonpickupthephone2.mp3 PurchaseUri :

[android-developers] Setting Ringtones

2011-06-09 Thread MCON Dev
ContentValues values = new ContentValues(); values.put(MediaStore.MediaColumns.DATA, resourcePath); values.put(MediaStore.MediaColumns.TITLE, (String) ((Button) v).getText()); values.put(MediaStore.MediaColumns.MIME_TYPE, audio/mp3);

[android-developers] Android Manifest Build Details in version string

2011-06-05 Thread MCON Dev
Hello, I am wondering if there is a way to get a automated customized build version name when I build a android application on eclipse. I need the build to be like majorversion:minorversion DDMMHHMM I need a way to read the system date, time. Format it as DDMMHHMM Conny -- You

[android-developers] Android and Junit reports Test run failed: No test results

2010-07-16 Thread MCON Dev
Please help, I am unable to integrate Junit with Android. I am using Junit 3, I have also tried Junit4. * package* com.android.test; * import* com.android.MyActivity; * import* android.app.Activity; * import* android.test.ActivityInstrumentationTestCase2; * public* *class* TestMyView

[android-developers] How to programmatically use include on xml

2010-07-11 Thread MCON Dev
So I read the xml tricks 2 from developer.android.com, and it worked for me. But I need to programmatically include 1 xml into another. addview returns 07-12 01:01:18.429: ERROR/AndroidRuntime(267): java.lang.IllegalStateException: The specified child already has a parent. You must call

[android-developers] Building android source for the first time on new machine java version error,

2010-02-26 Thread MCON Dev
Issue 1 : Error : Your version is: java version 1.6.0_0. The correct version is: 1.5. Should I downgrade java ? Issue 2 : I was unable to process gpg --import for some reason it hung for a very long time, or never prompted me for the key. I then pasted the key to a file key.asc and ran gpg

[android-developers] ArrayAdapter use or misuse of the Adapter pattern

2010-02-12 Thread MCON Dev
I am about to give a class on Android, I am wondering if the ArrayAdapter is correctly used in the context of design patterns. Should it be ArrayStrategy instead ? Please share your thoughts Siddharth -- You received this message because you are subscribed to the Google Groups Android

[android-developers] TableLayout will not draw new row addition

2010-01-17 Thread MCON Dev
I have TableLayout defined in the main.xml. Simple, 1 header row and 1 data row. TableLayout android:id=@+id/*reportsTable* android:layout_width=fill_parent android:layout_height=wrap_content TableRow TextView

Re: [android-developers] Re: no package identifier when getting value for resource

2010-01-09 Thread MCON Dev
Did anyone get a fix for this issue ? Im using eclipse and android sdk r2. My scenario is res/raw/abc.xml. I have the following code Resources res = Resources.*getSystem*() ; FileDescriptor *fd* = res.openRawResourceFd (R.layout. *main*).getFileDescriptor(); Or InputStream in =

[android-developers] Re: Emulator taking More time to open main page

2009-07-24 Thread MCON Dev
I use Fedora and its fast. Vista its really slow (20 mins, to launch). On Fri, Jul 24, 2009 at 1:06 PM, android.vinny vinny.s...@gmail.com wrote: HI My emulator is taking more time to open main page what may be the Problem Can any body give some suggestions for this .. thanks a

[android-developers] Re: getDeviceId returns null

2009-07-16 Thread MCON Dev
on the actual product ? Siddharth On Wed, Jul 15, 2009 at 6:51 PM, Mark Murphy mmur...@commonsware.comwrote: MCON Dev wrote: Would it be a bad idea to expect the android guys to provide a valid deviceid, simcard number and phone number with their emulator. They may not be allowed to, depending

[android-developers] Re: getDeviceId returns null

2009-07-16 Thread MCON Dev
What would a android phone cost me. Is there a place I should look for 2nd hand ones :). On Thu, Jul 16, 2009 at 3:55 PM, Mark Murphy mmur...@commonsware.comwrote: MCON Dev wrote: Mark, Good ideas.. I went by your suggestion to move ahead. But this is a potential risk (small one I guess

[android-developers] Re: getDeviceId returns null

2009-07-15 Thread MCON Dev
on the emulator in which case getting null is normal. Al. --- http://andappstore.com/ On Jul 14, 6:22 pm, MCON Dev mcon...@gmail.com wrote: Hi, I am running this piece of code myDevice = Globals.getInstance().getDevice(); this.deviceID = myDevice.getDeviceId() ; with the below

[android-developers] Re: getDeviceId returns null

2009-07-15 Thread MCON Dev
to run and test my product under stress. Any ideas here ? Siddharth On Wed, Jul 15, 2009 at 5:09 PM, Mark Murphy mmur...@commonsware.comwrote: MCON Dev wrote: My entire development is based on getting the device id and other details. Without that my product will not be complete. Is there a way

[android-developers] getDeviceId returns null

2009-07-14 Thread MCON Dev
Hi, I am running this piece of code myDevice = Globals.getInstance().getDevice(); this.deviceID = myDevice.getDeviceId() ; with the below xml ?xml version=1.0 encoding=utf-8? manifest xmlns:android=http://schemas.android.com/apk/res/android; package=com.org.mcruiseon.client

[android-developers] Re: Getting ESN number of a Phone

2009-07-14 Thread MCON Dev
Yusuf, Wont the following work ? globals.setDevice((TelephonyManager)getSystemService(Context.TELEPHONY_SERVICE)); Globals { public void setDevice(TelephonyManager myDevice){this.myDevice = myDevice ;} public initialize(){ myDevice = Globals.getInstance().getDevice(); this.deviceID =

[android-developers] Android application trying out rss feed read using Rome. Getting exception ExceptionInInitializerError

2009-07-12 Thread MCON Dev
Hello All, I am trying to write some test code to receive RSS feeds. I am using the ROME api's. But I am getting a exception when executing the following line of code SyndFeed feed = new SyndFeedInput().build(reader); I googled this exception and found the following. I dont know if thats helpful

[android-developers] Fwd: Android app hangs, debug mode does not help, just hangs

2009-07-06 Thread MCON Dev
Forwarding to and-dev too. -- Forwarded message -- From: MCON Dev mcon...@gmail.com Date: Fri, Jul 3, 2009 at 7:38 PM Subject: Re: Android app hangs, debug mode does not help, just hangs To: android-beginn...@googlegroups.com I had associated the wrong application on the device

[android-developers] Porting Android code to Symbian

2009-07-06 Thread MCON Dev
I find it a interesting proposition to port applications from Android to Symbian and improve a mobile app's popularity and usage. I am sure that I will find multiple results using a google search on this topic. But any recommendations from where I should start ? Sid 4m mConDev