android,phonegapRelated issues-Collection of common programming errors
rene
android
I have MainActivity (which extends Activity) and GameView (which extends SurfaceView).MainActivity has TextViews for score and for time left. GameView calculates score and time left, and updates the TextViews in MainActivity.This works wells, but the problem is when I re-start the game over and over. The more games are re-started, the slower they become and eventually the app force-closes.Below is what I see in logcat messages.08-21 10:01:59.826: E/MP-Decision(293): UP Nw:2.700000 Tw:180 rq:2.90
user3157940
android bluetooth android-ndk shared-libraries
I’m trying to build a shared library I can use to access native bluetooth API functions. I’m currently trying to compile a c file from: https://android.googlesource.com/platform/external/bluetooth/bluedroid/ Whenever I attempt to compile any of this code as a shared library I get numerous undefined reference errors.. it looks like to every function referenced by the header files. In my latest attempt, I copied the entire bluedroid/bta file to my eclipse project/jni folder. Using the include
virusss8
android android-emulator
My emulator is online, adb is seeing it, but emulator itself can’t get through the startup to homescreen. Startup routine stops when the title ANDROID is on the screen. I thought that the key to repaired emulator is update to the newest version of android sdk, but it wasn’t worked. It is still the same problem. Thanks12-31 15:47:32.269: I/DEBUG(30): debuggerd: Jun 30 2010 14:39:19 12-31 15:47:33.351: D/qemud(37): entering main loop 12-31 15:47:33.359: I/Netd(29): Netd 1.0 starting 12-31 15:47:33
Raghunandan
android
I am trying to start an activity from other one(MainAcitivty) but this is not working it stops immediately whenever i click the button.code for MainActivity.java:public class MainActivity extends Activity implements OnClickListener {EditText title,body;Button btn,getnotes;NotepadDb notepad;Cursor cursor;@Overrideprotected void onCreate(Bundle savedInstanceState) {super.onCreate(savedInstanceState);setContentView(R.layout.activity_main);title=(EditText)findViewById(R.id.title);body=(EditText)find
aSystemOverload
android
I’ve tried all the other posts on here and other places to solve this, but can’t get it working.I’m using the Eclipse IDE, it suggests there are no problems, but once it loads up the virtual device, and the application it force closes.On advice from another post, I’m just re-running the app with logCat loaded… Well attempting to, Eclipse freezes up sometimes with logCat loaded when I try to run the app. Also my Virtual Device seems to take a silly long time to boot into the GUI (when loading
Janusz Chudzynski
android
I am trying to parse a JSON using the JSONParser class presented below.Based on breakpoints it seems like it’s crashing on this line of code:HttpResponse httpResponse = httpClient.execute(httpPost);I don’t know how to proceed with it. I will appreciate any help.FRAGMENT public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {View view = inflater.inflate(R.layout.agenda, container, false);final ListView listview = (ListView)view.findViewById(R.id.listVie
Student
java android google-maps
I am working on a project that includes location detection using the GPS so I found this code that included a working .apk file but when I tried to compile it and run it, it always crashes. The application crashes when I try opening it in an emulator or on a Samsung S4 mobile. N.B. I’ve chosen the correct target which is API 17 and downloaded Google play services and included it in the library of the project.Here is the code if anyone can helpManifest file<?xml version=”1.0″ encoding=”utf-8″
user998953
android target
When I update my android app target form 2.2 to 4.2.2 and update the manifest.xml fileMy app can’t open anymore . there is some Native code error info in my logcat.here is the logs: I don’t know what happend06-25 19:41:09.229: I/DEBUG(4120): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** 06-25 19:41:09.229: I/DEBUG(4120): Build fingerprint: ‘SKY/SKY_IM-A760S/ef33s:4.0.4/IMM76D/S0211228.EF33S_004:user/release-keys’ 06-25 19:41:09.229: I/DEBUG(4120): pid: 13302, tid: 13341 >&g
Bananeweizen
android listview sqlitedatabase
In my application’s database I have 2 tables one called “PLAYERS” which holds the data of every user and “FRIENDSLIST” which is intended to be a personal “friends” list for every registered account.How the process goes in my app is that when a player (Joe) registers a Username his information goes into the “PLAYERS” table and now he could go into my FindFriends activty,search the app for his friend’s Username (Bob) and then clicks the ADD button.The friend (Bob) then gets added to the “FRIENDSLI
chentc
android mediacodec
I have a bunch of local images saved as jpeg files. My images are captured using CameraPreview and the PreviewFormat is as default: NV21. I want to generate a small video from a fixed number of images. I am not going to use FFMpeg because it requires NDK and will introduce compatibility issues. MediaCodec and MediaMuxer seems work but there are not one working solutions on the web. There are a few references lead to my current solution.1.EncodeAndMuxTest: http://bigflake.com/mediacodec/EncodeAnd
Peacemoon
android phonegap android-asynctask freeze progressdialog
I have a strangle behavior when implementing AsynTask and ProgressDialog. When i download small file, everything works fine, the progress status is updated from 0% to 100%. But when i download larger files, the number on ProgressDialog runs to 6 or 7% then it is not updated anymore. But after 2,3 minutes, i receive a messge that asyntask task finished the downloading process.public class DownloadHelper extends AsyncTask<String, Integer, Long> implements DialogInterface.OnDismissListener{pr
user1291129
phonegap jquery-mobile cordova
i have created an app which is used for uploading images to server using HTML5, jQuery Mobile and phonegap 2.2. I had try different approaches as follow:1)input type=file, this is working absolutely fine in Simulator it take upload the picture but it doesnot work on real device don’t know why.2)Second approach i used is of phonegap camera plugin.I simply use the already created code from the device it works fine if i create a separate project but when i integrate in my project it just stop respo
Ben
android node.js phonegap socket.io
Problem SummaryI am trying to bundle a simple socket.io chat app into a native app to run on Android 2.2 and above using phonegap.socket.io web client –> socket.io server worksI have a simple server running socket.io which successfully communicates with a socket.io client when its run in a web browser.socket.io mobile client in mobile browser –> socket.io server worksNote that because websockets arent supported on Android 2.2 it defaults back to xhr polling, sample messages from server when co
Andrew
android gwt phonegap
I have what I think is a fairly standard set-up of an existing web-app and would like advice on how best to adapt it for creating native versions via PhoneGap, in a way that we can keep developing the web-app and updating the phonegap generated versions from it with minimal rework.I am a PhoneGap novice. I have searched around and tried various suggestions from StackOverflow etc with no luck, at least for my set-up.The app is developed in GWT and consists of:static resources in a shared folder f
stealthjong
javascript android phonegap
I have and application built with PhoneGap, and I’m trying to communicate with Javascript from native code.in my DroidGap extending class:@Override public void onCreate(Bundle savedInstanceState) {Logger.log(“oncreate”);super.onCreate(savedInstanceState);super.init();super.appView.getSettings().setJavaScriptEnabled(true);super.appView.getSettings().setSupportZoom(true);super.appView.getSettings().setBuiltInZoomControls(true);super.appView.getSettings().setDisplayZoomControls(false);jsinterface =
user1386579
phonegap cordova phonegap-plugins cordova-2.0.0
I am new to phonegap plugin; I thought of writing a small echo plugin; but I get this error Falling back on PROMPT mode since _cordovaNative is missing. at file:///android_asset/www/js/cordova-2.3.0.js:1112 and also the echo event is not fired, I attach my files for your referenceThis is my index.html ` <!DOCTYPE html><html lang=”en”> <head><meta charset=”utf-8″><title>Login | Royce Apps</title><meta name=”viewport” content=”width=device-width, initial-scal
clint
javascript objective-c ios phonegap cordova
I am using phonegap/cordova(2.1.0) to create IOS app. i want to call a javascript function in index.html file of the phonegap from an objective-c function. So, i am creating an instance ‘theWebView’ of the ‘UIWebView’ class like below:Code in AppDelegate.h:#import <UIKit/UIKit.h>#import <Cordova/CDVViewController.h> #import “sqlite3.h”@interface AppDelegate : NSObject < UIApplicationDelegate > {NSString* invokeString;}@property (nonatomic, strong) IBOutlet UIWebView* theWebView
user2122206
php javascript jquery html5 phonegap
So I have it set up to upload images via Phonegap native apis from devices images/camera with random numbers attached to the image name. I’m trying to figure out how to access the final url of the image location on the server so that I can utilize that url of the image when making a Facebook post since they require external uploaded images.Code: .php<?php $dir = “upload”; $randomImg = rand(1, 9999).”image”.rand(1, 999999).”.jpg”; if ($_FILES) {print_r($_FILES);mkdir ($dir, 0777, true); move_
Anas Jaghoub
android webview slider phonegap swipe
Hope you are fine, Actually this is my first post here, I searched a lot, and tried a lot to find a suitable solution for my problem, but unfortunately could not find the answer for my problem.The problem is: I am developing an android application using html, css and javascript. my application depends on Phonegap framework. The application consists of a quite number of local pages. In the application I am trying to handle swipe gesture event on the android mobile and move the pages depending on
Pragna
android file-io phonegap
Hello all i am very new to phonegap.. i want to create file and write file using on android using phonegap the below code not working for me… i’ve taken help from herethis is my File.html that is located into *android_asset/www/File.html*<!DOCTYPE HTML><html><head><meta name=”viewport” content=”width=320; user-scalable=no” /><meta http-equiv=”Content-type” content=”text/html; charset=utf-8″><title>PhoneGap</title><link rel=”stylesheet” href=”master
Web site is in building