android,customization,google-maps-android-api-2,infowindowRelated issues-Collection of common programming errors
Pedro Fraga
android android-layout
I have this “always on top button” and its giving an error when i tap it on my 2.3.7 Ancdroid version device, but not giving erro when I tap it on my 4.2.2 Android device! here is the code of touch event:public class HUD extends Service implements OnClickListener, OnTouchListener, OnLongClickListener { Button mButton; @Override public IBinder onBind(Intent intent) { return null; }@Override public void onCreate() {super.onCreate();//mView = new HUDView(this);mButton = new Button(this);mButton.set
koopajah
android runtime-error accelerometer sensormanager
My SensorManager was working perfectly until today. I didn’t change any code, all I did was boot eclipse and now I am getting an error which forces my app to quit; here is what I get: 02-20 11:44:50.835: E/AndroidRuntime(23828): FATAL EXCEPTION: main 02-20 11:44:50.835: E/AndroidRuntime(23828): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.synlight_development.sleep_smart/com.synlight_development.sleep_smart.Sleep}: java.lang.NullPointerException 02-20 11:44:50.835: E/A
tsippert
android c++ android-ndk speech-recognition
I am trying to compile SREC_JNI code in Eclipse (Windows 7), I got the code from here https://github.com/arthurv/srecI am getting the following error C:\android-ndk-r8c\ndk-build.cmd all “Compile++ thumb : srec_jni <= android_speech_srec_MicrophoneInputStream.cpp jni/srec_jni/android_speech_srec_MicrophoneInputStream.cpp:26:23: fatal error: utils/Log.h: No such file or directory compilation terminated. make: *** [obj/local/armeabi/objs/srec_jni/android_speech_srec_MicrophoneInputStream.o]
Mark Allison
android android-layout android-fragments
I get the Error Unable to start activity ComponentInfo{de.androidbuch.activiti/de.androidbuch.activiti.task.Activity}: android.view.InflateException: Binary XML file line #11: Error inflating class fragmentwhen I switch via the portrait and the landscape mode. I’m using fragments. My xml is:<LinearLayout android:id=”@+id/mainLayout” android:orientation=”horizontal” android:layout_width=”fill_parent” android:layout_height=”wrap_content” ><ListView android:id=”@+id/android:list” android:
Yury
android git android-source
I want to fetch the Froyo source code from aosp, but I get the following error:fatal: Not a git repository: ‘/home/xxx/WORKING_DIRECTORY/.repo/projects/bootable/diskinstaller.git’ error: Cannot fetch platform/bootable/diskinstallerWhat is wrong here?
Axiomatic.it
java android
RESOLVED! The problem is that I used this.findViewById, but I will use dialog.findViewById. TNX TO ALL AND I BEG YOUR PARDON!I’ve a strange (for me) problem. I try to write in a edittext with a string readed from a cursor, and i know that’s the correct way:EditText myText;final Dialog dialog = new Dialog(this);dialog.setContentView(R.layout.login);dialog.setTitle(“Login”);dialog.setCancelable(true);Cursor lista=db.listaParametri();try{while (lista.moveToNext()){if (lista.getString(0).equals(“use
John
android
Hi I didn’t know where is my error coz Iv’e been using the same code over and over again but when I reach a certain point I got this error.*Log01-23 14:44:59.538: D/AndroidRuntime(8165): Shutting down VM 01-23 14:44:59.539: W/dalvikvm(8165): threadid=1: thread exiting with uncaught exception (group=0x414b88a8) 01-23 14:44:59.545: E/AndroidRuntime(8165): FATAL EXCEPTION: main 01-23 14:44:59.545: E/AndroidRuntime(8165): java.lang.NullPointerException 01-23 14:44:59.545: E/AndroidRuntime(8165):
Ramachandran
android android-actionbar actionbarsherlock
I am trying to create action bar using SharLock Library, I am added Sharlock library in my project.Here is my code,public class MainActivity extends SherlockActivity implements ActionBar.OnNavigationListener {@Overrideprotected void onCreate(Bundle savedInstanceState) {super.onCreate(savedInstanceState);setContentView(R.layout.activity_main);Button btnClick=(Button)findViewById(R.id.clickMe);btnClick.setOnClickListener(new OnClickListener() {@Overridepublic void onClick(View arg0) {// TODO Auto
Sapan
android facebook sdk
HI,I am trying to download facebook sdk for android as mentioned in http://developers.facebook.com/docs/guides/mobile/I installed git on windows machine. Then on git bash, i executed git init and then git clone git://github.com/facebook/facebook-android-sdk.gitBut i get an error: Cloning into facebook-android-sdk… fatal: Unable to look up github.com (port 9418) (No such host is known. )Any idea how to download the facebook skd? Am i missing any step?Rgds, Sapan
Maulik.J
android android-ndk mupdf
I am working on a project in which i have to deal with pdf view. I am trying to integrate mupdf library in my project but getting error as mentioned below. I have followed all steps mentioned in readme document. please help me to solve this error.Compile thumb : mupdf <= mupdf.cjni/mupdf.c:10:18: fatal error: fitz.h: No such file or directory compilation terminated. make: *** [obj/local/armeabi/objs-debug/mupdf/mupdf.o] Error 1My Android.mk fileLOCAL_PATH := $(call my-dir) TOP_LOCAL_PATH := $
Jeremi Liwanag
php theme-development customization include
Is this even possible? I mean, im trying to add a blog into my site.. I already have the header,footer and sidebar layout in my site. can i use those in my custom wordpress template? <?php /* Template Name: Blog */ ?> <?php include( PATH . ‘http://www.mysite.com/includes/header.php’ ); ?> <?php if (have_posts()) : while (have_posts()) : the_post(); ?><div <?php post_class() ?> id=”post-<?php the_ID(); ?>”><h2><a href=”<?php the_permalink() ?>”&
mrwweb
plugins plugin-development customization
I am trying to use a plugin function ( wp-bannerize() ) inside my custom plugin. but when i write:if( function_exists(‘wp_bannerize’) ){echo “exist”;}else{echo “not exist”;} The output is not existsHow can i get this function inside my custom plugin?UPDATE:Here the code of my plugin:class Infinite_posts{public function __construct() { add_action(‘wp_ajax_is_bannerize’, ‘load_plugins’); //when plugin receive an AJAX call with ‘is_bannerize’parameter load_plugins() is triggered}public function loa
helgatheviking
functions customization plugins
I am customizing woo-commerce plugin to add product from the front end into the cart. I have written the function in functions.php, but i am getting a Fatal error. Getting this error–>Fatal error: Call to a member function add_to_cart() on a non-objectinC:\wamp\www\cutting-edge_server\wordpress_theme\wp-content\themes\cutting_age\responsive\functions.phpon line 56Any body have any idea how to resolve it?My function.php fileif (isset($_POST[“addcustomcarts”])){echo $_SERVER[QUERY_STRING];// echo
Jeff
functions customization errors
Basically, every time I modify my functions.php file and reload it to the server my site “breaks” and nothing loads. As soon as I delete it, it starts working again. Now before anyone freaks out, I am using a child theme so I am not modifying the original theme.Specifically what I’m trying to do is modify the function twentytwelve_content_nav. and by modify I mean remove. I don’t want the links underneath each post and above the comments at all.I’ve tried encasing the entire function in comm
Marc
customization
I’m getting this error repeatedly in my error.log:[Wed Dec 29 13:46:37 2010] [error] [mod_pagespeed 0.9.11.5-293] http://marcandkatie.co.za/index.php:1: Reached end of document without finding <body>And I believe it’s caused my site todo this when I go to the admin:Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 4666733 bytes) in /home/marc_and_katie/marcandkatie.co.za/wp-includes/wp-db.php on line 849Any thoughts?
Mayeenul Islam
customization query
I am running Custom Query on functions.php:function subscribers(){if(isset($_POST[“email”])){$email = $_POST[“email”];echo $wpdb->insert($wpdb->easymail_subscribers, array(’email’ => $email));} } add_action(‘wp_ajax_subscribers’, ‘subscribers’); add_action(‘wp_ajax_nopriv_subscribers’, ‘subscribers’);This is being call by AJAX request. I got this error message:Fatal error: Call to a member function insert() on a non-object in G:\xampp\htdocs\Projects\newsite\wp-content\themes\generic\f
Sanjay Nakate
function customization woocommerce
I am customizing woo-commerce plugin to add product from the front end into the cart. I have written the function in functions.php, but i am getting a Fatal error. Any body have any idea how to resolve it?if (isset($_POST[“addcustomcarts”])){echo $_SERVER[QUERY_STRING];// echo $_SERVER[REQUEST_URI];echo “i am in if”;//exit();add_filter(‘woocommerce_before_cart’, ‘customcart’);function customcart() { echo “i am in function”;//global $woocommerce;$my_post = array(‘post_title’ => ‘My post’,’p
Halsafar
android stl build customization source
Following the instructions [http://source.android.com/source/initializing.html] there up to building. Using lunch full_grouper-user to generate the makefiles. The Android source builds just fine for about 5minutes then stops on this error.target arm C++: libwebrtc_system_wrappers <= external/webrtc/src/system_wrappers/source/map.cc In file included from external/webrtc/src/system_wrappers/source/map.cc:11:0:external/webrtc/src/system_wrappers/source/../interface/map_wrapper.h:14:15: fatal e
Thomas Raab
java api jboss customization jboss-portal
I want to implement a custom identity model in order to connect to a proprietary webservice providing user information. So I followed the instructions on http://docs.jboss.com/jbportal/v2.7.1/referenceGuide/html/identity.html.I am using JBoss Portal 2.7.2 with JBoss AS 4.2.3; java version 1.6.0_29Here are the steps that I’ve done:Creating a new maven project, pom.xml snippet:<dependency><groupId>org.jboss.portal.identity</groupId><artifactId>identity-identity</artifact
thewaywewalk
matlab customization limit simulink derivative
Imagine I have a rectangular reference value for the position/displacement x and I need to smooth it. The math for translatoric movements is quite simple:speed: v = x’ acceleration: a = v’ = x” jerk. j = a’ = v” = x”’I need to limit all these values. So I thought about using rate limiters in Simulink:This approach works perfect for ramp signals, as you can see in the following output:BUT, my reference signals for x are no ramps, they are rectangles/steps. Hence the rate limiters are not worki
user3110424
android android-asynctask google-maps-android-api-2
I have read other thread about this, but their solution can’t help me,need a help please, i have tried with android maps, this code work fine 4-5 days ago, but yesterday i tried again without changing this code, my application can’t run, in my device forced closed and error like this :01-06 21:20:21.833: E/AndroidRuntime(11500): FATAL EXCEPTION: AsyncTask #1 01-06 21:20:21.833: E/AndroidRuntime(11500): java.lang.RuntimeException: An error occured while executing doInBackground() 01-06 21:20:21.8
user1831468
google-maps android-fragmentactivity google-maps-android-api-2
I have a map activity that works perfectly, but when I what to add a marker I get an error and didn’t found any way to resolve the problem.public class MapActiv extends FragmentActivity {//private GoogleMap map;@SuppressLint(“NewApi”) @Override protected void onCreate(Bundle savedInstanceState) {// TODO Auto-generated method stubsuper.onCreate(savedInstanceState);setContentView(R.layout.map_fragment);GoogleMap mGMap = ((MapFragment) getFragmentManager().findFragmentById(R.id.map)).getMap();mGM
Ahmad
android google-maps-android-api-2
I am following this tutorial , i used the original files provided in the tutorial but facing same problem.searched for many pre asked questions but could not find way to repair my error.I m having error of “Unfortunately app has stopped” I got errors in logcat as follow.Logcat of my project 11-30 17:35:36.852: E/Trace(836): error opening trace file: No such file or directory (2)11-30 17:35:37.432: D/AndroidRuntime(836): Shutting down VM11-30 17:35:37.432: W/dalvikvm(836): threadid=1: thread exit
Guest Guest
android geolocation android-sqlite google-maps-android-api-2
Everytime I’ve tried to test my app on my phone, It shows a prompt that says “Unfortunately, the app has stopped.”I have already checked the build path, I’ve made sure that Google play services library is added. I’ve tried searching several threads already on how to fix and none of them are working. So I’ve made this post as a last resort to get someone to check it manually.Manifest:<?xml version=”1.0″ encoding=”utf-8”?> <manifest xmlns:android=”http://schemas.android.com/apk/res/androi
DanielVasic
android google-maps-android-api-2 supportmapfragment
I have a problem with running SupportMapFragment on Android (API 10) here is what I get from logcat:02-22 02:16:09.516 1132-1202/? E/ActivityManager? heap conf. property name string trimmed: hs.com.lge.android.calendar.wid 02-22 03:50:54.214 15767-15767/? E/ActivityThread? Service com.koushikdutta.rommanager.DownloadService has leaked IntentReceiver com.clockworkmod.billing.ClockworkModBillingClient$8@4054cb08 that was originally registered here. Are you missing a call to unregisterReceiver
SilverHood
android google-maps-android-api-2
Ever since I updated my Google Play services from Rev. 6 to Rev. 7 from the Android SDK Manager (I’m using Eclipse 4.2.2), my app will crash whenever I navigate to any tab with my map. The app was working fine before the update.Here is a line of error log that I found:05-21 13:08:56.603: E/AndroidRuntime(11981): FATAL EXCEPTION: main 05-21 13:08:56.603: E/AndroidRuntime(11981): java.lang.ExceptionInInitializerError 05-21 13:08:56.603: E/AndroidRuntime(11981): at java.lang.Class.newInstanceImp
Alex
android xml android-layout xml-parsing google-maps-android-api-2
I’m trying to learn android, and having followed the instructions on how to use the Google Maps API V.2 I now got it working. However, the instructions on how to configure the initial state of the maps, found at developers.google.com, suggests a namespace defined in the xml-file, in this case “map”. The xml-code below gives med the error “Unexpected namespace prefix “map””. Trying to define the xmlns:map inside the fragment tag gave the same error but with “xmlns”. I’m obviously missing some
Paulius
android google-maps google-maps-android-api-2
My goal is to have multiple markers with text on each on the Android Google Maps API v2 map. The info windows approach (showInfoWindow()) is not suitable, because only one info window is displayed at a time. For example I want to have something like this: As you can see each marker has its own data (number for this example) displayed all the time. How can I achieve this with Android Google Maps API v2?
Peter
android google-maps android-intent google-maps-android-api-2
KEYWhen I run a new activity with an Intent to launch google map V2, I have this error :05-29 17:54:04.389: E/AndroidRuntime(26353): java.lang.NoClassDefFoundError: com.monprojet.GeolocalisationBefore this error in the LogCat I read this error :05-29 17:54:01.319: E/dalvikvm(26353): Could not find class ‘com.monprojet.Geolocalisation’, referenced from method criquebeuf.Accueil$1.onItemClickI have in my Manifest the Activity ” Geolocalisation “.But the thing very strange, It’s that in an another
ing0
java android google-maps classnotfoundexception google-maps-android-api-2
EDIT: For those struggling with this, checkout this link. Follow it carefully, but it does work! The crucial part is using keytool to generate your SHA1 hash against your debug keystore. Also, don’t forget to add one for release too!I’ve been trying to setup Google Maps Android API v2 and after setting everything up as said I’m getting this runtime exception ClassNotFound:01-02 16:29:07.927: E/AndroidRuntime(12508): FATAL EXCEPTION: main 01-02 16:29:07.927: E/AndroidRuntime(12508): java.lang.Run
omega
android customization google-maps-android-api-2 infowindow
I am trying to create my own info window, but when I go to the map activity, it crashes (before I even get to see the map).This is the code I am using. Does anyone know whats wrong?Thanks.public class ActivityMap extends FragmentActivity implements Restartable { GoogleMap map = null;public static String ID;public HashMap<String, String> markerID = new HashMap<String, String>();@Overrideprotected void onCreate(Bundle savedInstanceState) {super.onCreate(savedInstanceState);setContentVi
geocodezip
google-maps google-maps-api-3 zoom infowindow
I am building a store locator using php sql and javascript. I’ve done this tutorial https://developers.google.com/maps/articles/phpsqlsearch_v3 and got it working. I am trying to implement zoom in/out links on the infoWindows, for when the user clicks a marker. Its not working, in FireFox I am getting no errors in the console. In Chrome I am getting Uncaught TypeError: Object # has no method ‘setCenter’ Ive been searching the forums but have been unable to find a solution. Sorry I dont have a ve
maartenmachiels
javascript database google-maps infowindow marker
I can’t seem to get my head around this problem:I’ve got a map with (a lot of) markers (companies) that come from a generated XML file. Below the map, I want to show a (non-JavaScript-generated) list of all the companies that are displayed on the map. When I would click a company in the list, the map would pan to that specific marker and open an infoWindow. The thing is that I want the map and the list to be two separate things… What would be the right way to tackle this problem? Thanks! Impor
Fran Rod
xml google-maps-api-3 infowindow
I have this code which load a xml file and push some markers into the map. This xml file is called again every 5 seconds and I update the position of the markers using marker.setPosition, what I want is to update the infowindows when I click over a marker. The problem now is that is always showing the first data loaded at the beginning. So if anyone know how to code it I would be very grateful.Best regards and thank you veruy much. //<![CDATA[var gmarkers = []; var map = null; var infoWindo
DarrylGodden
javascript google-maps markers infowindow
I’m trying to add infoWindow’s to multiple markers on a Google Map. The closest I have come is to get an infoWindow to display the last address you can see in the array, on all markers. The bit of code I have pasted below does not work, I get an “Uncaught TypeError: Cannot read property ‘4’ of undefined”. I’m sure this is a scope issue, but I’m going round in circles here and could do with some help:var hotels = [[‘ibis Birmingham Airport’, 52.452656, -1.730548, 4, ‘Ambassador Road<br />Bi
mike628
google-maps infowindow
I am trying to create listeners for some map markers. I can create the markers and they are on the map but, no matter which marker I click on it tells me “Uncaught TypeError: Cannot call method ‘open’ of undefined” . When I break at the open code it is showing markers[46] which is one more that the highest index. And it doesnt matter which marker I click on its always the same index. EDIT: I edited the code and pasted all of it. No errors, but nothing happens when I click a marker. I am looki
Mike Beale
google-maps google-maps-api-3 infowindow
Just started converting our maps from V2 of the API to v3.Got one issue so far in that when an InfoWindow is open, and the map is zoomed in, the InfoWindow will move off the map and eventually not be visible, this is different behaviour than in V2. In V2 the InfoWindow remains in view all the time.V2 map: http://www.stroud.gov.uk/docs/housing/tenant_map_v2.aspV3 map: http://www.stroud.gov.uk/docs/housing/tenant_map_v3.aspSimply click on any marker to open it’s InfoWindow, then zoom the map in wi
Tijmen
google google-maps-api-3 infowindow
Based on a selected country and date a list of results will show up on the map. The placements of markers with html data in them works fine, the problem I have is handling the cases with duplicate markers.I found a way to check for duplicate ones, but I would like to be able to modify the content in the infowindow of the one already present. So that I can add the content of the duplicate marker to the existing marker that stands in the same location.The problem I’m having is that I can’t find th
Teddy
google-maps infowindow
I have to show InfoWindon in two cases: Clicking on marker Hovering search results.Also, no script error are shown, but the info windows are not showing. Here is my code: var searchResults = {“100065”:{“Rank”:100065,”ID”:100065,”Country”:”France”,”Department”:null,”CityName”:”Paris”,”ZipCode”:”75019″,”PropertyType”:”Apartment”,”Title”:”Super sweet villa100065″,”Address”:””,”Price”:45000.0000,”Longitude”:2.386708,”Latitude”:48.890614,”HideAddress”:false,”Zone”:null,”IsAgency”:true,”Image”:null,”
sesamos
android google-maps android-intent infowindow
I am trying to call an activity from a non activity class but I m not able to accomplish this task .My goal is to call a new activity from info window , when the image in the info window is clicked . How can I call activity from non activity class ? Any help is appreciated .Thank you. package com.icons.draw.view;import java.util.Iterator; import java.util.List;import android.content.Intent;import android.graphics.Bitmap;import android.graphics.BitmapFactory;import android.graphics.Canvas;import
Web site is in building