Android :: Way To Use Api On Phone Without Dragging 2mb Of Jars?
Sep 19, 2010
Long story short: I'm trying to post comments and create issues onto Google Code via an Android App called Abugadro.
I followed a very similar piece of code here:
http://stackoverflow.com/questions/3254330/google-spreadsheet-api-update-edit-with-protocol
When trying to post a comment onto the API, I've gotten various errors like 403 and 501 depending on the headers I use. Anyway, Code talks, so here's my piece:
HttpPost postRequest = new HttpPost("http://code.google.com/feeds/issues/p/"+projName+"/issues/"+issueId+"/comments/full");
postRequest.addHeader("Content-Type","application/atom+xml;charset=UTF-8");
postRequest.setHeader("Authorization", "GoogleLogin auth=" + auth);
postRequest.addHeader("User-Agent", "abugadro-v"+getResources().getString(R.string.version));
postRequest.addHeader("Accept-Encoding","gzip");
postRequest.addHeader("GData-Version", "1.0");
//postRequest.addHeader("If-Match", "*");//Not entirely sure if I should use this or not HttpEntity se = new StringEntity(xml,"UTF-8"); //Contains the comment info postRequest.setEntity(se);
The IssueTrackerAPI is very vague on what sort of headers I should be using to post correctly.
http://code.google.com/p/support/wiki/IssueTrackerAPI#Modifying_an_issue_or_creating_issue_comments
P.S. I know there's a gdata-java-client but there's no sane way to use that api on android without dragging ~2mb of jars.
I really appreciate your help, this issue has been driving me insane beyond comprehension.
View 1 Replies
Dec 11, 2009
I displayed set of images inside the Gallery. By default it has scrolling.But I don't want this way of scrolling. So I implemented OnTouchListener it has only OnTouch() method.Now I want to implement the same left and right scrolling(Left and right dragging) in my own.How to do this? If you have any idea plz share it.
View 2 Replies
View Related
Jul 21, 2010
I want display pie chart in android. Is there is any chart API or JARs available.
View 7 Replies
View Related
Feb 5, 2009
I want to get drag event(s) when user holds finger on screen and drags it in any direction. The event need to repeatedly provide new touch position until finger is released in the form of callbacks. This is not related to dragging objects.I could see this drag feature working on home screen of the phone to move the home screen left and right. But couldn't figure out how it works. Please provide information on which class and methods to be referred for this.
View 2 Replies
View Related
Aug 12, 2010
The default gallery widget only provides events for when items are clicked, but is there any way to tell what item is selected when only dragging the gallery around?
View 1 Replies
View Related
Apr 1, 2010
Is it possible to have an AndroidManifest.xml and or resource files in a Jar file and import that into a executable Android project?
My goal is to provide styles, resources, and services from a jar library that can be accessed from a main android project for my common tools.
View 2 Replies
View Related
Apr 9, 2010
I'm using an ant build file that has been generated by android. Our Android application requires a JAR file that lives inside the lib folder of our project, so I need to adjust the classpath that ant is using when it builds stuff.
When I run:
ant -lib lib debug
the project builds just fine, but this should really be inside the build file itself. The build file that android generates references the android_rules.xml so a lot of this stuff is automated. I guess my question, what the best practice here when working with the Android build rules ?
View 1 Replies
View Related
Oct 27, 2010
I'm trying to run unit tests on my Android app and I'm getting a NoClassDefFoundError when referencing 3rd party jars.
The classes in those jars are only referenced by the app itself, not the unit tests. The jars are on the apps classpath and have been exported in the eclipse settings to allow tyhem to be found by dependant apps - which, of course, the test app is.
View 1 Replies
View Related
Aug 22, 2010
I am using Zend Studio 7.2 as my main IDE. I develop android apps. I wanted to work with html parsers, however adding external jars I get always the same problem Converting to dalvik format failed and eclipse needs a lot of time to build workspace.
any ideas?
View 1 Replies
View Related
Feb 28, 2012
I am working on a project that require porting a program from Linux to Android; I have been successful to make work the required equinox3.6(modified) on Android and to make call the osgi by the application itself, BUT through the adb shell, running a script that launches the files in the .jar. At this point I should create an activity.apk that includes everything and makes it work the same way.
More in details, until now I have uploaded some archives.jar (containing the classes.dex) in the emulator: two jars for the program itself, a jar for equinox, other jars for support.Then there is the script.sh that launches the main.class of my program passing it some parameters necessary to the program and to equinox to start; the main.class launches the equinox framework and then the program can load bundles and do its job.To make it clear here is the starting script:
#/bin/sh
/system/bin/dalvikvm -Xbootclasspath:/system/framework/core.jar -Xverify:none -Dosgi.debug=file:.options -Dosgi.framework=file: org.eclipse.osgi_3.6.0.v20100517.jar -Dosgi.install.area=file:/bundles/ -Dosgi.java.profile=file: dalvik_Core_Library-0.9.profile -Dosgi.parentClassloader=ext -Dnetserv.container.ctrlport=7001 -Dnetserv.container.serveripv4=127.0.0.1 -Djava.security.policy=all.policy -Dnetserv.security.bindableports=1024 -Dnetserv.container.user=jae -classpath org.eclipse.osgi_3.6.0.v20100517.jar:netservlaunch .jar NetServ.launch.Main -console -clean
I have been trying to create an activity that behaves similar to my script, but without any success.I added all my archives.jar to my project the way of "Add External jars" and tryed to launch the main.class as it was another activity, using Intent, and passed the parameters using putExtra(), but on the other side, in the jar of the program, I cannot retrieve and use the needed parameters, because it is not an apk..
View 1 Replies
View Related
Mar 16, 2010
When i drag a new rom onto my sd card should i remove the old one that is on there as im putting the new one on? example: i have smoked glass v5 and im upgrading to v6.
View 5 Replies
View Related
Sep 15, 2010
I've got a customer with the incredible who has all sorts of problems answering his phone when it is locked. Dragging the menu down seems to give him a lot of trouble and didn't know if anyone knew of a simple fix to that? My eris you simply press send....
View 2 Replies
View Related
Nov 22, 2010
I'd like to know if there's any way to edit the Text by 'dragging' the cursor to the letter you want, rather than switching to the Swype-Edit screen and using the arrows there? Something like what's present on the iPhone(magnifies the text as you drag your finger to move the cursor along).
View 5 Replies
View Related
Sep 30, 2010
how they are in itunes numerical order from song 1 on.. anyone know how to fix this? i've also tried other players like doubletwist and i also am syncing from itunes by dragging and dropping into mp3 folder on SD card
View 2 Replies
View Related
Dec 31, 2013
i'm looking for a way to make phonecalls with my computer+Logitech G230, through my android device (Jiayu G4 Advanced)
The Remotecall app in Playstore still requires me to pick up my phone in order to actually hear something..
its got all the other features i'd like to use: answer calls from my PC, make calls from pc (from , for example, the outlook contactlist), call Log capability; but i have to pick up my phone when i probably can just hear it through my headphone (connected to PC)
I think i should be looking for some sort of voip server on my phone and let my computer act as voip client, but i'm not entirely sure about that.
View 3 Replies
View Related
Apr 4, 2013
I have samsung android phone which can be used as wifi hotspot. My question is can I use my laptop internet on android phone by connection laptop to android phone hotspot as phone is unable to connect adhoc network.
View 1 Replies
View Related
Sep 8, 2010
I would like to make some phone calls that do NOT appear on my Verizon phone bill. I have a DINC and want to call a cell phone. Both ends are in the US. I don't mind paying a service such as Skype. Is there a way to make this happen?
View 11 Replies
View Related
Aug 23, 2010
Can I bypass the phone log page that appears after all phone calls? I'd much rather finish talking and be back at my home page without pressing the home key.
View 2 Replies
View Related
Jun 20, 2009
I have a question for those in the know. I am interested in purchasing an android-capable phone in the near future..I really like what it offers. My brother has a G1 (Mobile USA), which has piqued my interest in the Android platform. My question is: Is the app store synced with every kind of Android-capable phone, or just that specific phone? If I was to buy a HTC Magic, would it use the same app store as the G1? AFAIK, some other major platforms, such as Symbian do not sync, and it's 'every phone for itself', but I was thinking that Android was more synergic.
View 1 Replies
View Related
Sep 30, 2010
I want to write game for Android and I need to use inside AI phone slope in some way ( in degree or any other measure). Can anybody tell me how to do that(link or code sample) ?
View 1 Replies
View Related
Jun 28, 2012
im new to android programming ...here is my problem:
i need to create an android app(for user) that have a login function to login to computer to retrieve some data (eg get data from a excel file) by using WIFI. How do i do that?
e.g Login: newbi123
----After login-----
i will get the data on my login id(newbi123) from the computer to my android app and display:
e.g
Name: newbi123
Gender: F
Age: 20
etc...
View 1 Replies
View Related
Oct 1, 2010
When I use the following code in Android 1.6 it displaying both phone numbers and contacts but when I use Android 2.2 it does not display phone numbers, it only displays names. String columns[] = new String[] { People.NAME, People.NUMBER, People._ID };
int tocols[] = new int[] {android.R.id.text1, android.R.id.text2};
Cursor c = managedQuery(People.CONTENT_URI, columns, null, null, null);
SimpleCursorAdapter sca = new SimpleCursorAdapter(this,
android.R.layout.simple_list_item_2, c, columns, tocols);
setListAdapter(sca);
View 1 Replies
View Related
Aug 11, 2010
I have my HTC Desire and the Facebook application is the worst thing it should happen. It sync all my friends phone numbers and mixes with all my other phone numbers. Can some one in clear state of mind ask Android/Facebook to give us the option to select what friends we want in our phone list? I like the Facebook app but deleted it once it messes my phone!
View 1 Replies
View Related
Oct 6, 2010
I know this is usually done the other way round. My uni halls doesn't have wifi, instead it has an ethernet cable for every room. The problem with this is I'm using up my 3g internet on my phone a lot more and i'd like to do things like update my apps and check twitter more but i'm scared i'll run out. By plugging my phone into my laptop, is there a way to borrow the internet from my laptop for my phone?
View 5 Replies
View Related
Jan 27, 2010
After thinking I lost my phone yesterday, I decided I outta install one of these apps on my Eris. I've come across WaveSecure, Mobile Defense, and MobiWee (although this last one doesn't seem to be geared towards security really). Which one have y'all found is the best? What do you prefer?
View 8 Replies
View Related
Sep 28, 2012
i just want to try windows phone OS and for that i dont care if i have to drop my android os. Is there any way of installing windows phone OS on my android? I am using a SE live with walkman
View 5 Replies
View Related
Oct 22, 2010
Q1) I want to use my phone as modem and run internet on the phone on PC. Please suggest me a software that could help me connect my Pc to my phone internet as there is no official PC Suite/ Sync Application provided by LG for my phone?
Q2) My phone supports Divx/Xvid , Can i run .avi and all other video formats which came under divx/xvid category or some particular? Please suggest the best video format which i shud use to get best sound and vidoe quality.
View 7 Replies
View Related
Jun 15, 2010
I made a very simple application to start playing around with Android development. It works fine on the emulator, but it gives me the following error when I try to install it on my HTC Hero (v1.5): The application Simple Dial (process com.foo.simpledial) has stopped unexpectedly. Please try again. (Force Close button) and on in the Eclipse console, I get the following message:
[2010-06-14 23:10:52 - Simple Dial] Uploading Simple Dial.apk onto device 'HT9BSHF00222'
[2010-06-14 23:10:53 - Simple Dial] Installing Simple Dial.apk...
[2010-06-14 23:10:56 - Simple Dial] Success!
[2010-06-14 23:10:56 - Simple Dial] Starting activity com.alanvaghti.simpledial.DialActivity on device
[2010-06-14 23:10:57 - Simple Dial] ActivityManager: Can't dispatch DDM chunk 46454154: no handler defined
2010-06-14 23:10:57 - Simple Dial] ActivityManager: Can't dispatch DDM chunk 4d505251: no handler defined
[2010-06-14 23:10:57 - Simple Dial] ActivityManager: Starting: Intent { action=android.intent.action.MAIN categories={android.intent.category.LAUNCHER} comp={com.alanvaghti.simpledial/com.alanvaghti.simpledial.DialActivity} }
I did put 'android:debuggable="true"' inside the application tag on the manifest.xml
View 1 Replies
View Related
Jul 29, 2009
I was wondering if there is an SMS activity log somewhere on the Hero / Android phone?
I could do with the telephone number of a text message I received but deleted without thinking!
If I could find a log then I could get the number? I'm not interested in the text itself, just the number from which it came.
View 4 Replies
View Related
May 11, 2010
How to mount Android Phone's sdcard to be both visible on PC and Phone?
View 4 Replies
View Related